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,528,489
3,528,490
Do something on page load, based on a previous page action
<p>I am building a site on wordpress and I have encountered a problem that I am not quite sure how to solve. </p> <p><strong>The Situation:</strong></p> <ol> <li>User makes a selection from a <code>&lt;select&gt;</code> tag on one page and submits their choice</li> <li>User arrives at a page featuring the same <code>...
php jquery
[2, 5]
3,529,136
3,529,137
Asp.net page unable to read the HttpPost Data when submited from android
<p>I'm new in Android programming, and I have try to submit some login data to an. aspx page for verification via POST Method, some how I notice that the .aspx page was unable to read the HttpPost data from my android app. 2 thing I have tried to submit my data to an .asp page, the page able to read the data using the ...
asp.net android
[9, 4]
398,593
398,594
asp.net javascript message not showing up
<p>I have a button and onclick is set to this method which should display a simple JS alert pop up window:</p> <pre><code>string message = "File is already open. &lt;br&gt;Please close the file and try again."; System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("&lt;script type = 'text/j...
c# javascript asp.net
[0, 3, 9]
5,553,856
5,553,857
Very basic Code Performance
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/24901/is-there-a-performance-difference-between-i-and-i-in-c">Is there a performance difference between i++ and ++i in C++?</a> </p> </blockquote> <p>Can anybody explain me why ++i is faster then i++ when we wan...
c# java c++
[0, 1, 6]
3,269,147
3,269,148
Detect Arabic language using Javascript?
<p>How to detect Arabic language when typed in a Textbox using a Javascript?? Is there any way to do this.</p> <p>I want to do a system where the system automatically detects the Arabic Language written in the textbox of the Webpage.</p>
javascript asp.net
[3, 9]
298,325
298,326
android is my application still running?
<p>i have this thread which run as a service:</p> <pre><code> public void run() { try { while(true) { Thread.sleep(timeInterval); results = sendGetMessage(); b.putString("results", results); receiver.send(2, b); } ...
java android
[1, 4]
3,686,055
3,686,056
Neatening up custom event handlers - remove need for 'event' parameter
<p>I'm building some objects that will trigger custom events, and I'm using jQuery's bind and trigger to manage this for me, like so:</p> <pre><code>function MyObject() { var _this = this; this.onUpdate = function(fn) { $(_this).bind('MyObject.update', fn); }; this.update = function(params) ...
javascript jquery
[3, 5]
5,070,739
5,070,740
Custom jQuery scrollbar inside jQuery tooltip
<p>I'm using nanoscroller.js and tiptip.js , although for my question I'm not sure specific libraries matter that much (but they may).</p> <p>I have a working tool tip, I have a working scrollbar. When used seperately.</p> <p><strong>My goal</strong> is to have a working custom scrollbar inside the tooltip.</p> <p><...
javascript jquery
[3, 5]
905,630
905,631
Prototype.js error on a function
<p>I am getting error on following function:</p> <pre><code>Event.observe(window, "load", function () { if ($("question") &amp;&amp; $("question").type.toLowerCase() == "textarea") { Event.observe("question", "keyup", function () { var _4 = $F("question"); if (_4.length &gt; 255...
javascript jquery
[3, 5]
2,926,693
2,926,694
jQuery find not working
<p>This is my HTML:</p> <pre><code> &lt;p class="first"&gt;blah blah &lt;a href="" class="more"&gt;read more&lt;/a&gt;&lt;/p&gt; &lt;div class="read_more"&gt; &lt;p&gt;more text&lt;/p&gt; &lt;/div&gt; </code></pre> <p>And javascript:</p> <pre><code>$(document).ready(function(){ $...
javascript jquery
[3, 5]
3,463,338
3,463,339
How to change time zone for an asp.net application
<p>I need to set default timezone for my ASP.NET to Asia/Dhaka or GMT+6 timezone. But i cannot find a way to change it globally. There is a lot of reference on Stackoverflow and rest of the web for doing this by getting timezone info and calculating correct time for each time i need a DateTime object.</p> <p>But trust...
c# asp.net
[0, 9]
2,506,839
2,506,840
Dynamically created text box's ontextchanged event not firing when assigned an ID
<p>I read all related posts , but still could not understand the prob that am currently facing.On Oninit I create table with text boxes as follows, when i assign an id to the text box the textchanged event does not fire, but when i do not assign an ID it fires. Cant reason out why. Kindly help.</p> <pre><code> pro...
c# asp.net
[0, 9]
3,969,202
3,969,203
asp.net jquery id selector in content page
<pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function () { $(".div_soru").toggle(function () { var cevap = "cevap" + $(this).attr("id"); $("xxx").slideDown(); // }, function () { var cevap = "cevap" + $(this).attr("id"); $("xxx")...
jquery asp.net
[5, 9]
1,419,832
1,419,833
Custom dialog box to get confirmation when browser tab is closed
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2132760/how-to-ask-confirmation-when-closing-a-window">How to ask confirmation when closing a window?</a> </p> </blockquote> <p>I would like to display a confirmation box and a custom message when the browser ta...
javascript jquery
[3, 5]
5,124,975
5,124,976
How to modify a php string variable in javascript
<p>I am using php4 and jquery, I have got a php string variable $content which stores a string as shown below.</p> <pre><code>&lt;html&gt; &lt;head&gt;&lt;/head&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;comments:&lt;/td&gt; &lt;td&gt;Good&lt;/td&gt; ..... ...n rows &lt;/...
php javascript jquery
[2, 3, 5]
1,110,393
1,110,394
Click event not firing with dynamically create buttons
<p>I have dynamically created the buttons in a div. And binding the click and other events for the buttons. But the problem is, click event fired only one for first clicked button. It happens same for the other binding events. The sample code is </p> <pre><code> $('#divButtons input[type=button]').each(function () { ...
javascript jquery
[3, 5]
4,779,970
4,779,971
Why isn't this second table not visible?
<p>I have two tables in a page like this:</p> <pre><code>&lt;table style="width:800px"&gt; &lt;tr&gt; &lt;td style="width:400px;"&gt; &lt;table id="currencies" style="border-spacing: 5px; padding: 3px; margin: 2px" /&gt; &lt;/td&gt; &lt;td style="width:400px;"&gt...
javascript jquery
[3, 5]
5,369,971
5,369,972
how to close light box form after clicking on submit button?
<p>i have a light box form ( and have page in the background ).i want to close the light box and stay on that page after clicking on submit button .but its redirecting to another page ( php database connection page ) after clicked on submit button.need help.i want to know how to close light box and stay on that page.th...
php javascript
[2, 3]
3,912,097
3,912,098
remove %0A from string
<p>how can i remove %0A from this string :- this is enter key code, which i need to remove from entire string. so how can i do this? </p> <p><strong>input:-</strong></p> <p>"NA%0A%0AJKhell this is test %0A"</p> <p><strong>Output:-</strong></p> <p>NAJKhell this is test </p> <p><strong>Update</strong></p> <pre><cod...
java android
[1, 4]
4,450,878
4,450,879
Is there a good library of video tutorials for Android development?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4904560/where-can-i-find-android-video-tutorials">Where can I find Android video tutorials?</a> </p> </blockquote> <p>Specifically some that may cater to an experienced developer (C#) but not necessarily familia...
java android
[1, 4]
2,308,211
2,308,212
Easy way to bind dynamic elements without having to recall functions jquery
<p>I currently have a page in which users can drag content around, resize it, etc. </p> <p>The basic structure looks like the following:</p> <pre><code>$('.element').on().resizable().draggable(); </code></pre> <p>When called at the beginning of the document load it adds bind events, resizable and draggable. Now the ...
javascript jquery
[3, 5]
2,978,334
2,978,335
Is there a way to grab the x and y position of an element on a page without it being absolute using jquery?
<p>Is there a way to grab the x and y position of an element if it's not positioned absolute using jquery?</p>
javascript jquery
[3, 5]
482,311
482,312
Request form error for panel in asp.net
<p>I have two panels , when i tried to come back from panel 2 to panel one it shows me </p> <pre><code>Reques form error potentially dangrous </code></pre> <p>Any help appriciate</p>
c# asp.net
[0, 9]
1,299,771
1,299,772
How to make these simple javascript lines into a loop
<p>I'm just starting to learn javascript, and I've written the following code (coming from a php background):</p> <pre><code>$(document).ready(function(){ $("#example-1").attr("rel","1"); $("#example-2").attr("rel","2"); $("#example-3").attr("rel","3"); }); </code></pre> <p>I'm assuming that making it into something ...
javascript jquery
[3, 5]
2,888,652
2,888,653
Get inputs value and separated by "|"
<p>I have inputs and I need to get values and separated by <code>"|"</code> symbol.</p> <p>My input:</p> <p><img src="http://i.stack.imgur.com/BVsDV.png" alt="enter image description here"></p> <p>Output what I need:</p> <p><strong>00:00|00:00|00:00</strong></p> <p>My code is :</p> <p>(and it's not working)</p> ...
javascript jquery
[3, 5]
4,638,524
4,638,525
Getting Previous Date Using Javascript
<p>I want to get the before six months date using javascript. </p> <p>I am using the following method.</p> <pre><code>var curr = date.getTime(); // i will get current date in milli seconds var prev_six_months_date = curr - (6* 30 * 24 * 60* 60*1000); var d = new Date(); d.setTime(prev_six_months_date); </code></pre> ...
javascript jquery
[3, 5]
4,100,424
4,100,425
how to convert javascript variable to PHP variable?
<p>I would like to convert my javascript variable to a PHP variable...<br> Right now I have situation like that, in the code below I have a variable <code>e</code> , but I want to use <code>e</code> in PHP like <code>$e</code>:</p> <pre><code>&lt;script&gt; function test() { var e = document.getElementById("category_...
php javascript
[2, 3]
1,406,938
1,406,939
Disabled JavaScript in IE6 still not able to see the script code?
<p>I m a beginner. This is more related to different options i was trying to learn.</p> <p>I just took example </p> <pre><code> &lt;!-- document.write("&lt;h1&gt;Hello World&lt;/h1&gt;"); //--&gt; </code></pre> <p>It was stated that we should use this tags to avoid the script display in browser if javasc...
javascript asp.net
[3, 9]
3,657,292
3,657,293
Array to javascript
<p>I have an array of items from the database.</p> <pre><code>`$this-&gt;ingredientsHistory` is the variable that contains the array. </code></pre> <p>I want to convert this into a javascript var that will hold them all and I can then use them in the autocomplete jquery UI function.</p> <p>I've tried <code>var ingre...
php javascript jquery
[2, 3, 5]
2,499,239
2,499,240
Animated sliding divs on click button, .prev .next jQuery
<p>Trying to make a sliding panel where you can click next and back to go between panes, Ive attached a fiddle to explain better, only my back button doesnt seem to work, Can anybody see why?</p> <p><a href="http://jsfiddle.net/x2qk7/3/" rel="nofollow">http://jsfiddle.net/x2qk7/3/</a></p>
javascript jquery
[3, 5]
1,335,759
1,335,760
Javascript for .NET 3.5: How to give textbox focus after a pop-up is closed
<p>Is there a way to open a pop-up via window.open(....), let it stay on top of the main window, and upon its close, give focus to a text box on the calling page?</p> <p>I have been tasked to adjust functionality written by someone else. The .NET 3.5 page currently allows restocking of inventory and upon a button clic...
c# javascript asp.net
[0, 3, 9]
4,805,488
4,805,489
vanilla javascript vs jquery
<p>I am having trouble grasping the difference between the two. I tried downloading the library and there was no code. I am trying to build a basic slider along with other basic functions I have built in jQuery. Any help, tutorials, plugins and information would be very helpful!</p>
javascript jquery
[3, 5]
111,587
111,588
How to check if a text is all white space characters in client side?
<p>How to check if a user input text is all white space characters (space, tab, enter etc) in client side?</p> <p>Thanks in advance!</p>
javascript jquery
[3, 5]
4,555,746
4,555,747
JQuery form auto submit clicking out side the div
<p>I want to auto-sumbit my form once user clicks out side the div of the form.</p> <p>I tried the following but it submits within clicking within the div.</p> <pre><code>&lt;div id="formDiv"&gt; &lt;form id="search"&gt; &lt;input id="target" type="text" value="Field 1" /&gt; &lt;input type="text" value="Field 2"...
javascript jquery
[3, 5]
2,346,090
2,346,091
javascript convert <string, string[]> to <string, string>
<p>I have a javascript object with key/value pairs where the value is an array of strings:</p> <pre><code>var errors = { "Message": ["Error #1", "Error #2"], "Email": ["Error #3", "Error #4"] }; </code></pre> <p>I would like to convert this to a key/value pair with the first element of each array so that it i...
javascript jquery
[3, 5]
3,914,479
3,914,480
send confirmation mail via ASP.NET
<p>I'm trying to send a confirm registration mail. I don't want to use the SMTPs for gmail or windows Live as it is not legal and can not be used for those type of purposes.</p> <p>Is there any mailing service that is accessible by code which can satisfy my requirements in a legal way?</p> <p>I'm using ASP.NET Framew...
c# asp.net
[0, 9]
5,621,771
5,621,772
return values from sql query when ajaxform is applied
<p>I got a </p> <p>$.ajax({</p> <pre><code>type: "get", url: "detail.php", data: "iq="+q, success: function() { $('#Title').text('value',''); } </code></pre> <p>and a sql query select statement. I want to retu...
php jquery
[2, 5]
5,888,740
5,888,741
Why is $(this).val() giving me the value from this first method in this second method?
<p>The $(this).val() in the second method returns the same value that I get in the first method. I expected to get the first value of the fields with the secondGroup class. What am I doing wrong?</p> <pre><code>$(document).ready(function(){ jQuery.validator.addMethod("method1", function(value, element, options) {...
javascript jquery
[3, 5]
5,117,657
5,117,658
noob: how to show login error message on the same page after php server processes request
<p>I have a login page. User first enters information and submits the form. </p> <p>And I have a php script that will see if the user exists.</p> <pre><code>If( authenticated == true) { // I do a redirect } else { // I want to popup an error message on the same page. } </code></pre> <p>1) I'm n...
php javascript
[2, 3]
68,407
68,408
Label's text appeared nothing when is session over from the first page
<p>I am trying to Session over my Label.Text in the first .aspx page to another Label in the second .aspx page. I retrieve my value from the database and place them in the first Label.Text and want to Session this Label (Which i got the text from the database) to another page linked to the first page. I use this method...
c# asp.net
[0, 9]
4,023,207
4,023,208
Why does jQuery not register my <a> click?
<p>In the example below</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;a href="#"&gt;test&lt;/a&gt; &lt;button id="btn-add"&gt;Add&lt;/button&gt; &lt;div id="placehold...
javascript jquery
[3, 5]
3,552,419
3,552,420
Access a php array of indexed objects with jquery
<p>I have a php array of objects istantiated from the following class:</p> <pre><code>class my_class { public $id; public $timestamp; } </code></pre> <p>These are stored in an array with indexes 0,1,2.....</p> <p>I am getting this array with jquery through the Session variable and I attempt to print it in th...
php jquery
[2, 5]
3,748,713
3,748,714
JavaScript function that returns result of ajax call
<p>Help needed. Im writing a function that returns result of ajax call but i did not get any results, i guess it's a scope issue, but is there any way to do it? Here is my code:</p> <pre><code>function Favorites() { var links; $.ajax({ type: "GET", url: "/Services/Favorite.svc/Favorites", ...
javascript jquery
[3, 5]
3,117,796
3,117,797
how can i execute large mysql queries fast
<p>I have 4 mysql tables and have a single query with JOIN on multiple tables and I am requesting it via jquery ajax, but it takes much too long, from about 1-3 minutes while I want to execute them on average 2-5 seconds.</p> <p>Is there any special way to execute the queries fast?</p>
php jquery
[2, 5]
4,778,581
4,778,582
How to handle the reported and spammed comments in website using asp.net by moderator?
<p>I am building a social bookmarking website . Users will be able to comment upon the bookmarks added . Thus a working is required to eliminate the spam and unnecessary ads. Moderator should be able to perform following:</p> <ol> <li>Check the comment or receive notification when a user reports the comment</li> <li>E...
c# asp.net
[0, 9]
5,413,179
5,413,180
Comparing strings in android
<p>I want to compare a string literal that is "failed" to a string that has been passed to this function, but my problem is that the string that is passed "result" is not the same as the string fail, and i explicitly passed "failed" to the function. </p> <pre><code> if(result.equals(fail)) </code></pre> <p>alwa...
java android
[1, 4]
838,085
838,086
How to open a pop up window using javascript/Jquery for firefox browser?
<p>How to open a pop up window using javascript/Jquery for firefox browser?it is working in other browsers except firefox.</p> <pre><code> &lt;xsl:if test="$ShowRejectLink='Yes'"&gt; xsl:if test='$RejectLink!=""'&gt; &lt;a href="{$RejectLink}" target="_new"&gt;Reject&lt;/a&gt; </code></pre> <p>I...
javascript jquery
[3, 5]
4,952,278
4,952,279
Show tab without refreshing whole page
<p>I have following code in my php page. These are two tabs Inbox and sInbox. When user clicks on them it refreshes whole page to go to other tab. Is there a way to make these tabs so that when user click on one of the tab there is no page refresh? When answering please provide full code example as i am a beginner.</p>...
php jquery
[2, 5]
933,775
933,776
Dynamically arrange some elements around a circle
<p>I'm looking for a function to arrange some elements around a circle.<br> result should be something like : </p> <p><img src="http://i.stack.imgur.com/gEpQW.jpg" alt="enter image description here"></p>
javascript jquery
[3, 5]
5,720,385
5,720,386
How to detect if the call is made through jQuery
<p>I use </p> <p><code>$.post('ajax/test.php', function(data) { $('.result').html(data);});</code></p> <p>to send data and retrieve information and show it to the user. But "hackers" can access my file (test.php) just typing it in URL. Is it possible to detect if the call is made from jQuery or not?</p>
php javascript jquery
[2, 3, 5]
2,945,523
2,945,524
Asp.net Head Problem
<p>i want to write head tag.</p> <p>i need create dynamic</p> <pre><code>&lt;head id="htmlHead" runat="server"&gt; &lt;/head&gt; </code></pre> <p>code behind:</p> <pre><code>htmlHead.InnerText = "&lt;script src=\"Scripts/jquery.ui.datepicker.js\" type=\"text/javascript\"&gt;&lt;/script&gt;" </code></pre> <p>not w...
c# asp.net
[0, 9]
1,206,763
1,206,764
Unable to get jQuery '+variable+' within selector working
<p>I am trying to change images based on the first character inside an h2 tag that corresponds to the id of a collection of images within a div called jquery_image</p> <p>If I have the following code then my images will change as expected</p> <pre><code>$(".jquery_image img:not([id=1)").hide(); $(".jquery_image img[i...
javascript jquery
[3, 5]
3,310,247
3,310,248
jquery multiselect checkbox values
<p>I'm using the Jquery multiselect checkbox plugin and am getting an error when converting the returned (CSV) values into an array. While this is not, strictly, a jQuery question it seems to throw an error on a standard js method. Heres what I have:</p> <pre><code>$(function(){ $("select").multiselect({ ...
javascript jquery
[3, 5]
4,582,216
4,582,217
Mail through Javascript
<p>How can we <strong>send mail</strong> using JavaScript? </p>
php javascript
[2, 3]
3,387,771
3,387,772
firewall for mobile devices running on android platform
<p>i am developing a firewall for mobile devices as my final year project could anybody help me out in getting the codes for any of my project...pls pls pls its urgent!</p>
java python
[1, 7]
2,957,559
2,957,560
How do I check to see if a resource exists in Android
<p>Is there a built in way to check to see if a resource exists or am I left doing something like this.</p> <pre><code> boolean result; try { int test = mContext.getResources().getIdentifier("my_resource_name", "drawable", mContext.getPackageName()); if (test != 0) result = true; } final...
java android
[1, 4]
571,256
571,257
Should I use Request.UrlReferrer when determining referrals
<p>I came upon an interesting discussion with my team around the use of HttpRequest.UrlReferrer and wanted to solicit feedback from the community. According to the <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.36" rel="nofollow">W3C spec</a>:</p> <blockquote> <p>The Referer[sic] request-head...
c# asp.net
[0, 9]
3,216,257
3,216,258
accessing php array in js using json_encode
<p>I am using php and JS in my code.My requirement is I need to fetch the value from my-sql database and display into drop down list dynamically.I am populating the dropdown with JS but fetching the value with php(a usual thing). So the problem I am facing is once I get the value from php code and encode it using json_...
php javascript
[2, 3]
5,387,917
5,387,918
Using list of serialized objects
<p>I'm learning Android/Java programming, but I'm confused about persistant data. After a lot of research it seems that the best way to store objects is to serialize them in a file, but I couldn't find a simple way to retrieve these objects.</p> <p>If I create two objects and save their serialized versions, how can I ...
java android
[1, 4]
2,587,180
2,587,181
Numeric textbox control from radiobuttonlist selection
<p>I've a radiobutton list like this;</p> <pre><code> &lt;asp:RadioButtonList ID="RadioButtonFirm" runat="server" RepeatDirection="Horizontal"&gt; &lt;asp:ListItem id="option1" runat="server" Value="Firm Code" /&gt; &lt;asp:ListItem id="option2" runat="server" V...
c# javascript jquery asp.net
[0, 3, 5, 9]
5,142,910
5,142,911
How do I select elements based on all their content in jQuery?
<p>I have a series of <code>&lt;div/&gt;</code>'s as follows:</p> <pre><code>&lt;div&gt;.co.uk&lt;/div&gt; &lt;div&gt;.com&lt;/div&gt; &lt;div&gt;.gb.com&lt;/div&gt; &lt;div&gt;.uk.com&lt;/div&gt; &lt;div&gt;.net&lt;/div&gt; </code></pre> <p>How do I select just the divs containing <code>.co.uk</code>, <code>...
javascript jquery
[3, 5]
1,129,667
1,129,668
loading content from php file with jQuery
<p>The following code fetch all data (by clicking a.info link) from a php file "info.php" and prints in the #content div. The problem is that it prints everything from info.php file. Can I possibly select only some part of data from info.php file to load in #content? The reason to ask this question is that, I want to l...
javascript jquery
[3, 5]
3,450,942
3,450,943
Targeting plain text with jQuery
<p>I'm trying to isolate (and then manipulate) quote block formatted in common newsreader and email-client manner.</p> <p>The HTML:</p> <pre><code>&lt;p&gt; Hello there! &lt;br /&gt; I'm great, how are you? &lt;br /&gt; &lt;br /&gt; Someone wrote: &lt;br /&gt; &gt; Greetings, &lt;br /&gt; &gt; How...
javascript jquery
[3, 5]
2,465,004
2,465,005
How does one get to this stage:
<p>Hey guys reading some of the posts I came to realise something:</p> <p><a href="http://stackoverflow.com/questions/1718037/abuse-of-c-lambda-expressions-or-syntax-brilliance">Abuse of C# lambda expressions or Syntax brilliance?</a></p> <p>Why is it that atm im learning how to implement operations but I have no bea...
c# php javascript asp.net c++
[0, 2, 3, 9, 6]
1,390,966
1,390,967
Android: Dialog triggered onResume
<p>I am experiencing a weird behavior in my app.</p> <p>I have an Activity with a ListView. When you click on an item in the ListView, a TimePickerDialog is shown.</p> <p>If I hit the home button after closing the dialog, and then reload the app, the TimePickerDialog is shown automatically again.</p> <p>Now, I don't...
java android
[1, 4]
5,942,385
5,942,386
Bind html Atrribute Doesn't work
<p>first example works. second fails misrebly why?</p> <pre><code>(I except ErrorMessage="&lt;%# Model.StringProvider.GetString("Login.UserNameRequired.ErrorMessage")%&gt;") </code></pre> <p>to put the callled string in ErrorMessage this doesn't happen.</p> <pre><code>&lt;asp:Label ID="UserNameLabel" runat="server" ...
c# asp.net
[0, 9]
5,452,938
5,452,939
Should I continue learning a language if in the meanwhile I became interested in another language/platform?
<p>I started learning Java a couple of months ago. I also wanted to become more exposed to linux so I installed ubuntu and started working with Java since then. In the meanwhile however I became more interested in C# and in learning the Windows platform. At this point I'm asking myself if I should stop learning Java an...
java c#
[1, 0]
5,766,843
5,766,844
JQuery - how to stop a function?
<p>I have this code</p> <pre><code>&lt;script type="text/javascript"&gt; function test(counter) { if(counter==4) { counter=0; } if(counter==0) { //various stuff } counter = counter + 1; setTimeout(function () { test(count...
javascript jquery
[3, 5]
1,438,525
1,438,526
Is there any way to include contents of a file inside of another with javascript?
<p>My code looks like this:</p> <pre><code>function submitHandler($link, $modal, close) { var ... var onDone = function (json, textStatus, XMLHttpRequest) { ... } var onFail = function (XMLHttpRequest, textStatus, errorThrown) { ... } var successModal = function (json) { ... }...
javascript jquery
[3, 5]
4,466,194
4,466,195
Jquery post multiple vars to php
<p>I want to post multiple vars from jquery to php</p> <pre><code>&lt;script&gt; //vote script function vote(type){ $.post('vote.php', '{user_id: &lt;?php echo $fb_userid;?&gt;, page_name: &lt;?php echo $get_image;?&gt;, type: type}', function(data){ $('#voteNumber').html(data); }); }//end function &lt;/sc...
php javascript jquery
[2, 3, 5]
5,803,537
5,803,538
page transitions with jquery and php
<p>I'm using php to develop an application, and I'm using something like this to change the pages</p> <pre><code>&lt;?php if (!isset($_GET["p"])){ $p = 'home'; } else{ $p = $_GET["p"]; } include "$p.php"; ?&gt; </code></pre> <p>What I wan...
php javascript jquery
[2, 3, 5]
5,634,902
5,634,903
jQuery shorthand
<p>Is there any more elegant way to write that? :</p> <pre><code>var AllOperation = $('#menu &gt; li.operation'); var Operation1= AllOperation[0]; $(Operation1).addClass('operation-first'); </code></pre>
javascript jquery
[3, 5]
4,046,802
4,046,803
jquery next button focus
<p>To improve navigation on one of the pages I am tyring to set a focus on a next available(enabled) button when leaving last data entry field. </p> <pre><code>$('input[type=text], select, textarea').filter(':last').blur(function() { $('input[type=submit][type=button]:enabled:first').focus(); }); </c...
asp.net jquery
[9, 5]
885,784
885,785
How can I wait for an iframe to reload its contents?
<p>I have an HTML page that uses javascript / jquery to reload the contents of an iframe:</p> <pre><code> $('#my-frame').attr("src","someotherpageinthesamedomain"); </code></pre> <p>What I'd like to happen is to be able to manipulate the HTML of the iframe after it reloads. I tried this:</p> <pre><code> $("#my...
javascript jquery
[3, 5]
157,862
157,863
Need some help on jQuery sliding box script to set the height equal to text
<p>I have updated the code I am working on here <a href="http://jsfiddle.net/dFfJm/" rel="nofollow">http://jsfiddle.net/dFfJm/</a></p> <p>At the first sliding box where there is only 1 line of text. On the second box there are 3 lines of texts.</p> <p>As you can see it does not look right, there is a large empty slid...
javascript jquery
[3, 5]
2,598,086
2,598,087
SlideToggle Div Animation
<p>i have the following jQuery code.</p> <pre><code>$(function() { $('.clickme').click(function() { $('.totalthing').slideToggle('slow','easeInOutQuart', function() { // Animation complete. }); $('.expandedcase').slideToggle('slow','easeInOutQuart', function() { // A...
javascript jquery
[3, 5]
2,591,714
2,591,715
Jquery child elements
<p>When I add event handler to a some elements using query:</p> <pre><code>$('div').mouseover(function () { }); </code></pre> <p>Iinside function I have an element for which we add event function ($(this)). how can I check inside this function next:</p> <ol> <li>Have this "DIV"($...
javascript jquery
[3, 5]
2,821,707
2,821,708
jQuery get index of certain child elements and ignore others
<p>I'm trying to get the index of a child element <code>ol</code>, but there is also some <code>h2</code>'s in there which I don't need and are therefore polluting my results when using the jQuery <code>index()</code> function.</p> <p>So I need the index of the <code>ol</code>, as if there weren't any <code>h2</code>'...
javascript jquery
[3, 5]
54,387
54,388
window.scrollTo weirdness inside Android webview
<p>I'm having a weird issue when I use window.scrollTo(0, document.body.scrollHeight) to scroll to the bottom of a page (loaded inside an Android webview). There's a huge gap of whitespace at the bottom of the page (it disappears when the page is tapped). Does anyone have any advice? Thanks.</p> <p><img src="http://i....
javascript android
[3, 4]
5,011,308
5,011,309
How to make .jar library from sources
<p>I have Tapjoy sources sources, which have such sructure: <code>Tapjoy/src/com/tapjoy/*.class</code></p> <p>It must be compiled with Android API Level 9 and higher. My project is in version Android API Level 8.</p> <p>So I need to make from sources of <code>Tapjoy -&gt; tapjoy.jar</code> file and include it to my m...
java android
[1, 4]
2,336,152
2,336,153
How to read text from a textbox and make some of them a link?
<p>I will show the problem with a example.</p> <p>There is some text in the textbox such here:</p> <p>Hi! this is a example [lnk]text[/lnk]</p> <p>When i push the submit button and publish this text, the word in the [lnk] and [/lnk] tags must be a link like this www.mysite.com?link=text. </p> <p>How do I make it ea...
asp.net javascript jquery
[9, 3, 5]
2,453,736
2,453,737
Link using Javascript to show content dynamically without refreshing
<p>I want to put some links in my web page. I am using php for developing my webpage When user click any one of it, the content corresponding to that link will show just below it without refreshing the whole page I know it a simple basic, but I dont know javascript much to work with... Can anyone please help me...</p> ...
php javascript
[2, 3]
1,026,615
1,026,616
DataTable in JavaScript
<p>I want to create table of data in JavaScript equivalent to this code in c#: </p> <pre><code>// Create DataTable to store the mobiles in it DataTable dTable = new DataTable("mobiles"); DataTable dTable_Int = new DataTable("mobilesInt"); DataTable dTable_STC = new DataTable("mobilesSTC"); DataTable dT...
c# javascript
[0, 3]
2,493,309
2,493,310
Insert } to Complete ClassBody error even with matched braces
<p>Yes. I know this is trivial. But this is getting silly. </p> <p>Image proving the error:</p> <p><img src="http://i.stack.imgur.com/BXMUG.png" alt="enter image description here"></p> <p>The code:</p> <pre><code>package apack.age; import android.app.Activity; import android.content.Intent; import android.net.Uri;...
java android
[1, 4]
5,347,950
5,347,951
Disable a jqueryui datepicker
<p>I have a jqueryui datepicker associated with a input text. When i make the input textbox readonly i dont want the datepicker to show up . Is that possible? I would be setting the readonly property to true or false from the code.</p> <pre><code>&lt;script&gt; $(function() { $( "#datepicker" ).datepicker(...
javascript jquery
[3, 5]
2,755,402
2,755,403
Add asp:TableRows to asp:Table after load in the background
<p>I'm trying to add rows to an ASP table control in a seperate thread. Basically this is what I have so far:</p> <p>Codebehind:</p> <pre><code> protected void onLoad(object sender, EventArgs e) { Thread obj = new Thread(new ThreadStart(testX)); obj.IsBackground = true; obj.Start(); ...
c# asp.net
[0, 9]
1,776,438
1,776,439
LinkButton Designing with Javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/14655275/managing-linkbutton-with-javascript">Managing LinkButton with Javascript?</a> </p> </blockquote> <p>I want to put LinkButton on MultiView control on Webform by manipulating function of LinkButton.LinkBu...
javascript asp.net
[3, 9]
2,411,365
2,411,366
Javascript to fix iframe height according to available height in the browser window
<p>I need Javascript to fix the iframe height dynamically according to available height in the browser ?</p>
javascript jquery
[3, 5]
3,558,056
3,558,057
Weird issue on IE (IE9 and lower) with JavaScript (jQuery)
<p>I am experiencing a weird problem on IE (IE 9 and lower).</p> <p>I have a form having a select and a radio. When anyone changes anything in the select or radio, it calculates the total price.</p> <p>Here is the code: <a href="http://jsfiddle.net/Debiprasad/DLQ82/8/" rel="nofollow">http://jsfiddle.net/Debiprasad/DL...
javascript jquery
[3, 5]
5,266,683
5,266,684
How to display html content using Javascript or jQuery?
<p>Currently I use iFrame to display third party content. For example, my news page displays live website from CNN, MSNBC, Foxnews in single page. </p> <p>Currently, I am just using iFrame to display those sites, but I was wondering if there is a better way to display the contents using Javascript, jQuery or other typ...
javascript jquery
[3, 5]
4,830,971
4,830,972
Selecting by ID attribute using JQuery in ASP.NET
<p>I've just started using JQuery in VS 2008, and so far I like it! But, I'm confused about how I should be using JQuery in order to select asp.net controls on a webpage.</p> <p>For example, I have the following code (just a mock-up):</p> <pre><code>&lt;asp:textbox id="txtSomeData1" runat="server" text="Some Data!!"&...
asp.net jquery
[9, 5]
4,788,639
4,788,640
how can i change selected value of drop list dynamically
<p>i want to pick the value from text box and then change the value of dropdown list according to that value </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script&gt; function change() { var value = document.getElementById('text').value; document.g...
javascript asp.net
[3, 9]
3,937,373
3,937,374
QueryString containing \ coming through with \\
<p>I'm have a page which I sent a parameter through the query string.</p> <p>If I'm retrieving it with Request.QueryString["Format"] I'm having troubles with the type 'CD\DVD'. It's being returned as 'CD\\DVD'. It's important I get this as the right string.</p> <p>How do I avoid the extra backslash? Or even get rid o...
c# asp.net
[0, 9]
3,532,538
3,532,539
Is element before or after another element in DOM
<p>Is there a means of detecting whether an element appears before or after another element in markup? This is <em>regardless</em> of position in DOM. It could be a child, a sibling, a parent or a parent's parent. This is a general question, so no markup to share.</p> <p>To clarify - this is in regards to the element'...
javascript jquery
[3, 5]
1,821,394
1,821,395
Is there a JavaScript (or jQuery) shortcut for "function(){return false;}"?
<p>To prevent actions from happening, I frequently type </p> <pre><code>function(){return false;} </code></pre> <p>Is there a shortcut?</p>
javascript jquery
[3, 5]
4,217,446
4,217,447
JQuery Hover does not work Mozilla
<p>I have the following Snippet of code.The hover has a problem in Mozilla - It changes color on hover but some times it does not revert back when we go out.Mind you it only happens sometimes.Also in such cases if I examine the HTML using FireBug I can see that the Extra Class is assigned even after hover is out.It wor...
asp.net jquery
[9, 5]
5,965,516
5,965,517
FilterExpression problem - multiple conditions
<p>I have an asp.net c# website I'm developing with Visual Web Developer Express Edition 2010. In this website I have a FilterExpression that should filter three criteria: a start date, end date, and keyword search. </p> <p>I am able to get the start and end date filter working by itself, and also the keyword search i...
c# asp.net
[0, 9]
2,708,673
2,708,674
jQuery Ajax form only sends last of several checkbox values
<p>I'm trying to submit a form with jQuery's $.ajax() function and it works, aside from the fact that it only sends the value of the last of several checkboxes, regardless of how many I check. I'd appreciate if someone could tell me what I'm doing wrong. Thanks in advance!</p> <p>The HTML form:</p> <pre><code>&lt;for...
php javascript jquery
[2, 3, 5]
2,477,105
2,477,106
Javascript: Find out which element was clicked without attaching any eventlistener to it?
<p>I am confused on finding an approach to resolve this issue. Consider below html</p> <pre><code>&lt;body&gt; &lt;div id="parent" onclick="myFunc"&gt; &lt;div id="child-a"&gt;&lt;/div&gt; &lt;div id="child-b"&gt;&lt;/div&gt; &lt;div id="child-c"&gt;&lt;/div&gt; &lt;div id="child-d"&gt;&lt;/div&g...
javascript jquery
[3, 5]
4,087,256
4,087,257
Easy modification on a jQuery url
<p>In the following url I want to include also <code>&amp;id=&lt;?php echo $id; ?&gt;</code> How can I do it?</p> <p><code>url: "loadmore.php?lastid=" + $(".postitem:last").attr("id"),</code></p>
javascript jquery
[3, 5]