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
2,785,503
2,785,504
Jquery - why is click() and .on("click") triggering twice
<p>Why is this getting triggered twice on click? It isn't calling any external functions. The result is that the offState gets triggered twice, negating its purpose. Does click() fire twice by default? I also tried <code>.on('click', function()...</code> with the same results.</p> <pre><code>function makeBackNav(){ ...
javascript jquery
[3, 5]
5,575,565
5,575,566
Overlay Image over Image
<p>I am searching for a way to overlay an image on an existing image.</p> <p>e.g:</p> <p><img src="http://i.stack.imgur.com/N0REB.gif" alt="img1"> + <img src="http://i.stack.imgur.com/OM7bj.jpg" alt="img2"></p> <p>I have found a great example over here: <a href="http://www.tjkdesign.com/articles/png_overlay_with_no_...
php javascript
[2, 3]
2,403,095
2,403,096
Calculating the amount of time passed between 2 dates
<p>I've written some JavaScript to calculate the difference between two dates, from a twitter stream, and then equate that to a specific value - such as 'Seconds ago', 'x days ago'.....</p> <p>I've created a Fiddle here that demonstrates what I've done: <a href="http://jsfiddle.net/meAEe/3/" rel="nofollow">http://jsfi...
javascript jquery
[3, 5]
2,000,085
2,000,086
How to get values from templatefields in Grdiview SelectedIndexChanged
<p>I have a gridview and sqldatasource.</p> <pre><code>protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { GridViewRow row = GridView1.SelectedRow; TextBox rrdp = (TextBox)row.FindControl("name"); txt1.Text = rrdp.text.ToString() } </code></pre> <p>But I'm getti...
c# asp.net
[0, 9]
792,636
792,637
How to use custom font asp.net application
<p>How to use custom font asp.net application.<br/> I have a font file with me. I want to add that file as a resource and use it inside the project. how to do it?</p> <pre><code> PrivateFontCollection pfc = new PrivateFontCollection(); Stream fontStream = this.GetType().Assembly.GetManifestResourceStrea...
c# asp.net
[0, 9]
5,630,055
5,630,056
Accessing elements in the iframe
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/729577/can-javascript-access-iframe-elements-from-the-parent-page">Can javascript access iframe elements from the parent page?</a> </p> </blockquote> <p>I have an iframe in my document, and I want to get (and ch...
javascript jquery
[3, 5]
51,885
51,886
Change link href via jQuery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery">How to change the href for a hyperlink using jQuery</a> </p> </blockquote> <p>I'm using Drupal and system generate my title. </p> <p>E.G.</p> <pre><c...
javascript jquery
[3, 5]
1,571,142
1,571,143
Is there a way to cover the whole window area within a web site, using Javascript/jQuery?
<p>Yes, otherwise I just starting make my wrapper in CSS so it covers 770px or 990 px etc..</p> <p>It should be like scaling after window size/resolution. Are their any way to make it adjustable for every single computer using Javascript/jQuery?</p>
javascript jquery
[3, 5]
3,887,274
3,887,275
Difference between C++ reference type argument passing and C#'s ref?
<p>I always thought they were about the same thing but someone pointed me out in one of my answers that such ain't quite true.</p> <p>Edit: <a href="http://stackoverflow.com/questions/838117/ref-keyword-and-appdomains/838152#838152">Here</a> is what I said and the comment I got. Edit2: What's the difference between C...
c# c++
[0, 6]
608,717
608,718
Threads and performance with Android games
<p>I've been following this tutorial: <a href="http://www.droidnova.com/playing-with-graphics-in-android-part-iii,176.html" rel="nofollow">http://www.droidnova.com/playing-with-graphics-in-android-part-iii,176.html</a></p> <p>To get comfortable with Android. It's been very, very helpful. In it though, he uses one thre...
java android
[1, 4]
4,418,891
4,418,892
using jquery post to send values to php file
<p>I'm trying to write a script in javascript/jquery that will send values to a php file that will then update the database. The problem is that the values aren't being read in by the PHP file, and I have no idea why. I hard-coded in values and that worked fine. Any ideas?</p> <p>Here's the javascript:</p> <pre><code...
php javascript jquery
[2, 3, 5]
3,878,300
3,878,301
How to stop the finish() method after press back button in android?
<p>Can I check some condition in finish()</p> <p>if the condition is success, continue to back to previous</p> <p>else, stop the finish, and stay in current activity? </p>
java android
[1, 4]
1,640,399
1,640,400
Jquery table manipulation
<p>How to exclude the first td on the click event of jquery that I created below? I want to exclude the all first td of the rows on the click event that produces dialog box.</p> <pre><code>jQuery("#list tbody tr").click(function(){ //some code here }); &lt;table&gt; &lt;tr&gt; &lt;td&gt;first&lt;/td&gt;...
javascript jquery
[3, 5]
1,966,726
1,966,727
Update select multiple
<p>I'm trying to write a function to update the "multiple" select (the second one below) such that when I select Method1 (from the first select), only the options 1A, 1B and 1C appears in the second select, and likewise for 2A, 2B... only when I select Method2. Is there a way to do this. Please help. Many thanks in ad...
javascript jquery
[3, 5]
1,082,121
1,082,122
Wait until loading content
<p>I'm trying to load a table by jQuery load then zebra the table but the content of table is loaded but the zebra fails. If the page is loaded and the table exists the zebra function works.</p> <pre><code>$("#processTab").load("URL"); $(".Innertable tr:nth-child(even)").css("background-color", "#eee"); </code></pre>...
javascript jquery
[3, 5]
4,084,842
4,084,843
ID1071: This application is not configured to trust an STS
<p>I'm having this error while trying to update the federal meta data of one of my project. Any idea how can I approach this error?</p>
c# asp.net
[0, 9]
4,053,122
4,053,123
Javascript named, self-calling function
<p>Hey guys, I have a couple bits of code that seem like they could be condensed but I'm not sure how.</p> <p>The code I have is this</p> <pre><code>var checkForUnitReferred = function () { $("#LeadForm").toggle($("#Claim_UnitReferredNoNull").is(":checked")); }; checkForUnitReferred(); $("#Claim_UnitReferredNoNu...
javascript jquery
[3, 5]
2,017,318
2,017,319
How to use win32::WriteFile when there is possible fail option?
<p>I using the win32 method 'WriteFile' to do some work in C# ( version .net 4.0 ) I need to wait till the method will finish the task and to do it i using 'WaitForSingleObject' .</p> <p>But there is some cases that the method 'WriteFile' is fail ==> so for this case i gave the 'WaitForSingleObject' 30 seconds time-o...
c# c++
[0, 6]
212,774
212,775
call javascript function by c#
<p>I have a javascript function which I want to send to c#.</p> <p>The c# function will then send that information to the fiscal printer.</p> <p>The function will get elements id from html document.</p> <p>The function looks like this </p> <pre><code>function senddata(price) { priceElem=document.getElemById("pric...
c# javascript
[0, 3]
5,029,866
5,029,867
jQuery alternate table row colors for a specific table
<p>i have two tables. <code>&lt;table id='1'&gt;&lt;/table&gt;</code> and <code>&lt;table id='2'&gt;&lt;/table&gt;</code>. When i put this code:</p> <pre><code>$(document).ready(function() { //for table row $("tr:even").css("background-color", "#F4F4F8"); $("tr:odd").css("background-color", "#EFF1F1"); }); </c...
javascript jquery
[3, 5]
4,815,282
4,815,283
javascript validation of control array
<p>I am doing an application in which end user can create 'n' number of textbox on runtime. If any user will demand 'n' number of textboxex then i have used control array e.g.</p> <pre><code>Enter the data: &lt;input type="text" name="txtData[]" id="txtData1" /&gt;&lt;br/&gt; Enter the data: &lt;input type="text" name...
javascript jquery
[3, 5]
532,533
532,534
How can i implement textbox auto suggest using jquery in my c# asp.net application?
<p>I want to implement jquery textbox auto suggest in my c# asp.net application for the purpose of searching employees.Now i am using ajax auto suggest in my application but it's seems to be slow when data more than 50000 thousand.Somebody please help me.If any great idea about faster serching with huge data without us...
c# jquery asp.net
[0, 5, 9]
5,416,103
5,416,104
How to remove text (without removing inner elements) from a parent element using jquery
<p>Imagine that I have something like the following (modified from <a href="http://viralpatel.net/blogs/jquery-get-text-element-without-child-element/" rel="nofollow">http://viralpatel.net/blogs/jquery-get-text-element-without-child-element/</a>)</p> <pre><code>&lt;div id="foo"&gt; first &lt;div id="bar1"&gt; ...
javascript jquery
[3, 5]
4,241,271
4,241,272
multiple entries from csv files in java script
<pre><code> var marker = new google.maps.Marker({ position: myLatlng, map: map, title:"Hello World!" }); &lt;?php $fd = fopen ("landmarks.csv", "r"); echo "var latlngarr=new Array();"; $i=0; echo "var markerarr=new Array();"; while (!feof ($fd)) { $buffer = fgetcsv($f...
php javascript
[2, 3]
203,928
203,929
HttpContext.Current.Session is null
<p>I have a WebSite with a custom Cache object inside a class library. All of the projects are running .NET 3.5. I would like to convert this class to use Session state instead of cache, in order to preserve state in a stateserver when my application recycles. However this code throws an exception with "HttpContext.Cu...
c# asp.net
[0, 9]
1,515,504
1,515,505
Easiest way to create a confirmation message with jQuery/JavaScript?
<p>How can I achieve this?</p> <ol> <li>A user clicks the delete link (with a class of "confirm").</li> <li>Confirmation message appears asking "Are you sure?" with "Yes" and "Cancel" options.</li> </ol> <p>If yes is selected, the link continues as clicked, but if cancel is selected, the action is canceled.</p> <p><...
javascript jquery
[3, 5]
2,619,425
2,619,426
Best programming practice to get a value from a list
<p>I am developing and android application using Java. I need my application to get the phone prefix from Country code.</p> <p>Say for example, if the country code is US, it should return back prefix as "+1" in case of code IN, it should return back "+91", so on and so forth.</p> <p>This can be achieved by having a f...
java android
[1, 4]
4,250,952
4,250,953
javascript execution order
<p>I am starting to learn Javascript and jQuery. I wanted to make a simple slide show with jQuery which displays list unordered list items one by one.</p> <p>My code is here: <a href="http://jsfiddle.net/aganhuyag/wZQGq/" rel="nofollow">on jsfiddle</a></p> <p>I thought that I'd make the slideshow by iterating over li...
javascript jquery
[3, 5]
4,809,277
4,809,278
how to reset a form after submit?
<p>I have a simple form, lets say it takes an email address. Once the form is submitted a message stack notifies the user that their address has been submitted successfully. The issue is that after submitting the address the form field with the email still contains the email address that the user typed in, how would ...
php javascript
[2, 3]
5,691,400
5,691,401
Loading Image to Custom List Array - Malformed Exception Protocol Not Found Error
<p>It works fine when I set myFileURL as "http://www.google.com/someimage.jpg", but when I try to use a variable I receive the error mesage.</p> <p>My code is here: <a href="http://pastebin.com/QTHwu5tv" rel="nofollow">http://pastebin.com/QTHwu5tv</a></p> <p><strong>Solution</strong> I was loading the data from an ar...
java android
[1, 4]
615,342
615,343
jquery .find issue
<p>I'm moving down a table using the up/down arrow keys. I am manipulating the class of the <code>&lt;tr&gt;</code> tags to change the CSS class (highlighted/non-highlighted). I noticed when the screen loads and I click the arrow keys the first time <code>tr_lst.attr('id')</code> has a value but after the 2nd click i...
javascript jquery
[3, 5]
2,121,044
2,121,045
Sending pictures from android device to server
<p>im trying to send a picture from a android device to a server and was wondering if it was possible to send the picture information in a xml file and rebuild it on the server? </p>
java android
[1, 4]
4,288,950
4,288,951
why do i lose my hidden field value?
<p>I have some hidden fields on my page, all of which work fine apart from one. I am setting the value in document.ready, before calling buildGrid() :</p> <pre><code> $(document).ready(function() { $.ajax( { type: "POST", url: "/CDServices.asmx/GetWeekEndingDates", data: "{}", ...
javascript jquery
[3, 5]
2,827,444
2,827,445
Show alert on browser close but don't show alert while closing from logoff
<p>In my application when user logs out the browser is closed. And on browser close I am throwing an alert. Now what I want is if I directly close the browser window alert should come but if window is closed through logout alert should not come as I have shown another confirm message of logout.</p> <pre><code>function...
javascript jquery
[3, 5]
4,521,533
4,521,534
How put a scrollbar into jquery picklist (dropdownlist)?
<p><img src="http://i.stack.imgur.com/pZeop.jpg" alt="enter image description here"></p> <p>I want put a scrollbar into the dropdownlist opened (picklist) because this is overflowing the height of this page.</p> <p>This is my code:</p> <pre><code> var picklist = function (msg) { var $selectall = $(this).find('[...
javascript jquery
[3, 5]
3,405,069
3,405,070
How to find out when a download has completed in mobile when using PHP
<p>I am using a PHP header for downloading a JAR file and <a href="http://en.wikipedia.org/wiki/APK_%28file_format%29" rel="nofollow">APK</a> files in mobile. I can download the files successfully, but I want to show a popup when the download reaches 100%. How do I achieve this? </p> <p>Is there any callback method fo...
php jquery
[2, 5]
5,424,003
5,424,004
Exception class java.util.concurrent.RejectedExecutionException only on galaxy s3
<p>I am having problems with my live wallpapers but only on galaxy s3. I get the following error</p> <pre><code>java.util.concurrent.RejectedExecutionException: Task com.ls.fs.Wallpaper$MyEngine$1@418f2030 rejected from java.util.concurrent.ThreadPoolExecutor@418f1978[Shutting down, pool size = 1, active threads = 1, ...
java android
[1, 4]
2,426,100
2,426,101
how to get expiration date of local windows account?
<p>I need to create C# method like this :</p> <pre><code> void deleteExpiredAccounts(String Account,dateTime expirationDate) { if(expirationDate == DateTime.Now) { DirectoryEntry localDirectory = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer"); DirectoryEntrie...
c# asp.net
[0, 9]
4,419,390
4,419,391
base64 encode audio file and send as a String then decode the String
<p>I have been stuck on this issue for a few hours now trying to get it working. Basically what I am trying to do is the following. Base64 encode an audio file picked up from an sdcard on an Android device, Base64 encode it, convert it into a String and then decode the String using Base64 again and save the file back t...
java android
[1, 4]
4,735,009
4,735,010
jquery selector not working in IE6 due to uppercase id
<p>I have a hidden input field on a page</p> <pre><code>&lt;div id="SomeDiv"&gt; &lt;input type="text" name="ID" id="ID" value="Something"/&gt; &lt;/div&gt; </code></pre> <p>If i use $("#SomeDiv #ID").val() in IE9 i get the value "Something" but in IE6 i'm getting undefined. If i change the id and name to lower c...
javascript jquery
[3, 5]
2,350,088
2,350,089
jquery load function ignoring dynamic changes
<p>I am using jQuery's <code>load</code> function on a page to get the contents of a webpage and then print it. Here is my code:</p> <pre><code>$('#container').load('&lt;?php print $_GET['load']; ?&gt;', function(data) { window.print(); }); </code></pre> <p>where the variable 'load' is the url.</p> <p>The probl...
php jquery
[2, 5]
5,566,548
5,566,549
Refer to immediate selector object with jQuery?
<p>I'm trying to learn some jQuery, and I setup a test page with the following code:</p> <pre><code>&lt;a id='encode' href='javascript: void(0)'&gt;encode&lt;/a&gt; | &lt;a id='decode' href='javascript: void(0)'&gt;decode&lt;/a&gt; | &lt;br/&gt; &lt;textarea id='randomString' cols='100' rows='5'&gt;&lt;/textarea&gt...
javascript jquery
[3, 5]
1,537,175
1,537,176
Does youwave supports jquery mobile?
<p>I've developed an app via Dreamweaver CS5.5 using jquery mobile. While running this app in youwave, the app exits abnormally. But the app with jquery mobile works fine. Does youwave supports jquery mobile? I'm using youwave 2.2.2 and jquery mobile 1.0a3.min.js.</p>
jquery android
[5, 4]
575,535
575,536
How to unescape Javascript in PHP
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2934563/how-to-decode-unicode-escape-sequences-like-u00ed-to-proper-utf-8-encoded-char">How to decode Unicode escape sequences like &ldquo;\u00ed&rdquo; to proper UTF-8 encoded characters?</a> </p> </blockquote> ...
php javascript
[2, 3]
1,945,277
1,945,278
Get object from Formview with javascript
<p>I need to get textbox that exits in Formview inserttemplate via javascript. </p> <p>Both return null:</p> <pre><code>$get('txtTitle'); document.getElementById("txtTitle"); </code></pre> <p>The problem is that formview is not rendered on form load...</p>
asp.net javascript
[9, 3]
316,813
316,814
Not responding to events?
<p>I currently have three Divs and only one of them is in focus at a given time. All of them line up in a film strip fashion. When I click a DIV not in focus, the current one moves to the left or right (depending on the direction) and the new one comes into focus. </p> <p>The divs can have content that has links. So m...
javascript jquery
[3, 5]
3,805,591
3,805,592
How to use win32::WriteFile when there is possible fail option?
<p>I using the win32 method 'WriteFile' to do some work in C# ( version .net 4.0 ) I need to wait till the method will finish the task and to do it i using 'WaitForSingleObject' .</p> <p>But there is some cases that the method 'WriteFile' is fail ==> so for this case i gave the 'WaitForSingleObject' 30 seconds time-o...
c# c++
[0, 6]
1,595,327
1,595,328
Error while passing series of numbers as a parameter to a JavaScript function in PHP
<p>Here's my PHP code - </p> <pre><code>for ($i=1;$i&lt;=10;$i++) { $numbers .= $i."\n"; } echo "&lt;input type='button' onclick=ShowNumbers('$numbers') value='Show Numbers'&gt;"; </code></pre> <p>And my Javascript code - </p> <pre><code>function ShowNumbers(numbers) { alert("Numbers:: "+numbers); } </code></p...
php javascript
[2, 3]
2,362,105
2,362,106
Assign new value to variable using itself
<p>This doesn't work but I can't see why it wouldn't? any help people? :)</p> <pre><code>params = qs.split("=", 2), id = params[1]; if(id.indexOf("?") != -1){ id = id.split("?", 1); } </code></pre> <p>basically I want to change the value of 'ID' if the IF statement is true, if not.. it skips it and the value Id re...
javascript jquery
[3, 5]
408,636
408,637
Android - delete from array adapter <string>
<p>I am creating an <code>ArrayAdapter&lt;String&gt;</code> from a resource array. Then I would like to delete an item from the list using <code>arrayAdapter.remove(String)</code> method. I find the correct string using <code>arrayAdapter.getItem(int position)</code>. But when I call the remove method I end up having <...
java android
[1, 4]
1,098,779
1,098,780
JavaScript error (Uncaught SyntaxError: Unexpected end of input)
<p>I have some JavaScript code that works in FireFox but not in Chrome or IE. In the Chrome JS Console I get the follow error: "Uncaught SyntaxError: Unexpected end of input".</p> <p>The JavaScript code I am using is:</p> <pre><code>&lt;script&gt; $(function() { $("#mewlyDiagnosed").hover(function() { $("#mewly...
javascript jquery
[3, 5]
4,121,012
4,121,013
How can i have Response.Redirect() work from MasterPage?
<p>I have a problem: when i call a Response.Redirect() from the MasterPage it doesn't work. Well, debugging i can see that until the Pre_Render() method the target page is loaded, but then is rendered the previous page.</p> <p>Here's some code to better explain:</p> <p>(from MasterPageMain.master.cs)</p> <pre><code>...
c# javascript asp.net
[0, 3, 9]
1,849,500
1,849,501
Extract an image from a video hosted on a web site
<p>I need to extract an image/thumbnail from a video hosted on some website. For exemple, the host could be youtube.com or whatever.com and i want to extract an image for a precise frame, i.e 2:12. </p> <p>I have the direct URL for the video. I searched and found how to do it for youtube or vimeo, they provide xml or ...
c# asp.net
[0, 9]
3,588,511
3,588,512
How can I hide elements which only contain hidden DIVs in jQuery?
<p>I want to hide all blocks which only contain hidden DIVs (aside from a caption). All elements have to be selected via class names.</p> <p>In detail, I want each "eventBlock" not to show up when all "groupBlocks" underneath are already hidden. The same with "Menu" which should not show up when all child eventBlocks ...
javascript jquery
[3, 5]
320,153
320,154
Show button only if there is more data to load
<p>I need to create a script in jQuery and PHP that will show a <code>load more news</code> button only when there is more data to load that's not already on the page. The easiest solution would be to test if a table has been updated but i'm not sure that can be done. Another way would be to test if there is content in...
php jquery
[2, 5]
2,051,196
2,051,197
what's the best way to apply a mask to an EditText on Android?
<p><br/> what's the best way to mask a EditText on Android? <br/> I Would like my EditText to behave like this decimal number input <a href="http://www.meiocodigo.com/projects/meiomask/#mm_demos" rel="nofollow">here</a>. Is there a easy way to do this? </p>
java android
[1, 4]
2,522,231
2,522,232
Passing the hyper-linked element to the hyper-linked page and receiving the element at the hyper-linked page
<p><a href="http://localhost/mypage.php" rel="nofollow">24</a></p> <p>what should i do when i just click on hyper-linked element it just pass the elemet to the hyper-linked page as in above example 24 should pass to <a href="http://localhost/mypage.php" rel="nofollow">http://localhost/mypage.php</a> and how can i r...
php javascript
[2, 3]
5,206,046
5,206,047
Why am I getting a UnknownHostException?
<p>I'm trying to instantiate an URL object (in Java) with the address: <a href="http://www.cornellrams.com/rss.php" rel="nofollow">http://www.cornellrams.com/rss.php</a>. It gives me an UnknownHostException. The site is live and well, but I can't access the feed. Any ideas why it doesn't like me? This is on Android. I ...
java android
[1, 4]
657,369
657,370
When window has been scrolled X pixels left, scroll up JQuery
<p>Im trying to make a sort of parrallax site where, when my window has scrolle say, 1000 pixels right, stop scrolling right, scroll up 300 pixels, then continue to scroll right. </p> <p>Is this possible with jQuery? </p> <p>Im using the below to set my widths and scroll right...</p> <pre><code> $(document).ready...
javascript jquery
[3, 5]
2,456,743
2,456,744
document.form[0] is Null or Not an Object error when hiding a text field in ASP.Net
<p>I am hiding a TextBoxin my aspx page like this:</p> <p><em>myField.visible=false;</em></p> <p>Now I have a DropDown as well which tries to access the TextBox on IndexChange. The problem is, it cant access the hiffen TextBox and I am getting <strong>document.form[0] is Null or Not an Object</strong>. How can I solv...
c# javascript asp.net
[0, 3, 9]
949,761
949,762
How would I Select a simple table from sql and display it on a page?
<p>I want to SELECT a user from a table using the WHERE clause. I know how to write the query, but how do I execute it and how do I match the UserId with the current one (how do I know what the current userid is using the login controls)? I basically want to display profile information by selecting the table and matc...
c# asp.net
[0, 9]
1,305,497
1,305,498
Is java.util.Scanner that slow?
<p>In a Android application I want to use Scanner class to read a list of floats from a text file (it's a list of vertex coordinates for OpenGL). Exact code is:</p> <pre><code>Scanner in = new Scanner(new BufferedInputStream(getAssets().open("vertexes.off"))); final float[] vertexes = new float[nrVertexes]; for(int i=...
java android
[1, 4]
3,832,534
3,832,535
How do you select the last visible element with jQuery?
<p>I am using jQuery and I want to select the last visible element with some class e.g. 'target'</p> <p>how can I do that ?</p>
javascript jquery
[3, 5]
79,378
79,379
Replacing body.onload in a user control
<p>I am refactoring a page that uses <code>&lt;body onload="myJS();"&gt;</code> to a user control. I understand I can do it using server side script registration on load.</p> <p>If I want to do it on the client side (ascx), how would I do this?</p>
asp.net javascript
[9, 3]
3,871,948
3,871,949
Embedded JavaScript doesn't work
<p>I have embedded JavaScript in ASP.NET application:</p> <pre><code>function HelloFromEmbedded() { window.alert('Hello from embedded resource.'); } </code></pre> <p>In AssemblyInfo.cs file:</p> <pre><code>[assembly: WebResource("JavaScript1.Scripts.EmbeddedJavaScript.js", "text/javascript", PerformSubstitution ...
javascript asp.net
[3, 9]
1,085,750
1,085,751
move list items between unordered list sets while maintaining position order
<p>I'm using this code sample (<a href="http://jsbin.com/izuwe/2/edit" rel="nofollow">source</a>) to add list items (item 1, item 2 etc) to a master list from a set of unordered lists (list1, list2). On removing list items from the master list, they have to go back to the original position in the unordered list where i...
javascript jquery
[3, 5]
5,964,377
5,964,378
Check whether any element in a list has an event
<p>Is it possible to loop through a list of table cells and check if any has a particular event (for example <code>click</code>), and then execute the callback function?</p>
javascript jquery
[3, 5]
2,872,297
2,872,298
How to Decrypt using Javascript
<p>I have a captcha text,which I am storing in hidden variable and retreiving the value in code behind(c#.net).</p> <p>Now I need to Encrypt that captcha text and store in hidden variable and decrypt the same in c#.net</p> <p>I need an algorithm that works both in javascript and c# .i.e encrypt in javascript and dec...
c# javascript
[0, 3]
4,404,301
4,404,302
Performing a Process on an Uploaded File .NET
<p>I'm programming in ASP.NET 3.5.</p> <p>I need to process a file that has to be uploaded by a user. The file is in a specific format. Basically, I need to take the information in the file, parse it, and insert it into a SQL db. I have no problem doing that, but I was wondering how to do this from a web site. </p...
c# asp.net
[0, 9]
4,814,466
4,814,467
simpleCart - Modal window form and sending the shopping cart in a multidimensional array to php
<p>I'm using the js cart simpleCart but am having a simple issue..</p> <p>I have a modal pop up when the customer presses "checkout" and they have to fill in their contact details and what I have working is that the modal form on submit emails me with the filled information using the code (at the link below), however ...
php javascript jquery
[2, 3, 5]
3,418,861
3,418,862
call javascript function by c#
<p>I have a javascript function which I want to send to c#.</p> <p>The c# function will then send that information to the fiscal printer.</p> <p>The function will get elements id from html document.</p> <p>The function looks like this </p> <pre><code>function senddata(price) { priceElem=document.getElemById("pric...
c# javascript
[0, 3]
5,659,726
5,659,727
Android.jar on a server
<p>I'm currently working on a client-server app for android and I'm wondering if it is ok to use the Android.jar library for the server component of my application. Does anyone understand the legalities and technicalities surrounding this?</p>
java android
[1, 4]
5,781,680
5,781,681
How can I get the JQuery to return a valid img src?
<p>So, I have images in a div that share the same class and one of them is selected at a time for a single view of that image. In this single view, I have arrows that I want to use to cycle between the images. The images sharing the same class have sequential alt values.</p> <p>Right now, I can get the preceding alt v...
javascript jquery
[3, 5]
4,161,099
4,161,100
jQuery AJAX "undo helper"
<p>The common pattern in AJAX-based UIs is that when user performs an action, it is reflected in the UI instantly, but is marked as unfinished until the arrival AJAX response confirming that everything is OK. This is how e.g. adding an event in Google Calendar works. And when there is an error, that temporary UI change...
javascript jquery
[3, 5]
3,274,203
3,274,204
Dragable DIV using javascript
<p>I want to make Dragable div i know this can be done using Jquery plug in but i don't want to use because i just need only dragable function. so tell me how can i make dragable function i have did this</p> <pre><code>$(document).ready(function(e){ $("#eve").mousemove(function(e){ ...
javascript jquery
[3, 5]
5,802,755
5,802,756
Insert Page title into hidden form value with javascript/jquery?
<p>I've got a form on every page of my site via a template but I'd like to have the page title included into the emails sent via the forms so we know exactly which page the form was submitted from. Is there a simple way to do this with jquery? </p> <p>Thanks for any tips/ideas. </p>
javascript jquery
[3, 5]
5,666,539
5,666,540
asp.net session timeout
<p>how do i set the session timeout in asp.net ?</p> <p>thru the code and thru the web.config (i heard that you can do it here).</p> <p>thanks</p>
c# asp.net
[0, 9]
231,157
231,158
jQuery post data return comparison not working
<p>I have this bit of code:</p> <pre><code>function addEmail() { email = $("#email").val(); atime = $("select#time").val(); tid = &lt;?= $tid; ?&gt;; $.post("remindme.php", { email: email, time: atime, tid: tid }, function(data) { if (...
javascript jquery
[3, 5]
4,325,539
4,325,540
Is there a way to send a message from the server to client when an event happens?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1425048/implementing-server-push">Implementing Server Push</a> </p> </blockquote> <p>I want to send a message to the client from php to javascript when some event happens at the server side like for instance the...
php javascript
[2, 3]
1,371,434
1,371,435
My function returns empty. why?
<p>I know that this is a basic question but I am stuck with it somewhere in my code. I got that code from somewhere but now I am modifying it according to my need.</p> <p>What does jQuery('#selector') do? In my code it always return empty.</p> <p>Here is my code</p> <pre><code>query: function (selector, context) { ...
javascript jquery
[3, 5]
85,642
85,643
Print page from hidden iframe
<p>I have problem hiding the page I want to print.</p> <p>When I click on the input button :</p> <pre><code>&lt;input type="submit" id="print" name="print"&gt; </code></pre> <p>This executes the following :</p> <pre><code>$(function(){ $('#print').click(function(){ if($('#bills_ID').val()==''){popUpMessag...
javascript jquery
[3, 5]
2,931,215
2,931,216
how can I pass control value from parent window to popup window's code behind
<p>I want to receive value from parent's control to popup window's <strong>code behind.</strong></p> <p>for example</p> <pre><code>&lt;asp:RadioButton ID="rdoRate" GroupName="CouponType" value="0" runat="server" checked/&gt;Rate &lt;asp:RadioButton ID="rdoAmount" GroupName="CouponType" value="1" runat="server"/&gt;do...
asp.net javascript
[9, 3]
1,579,594
1,579,595
What are the tools/frameworks used to build C# ASP.net applications?
<p>I am basically a java programmer who wants to move to .net. I haven't worked in .NET companies so I don't have any idea about the tools they use. In a Java company people use Maven, Hibernate and frameworks such as JSF or Tapestry.</p> <p>My questions are: </p> <p>What are the tools/frameworks that .NET/C# compani...
c# asp.net
[0, 9]
5,345,443
5,345,444
Server.UrlEncode vs. HttpUtility.UrlEncode
<p>Is there a difference between Server.UrlEncode and HttpUtility.UrlEncode?</p>
c# asp.net
[0, 9]
5,890,301
5,890,302
DateTime.Now.Year to fill maximum value in RangeValidator
<p>I am using a RangeValidator to validate that a year is between a static start year and a dynamic end year (the current year). I am drawing a huge blank for setting the maximum value in this fashion:</p> <pre><code>MaximumValue='&lt;% DateTime.Now.Year %&gt;' </code></pre> <p>Any help is appreciated as I usually do...
c# asp.net
[0, 9]
3,285,182
3,285,183
Jquery fadeIn fadeOut not working in IE8 but working in chrome, firefox
<p>I m trying to show and hide some elements(span) using jquery fadeIn and fadeOut method so I used following code:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function(){ $("a.moretag").click(function(){ $("span.hideelement").fadeIn("slow"); $("a.moretag").fadeOut("slow"); $("a.lesstag").f...
javascript jquery
[3, 5]
1,255,463
1,255,464
how to get control id in loop to upload 4 file in a single loop?
<pre><code> int count = 4; for (int i = 0; i &lt; count; i++) { if (FileUpload1.HasFile ) { } } </code></pre> <p>i am tring to upload 4 file by 4 diff FileUpload controls but how to get FileUpload1,2,3,4 in my if() the rest of the code will me same form all so how to?</p>
c# asp.net
[0, 9]
3,451,946
3,451,947
getting a value along with html markup returned by Ajax in Jquery
<p>I use the following to retrieve some html using Jquery:</p> <p>index.php</p> <pre><code>$.post( 'get-products.php', $("#offerForm").serialize() + '&amp;lastid=' + highest, function(data) { $('#demo').html(data); } </code></pre> <p>Is it possible to also retrieve a value of a...
javascript jquery
[3, 5]
266,460
266,461
File locked by which process (android)?
<p>Currently I am developing one android application in which I have a file on sdcard and I have to find out process id of all process which are accessing this file.</p> <p>Using the android.os.FileObserver we can know only whether the file is accessed by any process. But how to get process id of that process?</p>
java android
[1, 4]
3,710,509
3,710,510
JavaScript to PHP arrays
<p>Let's say I have this:</p> <pre><code>var achievementData = { "achievements": { 0: { "id": 0, "title": "All Around Submitter", "description": "Submit and approved one piece of content in all six areas.", "xp": 500, "level_req": 3 }, ...
php javascript
[2, 3]
5,714,192
5,714,193
Find a control's row number in an HTML table
<p>I have an HTML table called DataTable. In my C# code, I add several rows/cells to the table. The first cell of each row has a drop down list called "ddlLevels_[id]" where id is the corresponding id in the database.</p> <p>My ultimate goal is based on certain options selected in the drop down list, to add a row unde...
c# javascript
[0, 3]
1,038,400
1,038,401
how to save webpage in android sdcard or in device memory
<p>How to save Web page in android? I have create one application in which I have load web page in android web view using URL.</p> <p>I want to save that page using menu bar option and stored in device memory in sd card. I dont have any id to do this i am new in android.</p> <p>So please tell me code for this or els...
java android
[1, 4]
3,963,651
3,963,652
Get javascript to write text exactly where it is
<p>is it possible to get javascript to output html where the javascript code is?</p> <p>For example</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt; &lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div&gt;header&lt;/div&gt; &lt;div&gt;main &lt;script type="text/javascript" language="javascript"&gt; // print some ...
javascript jquery
[3, 5]
2,108,188
2,108,189
Parsing plain data with Javascript (JQuery)
<p>Well , I have this text in a Javascript Var:</p> <pre><code>GIMP Palette Name: Named Colors Columns: 16 # 255 250 250 snow (255 250 250) 248 248 255 ghost white (248 248 255) 245 245 245 white smoke (245 245 245) 220 220 220 gainsboro (220 220 220) 255 250 240 floral white (255 250 240) 253 245 230 old lace (253 24...
javascript jquery
[3, 5]
1,107,148
1,107,149
access preloaded images
<p>I have found a script <a href="http://engineeredweb.com/blog/09/12/preloading-images-jquery-and-javascript" rel="nofollow">here</a> that preloads images, but I dont know how can to access them.</p> <pre><code>(function($) { var cache = []; // Arguments are image paths relative to the current page. $.preLoadIm...
javascript jquery
[3, 5]
2,796,069
2,796,070
How to make a PHP library work in java environment?
<p>i have a php library which is in php. can i have this lib to work in java environment like calling the functionalists of the lib to work exactly like a java lib?</p> <p>Regards Tony</p>
java php
[1, 2]
5,155,898
5,155,899
How to display image based on variable in url
<p>I am using gallerific <a href="http://www.twospy.com/galleriffic/" rel="nofollow">http://www.twospy.com/galleriffic/</a> to display thumbnails and large images when a user clicks a thumbnail. You can see it in action here <a href="http://kimmelkids.com/kimmelkids/gallery/view-gallery/" rel="nofollow">http://kimmelki...
javascript jquery
[3, 5]
1,356,528
1,356,529
Freeze an android application
<p>I want to create a timer for the screen in an application to be frozen. Let's say like two seconds. I don't want the screen to react to any on screen button clicks. Is this "frowned" upon? Or is there another way of going about this.</p> <p>My application:</p> <p><img src="http://i.stack.imgur.com/QjCgi.png" alt="...
java android
[1, 4]
3,628,783
3,628,784
Change theme dynamically without page refresh in ASP.NET
<p>You must have noticed one link in yahoo.com, msn.com or other popular websites named "Page Options". When you click this link you get a popup displaying different small several color icons. After clicking one of these icons your page theme changes without entire page refresh. Now you are able to see the same page wi...
asp.net jquery
[9, 5]
4,408,696
4,408,697
Asp.Net script in external js file
<p>How can I use server-side script in an external js file to grab a reference to a dom element?</p> <p>The following works as intended when used as inline-script, but is returning null when I move this to an external js file. </p> <pre><code>$("#&lt;%= gridResults.ClientID %&gt;"); </code></pre>
asp.net javascript jquery
[9, 3, 5]