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
639,272
639,273
Android orientation changing exceptions
<p>I'm having a hard time with the screen orientation in Android. I have an activity which captures a signature after the user draws his signature on the device. And for that activity I am passing a parceable object and I get it in oncreate. When the activity changes the orientation sometimes the activity cannot get th...
java android
[1, 4]
511,957
511,958
JavaScript: max of an array not working
<p>I have this javascript code: <a href="http://jsfiddle.net/MvWV7/5/" rel="nofollow">http://jsfiddle.net/MvWV7/5/</a></p> <p>What I'm trying to achieve is that user should fill the inputs starting with 1. After the user types 1 the next value must be 2 (not nanother number) and so on.</p> <p>I'm trying to fill the i...
javascript jquery
[3, 5]
3,595,112
3,595,113
How compatible is the Java implementation of Android exactly?
<p>Is there any definition that states which standard class libraries are supported on Android?</p> <p>Let's assume we build a jar library and compile it using JavaSE. This library will maybe used by a JavaSE server application and/or on a JSP Server.</p> <p>Are there any means to know beforehand if Androids dex will...
java android
[1, 4]
1,924,114
1,924,115
Which way is true for Exit from app include IF method?
<p>How we can exit from app include if method , like this method but it's not true :</p> <pre><code>if (ClassName.this.finish(); == true) { //code.. } </code></pre>
java android
[1, 4]
409,747
409,748
Loop through all IDs that begin with XXX
<p>Would anyone know how to loop through all ID's that being with name_</p> <p>So, for example, within the markup I may have 50 id's that all start with "name_", the full ID would be like name_2, name_55, name_25, etc.</p> <p>I'd like to loop through all of these getting the number.</p> <p>Not really sure where to b...
javascript jquery
[3, 5]
3,645,076
3,645,077
How to save files(doc,image,etc.,) through Jquery
<p>I am loading Html page to panel, in that html page html file(uploadfile) is there. when ever i upload some file(doc,image,etc.,) and save html button.. i want to save that file to project in SAVED_DOCUMENTS folder, and also that path to database..</p> <pre><code>$('input[type="file"]').each(function () { ...
c# jquery asp.net
[0, 5, 9]
3,467,856
3,467,857
Maximum three checkbox selected and other disable
<p>I'm working on a project and made a grid on admin side in which all projects are shown so that when admin click on three projects they should be shown on index page of that site and makes other check boxes disable after selecting three projects and when to change it remove one of selected check box and then give sel...
php javascript
[2, 3]
2,283,043
2,283,044
Asp.Net(C#) Label Text inline
<pre><code>&lt;asp:TextBox ID="TextBox1" runat="server" Text='&lt;%# DateTime.Now.ToLongDateString() %&gt;'&gt;&lt;/asp:TextBox&gt; </code></pre> <p>ı need textbox text set DateTime.Now.ToLongDateString() how to make ? must inline</p>
c# asp.net
[0, 9]
3,517,284
3,517,285
insert mysql record with table format in a string then echo in a html
<p>Ok, I have this code.</p> <pre><code>$con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("juliver", $con); $result = mysql_query("SELECT * FROM items"); while($row = mysql_fetch_array($result)) { $hi1='&lt;img src="'.$row['name'].'" /&gt;'; $h...
php javascript jquery
[2, 3, 5]
5,370,661
5,370,662
How to get Client timeZoneOffset from server side code
<p>How can I get getTimezoneOffset(); value from the client side in codebehind(aspx.cs file) on Page_load event?</p>
c# asp.net
[0, 9]
5,724,099
5,724,100
Hide div doesn't work?
<p>I have div which it is hidden by default , when the use clicks show link the following javascript method is called:</p> <pre><code>function ChangeControlVisibility(elementID) { var element = $("#" + elementID); if (element.css('display') != 'block' &amp;&amp; element.css('display') != 'table') { el...
asp.net jquery
[9, 5]
4,094,508
4,094,509
how to retain a button1 clicks action with a sleep against another button2 click action without sleep
<p>My problem is I have two labels and two buttons in two different update panel in ASP.Net. The update panels contains two buttons. When buttons are clicked it will update the corresponding label text. The issue is, suppose I gave a delay of 5 seconds in my button1_click() method, when I click button1 and button2 imme...
c# asp.net
[0, 9]
4,105,278
4,105,279
Web page download progress with percentage
<p>i saw that flash website can be develop to show percentage of loading page. when web page is downloading in client machine then a percentage is shown and show much content is downloading in client machine. so i just want to know the same effect can be achieve in asp.net website where we will show the percentage of t...
asp.net jquery
[9, 5]
4,124,975
4,124,976
Select Form Array Value Using JQuery
<p>I have a form that is being generated on the fly in PHP using the below (<code>$theFeatures</code> is a multidimensional array):</p> <pre><code>&lt;?php foreach($theFeatures as $theKey =&gt; $theValues) { ?&gt; &lt;input type="text" value="&lt;?php echo $theValues['Key']; ?&gt;" name="theFeatures[&lt;?php echo...
php javascript jquery
[2, 3, 5]
4,916,007
4,916,008
jQuery - Open Links In New Tab form submit
<p>This method basically open a new web page in new window where the Url comes in <strong>e.result</strong> parameter , Here I want to open the same window in New Tab not in new window.</p> <pre><code> $("#formMain").attr("action", e.result); $("#formMain").attr("method", "post"); $("#for...
javascript jquery asp.net
[3, 5, 9]
1,903,226
1,903,227
How do I sort a GridView?
<p>ASP.NET <code>GridView</code> sorting: I want to change the sorting direction from ascending to descending when I click the column name. But by default, sorting direction always showing ascending. Am I missing any property setting to toggle sorting direction? Any help greatly appreciated. Thanks.</p> <pre><code>pro...
c# asp.net
[0, 9]
3,730,602
3,730,603
Java: increase the size of Edittextfield
<p>trying to increase the size of the edittextfield in java..how can i do that. Below is my code</p> <pre><code>final EditText address = new EditText(activity); if (data.getFavoriteAddress() != null &amp;&amp; !data.getFavoriteAddress().trim().equals("")) { a...
java android
[1, 4]
3,641,237
3,641,238
Question regarding adding and overriding functions in existing plugin
<p>Below is my my plugin:</p> <pre><code>(function($) { $.fn.myPlugin = function(options) { var opt = $.extend({}, $.fn.myPlugin.defaults, options); this.foo() { alert('test'); } } $.fn.myPlugin.defaults = { }; }); </code></pre> <p>Now I want to extend it...
javascript jquery
[3, 5]
462,233
462,234
what are the pros and cons of declare and use method local class in java?
<p>i have seen many developers using <code>method local class</code> (i don't mean anonymous class) in their code.</p> <p>for example (in android):</p> <pre><code>private void myFunc() { class Worker extends AsyncTask&lt;Void, Void, Void&gt; {...} new Worker(); } </code></pre> <p>what are the pros and ...
java android
[1, 4]
1,459,775
1,459,776
Access JavaScript variable from HTML element attribute
<p>Is there a way to access a JavaScript variable from an attribute from an HTML element?</p> <p>For example:</p> <pre><code>&lt;a href="#" id="id1" my-attr="test"&gt;click here&lt;/a&gt; &lt;script type="text/javascript"&gt; var test="hello world!"; $("#id1").click(function() { alert($(this).attr('my-attr')) }); &l...
javascript jquery
[3, 5]
4,218,071
4,218,072
Can't call page method from JQuery?
<p>I have a page called AddNews.aspx and in codebehind a web method called AddNews(Parameters)..</p> <p>AddNews.aspx page is inherited from a master page.. So i used contentplaceholder.</p> <p>I have a button..It's id is btnSave.</p> <p>Here is jquery code:</p> <pre><code>$(function() { $("[id$='_btnSave']").click...
asp.net jquery
[9, 5]
39,471
39,472
How to display a message on the first press of a button?
<p>I need to display the message with first time the button is pressed only. If I press the button again, it will redirect me. How to do in javascript? </p> <p>I have submit button, first time press button it will show the message. Pressing the same button the next time should NEVER SHOW the message, it should forward...
javascript jquery
[3, 5]
4,232,358
4,232,359
get value of an attribute of the clicked element
<pre><code>&lt;ul id='langs'&gt; &lt;li data-val='en'&gt;english&lt;/li&gt; &lt;li data-val='fr'&gt;francais&lt;/li&gt; &lt;li data-val='it'&gt;italiano&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>when the user clicks on any of these <code>&lt;li&gt;</code> I want to <code>alert()</code> it's data-val attribute v...
javascript jquery
[3, 5]
448,244
448,245
on does ot handle event like live in jQuery
<p>I have a page that at run time I add some control based on situations.</p> <p>I write this code for <code>mouseover</code> event for <code>TDs</code> in my table:</p> <pre><code>$(".TableEntry .EntryCell").live("mouseover", function () { var parent = $(this).parent(); parent.css("background-color", "C4F7C3"); }); ...
javascript jquery asp.net
[3, 5, 9]
1,538,173
1,538,174
How to dynamically set the maxlength property of bound textbox from database field length
<p>I have an asp.net 4.0 c# web application. I am using listview and formview controls with templates on my forms. I am trying to control the maxlength property of my bound textboxes without hard coding the field sizes into my aspx pages. I would like to when I first load the application fill some kind of local object ...
c# asp.net
[0, 9]
5,787,682
5,787,683
Incorrect syntax near ''. Unclosed quotation mark after the character string ' '
<p>I'm just wondering if someone could point me in the right direction here, I think i've been looking at it for too long so can't see the mistake.</p> <p>The following code:</p> <pre><code>SqlCommand updateStyle = new SqlCommand("UPDATE [Lorenz].[dbo].[Layout] SET [bgColour] = '" + bgColour + "' , [textColour] = '" ...
c# asp.net
[0, 9]
5,861,319
5,861,320
window.setInterval - more than expected
<p>Could you guys explain more deeply window.setInterval functionality? I've been asked myself several questions while running that snippet:</p> <pre><code>var i = 0; window.setInterval(function(){ $('#show').html($('.questions :eq('+i+')')); }, 1000); </code></pre> <p>So, i think that window.setInterval is aw...
javascript jquery
[3, 5]
3,989,741
3,989,742
schedule two tasks subsequently in android
<p>i want to perform 2 tasks. First should repeat once in every 10min Second should repeat every minute. Example Opening a website in first task Opening another website in second task. Thanx in advance</p>
java android
[1, 4]
4,980,468
4,980,469
Jquery fadein after an update panel has ran
<p>I'm having trouble figuring out how to fade in some divs that I fade out when clicking on a checkbox. It brings back the new results but they pop up straight away. This is the code I am using to fade out.</p> <p>any ideas how I can run the same thing but fadein after after an update panel?</p> <pre><code> $(doc...
jquery asp.net
[5, 9]
4,240,487
4,240,488
Easy to understand and follow books on jQuery and javascript?
<p>I would like to know your opinion of a good jQuery and JavaScript book. There are just too many of them [when I try to search]. Please suggest some really good books which I could buy.</p> <p>My current knowledge on these technologies - Close to Zero.</p> <p>Thanks in advance, Rahul</p>
javascript jquery
[3, 5]
5,013,240
5,013,241
how to handle this ThreadAbort Exception..?
<p>i got this exception when i done the code given below..</p> <p>"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack." </p> <p>--code--</p> <pre><code>try { if (retVal == 0) Response.Redirect("Success.aspx"); } catch(Exception error) { Response....
c# asp.net
[0, 9]
4,873,865
4,873,866
Best way to save a little amount of data
<p>I'm currently developing an Android application where OAuth will be in use. In order to use OAuth, I need to be able to save the consumer's private key to access the protected resources. My question is, where would I want to save this tiny piece of data? I know that for most Android applications, data would be store...
java android
[1, 4]
5,058,315
5,058,316
Set php priority on execution
<p>I have a problem, in php form I have two functions calls, one php function and another javascript one. These functions are called on a submit form. The php function is called on form submit and the javascript one is called "onclick" when the submit button is pressed.</p> <p>How could I reach that javascript functio...
php javascript
[2, 3]
4,835,521
4,835,522
Find the clicked li number
<p>I have a standard list...</p> <pre><code> &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;blah 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;blah 2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;blah 3&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;blah 4&lt;/a...
javascript jquery
[3, 5]
3,695,306
3,695,307
Hover acting weird in IE
<p>Have a look at this HTML code:</p> <pre><code>&lt;div class="overlay"&gt; &lt;a href="#"&gt;1&lt;/a&gt; &lt;a href="#"&gt;1&lt;/a&gt; &lt;a href="#"&gt;1&lt;/a&gt; &lt;a href="#"&gt;1&lt;/a&gt; &lt;a href="#"&gt;1&lt;/a&gt; &lt;/div&gt; </code></pre> <p>and this jQuery code:</p> <pre><code>$('...
javascript jquery
[3, 5]
1,035,888
1,035,889
Equivalent to PHP's include in C#
<p>What is the equivalent command to PHP's include() in C# ? </p> <p>For example, PHP's include is used as so : include("ex.php");</p> <p>Can I do the same in C#?</p>
c# php
[0, 2]
3,982,297
3,982,298
Java to C# code converter
<p>Are there any converters available that converts Java code to C#?</p> <p>I need to convert the below code into C#</p> <pre><code>String token = new String(""); URL url1 =new URL( "http", domain, Integer.valueOf(portnum), "/Workplace/setCredentials?op=getUserToken&amp;userId="+username+"&amp;password="+password +"...
c# java
[0, 1]
4,851,545
4,851,546
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]
3,974,592
3,974,593
ExtJs integration with asp.net : examples
<p>Pls share any known good examples of ExtJS framework with asp.net</p>
asp.net javascript
[9, 3]
4,133,665
4,133,666
Jquery - Truncate Text by Line (not by chart-count)
<p>I need a Jquery script to truncate a text paragraph by line (not by chart count).</p> <p>I would like to achieve an evenly truncated text-block. It should have a "more" and "less" link to expand and shorten the text paragraph. My text paragraph is wrapped in a div with a class, like this:</p> <pre><code>&lt;div cl...
javascript jquery
[3, 5]
1,207,776
1,207,777
What could C# learn from Java?
<p>I've been a "Microsoft developer" ever since I started programming... I started out by learning QBasic then ASP &amp; Visual Basic and finally I moved on to learn VB.NET, ASP.NET and C# which is now my primary language. Still I've always wanted to learn something like Java or C++ to see how what the "other side" is ...
c# java
[0, 1]
327,799
327,800
Select first word in a container
<p>maybe this is easy or I overlooked it</p> <p>but if i have:</p> <pre><code>&lt;div class='test'&gt;Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.&lt;/div&gt; </code></pre> <p>how can i select the first word of it? [in this example 'Fusce']</p>
javascript jquery
[3, 5]
3,857,815
3,857,816
JSON check if no data is available
<p>I am using this code to get data from json.</p> <pre><code>$.each(data.id, function(index, value){ output += '&lt;li&gt;'+value.title+'&lt;/li&gt;'; } $('#listview').html(output).listview('refresh'); </code></pre> <p>Sometimes there are no records to display.</p> <p>How can I know if there are no records and d...
javascript jquery
[3, 5]
5,716,852
5,716,853
how to get data from string in javascript
<p>I have such string <code>test1/test2/test3/test4/test5</code> How can I get those tests in separate variables or in array or smth using javascript or jquery ?</p>
javascript jquery
[3, 5]
5,335,330
5,335,331
Get independent HTML from $.ajax()
<p>Assume that in</p> <pre><code>$.ajax({ url: 'page1.html', data: {}, success: function (data) { $(data) //return an array of nodes }, dataType: 'html' }); </code></pre> <p><code>$(data)</code> returns an array of nodes:</p> <pre><code>[&lt;div id="a"&gt;, &lt;div id="b"&gt;, //3 elem...
javascript jquery
[3, 5]
3,774,430
3,774,431
How to check the value given is a positive or negative integer?
<p>Lets say i have the value 10 assigned to a variable;</p> <pre><code>var values = 10; </code></pre> <p>and i want to run a specific function if the value is a positive</p> <pre><code>if(values = +integer){ //do something with positive } else { //do something with negative values } </code></pre> <p>How...
javascript jquery
[3, 5]
3,258,249
3,258,250
Keep .click() function after partial data update
<p>I'm using a table for a coordinate system, and with a function in each td element to update the field value. </p> <pre><code>[ ][ ][X][ ] [ ][X][X][X] [X][ ][ ][ ] </code></pre> <p>When I click an empty element, I want it to set the value to "X" in my database, by getting new partial data from my rails app (and se...
javascript jquery
[3, 5]
2,595,044
2,595,045
The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?)
<p>Using VS2012 , asp/c#</p> <ul> <li>Created New Website empty project</li> <li>created new asp file</li> <li><p>created new c# class file, dialog comes up saying I need to have this class in App_Code folder, I said yes ok.</p> <pre><code>Website Default.aspx Default.aspx.cs App_Code Class1.cs </code></pre><...
c# asp.net
[0, 9]
423,105
423,106
Is is possible to call a function after window.location has loaded new URL?
<p>I'd like to be able to call a jquery function once window.location has completed loading a URL. Is this possible? I can't seem to find anything online about this.</p> <p>for instance:</p> <pre><code>if(parseInt(msg.status)==1) { window.location=msg.txt; alert("This URL has finished loading") } </code></p...
javascript jquery
[3, 5]
4,126,486
4,126,487
Detect if new window if opend using javascript
<p>Creating a small chat application where user can start chat by clicking on chat button next to user's profile.</p> <p>Once anyone will click on chat button a popup window will appear. Now I want to detect dynamically if this popus is still open or closed. </p> <p>If popup is opened= Display new message alert in no...
javascript jquery
[3, 5]
5,499,221
5,499,222
Store a bunch of inputs on page into a javascript array?
<p>I have a bunch of inputs on a page, ie:</p> <pre><code>&lt;input name="user[name]" /&gt; &lt;input name="user[phone]" /&gt; &lt;input name="user[email]" /&gt; </code></pre> <p>And what I'd like to do, is on submitting the form is grab all those variables of the user array and store them in a javascript array.</p> ...
javascript jquery
[3, 5]
4,014,898
4,014,899
I Need An App For My Ecommerse WebSite - Looking For Background Info
<p>I have an eCommerce website that serves a small business. Customers are asking for a mobile app. I built the website myself (html, javascript, VB.net, ASP.net) and I'm constantly tweaking it as we are a new concept and sort of feeling our way forward. I'm not really a programmer - I just taught myself what I need...
android iphone
[4, 8]
4,799,292
4,799,293
Android TextView
<p>Hi I'm new to Android Programming and I'm trying to make a simple program that changes the text by clicking a button. Here's my code:</p> <pre><code>public class HelloAndroidActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceS...
java android
[1, 4]
2,401,803
2,401,804
javascript negative number in pull down
<p>When I click "EDIT" link on a specific user it is suppose to tell me how many vacation days he/she has left... the Edit link is like this:</p> <pre><code>print "&lt;a href=\"javascript:editUser('$data[uid]','$data[vacationdays]')\"&gt;Edit&lt;/a&gt;\n"; </code></pre> <p>So when i click EDIT on ADMIN account: javas...
php javascript
[2, 3]
3,743,610
3,743,611
is there a difference between a struct in c++ and a struct in c#?
<p>is there a difference between a struct in c++ and a struct in c#?</p>
c# c++
[0, 6]
1,809,347
1,809,348
rename javascript object in order to use a php array
<p>I never used javascript, but I need it for my project. I would like to use a php array which is called abc[] inside a javascript function.</p> <p>Currently the working javascript code is:</p> <pre><code>if(document.form1.checkbox[i].checked) </code></pre> <p>I would like to use the abc[] array instead of checkbox...
php javascript
[2, 3]
3,089,069
3,089,070
Porting concurrent java classes to c#
<p>I'am trying to port high_scale_lib by Cliff Click<br> <a href="http://sourceforge.net/projects/high-scale-lib/" rel="nofollow">http://sourceforge.net/projects/high-scale-lib/</a><br> to c# but there is some java classes i can't find c# equivalent for it like </p> <pre><code>AtomicLongFieldUpdater </code></pre> <...
c# java
[0, 1]
3,966,431
3,966,432
Android - to listen the phone state
<p>In my application, I need to set a phoneStateListener so that when the connectivity is off,I am able to cache the required updations in a hashtable.I know how to do that using phoneStateListener in a single activity.But can you suggest how can I do it an efficient way other than repeating the same in all activities?...
java android
[1, 4]
5,611,218
5,611,219
Server side method call by jquery error
<p>this way i am calling my server side code....my code as follows.</p> <pre><code>$(function () { $('#btnSubmit').click(function () { $.ajax({ type: "GET", url: "MyPage.aspx?id=201/GetData", data: {}, contentType: "application/json; charset=utf-8", ...
jquery asp.net
[5, 9]
1,645,471
1,645,472
JQuery Novice To Ninja
<p>Does anyone know were to get the source code sample files for the book Jquery Novice to Ninja</p>
javascript jquery
[3, 5]
4,651,272
4,651,273
How do I use RegisterClientScriptBlock to register JavaScript?
<p>ASP.NET 2.0 provides the <code>ClientScript.RegisterClientScriptBlock()</code> method for registering JavaScript in an ASP.NET Page.</p> <p>The issue I'm having is passing the script when it's located in another directory. Specifically, the following syntax does not work:</p> <pre><code>ClientScript.RegisterClien...
javascript asp.net
[3, 9]
4,154,302
4,154,303
update query slider position based on value from textbox
<p>how can i update slider's position if slider's value differs from value from a textbox ?</p> <pre><code>$("#slider").slider({ max: 30000, min: 1000, step: 1000, range: true, animate: true, values: [1000, 15000], slide: function(even, ui) { $("#edit-field-price-value-min").val(ui.values[0]); $("#edit-field-price...
php javascript jquery
[2, 3, 5]
4,679,654
4,679,655
ASP.NET: Global hook in Response?
<p>Is there any way to intercept all ASPX Page Responses? I'd like to intercept all the pages served and inject a small JavaScript at the end of each. </p>
asp.net javascript
[9, 3]
5,025,671
5,025,672
jquery cant get drag item id in Sortable
<p>i am having problem in getting the id of the dragged item in "sortable", can you please help me out in this. </p> <pre><code>&lt;script&gt; $(document).ready(function(){ $("#div1,#div2,#div3").sortable({ revert: true, accept: '.draggable', connectWith: [".sortable_div"], receive:...
javascript jquery
[3, 5]
566,687
566,688
insert checkbox before link?
<p>html</p> <pre><code>&lt;ul class="navmore"&gt; &lt;li&gt;&lt;a href="link"&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="link"&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>jquery in footer</p> <pre><code>$(".navmore li a").each(function(){ var $this = $(this); $('&lt;input type="chec...
javascript jquery
[3, 5]
4,804,404
4,804,405
find sister element
<pre><code>&lt;div class="videoItem"&gt; &lt;div class="innerVideoItem"&gt; &lt;a&gt;&lt;div class="overlayBg"&gt;&lt;/div&gt;&lt;/a&gt; &lt;a&gt;&lt;img class="overlayPlay"&gt;&lt;img&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;script&gt; $(".overlayPlay").hover(function(){ // H...
javascript jquery
[3, 5]
194,112
194,113
Advice needed from experts about ASP.NET UserControl usage
<p>I need some advice here. I have a bunch of 10 products and every product has <strong>atleast 200 different pages</strong> associated with it, with varying details about the product. That makes around 2000 pages. </p> <p>The structure of each page is as follows:</p> <p>**Product Name<br> Details About the product ...
c# asp.net
[0, 9]
1,731,845
1,731,846
setTimeOut is not waiting for proper delay time
<p>I have two buttons play and stop. When I click play I want the images to run like a slideshow. I am using <code>setTimeout()</code> and having it wait 5 seconds before running.</p> <p>When play is clicked, the code runs fine , waiting for 5 seconds and then displaying the next image, but when I click stop , and the...
javascript jquery
[3, 5]
756,832
756,833
How to rewrite the Jquery dynamic selection box script for 5 selection boxes?
<p>I am trying to create dynamic selection boxes with Jquery.</p> <p>Due to requirements, I have 5 selection boxes with similar Class contents e.g. Class A, Class B, Class C, etc. I have another 5 Student selection boxes besides each of the Class selection boxes. </p> <p>So the idea is that when I select a class sele...
javascript jquery
[3, 5]
5,549,230
5,549,231
class of a DOM and jQUery
<p>I sometimes see that there is something like this:</p> <pre><code>&lt;input name="star2" type="radio" class="star 1"/&gt; &lt;input name="star2" type="radio" class="star 2"/&gt; </code></pre> <p>is it possible in jQuery to let one class to handle these two class? Because basically they have the same parent class...
javascript jquery
[3, 5]
1,456,209
1,456,210
How to get the refreshed database on the same page before starting with the comparison?
<p>I am saving/updating data through a page and on the same submit, I need to compare the updated data with some other data. But it compares the new data only after the page is refreshed once. If not, it compares with the old data. How to get the refreshed database on the same page before starting with the comparison ?...
php javascript
[2, 3]
2,938,044
2,938,045
Combine js functions for input and textarea elements
<p>So I need to add tooltips for some input fields and textareas. Currently, I have it setup like this:</p> <pre><code>$(document).ready(function(){ $('input').focus(function(){ var p = $(this); var position = p.position(); var input_name = $(this).attr('id'); var name = '#'+input_name+...
javascript jquery
[3, 5]
4,132,585
4,132,586
JQuery update if at bottom of DIV
<p>I have this function, which in itself works fine, however it scrolls down whenever i scroll up which is not intended. I want it to run the function ONLY if the scrollbar of the div (overflow) is at the bottom, which makes it possible to scroll up without it scrolling back down preventing the view of older messages.<...
javascript jquery
[3, 5]
1,377,084
1,377,085
Why is this animate marginTop function is not working like I expect?
<p>Still trying to figure this out from yesterday.</p> <p>I am trying to scroll an element up 50 pixels at a time by animating it's "marginTop" property. Problem is, on each click of my trigger, the element "resets" and animates from 0. Can anyone explain this confusing behaviour to me?</p> <p>Look at my alerts her...
javascript jquery
[3, 5]
2,469,610
2,469,611
JQuery - What method can I use to get this code to run without clicking
<p>Ok this example code contains a button. Forget about the button, it does not exist, cannot be referenced and cannot be edited.</p> <p>The buttons dont exist in this example - they merely represent another process. However the fields still need to be updated from values. Sorry I couldn't explain it better. </p> <p>...
javascript jquery
[3, 5]
5,763,722
5,763,723
How to Set timer function
<p>I am doing online Exam Management, I have set a time duration for an exam to 5 min.</p> <p>When student attend this test, timer starts decreasing.</p> <p>I made this timer using javascript.</p> <p>What the problem is if the student refresh the page timer starts from first. How can I make the time to be static if ...
php javascript
[2, 3]
4,649,433
4,649,434
countdown timer in js
<p>I am javascript impaired - I need to build a countdown script that counts down 45 minutes and appends the remaining time into the title bar or the users browser, as well as when the time is up will operate a function like an alert message.</p> <p>I wish I had code to start with.</p>
javascript jquery
[3, 5]
1,322,469
1,322,470
jQuery - Trying to append each new option to select
<p>I'm trying to append every new <code>&lt;option&gt;</code> to the <code>select</code> field, but I seem to be getting multiples after the first submission. </p> <p>Any help is appreciated.</p> <pre><code>&lt;input id="name" placeholder="name"&gt; &lt;input id="phone" placeholder="phone"&gt; &lt;button id="submit"&...
javascript jquery
[3, 5]
6,019,001
6,019,002
File upload using jquery not working
<p>I'm trying to make a really simple file upload using jQuery, without having to download 3rd party plugin / scripts.</p> <p>Here is my code:</p> <p>HTML </p> <pre><code> &lt;form enctype="multipart/form-data" action="" method="POST" name="form"&gt; &lt;input type="hidden" name="MAX_FILE_SIZE" value="1000000"...
php jquery
[2, 5]
5,471,699
5,471,700
Trigger Ajax on first click only
<p>I want to call ajax only on the first click to save bandwith coz the data is huge. Below is my code</p> <pre><code>$('.id-list').click(function() { $.ajax({ type: "POST", url: "timesheet.php?action=idlist", async: false, success: function(rdata) { $('.id-list').removeClass('id-list') //...
javascript jquery
[3, 5]
612,489
612,490
jQuery : Resizing the layouts
<p>I want re-sizable feature like <code>jsFiddle</code> : <a href="http://jsfiddle.net/" rel="nofollow">link.</a> If i explain in my own words there are four layouts<br> <code>[1. HTML, 2. javascript, 3. CSS &amp; 4.Result]</code> and we can re-size the layout inwards &amp; outwards. I have been tried to make resi...
javascript jquery
[3, 5]
1,888,551
1,888,552
Need to implement a grid in android
<p>I need to implement a grid that will show the position of some physical objects. I want to interact with the objects: I want to be able to send commands or request their "health" status (the objects happen to be sensor nodes). <br><br>The size of the grid is given by the user but is always square (<code>width=length...
java android
[1, 4]
2,073,264
2,073,265
keep user input text in inputbox after submit
<pre><code>&lt;input name="KeywordBox" class="BasicSearchInputBox" type="text" value="Keyword Search..."/&gt; &lt;div class="searchBtnHolder"&gt;&lt;a class="searchButton" href="#" type="submit"&gt;&lt;span&gt;Search&lt;/span&gt;&lt;/a&gt;&lt;/div&gt; </code></pre> <p>I need to keep the user input text in the inputbox...
javascript jquery
[3, 5]
1,959,086
1,959,087
what's the jquery plugin that inserts text in a textbox, and it disappears upon focus?
<p>what's the jquery plugin that inserts text in a textbox, and it disappears upon focus?</p>
javascript jquery
[3, 5]
1,450,799
1,450,800
Python function return to jQuery var
<p>I've a python script that returns something. In a html page, I use jQuery to send a GET request to this script (with $.get()). I want the "return" of python script in a jQuery/javascript var. Is it possible with jQuery function? Without use JSON or other.</p>
jquery python
[5, 7]
1,542,634
1,542,635
Jquery next adjacent selector with $(this)
<p>How could i use the adjacent selector "+" with the $(this). </p> <p>I would need a help with the commented lines with //this doesnt work:</p> <pre><code>$(".ExpandCollapse").click(function () { if ($(this).nextUntil('.Collapsable').is(':visible')) { //this doesnt work ...
javascript jquery
[3, 5]
2,655,456
2,655,457
Dictionary object accessed by concurrent users in Asp.Net
<p>In Asp.Net page i have a static dictionary object where values can be added and retrieved, When 100's of concurrent users access the page is there any chance my dictionary object may get locked / throw error ?</p> <p>User can 1) Add new value if it does not exist 2) Retrieve existing value. They cannot modify / d...
c# asp.net
[0, 9]
5,465,895
5,465,896
how to show jQuery Model dialog box through Asp.Net ajax UpdateProgress
<p>How can i show the jQuery <em>model dialogBox</em> in the <em>ProgressTemplate</em> of UpdateProgress (Asp.net Ajax) I have downloaded the latest jquery. Have included it in file. I want to know what else need to be done. I want a fade effect in the entire screen with the dialog showing an animated .gif image...
jquery asp.net
[5, 9]
5,713,550
5,713,551
Passing a method from another class
<p>I want to call a method from one class to another, don't know if that's possible without extends the class that contains the method. I've tried to import the package, that way I thought the method should be allow to use since it's a public method but that was not sucesfull..</p> <p>tried to use this <a href="http:/...
java android
[1, 4]
861,757
861,758
if(pause == null) { doesn't work
<p>I use <code>if(pause == null)</code> to do something when <code>pause</code> is <code>null</code>. But I get the error</p> <p><code>the operator == is undefined for the argument type(s) long,null</code> </p> <p>Here is the code,</p> <pre><code>public class Timer extends CountDownTimer { long pause = (Long) nu...
java android
[1, 4]
5,867,102
5,867,103
Load another asp.net page into current page
<p>Using ASP.NET with C#, I would like to load the content of another page into my current page. </p> <p>I have a main div <code>id="maindiv"</code> on one page with a header above it. The header contains clickable links that route to the same url with a get variable like <code>http://www.mainpage.com&amp;page=nextpag...
c# asp.net
[0, 9]
3,627,943
3,627,944
Clearing message jQuery delay setTimeout
<p>How could I clear the field message after a couple seconds using delay jQuery function instead of setTimeout? The code below will clear value immediately.</p> <pre><code> var $this = $(this), mid = $this.find("#emid"), contents = $this.find("#equestion"); if(contents.length&lt;30...
javascript jquery
[3, 5]
1,254,460
1,254,461
Substitute for the .delay() function for jQuery 1.3 and making a jQuery loop?
<p>Is there a substitute for the .delay() function in jQuery 1.3? I know in jQuery 1.4 you can simply use the .delay() function to delay a function from taking place for X amount of seconds but is there someway I can do the same thing but in 1.3?</p> <p>Also I need to make a looped function in jQuery so after the func...
javascript jquery
[3, 5]
1,655,424
1,655,425
Calculating the time between two clicks in Javascript
<p>I want to calculate the time between two clicks of an attribute with javascript but I don't know how.</p> <p>For example;</p> <pre><code>&lt;a href="#"&gt;click here&lt;/a&gt; </code></pre> <p>if the user clicks more than once -let's say in 5 seconds- I want to display an alert. I'm using jQuery if that helps. I ...
javascript jquery
[3, 5]
5,896,798
5,896,799
Javascript file - change source at runtime from web.config
<p>I have this in my code:</p> <pre><code>&lt;script type="text/javascript" src="path?key=1234567890"&gt; &lt;/script&gt; </code></pre> <p>I added this in web.config:</p> <pre><code>&lt;appSettings&gt; &lt;add key="key" value="1234567890"/&gt; </code></pre> <p></p> <p>How to implement it in the above code?</...
javascript asp.net
[3, 9]
1,328,665
1,328,666
jQuery Ajax call No element found issue
<p>I am getting a javascript error on firefox 3.5, when trying to call an ajax method.</p> <p>Please find the error below:</p> <pre><code>XML Parsing Error: no element found Location: moz-nullprincipal:{1a2c8133-f48f-4707-90f3-1a2b2f2d62e2} Line Number 1, Column 1: ^ </code></pre> <p>this is my javascript function:...
javascript jquery
[3, 5]
3,942,571
3,942,572
Script files returning 404 Error
<p>I'm using ASP.Net and whenever I create a script file or try to include a script file like jQuery they aren't working. I am doing just a regular localhost server and none of the scripts are working. Upon further examination using firebug I look at whats being referenced in those scripts and it shows html code for a ...
asp.net javascript
[9, 3]
2,353,846
2,353,847
Communication between to sessions wih example
<p>In asp.net application. Suppose there are two sessions are available If one session Request sends to server then How server will response to both sessions means (first ans second both session)? Like chatting application. </p>
c# asp.net
[0, 9]
5,113,600
5,113,601
Iterate through a root directory and get all files in it?
<p>hi i am creating a application and i want to know the each and every file which is present under that one folder .i.e. how can i iterate through a root directory and get the each files visit at list once.</p>
c# asp.net
[0, 9]
6,029,302
6,029,303
Jquery chaining a click event does not trigger
<p>My hover events are triggered, if I removed the hovered events, click still does not get triggered. What could be the problem?</p> <pre><code>items = '&lt;li&gt;&lt;/li&gt;';//some html content list.html(items); list.show().children(). hover(function () { alert('hover'); }, function () { a...
javascript jquery
[3, 5]