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
5,698,811
5,698,812
how to copy the content of a div to another div
<p>I'm trying to copy the single element inside a selected div to another div with jquery. But with my code copies entire division to another division..</p> <p>My code is :</p> <pre><code>$('#image').html($('#selected').html()); //which copies entire content of #selected division </code></pre> <p>And the division i...
javascript jquery
[3, 5]
4,346,078
4,346,079
problem to visible false of button when export data to excel
<p>Hello Everybody I am using c#.net to make webapplication. I am making a webpage that export gridview data to excel. My code is as follow</p> <pre><code> protected void btnexport_Click(object sender, EventArgs e) { btnsubmit.Visible = false; exporttoexcel(); expToExcel(); } pu...
c# asp.net
[0, 9]
1,413,086
1,413,087
Html mouseup caching an element more than once
<p>I've written a jquery script which works fine, but now I'm trying to make it into a plugin. Once it's in the plugin though, the mouseup function on the html appears to increase the cache of the same element by one every time, and I can't figure out why.</p> <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...
javascript jquery
[3, 5]
892,159
892,160
Create list html from selected text in Textarea
<p>I have found various examples of using jquery to wrap selected text from a textarea in html tags, but I would like to adapt this slightly to create a list when multiple lines of text are selected.</p> <p>Currently the code below wraps the whole selection in the list tags but I would also like to replace all the car...
javascript jquery
[3, 5]
5,524,201
5,524,202
Code coming back from script not detected by jquery
<p>I basically have a div container which i am reusing to fill with different data, depending on the link that is clicked.</p> <p>This div container has a class name of "test_bed" and the anchors used to populate it have class names of "linkA", "linkb" etc.</p> <pre><code>$(document).ready(function(){ $("a.link").c...
php jquery
[2, 5]
3,830,986
3,830,987
How to prepend a string to a string variable in a for loop without changing the loop structure?
<p>If i have a for loop like this:</p> <pre><code>var rows; var len = z[0].length; for ( var i = len; i--; ) { rows += "&lt;tr&gt;&lt;td&gt;" + z[0].Marketer + "&lt;/td&gt;&lt;td&gt;"; } </code></pre> <p>How can i prepend instead of append the current row to this string WithOUT changing the for loop structure?<...
javascript jquery
[3, 5]
1,680,815
1,680,816
How to save textbox data to file using javascript
<p>I have a web page containing a textbox. This textbox shows result of processing. There is a button "Save Result" to save contents of textbox to file. I know it can be easily done with FileStream. But I want the same functionality to save file using Javascript so that there is no need for server postback.</p> <p>Do ...
c# javascript asp.net
[0, 3, 9]
106,657
106,658
How to update main activity to know that prefs are changed?
<p>I have</p> <pre><code>SharedPreferences myPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); </code></pre> <p>and </p> <pre><code>myPreferences.getBoolean("checkbox", true) </code></pre> <p>So, how can my main activity know when user change preferences state? For example if use...
java android
[1, 4]
5,759,940
5,759,941
jquery imgareaselect and facebox
<p>I am trying to integrate imgareaselect (http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/) and facebox (http://defunkt.io/facebox/) however I am having no luck at all and hoping someone can help.</p> <p>imgareaselect calls a</p> <pre><code> header("location:"); </code></pre> <p>command after the ...
php jquery
[2, 5]
4,776,870
4,776,871
Editing links inline with jquery - preventing them from being clicked while editing
<p>I am attempting to edit sections of a site inline with jQuery, everything is working fine so far, expect that some of the editable items are links. When attempting to edit the fields, it's clicking through on the href.</p> <p>here is the jQuery:</p> <pre><code>$(".button-edit").click(function(){ $(".edit").eac...
javascript jquery
[3, 5]
3,355,859
3,355,860
getting the content from textbox in asp.net using c#
<p>hai i have created two dynamic textboxes. like this...</p> <p>protected void Button2_Click(object sender, EventArgs e) { TextBox1 = new TextBox(); TextBox1.ID = "TextBox1"; TextBox1.Style["Position"] = "Absolute"; TextBox1.Style["Top"] = "25px"; TextBox1.Style["Left"] = "...
c# asp.net
[0, 9]
2,777,638
2,777,639
Android SDK-Get specific contacts from contact list
<p>I'm trying to query the contacts table to get all the contacts of a specific name, for example all the contacts with first name "George"</p> <p>At the moment I get all the contacts with this</p> <p>Cursor contactsCursor = managedQuery(contactData, null, null, null, null);</p> <p>Any help i...
java android
[1, 4]
463,680
463,681
Android and calling JavaScript. Partial execution :)
<p>There is a problem that may be you can help me with.</p> <p><strong>What I used to have:</strong></p> <p>1) A web page with &lt; div >, javascript array with content, 2 images representing forth and back buttons. When user presses on a button a simple function is executed: increment/decrement a counter, find div b...
javascript android
[3, 4]
5,587,965
5,587,966
Load a external URL into a div using jquery
<p>I want to load a whole site into a div... When i use </p> <pre><code>$(document).ready(function(){ $('#result').load('http://www.yahoo.com'); }); </code></pre> <p>its not working...plz help</p>
javascript jquery
[3, 5]
1,269,252
1,269,253
how to use try catch on <object> attribute?
<p>if i have declared <code>&lt;object&gt;</code> under my .aspx page named MyPage.aspx as shown below. for example, this class will receive two parameter for performing a division.</p> <pre><code>&lt;object classid="clsid:XXXXXX-XXXX-XXXX-XXXX-XXXXXX" name="MyControl1" id="Object1"&gt; &lt;PARAM name="param1" VAL...
c# asp.net
[0, 9]
2,393,551
2,393,552
Pass PHP variable to Javascript code
<p>I obtained a value in PHP and wanna use it in javascript.</p> <p>Is there any way to do so ??</p> <p>Here is the code i am using which is not working</p> <pre><code>$var = "abc"; document.getElementById(&lt;?php echo $act;?&gt;).class="active"; </code></pre> <p>I am using <code>echo $var</code> inside the <cod...
php javascript
[2, 3]
4,183,438
4,183,439
How to update database from other site periodically using php?
<p>Say my site lists items from other sites, for example, I listed ebay items, what I want to do is when the ebay items be sold out the corresponding item info on my site can be updated, how can we do this using php?</p> <p>Of course we can start a scheduled process on the hosting server, however we don't have privile...
php jquery
[2, 5]
449,291
449,292
ASP.Net Pagination
<p>I have a web based student admission application, i have different pages to take inputs from a student, like one page for personal detail another page for academia history and so on.</p> <p>it can be done by ASP.Net Pagination to navigate between different pages? what will be the steps for this approach</p> <p>Tha...
c# asp.net
[0, 9]
4,275,420
4,275,421
How I turn label in asp red
<p>Hi I would like to turn label red in .aspx when user enters wrong answer into textbox.</p> <p>but not know how, hw I can do this?</p>
c# asp.net
[0, 9]
527,417
527,418
Value cannot be null. Parameter name: type : ASPnet Error after deploy
<p>Working local when deployed fails.</p> <p>Error :</p> <blockquote> <p>MESSAGE: Value cannot be null. Parameter name: type</p> <p>SOURCE: mscorlib</p> <p>TARGET SITE: CreateInstance</p> <p>STACK TRACE: System.Activator.CreateInstance(Type type, Boolean nonPublic) System.Activator.CreateInstance(T...
c# asp.net
[0, 9]
5,588,375
5,588,376
Change Text on click
<p>Ok so if I was doing a form, I could use:</p> <pre><code>&lt;form method="get" action=""&gt; &lt;label for="textinput"&gt;Text:&lt;/label&gt; &lt;input type="text" value="" name="textinput" id="textinput" /&gt; &lt;input type="submit" id="submitbutton" value="Search" onclick="return changeText('submitbutton');" /...
javascript jquery
[3, 5]
3,494,016
3,494,017
How to tell connection timeout and socket timeout from exception trace stack?
<p>I used apache http client lib in my program. I set both connection timeout and socket timeout for network calls. My understanding is that, if there is connection timeout, the client didn't reach the backend server; if there is socket timeout, the client reached the backend server but the server was not responding or...
java android
[1, 4]
2,991,911
2,991,912
How can I insert javascript in php?
<p>I'm trying to insert javascript into a div. All of this is within a php document.</p> <p>I am trying to get a div to fade into view when it's child div is loaded. Parent div had id of 'subemail' (this is hidden) Child div with id 'error' is shown then it should fade in the above div.</p> <p>Following is the scri...
php javascript
[2, 3]
562,873
562,874
How to automatically execute a Javascript function whenever width or height of a div changes?
<p>How to automatically execute a Javascript function whenever width or height of a div changes? I don't want to trigger an event manually. I am using jQuery.</p>
javascript jquery
[3, 5]
535,096
535,097
How to get address from latiude and longitude?
<p>I'm getting the latitude and longitude on touch event in map in android.</p> <p>I want to getting address on particular touch in map.</p> <p>How do I do this?</p>
java android
[1, 4]
2,615,695
2,615,696
reslove timer logic
<p>i did fastforward in music player by getting current time of the player (30 sec forward)</p> <pre><code>if(sec&gt;=maxsec &amp;&amp; min&gt;=maxmin &amp;&amp; hour&gt;=maxhour) { next_buttonclick(null); } else { sec=sec+30; if(sec&gt;=60) { sec=sec%6...
java android
[1, 4]
5,893,162
5,893,163
how to write javascript in asp.net in code behind using C#
<p>Greetings, how can I write JavaScript code in asp.net in code behind using C#. For example, I have click button event when I click the button I want to invoke this java script code:</p> <pre><code>alert("You pressed Me!"); </code></pre> <p>I want to know how to use java script from code behind.</p> <p>Thank you...
c# asp.net javascript
[0, 9, 3]
3,696,688
3,696,689
Killing session value in Browser Close
<p>I am working in C#.Net. I want to kill the session values when the browser is closed. (i.e) In my application, i want to display online visitors count. If the user clicks logout button means, it works fine. rather than if he close the browser, the session value not cleared.</p> <p>if the browser close is done, the ...
c# javascript
[0, 3]
2,828,838
2,828,839
Accessing javascript array from function
<p>Okay, so in my <code>&lt;head&gt;</code> section i have the following:</p> <pre><code>&lt;script&gt; var userDefaultInfo = '&lt;?=$userInfo;?&gt;'; var jGets = new Array (); &lt;? if(isset($_GET)) { foreach($_GET as $key =&gt; $val) echo "jGets[\"$key\"]=\"$val\";\n"; } ?...
php jquery
[2, 5]
2,095,875
2,095,876
I want to disabled onClick event for image inside div onClick function?
<p>I want to disable click event for image using image <code>id</code> eg. for <code>id12</code> i want to disabled click event . i tried using unbind but it seems it only works if event is binded using j query?</p>
javascript jquery
[3, 5]
5,472,109
5,472,110
Pause/Suspend Process object
<p>I have a line like this:</p> <pre><code>Process process = Runtime.getRuntime().exec(cmd); </code></pre> <p>And at some point I want to pause the process. For 3 seconds. Thread.wait() or Object lock; lock.wait() does not help since, the process is going in the background, not pausing. </p> <p>I know it's not safe ...
java android
[1, 4]
5,246,848
5,246,849
how to test whether grid is empty or not in jquery
<p>i have a grid and adding elements to is in jquery like below:</p> <pre><code>$('#MyGrid tbody').append('&lt;tr&gt;&lt;td&gt;&lt;a href="#" &gt;' + htmlString.ID+ '&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;'); </code></pre> <p>before that i need to test whether this MYgrid is empty or not. how to do that with jquery.</p> <p...
javascript jquery
[3, 5]
2,264,739
2,264,740
C++ version of java this. in classes
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/6905598/c-equivalent-to-java-this">C++ equivalent to Java this</a> </p> </blockquote> <p>What is the c++ version of java's this. :</p> <pre><code>class javaObj{ private String name; public void setName(String...
java c++
[1, 6]
5,675,353
5,675,354
Hide the same values after a click
<p>i want values that there is in class <code>.hello</code> and they are similar to some of values in class <code>hi</code> (like: <code>hi_2</code> &amp; <code>hi_4</code>), after click on button will are hide they in class <code>.hello</code>. how is it?<p> <strong>EXAMPLE:</strong> <a href="http://jsfiddle.net/yyTH8...
javascript jquery
[3, 5]
214,440
214,441
How to get whole number when dividing 2 numbers in JavaScript
<p>I am implementing paging in JavaScript,</p> <p>Now if I have <code>total_item_count = 69</code> and I want 10 records per page then it should show 7 pages but it is showing 6 pages. </p> <p>What I am doing: </p> <pre><code>var totalpages = 69/10 ; // it should give 7 but its giving 6 </code></pre> <p>Thanks in ...
javascript jquery
[3, 5]
1,754,723
1,754,724
JQuery, add two handlers for the same event
<p>I have several text inputs in my page. They have different classes added to them. Depending on the class they each have, I add an onchange event handler. Everything worked OK, until they all shared one common class, then I add common onchange handler again. The first oen gets overwritten. </p> <p>Is there a way to ...
javascript jquery
[3, 5]
5,635,502
5,635,503
jQuery hide() works, but show() does not
<p>I'm having trouble getting this script to work.</p> <pre><code> &lt;asp:DropDownList CssClass="workUnit" Width=80 ID="dropdownWorkUnit" runat="server" Visible="false" _clientId="comboboxWorkUnit" /&gt; </code></pre> <p>For some reason, the combobox will not become visible when I run this JavaScript.</p> <pre><co...
jquery asp.net
[5, 9]
1,852,754
1,852,755
How to rotate an image clockwise or counterclockwise, whichever is shorter?
<p>I'm making a web page that includes a clock with an arrow in the center. When the user clicks on an hour, the arrow rotates to point to what he/she has clicked.</p> <p>I'm using a jQuery image rotate plugin (jQueryRotate) to rotate the arrow.</p> <p>Here is the current code to compute the number of degrees to rot...
javascript jquery
[3, 5]
4,010,030
4,010,031
Make checkboxes select-able one at a time like radio-buttons
<p>I am looking for some help making checkboxes behave like radio-buttons in that one in a group can only be selected at a time with jQuery.</p> <p>First, why not use radio-buttons ? Because I want these forms of input to also be un-select-able / un-check-able so that the potential exists that none of them can be chec...
javascript jquery
[3, 5]
4,212,326
4,212,327
notifydatasetchanged from within listener not working
<p>I am trying to update my Activity's ListView from within the onLocationChanged function of a Location Listener using notifyDatasetChanged() but it doesnt work. I can however use setListAdapter from the same point in my code and this will work.</p> <p>Here is my code:</p> <pre><code>public class TestListeners exten...
java android
[1, 4]
2,455,746
2,455,747
Add JavaScript reference from code behind (C#)
<p>Is it possible to add javascript reference dynamically from code behind aspx.cs?</p> <p>Like this:</p> <pre><code>private void AddScriptReference(string path) { //Add reference to &lt;head&gt;&lt;/head&gt; } </code></pre> <p>Should result in a script reference being added to the head of the page, like this:</p...
c# javascript asp.net
[0, 3, 9]
2,574,988
2,574,989
How to select for something that begins with a string but doesn't end with a different string in jQuery?
<p>I am new to jQuery, exploring its syntax a bit. </p> <p>My page has elements like this:</p> <pre><code>&lt;area id="SA" ... /&gt; &lt;area id="AF" ... /&gt; &lt;area id="EU" ... /&gt; &lt;area id="NA" ... /&gt; </code></pre> <p>I am trying to show and hide <code>div</code> sections based on click events off the <...
javascript jquery
[3, 5]
1,080,365
1,080,366
Is it possible to add an OR to a selector in jQuery?
<p>I current have a jQuery delegate that does something to all of the <code>input</code> selectors that are not <code>submit input</code> selectors. How do you add an <strong>OR</strong> so that it also handles another type like <code>select</code>? </p> <p>Current function:</p> <pre><code>$('#test_form').delegate("...
javascript jquery
[3, 5]
257,855
257,856
page loading message appears when going back to the previous page
<p>The following works fine, except when I click the back button on the browser (to go back to my previous start page), the loading... message appear again. What should I do to get rid of it?<br> Many thanks in advance.</p> <pre><code>$("#form").submit(function(){ $("#loading").show(); }); &lt;div id="loading"&gt;lo...
javascript jquery
[3, 5]
5,070,488
5,070,489
Check USB tethering status on android 2.2
<p>I am familiar with the usage of java reflections to find out the current status of wifi tethering on android 2.2, however does anybody know of a similar or any other solution to check for USB tethering status (on/off) on android 2.2?</p>
java android
[1, 4]
2,981,246
2,981,247
Getting inner HTML of a specific div in a different page
<p>I want to have a web page where I'll put lots of divs and inside each of those divs there will be be different content. Based upon a condition I want to display the content of a specific div inside a JQuery dialog. Is it possible to get the html content of a particular div in a web page? </p>
jquery asp.net
[5, 9]
1,516,428
1,516,429
Javascript command/variable based on Webpage Domain/Site
<p>I'm using the following code for fetching a latest tweet but I would like the TWITTERUSERNAME to be different depending on the domain it is on as it's a template that is being called from one place but used across multiple domains.</p> <pre><code>&lt;script type="text/javascript"&gt; jQuery('document').ready(fu...
php javascript jquery
[2, 3, 5]
3,663,942
3,663,943
How to make double click & single click event for link button of Asp.net control?
<p>Consider the following:</p> <pre><code>protected void dgTask_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { LinkButton btn = (LinkButton)e.Row.Cells[4].FindControl("lnkBtnEdit"); btn.Attributes.Add("onclick", "return Test();"); }...
c# javascript asp.net
[0, 3, 9]
4,995,757
4,995,758
How to display Arabic characters using unicodes in android?
<p>I am new to android.i am prepared one app, it support multiple languages.I want to display <code>Arabic</code> characters.i found one site for Unicode's,</p> <pre><code>http://www.unics.uni-hannover.de/nhtcapri/arabic-alphabet.html </code></pre> <p>I used following code for display Arabic letters,</p> <pre><code>...
java android
[1, 4]
5,046,537
5,046,538
cycle three divs on page refresh
<p>I have three divs and I want to show a different div on each page refresh. So first div1 than div2 and than div3 and back to div1 etc.</p> <p>I have googled but all I can find is the exact opposite, which is refresh div after a period of time(eg 10 sec.) WITHOUT page refresh.</p> <p>(I use Jquery by the way,but pl...
javascript jquery
[3, 5]
4,363,538
4,363,539
Launching JAR with Process.Start: javaw.exe runs but "nothing happens"?
<p>Given the code. when the button is clicked nothing happens , i get no debug message etc in visual studio. However if i were to double click the .jar file in its folder i am able to run it. Anyone have any idea why? Looking at Task manager when the button is clicked. javaw.exe is created but nothing happens.</p> <pr...
c# java
[0, 1]
6,018,359
6,018,360
What is the difference between jQuery live() and liveQuery plugin?
<p>The question says it all. Which one is better and when to use what, I never use jQuery live() as I am using liveQuery plugin for a couple of years, I am used to it and still continue using it. But I want to know the subtle differences between the two and when to use each of it?</p>
javascript jquery
[3, 5]
2,412,723
2,412,724
Translate KeyDown keycode to string (jQuery)
<p>I am looking for a way to translate a keypress into the string corresponding to the chracter. Something like this:</p> <pre><code>$(document).keydown(function(event) { console.log(String.fromCharCode(event.which)); }); </code></pre> <p>except that this code does not take into account capitalization and does no...
javascript jquery
[3, 5]
5,013,167
5,013,168
Android adb unable connect with ip address
<p>I have installed android operating system in Oracle Virtual box successfully. </p> <p>but I am facing one problem ,</p> <p>I tried many options, but I couldn't solve this problem .</p> <p>My problem is - <strong>I am not able to adb connect to virtual box android os.</strong></p> <p><img src="http://i.stack.imgu...
java android
[1, 4]
3,186,020
3,186,021
How to display string with maximum of 200 characters & trim the last few charaters till whitespace
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1613896/truncate-string-on-whole-words-in-net-c-sharp">Truncate string on whole words in .Net C#</a> </p> </blockquote> <p>I have to display brief description of the news let us say maximum of 200 characters &am...
c# asp.net
[0, 9]
2,026,746
2,026,747
Unable to set GridView row widths on RowDataBound
<p>My current code to attempt to set widths for the rows on a gridview is:</p> <pre><code>protected void RowDataBound(Object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.Header) { foreach (DataControlFieldHeaderCell dcfhc in e.Row.Cells) ...
c# asp.net
[0, 9]
2,592,996
2,592,997
How to bind a List<DateTime> to a GridView
<p>I already read Stack&nbsp;Overflow question <em><a href="http://stackoverflow.com/questions/515464/how-to-bind-a-listint-to-a-gridview">How to bind a List to a gridview?</a></em>.</p> <p>But I need to bind a List&lt;DateTime> to a gridview, but MAINLY I also want be able to access the DateTime value from within a I...
c# asp.net
[0, 9]
5,640,175
5,640,176
Setting up the default value in a new textbox
<p>I am trying to make a form in which there will be a button, when clicking on it a Javascript function will be called and a new row with a textbox will be added. In simple words, when clicking on the button, new text will be added. Here is the function:</p> <pre><code>function addRowToTable() { var tbl = ...
php javascript
[2, 3]
4,710,573
4,710,574
How do I change an element (e.g. h1 -> h2) using jQuery / plain old javascript?
<p>Of course, there are a whole range of possible errors relating to document validity, but my immediate stumbling block occurs when changing a paragraph (<code>p</code>) into an <code>address</code> element. My current method is (more-or-less):</p> <pre><code>var p = $('p#test'); p.replaceWith('&lt;address&gt;' + p.h...
javascript jquery
[3, 5]
113,164
113,165
remove from double linked list
<p>I am to java and I am trying to implement a remove from double linked list method but I am struggling and not sure how to advance. The method removes data stored at the given node in the list. I have read that I need to account for cases where the the element being removed is the start or end but I am not sure how ...
java android
[1, 4]
4,090,799
4,090,800
Android based application development in c#
<p>I want to develop android based application in c#.Can anyone tell me where can i find the sample code and other useful material.</p>
c# android
[0, 4]
771,460
771,461
jQuery jCorner Plugin is not working - What am I missing
<p>Hiya, I am attempting to use the jCorner plugin for jQuery, but falling down at the majority of the hurdles. See <a href="http://www.malsup.com/jquery/corner/" rel="nofollow">http://www.malsup.com/jquery/corner/</a> for the plugin, but I do not understand the concepts behind jQuery.</p> <p>The code is at <a href="h...
javascript jquery
[3, 5]
4,458,504
4,458,505
javascript: $(window).height is not a function
<p>I have some javascript that I am using to resize my background image to fit my window. There are some confusing things going on that I just don't get.</p> <ol> <li><p>Firebug and I assume my page doesn't recognize my <code>resizeFrame</code> function unless I place it below the body block. Why?</p></li> <li><p>W...
javascript jquery
[3, 5]
4,651,502
4,651,503
Avoid jQuery (pre)loading images
<p>I have a string of HTML that I use as jQuery input document.</p> <pre><code>// the variable html contains the HTML code jQuery( html ).find( 'p' ).each( function( index, element ) { // do stuff }); </code></pre> <p>Though, I keep getting errors that the images doesn't exist (in my variable <code>html</code>)....
javascript jquery
[3, 5]
1,033,320
1,033,321
Assigning and using jquery with variables
<p>I have two peices of code. One produces the desired result the other one doesnt.</p> <p>Works: </p> <pre><code>$("#inBox" + mesh.id).html(mesh.text); </code></pre> <p>Doesn't work:</p> <pre><code>var inbox = $("#inBox" + mesh.id); inbox.html(mesh.text); </code></pre> <p>Could someone please explain to me why on...
javascript jquery
[3, 5]
3,129,330
3,129,331
Not set css attributes to child elements. Jquery
<p>I have <code>div</code> with a <code>table</code> inside. Inside the <code>td</code> elements of the table, I have text and some links that have 'actionLink' class assign.</p> <p>Using JQuery, I change some attribute values to the <code>td</code> and <code>p</code> elements inside the parent <code>div</code>. All w...
javascript jquery
[3, 5]
1,097,685
1,097,686
Trying to bind on change even to file select input doesnt seem to work
<p>I am trying to bind on change to file input i read around and the following suppose to work but doesn't:</p> <pre><code> &lt;input type="file" name="uploadfile" id="Uploadthisfile" /&gt; </code></pre> <p>This is my file input</p> <pre><code>$("#Uploadthisfile").change(function() { alert('some message'); }); </...
javascript jquery
[3, 5]
4,803,470
4,803,471
C# java script code for checkexistring file in a folder code using uploadify
<p>I am able to upload file(s) from system to server using uploadify control(www.uploadify.com). Everything is working fine but thing is that I am not getting how to check the file existing or not in the server. I need help from you that how to check existing file(s) using java script or C# before uploading file(s) to ...
c# javascript asp.net
[0, 3, 9]
2,150,096
2,150,097
jquery: i have to use parseInt() even when deal with numbers, why?
<p>i have the following script</p> <pre><code>&lt;select id="select1"&gt; &lt;option value="1"&gt;1day&lt;/option&gt; &lt;option value="2"&gt;2day&lt;/option&gt; &lt;option value="3"&gt;3day&lt;/option&gt; &lt;/select&gt; &lt;select id="select2"&gt; &lt;option value="1"&gt;1day&lt;/opt...
javascript jquery
[3, 5]
2,963,761
2,963,762
Android:how to iterate an ArrayList<String> in different thread
<p>I need to iterate an ArrayList of String in a different thread, I don't need to add or delete items, just to iterate.</p> <p>How can I do it?</p>
java android
[1, 4]
18,790
18,791
Text box in td losing value when div is disabled
<p>I have a JavaScript function DisableDuedate() that disables a td tag based on the logged in user. The td tag contains a text box that is populated on Page_load (vb code behind page). The DisableDueDate() function is called in the HTML page</p> <pre><code>&lt;body onload='scrollBar(null,null,"red");' onload='Disabl...
javascript asp.net
[3, 9]
1,732,386
1,732,387
how to resolve jquery class conflicts when i am using marquee and thick box plugins?
<p>I am trying to <code>marquee</code> continuously scrolling images and added external links, where it has to popup using <code>thickbox</code> mechanism. I am facing <code>jquery</code> class conflict issue. Please provide solution for this.</p> <p>In <code>thickbox</code> JavaScript ,starts with </p> <pre><code>$(...
javascript jquery
[3, 5]
3,474,366
3,474,367
How to create array in jquery
<p>I want to create the width array of each children of selected element. I tried :</p> <pre><code>var width = $(element).children().map(function () { return this.style.width; }); </code></pre> <p>But this is not working. When i <code>alert(width[0])</code> then instead of showing width it shows <code>objectHtmlElem...
javascript jquery
[3, 5]
318,903
318,904
Writing for iphone and android... are any of the js api worth it?
<p>as we're all aware, there is a a stinking iphone so what is the best way to go about making a cross-phone app as long as those are the only two phones you care about no one buys bb anymore</p> <p>p.s. I don't want to argue phone sales... just what js lib works REALLY well for both and more than just links... tell m...
javascript iphone android
[3, 8, 4]
3,086,516
3,086,517
HTTP POST via JQuery
<p>i am working on API, The API supports both HTTPS POST and HTTPS GET methods. </p> <p>Moreover, it is a security risk to expose Web Registration credentials on a public web site. Instead, use a background HTTP POST (server side) to initiate the web registration. </p> <p>how can i http post (aspx) via jquery?</p>
jquery asp.net
[5, 9]
2,854,176
2,854,177
How to integer-divide round negative numbers *down*?
<p>Seems like whenever I divide a negative int by a positive int, I need it to round <em>down</em> (toward -inf), not toward 0. But both C# and C++ round toward 0.</p> <p>So I guess I need a DivideDownward() method. I can write it in a few lines with a test for negative and so on, but my ideas seem klugey. So I'm wond...
c# c++
[0, 6]
4,269,837
4,269,838
Simulate Hover in jQuery
<p>Currently, I have some jQuery/Javascript code that toggles the css class 'ui-state-hovered' when a user hovers the mouse over certain elements, and I want to write a test in konacha to test this piece of code. </p> <p>How would I write this function in Javascript with the help of jQuery?</p> <p>Return true if when...
javascript jquery
[3, 5]
871,147
871,148
Best IDE for Java Script also JQuery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/209126/good-javascript-ide-with-jquery-support">Good JavaScript IDE with JQuery support ?</a> </p> </blockquote> <p>I am a Web Developer, working on Javascript and Jquery. Right now I am using EditPlus for devel...
javascript jquery
[3, 5]
957,116
957,117
Converting my php array to string
<p>I have an array $tagsdata that looks like this when i print it out</p> <pre><code>Array ( [1] =&gt; Laravel [2] =&gt; Volta [3] =&gt; Web [4] =&gt; Design [5] =&gt; Development ) </code></pre> <p>Now i wan't to convert this array to a string that has to look like this</p> <pre><code>data: [{id: 1, text: 'Laravel'...
php javascript
[2, 3]
5,452,587
5,452,588
how to show popup box in windows mobile application?
<p>I am developing a windows mobile application in which i want to show popup box containing datagrid control of showing particular details when user clicks on a button in a form.</p> <p>i am using ShowDialog() method but it is working.</p> <p>can anyone suggest me how to implement this.</p> <p>thanks in advance.</p...
c# asp.net
[0, 9]
1,281,006
1,281,007
java code to receive GCM push notification and save them in SQLite DB on android phone
<p>I am a beginner in PHP, JAVA and GCM Service.</p> <p>I built an app that has two parts:</p> <p>1)PHP Server side </p> <p>2)Java android client side</p> <p>I set the GCM and registered the phone and I got an ID.</p> <p>I set the server to sent Data to GCM server successfully. </p> <p>My question is:</p> <p>wha...
java android
[1, 4]
3,831,140
3,831,141
JSON.parse() not working on jQuery data object
<p>I get a JSON file via jQuery $.getJSON(url, function(data) { ... and want to parse it with either</p> <p>var obj = JSON.parse(data);</p> <p>or</p> <p>var obj = jQuery.parseJSON(data);</p> <p>alert(obj.center);</p> <p>The first line gives me "syntax error" (using IE8, should support JSON.parse), the second gives...
javascript jquery
[3, 5]
5,874,723
5,874,724
Is jQuery.change("callBackFunction") better than jQuery.on("change","callBackFunction")
<p>Is jQuery.change("callBackFunction") better than jQuery.on("change","callBackFunction") or is it the other way around? If so why is that so?</p> <p><strong>Edit</strong> I now know that <a href="http://api.jquery.com/change/" rel="nofollow">http://api.jquery.com/change/</a> says both are same, courtesy to Alexeyss....
javascript jquery
[3, 5]
4,383,290
4,383,291
Why do you have to re-select a JQuery element from a collection?
<p>I have a number of check-boxes on my page, each has a name attribute for its useful value.</p> <p>I want to get a list of values for the checked items only. I can get a collection of elements like so...</p> <pre><code>var checkedItems = $(".checkbox:checked"); </code></pre> <p>Now I want to create the list (strin...
javascript jquery
[3, 5]
4,944,450
4,944,451
How to send long strings to a php file without a form?
<p>I have a textarea inside a form (form action=post) and a link under this textarea, the user should fill this textarea and click the button to transfer the text written in the texarea to another file, I'm using jQuery to grab the textarea content and append them to the href of the link, this was working fine until I ...
php javascript jquery
[2, 3, 5]
4,405,310
4,405,311
Thread Calling in Android
<p>I am working on an Android Application where I need to work on thread which is a well known concept of Java. I am having a thread named "thrd" in my application and I want to call it in the else part of the IF...Else loop.</p> <p>Can anyone please tell me how can I call that thread in my loop, Sorry I am totally ne...
java android
[1, 4]
1,986,158
1,986,159
How to set time for AlarmManager correctly?
<p>I have the following code:</p> <pre><code> PendingIntent pi=PendingIntent.getBroadcast(getActivity(), id, i, 0); manager.setRepeating(AlarmManager.RTC_WAKEUP, date.getTime(), 5000, pi); </code></pre> <p>This code works correctly, but there is one problem - for example, I set time as "15 october 2012", and i...
java android
[1, 4]
954,676
954,677
Code formatting for webpages in php and java
<p>When ever i develop some webpage i will write code in <strong>non format</strong> way and then after completing my page i will format my code by giving 3 to 5 spaces for line to line . Now my question is is there any tool to do auto format the code. So that i can minimize the code format <strong>Time</strong>.</p> ...
java php
[1, 2]
928,632
928,633
jQuery string manipulation performance vs. PHP
<p>Im building a custom jquery modal box that loads an external html template file that contains variables that need to be replaced. For instance: [user-name]</p> <p><strong>I know I have 2 options for modifying the template file:</strong></p> <ul> <li>use find and replace in jquery</li> <li>process the template ser...
php javascript jquery
[2, 3, 5]
3,694,872
3,694,873
Display a php form in colorbox
<p>I'm using the colorbox jquery plugin and I'd like to display a PHP form in the colorbox.</p> <pre><code>&lt;?php if( is_array($pages_created) ){ ?&gt; &lt;form id="link_page_form" method="post" action="my_url" &gt; &lt;select id="page_from_link" name="page_from_id" &gt; &lt;OPTION VALUE...
php jquery
[2, 5]
5,011,843
5,011,844
Seeing if a checkbox is checked by default
<p>I have a javascript function that sets a variable everytime a checkbox is clicked:</p> <pre><code> function handleClick(cb) { alert('entered function'); setTimeout(function () { if (cb.checked ) { $("#IsChecked").val('true'); } else ...
javascript jquery
[3, 5]
1,979,752
1,979,753
my Namespace does not allow Directory.GetFiles
<p>i have the following code:</p> <p>using System; using System.IO;</p> <pre><code>namespace Project { public partial class Documentation : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string[] filePaths = Directory.GetFiles(@"c:\MyDir\"); ...
c# asp.net
[0, 9]
175,448
175,449
unable to convert string to date in asp.net correctly
<p>I unable to convert string to date, my string like 17/12/2012 Code written for this is shown below</p> <pre><code>public string Date_Convert(string dt1) { string strdate = string.Empty; Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB"); DateTime dt = Convert.ToDateTime(dt1); strdate =...
c# asp.net
[0, 9]
152,300
152,301
jQuery .size() question
<p>When you click the "Add Div" button, why doesn't the number increment?</p> <p><a href="http://jsfiddle.net/cN2zR/" rel="nofollow">http://jsfiddle.net/cN2zR/</a></p>
javascript jquery
[3, 5]
788,338
788,339
Repeating Information in a Web Form - Asp.Net
<p>I am building an employment application form that submits data to a database for my business. </p> <p>In creating this form, one of the things that captured my attention is that when I created the section for employment history, I thought to myself that most applicants are going to have a variety of information to ...
c# asp.net
[0, 9]
1,331,803
1,331,804
How would you tackle this php/mysql
<p>I am building a dynamic (food) menu system for a website. Users will be able to add and remove menu items as they like and alter price etc. If the menus were static then I would have a static form for example </p> <pre><code>&lt;form id="order_form" action="order.php" method="POST" class="form"&gt; &lt;ul&gt; &lt;l...
php javascript
[2, 3]
2,271,550
2,271,551
how to read values from a price range slider(jquery)
<pre><code>$( "#minValue" ).val($( "#slider-range" ).slider( "values", 0 )); $( "#maxValue" ).val( $( "#slider-range" ).slider( "values", 1 ) ); </code></pre> <p>How to read values when slider sliding ?</p> <p><code>minValue-&gt;minimum</code> value of slider when slider sliding</p> <p><code>maxValue-&gt;maximum</co...
javascript jquery
[3, 5]
1,549,206
1,549,207
if statement within jQuery timepicker
<p>I'm pretty new to javascript and jQuery, but I managed to get Trent Richardson's jQuery Timepicker, <a href="http://trentrichardson.com/examples/timepicker/" rel="nofollow">http://trentrichardson.com/examples/timepicker/</a>.</p> <p>I added constraints for limiting dates the user can select, but I now need to chang...
javascript jquery
[3, 5]
1,277,175
1,277,176
Executing programs on mobile phone
<p>Hi I was wandering how do we execute programs on mobile phone...Not developing them!</p> <p>Like I write a program to solve a particular problem. Now I need to install it on my mobile phone so that I can run the program on my phone anytime I need to do it. I am familiar with C#.NET (Windows Forms Application) and J...
java iphone android
[1, 8, 4]
1,225,353
1,225,354
Tab within a text area without changing focus, jQuery
<p>Given a textarea, is there any way to use jQuery to enable the ability for people to use the "tab" key that actually ..inserts a tab, instead of jumping focus to the next form element on the page?</p> <p>I've followed <a href="http://stackoverflow.com/questions/3362/capturing-tab-key-in-text-box">Capturing TAB key ...
javascript jquery
[3, 5]