Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
3,939,310 | 3,939,311 | Android & Java simple Code | <p>I Wonder what is and does (this) in this code:</p>
<pre><code>Button btn = new Button(this);
</code></pre>
| java android | [1, 4] |
959,260 | 959,261 | How much of the Java 6 API is implemented by Android? | <p>I want to port an small open source AES encryption class to Android, and it would cut my work down a lot if the API of Android is as close as possible to the Java 6 API. </p>
<p>How much is implemented (or referenceable), as I have tried searching about this on google, and i have not yet come up with anything usefu... | java android | [1, 4] |
2,250,755 | 2,250,756 | problem with use of effect fadeOut.? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7153079/dont-work-fadeout-if-there-is-replacewith">don't work 'fadeOut' If there is 'replaceWith'.?</a> </p>
</blockquote>
<p>I want after delete row(s) in table, for it row that deleted use ... | javascript jquery | [3, 5] |
1,758,835 | 1,758,836 | jQuery ajax post success - saving data to variable | <p>I have this function:</p>
<pre><code>function getReport(name,x) {
var xArr = [];
var yArr = [];
$.ajax({
async: false,
type: "POST",
//async: false,
//dataType: "json",
url: "reportAjax.php",
data: "name="+ name,
success: function(data){
... | javascript jquery | [3, 5] |
2,644,915 | 2,644,916 | assign value to javascript variable In C# CodeBehind | <p>How can i assign value to javasctipt variable from code-behind (C#)?</p>
<pre><code><script type="text/javascript">
String.prototype.trim = function () { return this.replace(/^\s+|\s+$/, ''); };
function ConstantByCode(_Obj, _Div) {
var pl = new SOAPClientParameters();
_Obj.value = _Obj.value.trim();
... | c# javascript asp.net | [0, 3, 9] |
3,731,537 | 3,731,538 | android/java getIdentifier with | <p>I'm having trouble getting <code>getIdentifier</code> to work with a class variable. It's strange, because this works:</p>
<pre><code>public Drawable getStationIcon(Context context) {
int resId = context.getResources().getIdentifier("m1m2_16", "drawable", "com.mypackage.namehere");
Drawable drawable = conte... | java android | [1, 4] |
5,548,538 | 5,548,539 | Get correct window width after resize or orientationchange event for Android | <p>I bound functions to the resize and orientationchange event. In this function i'm trying to read the windowwith. Iphone always gives me the correct sizes but Android devices (2.2, 2.3 and 4.0) seem to trigger the event before actually changing the windowssize. So I always get the last windowsize and not the newest. ... | javascript jquery android | [3, 5, 4] |
568,625 | 568,626 | any reference for Asp.net with c# initial programming video or code | <p>give me any site for asp.net with c# video & code.....
That start for basic of it.....NOT youtube,asp.net,etc </p>
| c# asp.net | [0, 9] |
744,230 | 744,231 | Having problems using percentages passed in through ("input").val() | <p>To be honest, I think I just have to convert the values to integers, but I've tried a bunch of things and keep getting 'NaN' or something along the lines of 'cannot use this action on an object'. I want to do things like use replace to remove the % or simply apply math to it. I have tried String and parseInt() to ... | javascript jquery | [3, 5] |
855,709 | 855,710 | Javascript echo via PHP | <pre><code>echo "<br><font face='Segoe UI' color='blue'><a href='#' onClick='javascript:alert(".$nam.");return false;'>".$nam."</a></font>";
</code></pre>
<p>I'd like to know if there's any syntax error in the above code. I don't think alert() is being called. </p>
<p>Thanks! </p>
| php javascript | [2, 3] |
3,913,972 | 3,913,973 | Script not executing with a dynamically generated JQuery script tag | <p>I have the following code in an external JS file (ie: test.js); which creates an additional script tag pointing to a JQuery source if it detects that a JQuery source isn't already there. The code actually creates the script tag and inserts it before the actual script that's doing the creating:</p>
<pre><code>if (ty... | javascript jquery | [3, 5] |
3,255,316 | 3,255,317 | How to check if two string are of the same length? | <p>I want to check if two string are of the same length. I tried the following, but it doesn't work.</p>
<pre><code>string passnew = "1233";
string passcnfrm = "1234";
if((passnew.Length&&passcnfrm.Length)>6 ||(passnew.Length&&passcnfrm.Length)<15)
{
// ...
}
</code></pre>
<p>Why does it n... | c# asp.net | [0, 9] |
524,735 | 524,736 | Wrap <a> tag around phone number using jquery | <p>I'm loading a page with AJAX and would like to use Jquery to search for phone numbers (whose format is 555.555.5555) on the loaded page and wrap them with tel links:</p>
<pre><code><a href="tel:phone-number-here"> </a>
</code></pre>
<p>I know the parts I need to accomplish this (I think): Regex and .wr... | javascript jquery | [3, 5] |
2,680,930 | 2,680,931 | How to retrieve a value from <input> using jQuery? | <p>I have to hidden input fields such as:</p>
<pre><code><input name="foo" value="bar">
<input name="foo1" value="bar1">
</code></pre>
<p>I'd like to retrieve both of those values and POST them to the server using jQuery. How does one use the jQuery selector engine to grab those values?</p>
| javascript jquery | [3, 5] |
3,271,094 | 3,271,095 | Custom adapter to use with array of custom classes. (to populate a gridview) | <p>I've been fiddling with a Gridview lately for a few items that I'm trying to accomplish. The others have been relatively simple and easily done. The one I'm getting stuck at is I am trying to populate a gridview with multiple power control widgets (ImageButtons) (named.. wifiWidget, gpsWidget & syncWidget etc..)... | java android | [1, 4] |
3,843,479 | 3,843,480 | android- menu settings customization | <p>i added settings option in android menu. it works fine while testing in emulator. but when i try in device it wont change.. can i know what is the problem? Do i need to change anything in androidmanifest.xml file.<br>
following is my code: </p>
<pre><code>@Override
public boolean onCreateOptionsMenu(Menu menu)
{
... | java android | [1, 4] |
3,008,542 | 3,008,543 | Performance of conditional logic with gridview RowDataBound vs ItemTemplate/Regular databind | <p>I have a gridview that contains around 16 ItemTemplate columns. The values in each column are decimal properties. In each column, I'm doing some conditional logic to display N/A or actual value etc, etc. Something like,</p>
<pre><code><asp:TemplateField HeaderText="Test" ItemStyle-CssClass="test"> ... | c# asp.net | [0, 9] |
1,650,516 | 1,650,517 | How do I find the current window offset using javascript? | <p>When I open a page, the window offset would be 0 but when i scroll through the page, the offset of the window would increase correspondingly? How can I find the window's offset at any particular point of my web page?</p>
| javascript jquery | [3, 5] |
5,491,588 | 5,491,589 | Can php detect if javascript is on or not? | <p>I have page which created dynamically.</p>
<p>Now I want to add ajax function, so I want to add if statement to change the outputs.</p>
<pre><code>if(js is on){
...
...
echo "js is on";
}else{
...
echo "js is off";
}
</code></pre>
<p>Is there any way I can detect if js is on with php? </p>
<p>Or is there any... | php javascript | [2, 3] |
5,574,748 | 5,574,749 | Accessing a javascript object with jQuery | <p>After creating an object with JavaScript I am looking to access it with jQuery to manipulate it. Here is some code to make things clearer:</p>
<pre><code>ObjectFunction = function(content) {
this.content = content
}
ObjectFunction.prototype = {
showobject : { return this.appendTo(document.body)}
}
obj = New ... | javascript jquery | [3, 5] |
61,864 | 61,865 | JavaScript Yes/No Preceding ASP.NET Button Event | <p>Hi I'm trying to learn more JavaScript AJAX. Basically I would like to have a popup Yes No on a delete button that would precede the actual C# event being fired. I could do this all in C# but I know doing it client side would be beneficial as it would reduce server load.</p>
<p>I'm not sure exactly how to go about ... | c# javascript asp.net | [0, 3, 9] |
5,799,720 | 5,799,721 | Submit form and get redirect url | <p>I need to submit some data on a website in-order to register a server. I need to enter information onto a form in the first webpage and upon submitting the information, the webpage takes me to a dynamically created page (I also need to retrieve this page) where I have to enter more information in the form. </p>
<p... | c# java javascript | [0, 1, 3] |
347,633 | 347,634 | How to get the correct path in asp.net when deploying from localhost to a development server? | <p>I have a simple web application that contains a folder called documents on the root of the website. Inside documents, is a file called test.doc. The path and file are stored in a database and when the web app is run, it reads in the values and creates the correct link to test.doc, in this case, it is <a href="http... | c# asp.net | [0, 9] |
3,455,886 | 3,455,887 | file not saved correctly | <p>Im trying to get image using webservice and saved to sd card. The file saved but i couldnt open the file. Once i open the file it saying "could not load image". Below is my code.</p>
<pre><code>httpTransport.call(SOAP_ACTION, envelope);
Object response = envelope.getResponse();
test = response.toString();
Blob pict... | java android | [1, 4] |
4,509,864 | 4,509,865 | how to convert unordered list( UL, LI) to continuous string | <p>I want to convert following html code into continuous string using jquery/javascript.</p>
<pre><code><ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
</code></pre>
<p>This is the html placed inside the textarea(with id "description") when I read these... | javascript jquery | [3, 5] |
3,841,880 | 3,841,881 | Dynamically adding a command button to a GridView | <p>I'm having an issue with trying to add a button to my grid. My GridView is first loaded with data in the PageLoad event.</p>
<p>I'm then taking the data in the first cell of each row, and creating a button that will link to a URL. To get the URL, I have to run a query with the data in the first cell as a parameter.... | c# asp.net | [0, 9] |
3,124,423 | 3,124,424 | Saving Android application state | <p>I understand how to save an application's state by using SharedPreferences, onSavedInstanceState() & onRestoreInstanceState(), etc as outlined in a similar post ( <a href="http://stackoverflow.com/questions/151777/how-do-i-save-an-android-applications-state">http://stackoverflow.com/questions/151777/how-do-i-sav... | java android | [1, 4] |
1,069,900 | 1,069,901 | jquery click function load php-page only first click | <p>page is loaded only once, that is, when you press the button the first time. How to make so that it is loaded and on subsequent pressings? And how to pass data from php to javascript? javascript alert work fine, but page bbb.php load only 1-st time. tnx</p>
<pre><code> <body>
<div id="stage">STAG... | php javascript jquery | [2, 3, 5] |
4,279,750 | 4,279,751 | Merge Merger header columns in gridview? | <p>How can I create below type of gridview with merge merged header columns? If anybody have example share with me.</p>
<p><img src="http://i.stack.imgur.com/LqC9E.jpg" alt="alt text"></p>
<p>Thanks in advance.</p>
| c# asp.net | [0, 9] |
541,057 | 541,058 | Need only Vertical scrollbars in window.showModalDialog | <p>I have following code in - </p>
<pre><code>function getPopup1(redirectString) {
var dialog = window.showModalDialog(redirectString , null,
'status:no;dialogWidth:700px;dialogHeight:900px;dialogHide:true;help:no;scroll:1');
}
</code></pre>
<p>and the .aspx page has following code, on which I am redire... | javascript asp.net | [3, 9] |
3,241,657 | 3,241,658 | String Mapping in Javascript | <p>Currently I have implemented a Javascript Ajax search where if user types a city name I am populating the name in the search result. Problem is there are cities which have alternate names (for example Mumbai has Bombay as alternate name.....Bangalore has Bengaluru as alternate name). I want to map the alternate name... | javascript jquery | [3, 5] |
4,217,872 | 4,217,873 | What's the best way to send JavaScript array to PHP script using GET? | <p>I have an interactive web application powered by jQuery where users can manipulate visual objects on the screen. When done, the "state" of JavaScript objects should be sent to PHP to store into database. I'd prefer to use GET for this, but solution that uses POST to submit the data is also viable. </p>
<p>I'm curre... | php javascript jquery | [2, 3, 5] |
2,332,946 | 2,332,947 | Expire a particular page on back button of browser | <p>if users press the browser's back button to reach the prior page, the page should display a message like "web page expired".</p>
<p>can i use javascript for this???</p>
<p>for example:
there are 4 pages in web sites. on page 1,2 and 3 the user can use the back-button, wheras on the 4th page the user gets the desir... | c# asp.net | [0, 9] |
1,073,391 | 1,073,392 | Get number of elements based on data attribute value | <p>Should be a simple thing, but I'm getting no where.</p>
<p>I want to get the number of elements with a given data-attribute value.</p>
<p>I have some html elements with various data-size='values'. Need to get the number of items with each value.</p>
<p>If you look at the code below, I want to get the number of '... | javascript jquery | [3, 5] |
956,975 | 956,976 | How do i get the css properties by specifying its id | <p><a href="http://stackoverflow.com/questions/590602/padding-or-margin-value-in-pixels-as-integer-using-jquery">Padding or margin value in pixels as integer using jQuery</a>
after reading the above Answers . One of the user exaplained these </p>
<pre><code> alert($("a").css("margin-top"));
</code></pre>
<p>Now I wan... | javascript jquery | [3, 5] |
4,204,783 | 4,204,784 | calling javascript function from .net codebehind with a value | <p>I am trying to call a javascript function from asp.net codebehind using onclientclick for a linkbutton. Code is like this:</p>
<pre><code>string x = "redirecttoimagepage"+"("+ y+")";//y has an int value i need and it varies
lnkimagepage.OnClientClick = x;
</code></pre>
<p>i need to use the value y in the javascrip... | c# javascript asp.net | [0, 3, 9] |
758,789 | 758,790 | Call client script from button with submit behaviour false? | <p>How do I call a client script function from a server side button click(with submit behaviour set to false) .</p>
<pre><code>protected void Button4_Click(object sender, EventArgs e)
{
//System.Threading.Thread.Sleep(2000);
lbDateTime.Text=System.DateTime.Now.ToString();
ClientScript.RegisterClientScriptB... | javascript asp.net | [3, 9] |
4,454,400 | 4,454,401 | How to implement this keyboard hooking function in javascript/jquery? | <p>I need to implement a keyboard for my language. For example, I want that if you type <code>"a"</code> then in the textbox or input box will show: <img src="http://cl.cooltext.com/rendered/cooltext530153213.png" alt="ka">.....If i press "m" it will show: <img src="http://i.stack.imgur.com/5hL2n.png" alt="enter image ... | javascript jquery | [3, 5] |
3,730,588 | 3,730,589 | Filling label value with javascript. Label empty in code behind after postback? | <p>I have some text that needs to be changed after a click of a button. The button triggers a Javascript. This Javascript changes the value of the label. When I check the value of the label in the in different places its always empty.
I check the value of the label in page load and the pre render.</p>
<pre><code>void ... | c# javascript asp.net | [0, 3, 9] |
4,387,340 | 4,387,341 | Multiple JavaScript Issue | <p>I include the following in my header</p>
<pre><code><!-- scripts -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript" src="./js/script.js"></script>
<script type="text/javascript" src="./js/j... | javascript jquery | [3, 5] |
2,308,475 | 2,308,476 | JQuery add onclick string to anchor that are not of a class | <p>I have some html code which is loaded by reading some json. Inside that data there are some links.</p>
<p>I need to add <code>onclick="myfunction();"</code> to the anchors of these links.</p>
<p>As I don't want any other links to be changed I have added a class to all internal link (Links which are not imported).<... | javascript jquery | [3, 5] |
3,687,580 | 3,687,581 | Using jQuery .change() to change values in a <p> element | <p>I have a select element with a few options for currencies, and then a <code><p></code> element at the bottom that currently prints the current exchange rate for USD to another currency. What I'm trying to do, is upon <code>.change()</code> of the select element value, I want to insert the value of the select e... | php jquery | [2, 5] |
3,449,431 | 3,449,432 | JQuery Check All/ Uncheck All not working on ASP.NET | <pre><code>$(document).ready(function() {
$('#chkRFI').click(
function() {
$("INPUT[type='checkbox']").attr('checked', $('#chkRFI').is(':checked'));
}); });
<div class="grid_3">
<div class="box">
<div class="boxheader">
... | c# jquery asp.net | [0, 5, 9] |
5,307,440 | 5,307,441 | jQuery sticky top menu bar request | <p>Im looking for a jQuery pluging (or code/guide) that does this: <a href="http://codecanyon.net/item/jquery-css3-sticky-mega-menu-bar/full_screen_preview/239093" rel="nofollow">http://codecanyon.net/item/jquery-css3-sticky-mega-menu-bar/full_screen_preview/239093</a></p>
<p>This one is not free</p>
<p>Note: Notice ... | javascript jquery | [3, 5] |
4,923,061 | 4,923,062 | Binding sub Objects to DataField and DataSource | <pre><code>class A
{
int ID;
B ClassB;
}
class B
{
string Title;
}
</code></pre>
<p>Using the above mock classes as examples - I have a dynamically created GridView. To this I bind (add to the Columns collection) X number of BoundFields and then assign a collection to the DataSource, however, my sub obje... | c# asp.net | [0, 9] |
4,660,604 | 4,660,605 | referencing dynamically loaded things from a previously loaded jquery script | <p>let's say that i have something like this:</p>
<pre><code><head><script src="script1.js" ...></script></head>
<body><div id="div1"></div></body>
</code></pre>
<p>which i call index.html, and div1's content is loaded dynamically, like</p>
<pre><code>$("#div1").html (... | javascript jquery | [3, 5] |
3,114,111 | 3,114,112 | Question about Client IDs | <p>I have a user control that is emmitting javascript using the ClientId function. For example:</p>
<pre><code>Out &= "ValidatorHookupControlID(" & Quote & ddlMonth.ClientID & Quote & "), document.all(" & Quote & CustomValidator1.ClientID & Quote & "));" & vbCrLf
</code></pre>
... | asp.net javascript | [9, 3] |
3,417,748 | 3,417,749 | Using variables in JQuery | <p>I have the following code:</p>
<pre><code>$("#tag-add-button").click(function () {
var text = $("#tagadd").val();
var tagcounter=0;
$("#set-tags").append("<%= render 'tag' %>");
$("#tag"tagcounter).val(text);
$("#tagadd").val("");
tagcounter=tagcounter+1;
});
</code></pre>
<p>Clearly ... | javascript jquery | [3, 5] |
5,889,714 | 5,889,715 | my jquery code dont work? | <p>
<p>UCCN1003</p>Edit</p>
<pre><code><script type="text/javascript">
$(function(){
$('a.edit').click(function(event){
var change = $(this).parent('div').find('p');
var changeText = change.text();
var wrapper = $(this).parent('div');
var clone = c... | javascript jquery | [3, 5] |
3,379,727 | 3,379,728 | Keeping scroll distance from top of page despite window height | <p>I am changing the background color of my page based on the scroll position from the top of the page, but I want to cycle through all of the colors regardless of of the height of the window. What I have now is strictly based on the number of pixels the scroll is from the top of the page, but you'll see that is depend... | javascript jquery | [3, 5] |
2,488,716 | 2,488,717 | Hide submit button after submission? | <p>After submit, I want the submit button to get hide via jQuery. It hides, but soon after the page reloads... Why?</p>
<p>HTML:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<script src="js/submit_rsvp.js"></script>
<script src="js/jquery-1.2.3.pack.js"></script>
<script ... | javascript jquery | [3, 5] |
611,268 | 611,269 | How to rewrite the code using jQuery | <p>How to rewrite the code using jQuery?</p>
<pre><code> <script type="text/javascript">
window.onload = function(){
var array = document.getElementsByTagName('div');
for (var i=0; i<array.length; i++) {
(function(i) {
array[i].onclick = function() {
... | javascript jquery | [3, 5] |
785,880 | 785,881 | Override jQuery functions | <p>Is there way to override jQuery's core functions ?
Say I wanted to add an alert(this.length) in size: function()
Instead of adding it in the source </p>
<pre><code>size: function() {
alert(this.length)
return this.length;
},
</code></pre>
<p>I was wondering if it would be possible to do something like this... | javascript jquery | [3, 5] |
1,636,820 | 1,636,821 | jquery variable not being set within function.asynchronous? | <p>i think this has something to with the function being asynchronous but i'm not sure. i think it's a quick answer but i can't figure it out.</p>
<p>i'm trying to check if images exist on the server. if they do, then set a variable. if they don't then move on and check the next image.</p>
<p>every time i alert the v... | javascript jquery | [3, 5] |
483,542 | 483,543 | change image url when click image button | <p>I had three image buttons they had default image url and I tried to change image url when user click on any image button and the default retrieve when user click to other image button tried to do that but I did not </p>
<pre><code><aspx>
<div class="hom_but_sa hom_but_saR">
<asp:ImageButton ID="... | c# asp.net | [0, 9] |
3,555,274 | 3,555,275 | Display JS Calculation Sum In An Input Field | <p>I want to display the sum of this calculation in an input field:</p>
<pre><code>function calculateSum1() {
var sum = 0;
//iterate through each textboxes and add the values
$("input.miles").each(function() {
//add only if the value is number
if(!isNaN(this.value) && this.value.len... | javascript jquery | [3, 5] |
4,812,034 | 4,812,035 | connect to ms sql database in a server | <p>i am working on a app which should take data from a database on a server. it is a ms sql database. i need some help like little code hints or some useful information.</p>
<p>thank you!</p>
| java android | [1, 4] |
4,119,447 | 4,119,448 | Evaluating specific array value using jQuery or JavaScript | <p>I have 160 inputs in my page. I want to add every 8 inputs and output it elsewhere. Instead of manually using </p>
<pre><code>var total1 = inputVals[0] + inputVals[1] + inputVals[2] + inputVals[3] + inputVals[4] + inputVals[5] + inputVals[6] + inputVals[7] + inputVals[8];
</code></pre>
<p>I want a function with wh... | javascript jquery | [3, 5] |
1,495,114 | 1,495,115 | do datatype choices affect performance? | <p>I have an object model that I use to fill results from a query and that I then pass along to a gridview.</p>
<p>Something like this:</p>
<pre><code>public class MyObjectModel
{
public int Variable1 {get;set;}
public int VariableN {get;set;}
}
</code></pre>
<p>Let's say variable1 holds the value of a count ... | c# asp.net | [0, 9] |
1,390,311 | 1,390,312 | Thread synchronization Java | <p>I am working on Android App and unable to synchronize View with Hardware.
Let me explain.</p>
<p>1) I mute and unmute microphone of Android based on random values (which are random sleeps) stored in array A, from within run method of Thread 1.</p>
<p>2) I draw blue pulses that reflects the mutes of microphone. T... | java android | [1, 4] |
4,235,753 | 4,235,754 | jquery not properly serializing json in ajax call | <p>Let me start by saying I am not extremely familiar with Javascript and I cannot figure out what is going on here. </p>
<p>I have the following function: </p>
<pre><code> self.search = function () {
var searchTerms = {
"City": this.cityName,
"State": this.stateNa... | javascript jquery | [3, 5] |
4,385,057 | 4,385,058 | why is thread.join commonly used to stop threads in android | <p>looking at several android examples i see a trend where threads are paused using join() method:</p>
<p>EDIT: please assume that the 2 threads are properly defined. edited the calls to join() </p>
<pre><code>public class MainUI extends Activity{
private GraphicsViewThread g;
private BackendDataViewThread b;
... | java android | [1, 4] |
4,931,159 | 4,931,160 | loop trough (input and select) elements and check if the value is empty | <p>i want to loop trough all the (input and select) elements inside a div and check if the value is empty and then hide it</p>
<p>i have tried this , but it doesn't work : </p>
<pre><code>$("#tabspanel").find('input[type=text] , select').each(function (){
if (!(jQuery.trim(this.value).length > 0)) {
th... | javascript jquery | [3, 5] |
5,946,468 | 5,946,469 | JavaScript Error: Script5007: Object Expected | <p>Error reads:</p>
<p>SCRIPT5007: Object expected.
<a href="http://rsatestamle.dminsite.com/Javascript/jqueryplugins.js" rel="nofollow">http://rsatestamle.dminsite.com/Javascript/jqueryplugins.js</a> , line60 character 2.</p>
<p>I'm not sure what's going on with it. Any ideas? Not sure what that error means honestly... | javascript jquery | [3, 5] |
1,967,320 | 1,967,321 | Choosing div placement using append in jQuery | <p>Using the following code:</p>
<pre><code><script type="text/javascript">
function moveFront(el){
var me = $('#'+el.closest('div').attr('id'));
var parent = me.parent();
parent.find('div:first').prepend(me);
//?
}
</script>
<div class="comments">
<div id="105">
105
<... | javascript jquery | [3, 5] |
1,345,600 | 1,345,601 | How to get user control javascript function in aspx.cs page | <p>In my web application, I have one user control and one aspx page. In the user control, I have one link button and when I click the link button I am calling one Javascript function in the onclientclick event. So here are my requirements</p>
<ol>
<li>I want to Call that user control javascript function in default.a... | javascript asp.net | [3, 9] |
3,261,733 | 3,261,734 | Limit characters via jquery | <p>I have a div that displays a bunch of text but I only want 75 characters to be displayed and the rest of the text is replaced by ...</p>
<pre><code><div class="text-info">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad min... | javascript jquery | [3, 5] |
3,534,654 | 3,534,655 | Insert values into the table depending on the selected dropdown value | <p>I have a form in which I have a ComboBox control with two values.</p>
<p>Once the user selects one item in the list, I need to display a table of data corresponding to the option selected.</p>
<pre><code>if (DropDownList1.SelectedValue == 1)
{
// open a SqlCommand
// read values
// fill table
}
else... | c# asp.net | [0, 9] |
5,402,831 | 5,402,832 | jQuery - check whether string contains numeric value | <p>How to check whether a string contains any numeric value by jquery? </p>
<p>I search through many examples but I only get the way to check for a number, NOT number in a STRING. I am trying to find something like <code>$(this).attr('id').contains("number");</code> </p>
<p>(p/s: my DOM id will be something like <cod... | javascript jquery | [3, 5] |
3,498,670 | 3,498,671 | Date Validation not working using JavaScript | <p>I have two two date fields - from date and to date, and i need to validate 3 things</p>
<ul>
<li>Both the values are entered or not</li>
<li>Date datatype check </li>
<li>To date must be greater than from date.</li>
</ul>
<p>But my script is not working.</p>
<p>can some body please check?</p>
<p>Thanks</p>
<pre... | javascript jquery | [3, 5] |
610,591 | 610,592 | How to get the value of Preprocessor constant at runtime in ASP.NET / C#? | <p>If I have</p>
<pre><code><%@ Page CompilerOptions="/d:QUUX" %>
</code></pre>
<p>how can I test QUUX constant in my C# Code ?</p>
| c# asp.net | [0, 9] |
1,079,541 | 1,079,542 | Convert C# row to PHP | <p>I want to convert a C# row to PHP, but it doesn't work (the result isn't the same):</p>
<p>C#:</p>
<p>PHP:</p>
<p>Someone know how to do this?</p>
<p>Thanks</p>
| c# php | [0, 2] |
3,067,847 | 3,067,848 | function(¶m) - like in PHP | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3877675/javascript-pass-variables-through-reference">JavaScript Pass Variables Through Reference</a> </p>
</blockquote>
<p>How can you do something like this in javascript?</p>
<p>In PHP you can put a <code>&am... | javascript jquery | [3, 5] |
4,548,946 | 4,548,947 | Extract informations from a list inside a list. | <p>In my js I get a list 'data' that looks like that:</p>
<pre><code>data = {test: 'test', test2:'test2', test3 : buffer}
</code></pre>
<p>My 'buffer' has this form: </p>
<pre><code>buffer =[{testa: 'testa', testb : 'testb'}, {testc: 'testc', testd : 'testd'}, {teste: 'teste', testf : 'testf'} ... ]
</code></pre>... | javascript jquery | [3, 5] |
2,486,776 | 2,486,777 | dropdownlist bind datatext field with a calculation | <p>I have a datatable with one column that is taken from DB</p>
<pre><code>DataTable dt = ent.GetDataTable();
</code></pre>
<p>I am binding it to dropdownlist with </p>
<pre><code>ddl.Datasource = dt;
ddl.datatextfield = "Test";
ddl.DataBind();
</code></pre>
<p>Now i want multiply each value in that column by 1000 ... | c# asp.net | [0, 9] |
4,355,850 | 4,355,851 | how do I know when/where to invoke the overridden method of the super class | <p>This question occured to me while programming a Android application,
but it seems to be a general programming question more.</p>
<p>The situation is, I am extending (subclass-ing) an class from a library, and overriding a method. how do I know if I should invoke the method of super-class? and when? (in the beginnin... | java android | [1, 4] |
2,930,399 | 2,930,400 | check if the given date(in string format) has past present date using JS | <p>I have a date range like 12/20/12-12/24/12(start date-end date) in string format .
I need to check if start date has past the present date. Can it be done using JS or j-query?
the date range is in string ?</p>
| javascript jquery | [3, 5] |
5,479,654 | 5,479,655 | How to cancel/kill window.setTimeout before it happens on the client? | <p>I have a few places where I use the line below to clear out a status for example. I have a few of these that hang out for 10 seconds or more and if the user gets clicking around the action can occur at incorrect time intervals. Is it possible to cancel or kill this w/ some jQuery or JavaScript so I don't have this... | javascript jquery | [3, 5] |
2,807,388 | 2,807,389 | Hyperlink inside aspx.cs page | <p>Instead of the following code coming up with messages -</p>
<p><code>public partial class mylogin1 : System.Web.UI.Page</code>
{
<code>protected void Page_Load(object sender, EventArgs e)</code>
{
<code>if (User.Identity.IsAuthenticated)</code>
{
<code>if (User.IsInRole("Principal... | c# asp.net | [0, 9] |
4,260,722 | 4,260,723 | Issue with changing an attribute with jquery | <p>I'm having an issue with changing the attribute for an id and can't seem to figure out what I'm doing wrong. I guess it doesn't help that I'm new to this also.</p>
<p>I have a function that tests to make sure that I am pulling the correct id from the row in my form that I have dynamically created. It goes something... | javascript jquery | [3, 5] |
3,562,698 | 3,562,699 | Filter values similar | <p>I want filter values similar, i tried as following js code, but this code can not filter value <code>111</code> because this no <code>,</code>. my html code is as following (Some do, some do not this: <code>,</code>).</p>
<p>How can fix js code for filter all strings?</p>
<p><strong>DEMO:</strong> <a href="http:... | javascript jquery | [3, 5] |
1,954,170 | 1,954,171 | How to use an anchor link and scroll at the same time? | <p>Here for some help again :)</p>
<p>I've got this site: sharemyplaylists.com</p>
<p>that uses this scrolling plugin to smoothly bring the user to an anchor when clicked, here is the code:</p>
<pre><code>// Smooth anchor link script
$(document).ready(function()
{
$('a[href*=#]').click(function()
{
if (l... | javascript jquery | [3, 5] |
508,484 | 508,485 | jQuery selector by classname minus classname | <p>I have the following jquery line in a click event of a <em>p</em> element:</p>
<pre><code>$(this).nextUntil('.Maintheme not:.Document')
</code></pre>
<p>I would like to get all the next elements with class .Maintheme but not .Document.</p>
<p>To explain myself a little better, this is the html that i have:</p>
<... | javascript jquery | [3, 5] |
2,120,861 | 2,120,862 | How do I overlay a busy icon on an image? | <p>I've been looking through SO and Google trying to find a simple way to overlay a busy icon on an existing image. While applying filters and effects to images I'd like to let the user know it's being processed by showing a busy icon on top of the current image. </p>
<p>Do I need to create some sort of overlay image ... | php javascript jquery | [2, 3, 5] |
5,903,965 | 5,903,966 | JavaScript: Get unique values and their counts from an array of objects? | <p>Using jQuery, how can I iterate over an object, and get the unique values of a key with a count of each value?</p>
<p>For example, for this array:</p>
<pre><code>var electrons = [
{ name: 'Electron1', distance: 1 },
{ name: 'Electron2', distance: 1 },
{ name: 'Electron3', distance: 2 },
{ name: ... | javascript jquery | [3, 5] |
3,566,310 | 3,566,311 | jQuery: Hide element on click anywhere else apart of the element | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/152975/how-to-detect-a-click-outside-an-element">How to detect a click outside an element?</a> </p>
</blockquote>
<p>I'm trying to achieve that a 'div' hides if user clicks anywhere except on the element. I've g... | javascript jquery | [3, 5] |
4,382,784 | 4,382,785 | CS0234 Error on runtime, for classes in the same assembly | <p>We have an ASP.NET 4 Web Application Project. This project contains a number of pages. After having made some changes I get an error at runtime (ASP.NET Compile time) that this or that namespace cannot be found.</p>
<p>At design time (in Visual Studio 2010) there is no problem for Intellisense to see these namespac... | c# asp.net | [0, 9] |
3,118,635 | 3,118,636 | how to add pdf file as an attachment to an email | <p>I am dynamically storing each person report as <code>pdf</code> and should send it to them <code>attached with email</code>. How do i send it as an attachment to an email. Here is my code.</p>
<pre><code>public void Esendmail(string EmailFrom, string EmailTo, string EmailBody, string EmailSubject, string EmailCC)
{... | c# asp.net | [0, 9] |
2,633,212 | 2,633,213 | Watermark Textbox using javascript | <p>I need some help in my code.</p>
<p>I want the code dynamic like using a class in javascript, but I have not been too strong using javascript. I need your solution.</p>
<p>E.g the textbox display a text 'Enter key word or phrase', if someone enter the textbox. text 'Enter key word or phrase' disappear. and if not ... | c# asp.net | [0, 9] |
470,976 | 470,977 | javascript method works localy but not on server | <p>The following JavaScript method works perfectly fine on local machine, but returns an error after uploading it to GoDaddy server:</p>
<pre><code>//add to saved profiles
function addFav() {
/* opens a dialog */
$("#addFavourite").dialog("open");
/* error occurs in the next line */
var profileName = d... | javascript asp.net | [3, 9] |
6,025,543 | 6,025,544 | Get value of hidden input field in JS | <p>I need to get the value of a hidden input field using JS,</p>
<pre><code> var credoff = parseInt($(this).children('input.credoff:hidden').val());
</code></pre>
<p>which works fine in FF but does not work in IE, the input im talking of is the following...</p>
<pre><code><input type='hidden' value='$row->co... | javascript jquery | [3, 5] |
4,735,927 | 4,735,928 | Detecting collisions and and walking around obects | <p>I am writing a program for an Android phone (Which uses Java as the programming language)</p>
<p>I am writing a game that needs objects to - move around - other objects. For example: if an object was to move from point A to point B and there was another game object in the way, it would move around it.</p>
<p>I a... | java android | [1, 4] |
1,546,019 | 1,546,020 | Unable to find meaning of }); curly bracket, round bracket in Android | <p>As a beginner in Android and having been away from programming for many years, I could not find an answer for this one on the internet. It involves the following code from a book I have been reading, but the syntax is common for Android. I couldn't work out what the }); represented. As someone who, in the past, has ... | java android | [1, 4] |
3,348,697 | 3,348,698 | Jquery/javascript datetime | <p>i want to convert this string 23/08/2009 12:05:00
to javascript datetime </p>
<p>how can i do it?</p>
| c# javascript jquery | [0, 3, 5] |
5,370,082 | 5,370,083 | AutoComplete fixed selection? | <p>How do i have an AutoComplete selection based on alphabetic instead of fixed switch cases? The situation is, everything working except when i input keyword with "B" showing Badrul as first suggestion but when clicked it will still refer to the first switch cases which is opening up Adidas.class instead of Badrul.cla... | java android | [1, 4] |
4,247,455 | 4,247,456 | The system class loader's resource lookup algorithm | <p>In Java <a href="http://developer.android.com/reference/java/lang/ClassLoader.html" rel="nofollow">docs</a> I see such statements:</p>
<blockquote>
<p>The system class loader's resource
lookup algorithm is used to find the
resource.</p>
</blockquote>
<p>But where can I learn how this "lookup algorithm" actua... | java android | [1, 4] |
232,624 | 232,625 | Javascript redirect causing a security exception in asp.net 4.0 forms | <p>As part of my current project I have had to make a page take on two functions due to some functional limitations.</p>
<p>At present the two views are turned on and off based on a query string value. The page is loaded from an menu that is similar to that of the original ipods and as such uses Javascript to kick thi... | javascript asp.net | [3, 9] |
2,429,866 | 2,429,867 | if user pastes 32 characters into the license text-box first split textbox | <p>if user pastes 32 characters into the license text-box first split textbox, the method will place 8 characters into each of the 4 text boxes</p>
<p>see
i have 4 text box ... max length (8)</p>
<pre><code><input type = "text" size = "8" maxlength="32" name = "LicenseNumber1"
id="LicenseNumber1">
<input... | javascript jquery | [3, 5] |
608,128 | 608,129 | convert json object to json array of object | <p>I had received a json snippet, which has the following lines (string converted to json object)</p>
<pre><code>"profile":{"id":"billg","name":"Bill Gates","countryCode":"US"}
</code></pre>
<p>now user adds one more profile, i need to convert profile object to an array of profile objects. </p>
<pre><code>"profile":... | javascript jquery | [3, 5] |
3,605,569 | 3,605,570 | Using python to run a C++ program and test it | <p>Suppose I have a simple C++ program that takes in inputs and outputs some string. Like this (actual program is much more complicated but still text based):</p>
<pre><code>$ ./game
$ what kind of game? type r for regular, s for special.
$ r
$ choose a number from 1 - 10
$ 1
$ no try again
$ 2
$ no try again
$ 5
$ ye... | c++ python | [6, 7] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.