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
641,556
641,557
how do I subtract one week from this date in jquery?
<p>this is my code</p> <pre><code>var myDate = new Date(); todaysDate = ((myDate.getDate()) + '/' + (myDate.getMonth()) + '/' + (myDate.getFullYear())); $('#txtEndDate').val(todaysDate); </code></pre> <p>I need txtEndDate's value = today's date - one week</p>
javascript jquery
[3, 5]
1,702,561
1,702,562
using jquery FileTree to access a different server?
<p>I am currently attempting to access files on a different server using <a href="http://abeautifulsite.net/blog/2008/03/jquery-file-tree/http://abeautifulsite.net/blog/2008/03/jquery-file-tree/" rel="nofollow">file tree.</a> I was wondering if this was possible? It's using PHP script to pull the data. I am able to get...
php javascript jquery
[2, 3, 5]
963,654
963,655
Adding Value into an Input Field
<p>I am working on an iPhone Web App using HTML &amp; CSS. I have currently got the JavaScript/HTML5 Geolocation picking up my current location and showing me it on a Google Map using Lat &amp; Long values. I also want to add these Lat &amp; Long Values into the 'address' text field on the page so I can submit the det...
javascript jquery
[3, 5]
4,526,690
4,526,691
Why is jQuery.ajax() Calling my Objects Functions?
<p>I'm having an issue where jQuery.ajax() is calling my data objects functions. For example, I have an object structure similar to the following:</p> <pre><code>var TestFactory = (function () { var _id; var _attributes; return { createObject: function (objectId) { var value = null; ...
javascript jquery
[3, 5]
614,600
614,601
Call Javascript from code behind function in asp.net
<p>How to Call Javascript function from code behind after button click event;</p> <pre><code> string popupScript = "&lt;script language='javascript'&gt;" + "alert('hai');" + "&lt;/script&gt;"; ClientScript.RegisterStartupScript(Page.GetType(), "script", ...
c# javascript asp.net
[0, 3, 9]
1,104,145
1,104,146
Android App Development
<p>I am a Java beginner , I want to develop Android app , what all is essential to learn in Java before I start developing ?</p>
java android
[1, 4]
2,408,871
2,408,872
jquery count to number
<p>I have a piece of code that counts from 0 to a specified number with a specified delay.</p> <p>The problem is that it adds by 1 and I want it to add by 0.01</p> <p>How to do it? the code is as follows:</p> <pre><code> &lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt;body{font:11px verdana;color:#55...
javascript jquery
[3, 5]
5,216,167
5,216,168
In jQuery, how to test whether an element is the first of many elements of same class?
<p>I have 3 div's:</p> <pre><code>&lt;div class='squares' id='div1'&gt;&lt;/div&gt; &lt;div class='squares' id='div2'&gt;&lt;/div&gt; &lt;div class='squares' id='div3'&gt;&lt;/div&gt; </code></pre> <p>With jQuery, I would like to apply a css property (a border-right) to all div's, except the first one.</p> <p>What i...
javascript jquery
[3, 5]
5,747,212
5,747,213
How to change a DateTime Format
<pre><code>List&lt;DateTime&gt; datetimerange = new List&lt;DateTime&gt;(); DateTime StartDate = Convert.ToDateTime(txtDate.Text); DateTime EndDate = Convert.ToDateTime(TextBox1.Text); foreach (DateTime day in EachDay(StartDate, EndDate)) { datetimerange.Add(day.Date); Session["SelectedDatess"] = datetimeran...
c# asp.net
[0, 9]
1,452,017
1,452,018
Best way to package a class for use in another app?
<p>I've written an Android app wich various abstract classes that perform useful functions. These functions could be leveraged in other apps.</p> <p>I want to share a class module with another programmer, but I don't want to share the source code. I would like to share a .class file but I'm not sure how to do the foll...
java android
[1, 4]
1,753,521
1,753,522
the code for retrieving an image url from gridview
<p>hallo</p> <p>I have a gridview with the image displayed in the gridview(the image was uploaded and the path posted to the database) and by setting the DataImageUrlField of the gridview to the field in the database that contains the image path I can display the picture.</p> <p>What code can I use to retrieve this i...
c# asp.net
[0, 9]
3,884,827
3,884,828
onkeyup key-value in Javascript
<p>I have a standard textbox and I've got jQuery on the page. I want to act when the user types a space into the textbox, I am however unsure of how to do this.</p> <p>Can anybody give me a hand with this please?</p>
javascript jquery
[3, 5]
2,601,867
2,601,868
jquery smooth scroll to an anchor?
<p>is there any way to scroll down to an anchor link with jquery?</p> <p>like: </p> <pre><code>$(document).ready(function(){ $("#gotomyanchor").click(function(){ $.scrollSmoothTo($("#myanchor")); }); }); </code></pre> <p>?</p>
javascript jquery
[3, 5]
1,285,922
1,285,923
how to test whether grid is empty or not in jquery
<p>i have a grid and adding elements to is in jquery like below:</p> <pre><code>$('#MyGrid tbody').append('&lt;tr&gt;&lt;td&gt;&lt;a href="#" &gt;' + htmlString.ID+ '&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;'); </code></pre> <p>before that i need to test whether this MYgrid is empty or not. how to do that with jquery.</p> <p...
javascript jquery
[3, 5]
2,887,028
2,887,029
Jquery- Checkbox selection should lead to popup form
<p>I have a list of elements which are displated in the tabular form as show below . These are being fetched from a rails backend.</p> <p><img src="http://i.stack.imgur.com/mNRKK.png" alt="enter image description here"></p> <p>Now i want to be able to set up remainders based on the selection of each check list. If i ...
javascript jquery
[3, 5]
5,726,618
5,726,619
How to Loop over ten questions
<p>I'm in the process of creating a simple maths game. I'm trying to create a loop that will display ten questions, one at a time, to a textview. The user will enter the answer into an edittext, press a button, and then question will be validated and the next question in the series of ten will appear in the textview.</...
java android
[1, 4]
5,515,062
5,515,063
manipulate css on multiple spans with javascript
<p>I am trying to manipulate spans based on what is contained in them. on my company's ecommerce site there are two spans that contain the price of an item and the sale price of an item. not all items have sale prices. problem is the original price span is shown with the text-decoration set to line-though regardless of...
javascript jquery
[3, 5]
2,752,512
2,752,513
Jquery: get all html source of a page but excluding some #ids
<p>I'm trying to use .html() or .contents() but i have strange behaviours</p> <p>I basically need to get the entire dom of the page, exclude some elements (ex. #first, #second) and the pass it as a string, not a dom anymore...</p> <p>is it possible?</p>
javascript jquery
[3, 5]
3,982,727
3,982,728
Android byte array batches
<p>I am sending image through Bluetooth pro-grammatically. When i send image as Byte array at the sending side the byte array length is = 83402 and at the receiving side i am getting byte bacthes of 1024.</p> <p>I want to combine these 1024 batches into single byte array so that i again convert it as an image.</p> <p...
java android
[1, 4]
1,964,392
1,964,393
Closest previous element with certain ID (with prev())?
<p>I have a big div wit a lot of smaller divs within it. Say,</p> <pre><code> &lt;div id="parent"&gt; &lt;div id="child1"&gt; &lt;/div&gt; &lt;div id="child1"&gt; &lt;/div&gt; &lt;div id="child2"&gt; &lt;/div&gt; &lt;div id="child1"&gt; &lt;/div&gt; &lt;div id="child1"&gt; &lt;/div&gt; &lt;/div&gt; </code...
javascript jquery
[3, 5]
1,244,212
1,244,213
jQuery shortening this query down?
<p>Is it possible to shorten this query's down into one at all?</p> <pre><code>$('p:contains(Tel:)').html(function() { return $(this).html().replace('Tel:', '&lt;strong&gt;Tel:&lt;/strong&gt;'); }); $('p:contains(Fax:)').html(function() { return $(this).html().replace('Fax:', '&lt;strong&gt;Fax:&lt;/strong&gt;...
javascript jquery
[3, 5]
4,277,384
4,277,385
String.equals() with multiple conditions (and one action on result)
<p>Is it possible to do something like this in Java for Android (this is a pseudo code)</p> <pre><code>IF (some_string.equals("john" OR "mary" OR "peter" OR "etc."){ THEN do something } </code></pre> <p>?</p> <p>At the moment this is done via multiple <code>String.equals()</code> condition with <code>||</code> am...
java android
[1, 4]
2,948,728
2,948,729
How can this Javascript be expressed more succinctly?
<p>I have some Python code that I'm porting to Javascript:</p> <pre><code>word_groups = defaultdict(set) for sentence in sentences: sentence.tokens = stemmed_words(sentence.str_) for token in sentence.tokens: word_groups[sentence.actual_val].add(token) </code></pre> <p>I don't know a lot about Javascr...
javascript python
[3, 7]
5,067,483
5,067,484
Naming Functions in jQuery
<p>So I just started with jQuery and the functions are confusing me. I want to be able to just name a jQuery function and then call it, without saying when it should be called in the function. I've looked and I can't seem to understand any of the answers. My code is below:</p> <pre><code>&lt;script type="text/javascri...
javascript jquery
[3, 5]
2,586,708
2,586,709
whole number in javascript?
<p>I get 28.6813276578 when i multiply 2 numbers a and b, how can i make it whole number with less digits </p> <p>and also, when i multiply again i get results after first reult like 28.681321405.4428.68 how to get only one result ?</p> <pre><code>&lt;script&gt; $(document).ready(function(){ $("#total").hide(...
javascript jquery
[3, 5]
384,302
384,303
Ajax url navigation
<p>I'm trying to make something similar to GitHub that loads content based on the url.</p> <p>I saw this <a href="http://stackoverflow.com/questions/2586661/url-navigation-in-an-ajax-based-website">article</a>, but I do not want to use a plugin. I would like to write my code manually.</p> <p>One article I saw <a href...
javascript jquery
[3, 5]
3,987,139
3,987,140
Which is correct way to check for Null exception?
<p>Which is the most correct code?</p> <pre><code>if (HttpContext.Current.Response.Cookies[authCookieName] != null) { HttpContext.Current.Response.Cookies[authCookieName].Value = "New Value"; } </code></pre> <p>or </p> <pre><code>if (HttpContext.Current != null) if (HttpContext.Current.Response != null) ...
c# asp.net
[0, 9]
476,517
476,518
Background-position +/- X pixels
<p>How do I offset the <code>background-position</code>, let's say 20px, from its original position?</p> <p><strong>Like:</strong></p> <pre><code>$(".selector").animate("slow").css("backgroundPosition", "center -=20px"); </code></pre> <p>(That obviously doesn't work... But how do I do this??)</p>
javascript jquery
[3, 5]
4,461,039
4,461,040
Sort dropdown list by text rather than value
<p>I have dropdown list as follow:</p> <pre><code>&lt;select id="DropdownID"&gt; &lt;option value="1"&gt;Ccc&lt;/option&gt; &lt;option value="2"&gt;Aaa&lt;/option&gt; &lt;option value="3"&gt;Bbb&lt;/option&gt; &lt;/select&gt; </code></pre> <p>but i want dropdown elements sorted by text not value, in alpha...
c# asp.net
[0, 9]
2,390,795
2,390,796
JQuery Show Animation From a Different Direction
<p>How do you change the direction of jQuery's hide('slow')/show('slow') animation? By default it uses a combination of fading and sliding to/from the top-left. How would I change that to slide to/from the bottom-center or some other arbitrary direction? </p> <p>For an example of a modified hide('slow') that slides to...
javascript jquery
[3, 5]
1,339,832
1,339,833
android add text line at the beginning of .txt file
<p>I have this code</p> <pre><code> File gpxfile = new File(root, "mesaje.txt"); BufferedWriter bW; bW = new BufferedWriter(new FileWriter(gpxfile, true)); bW.write(format + " " + message + "\n-----------------------\n"); bW.newLine(); bW.flush(); ...
java android
[1, 4]
1,637,530
1,637,531
Why is Post back not triggered when user navigates away from page, but triggered on close?
<p>I have the following code to detect user navigation or close. The post back is triggered on close but not when navigated away. If i place a alert message it is triggered at all times.</p> <p>Oh and there is a timer on the page which is actually disabled after first tick. but there is always a post back triggers whe...
javascript asp.net
[3, 9]
1,152,799
1,152,800
Java and what to do with it
<p>I've been browsing through several websites and several topics on this website.</p> <p>Now I'm just a starting programmer and I want to make a good decision.</p> <p>From what I understand is that Java is used alot for server stuff, and web applets but not really for computer applications running on a client, it's ...
java c# android
[1, 0, 4]
3,866,222
3,866,223
Detect if link opens in a new window/tab or the current window
<p>I want to add AJax-like transitions to my links if a link opens in the current window. However, I don't want the transitions to execute if the link is opened in a new window/new tab. Is this possible?</p> <p>P.S. I have jQuery loaded.</p>
javascript jquery
[3, 5]
2,518,684
2,518,685
PHPCode Refresh and Redirect
<p>If user do refresh page (do f5 or re-write url) i want redirect him to logout.php or homepage. If user leave to page i dont want redirect.</p> <p>I needed code for it to in .php maybe javascript, meta or anything.</p>
php javascript
[2, 3]
3,306,667
3,306,668
how to call this script in an .aspx file?
<pre><code>var text = ''; $('p').bind('keypress', function(e) { e.preventDefault(); $(this).text(''); $(this).empty(); text += String.fromCharCode(e.keyCode); var text2 = text.substr(0, text.length - 1); var lastChar = text.substr(text.length - 1); $(this).text(text2); $(this).append('&lt;span class="char"&gt;' + ...
c# javascript asp.net
[0, 3, 9]
5,359,054
5,359,055
js is not defined error
<p>How can I get the error message on a good way to solve? Error message: timetotal is not defined.</p> <pre><code> $(document).ready(function() { if (typeof(timeleft) !== 'undefined') { Chrono.update(); } $('a.add_other_answer').click(function() { addAnswer(); }); }); Chrono = { w...
javascript jquery
[3, 5]
1,644,389
1,644,390
Still stuck on my php calling javascript problem. Please help in this
<p>Still stuck on my PHP calling a JS script problem </p> <p>On the click of a button this Javascript is called:</p> <pre><code>var xmlhttp; function register() { xmlhttp=GetXmlHttpObject(); alert("pass"); if(xmlhttp==null) { alert("Your browser does not support AJAX!"); return; } var url="register.php";...
php javascript
[2, 3]
5,825,164
5,825,165
Which event in a PageIndicator can I use to get a click on the current tab?
<p>I have to catch the tab click event even when the current tab is the same clicked tab. I tried the setOnPageChangeListener but none of the events are dispatched. Also onClick and onTouch for the indicator don't dispatch. How can I do that?</p> <p>I'm using TabPageINdicator from Jake Wharton</p> <p>Thanks</p>
java android
[1, 4]
5,688,896
5,688,897
setting value of textbox using javascript in asp.net
<p>i am using .aspx page where i used html textarea to get the teat from user. i am also have a asp:textbox say "txtbox1" control where i want to have the value of that textarea in txtbox1. but it is not setting the value.. i am using javascript as:</p> <pre><code> document.getElementById('txtareahead').readOnly=...
javascript asp.net
[3, 9]
5,630,929
5,630,930
Find if table has a specific string in jquery
<p>I have a html table:</p> <pre><code>Name Length Description x Name1 444 Blabd x.png Name2 55 Blabla x.png Name3 11 Blaaa x.png </code></pre> <p><code>table id="firsttable"</code> <code>img class="delete"</code> </p> <p>I have a value (from other table):</p> <pre><code>var val...
javascript jquery
[3, 5]
4,606,716
4,606,717
How to handle StreamReader?
<p>I use StreamReader to read my csv file. The problem is : i need to read this file twice, and in second time then i use StreamReader StreamReader.EndOfStream is true and reading not executed.</p> <pre><code>using (var csvReader = new StreamReader(file.InputStream)) { string inputLine = "...
c# asp.net
[0, 9]
1,157,581
1,157,582
Literature suggestions for best practices / good coding techniques
<p>I am a mid level developer. Currently I work in C# ASP.NET but I have worked in PHP, classic ASP, and a tiny bit in Java (would like to get more into this in the future). I am looking for a few suggestions on good books to help me continue growing in my coding techniques.</p> <p>Basically a book with lots of best p...
c# java asp.net
[0, 1, 9]
5,756,058
5,756,059
Application Runs when Debugging but not when Published
<p>When publishing my web application and then running it will return the error </p> <p><strong>"Could not load file or assembly 'BaseApplicationName' or one of its dependencies. An attempt was made to load a program with an incorrect format."</strong></p> <p>However if I run the application through <strong>debugging...
c# asp.net
[0, 9]
2,009,715
2,009,716
how to convert this javascript to jquery?
<p>I have this code, but I'm not sure how to convert it to jquery because of the <code>check</code> variable which I am using to see if the stuff inside the <code>if</code> statement happened at least once. <code>gph_img_list</code> is the name tag for lots of radio buttons.</p> <pre><code> var check = false; f...
javascript jquery
[3, 5]
134,236
134,237
Counting Rows in C# after dynamically adding them with jQuery
<p>I just have a simple ASP Table seen here:</p> <pre><code>&lt;asp:Table ID="tblCategories" runat="server" CssClass="oneColTable padded-table dataTable"&gt; &lt;asp:TableHeaderRow CssClass="tableHeader"&gt; &lt;asp:TableHeaderCell&gt;Category Name&lt;/asp:TableHeaderCell&gt; &lt;asp:TableHeaderCel...
c# asp.net jquery
[0, 9, 5]
5,229,292
5,229,293
How can I randomly show a set of elements using jQuery?
<p>Using jQuery, how would you <code>show()</code> every <code>div.foo</code> on a page in a random order, with a new one appearing every X milliseconds?</p> <p><strong>Clarification</strong>: I want to start with all these elements hidden and end with all of them showing, so it wouldn't make sense to <code>show()</co...
javascript jquery
[3, 5]
1,105,215
1,105,216
stopping random choose existing option
<p>In my game, when the "next-question" button is clicked, it should choose a new word in the grid for the user to spell. It does this, but the problem is that instead of going to another word, sometimes the randomization brings it back to the word it is already on. I need to make it so that it chooses any other than t...
javascript jquery
[3, 5]
2,418,417
2,418,418
Java doesn't want me to close outputStream before using an inputStream?
<p>I've got (an admittedly strange) try/catch block that checks if a <code>File</code> exists. If it doesn't, then I create it and write a <code>File</code> to it. Then I read the <code>File</code>. </p> <p>I have an <code>ArrayList</code> that is being initialized by reading an object from an <code>ObjectInputStream<...
java android
[1, 4]
2,140,839
2,140,840
How to cut the picture into equal parts?
<p>I have images on my android app. How cut this picture into 9 or 12 equal parts and add this parts an array?</p>
java android
[1, 4]
590,081
590,082
How to detect chrome and safari browser (webkit)
<p>I am trying to detect the chrome and safari browser using jquery or javascript. I thought we are not supposed to use jQuery.browser. Are there any suggestions here? Thanks a lot!</p>
javascript jquery
[3, 5]
2,417,878
2,417,879
Development feature: disable jQuery ajax
<p>is it possible to disable jQuery <code>ajax()</code> calls? As a developer, I ofttimes need to test site without ajax (without actually turning js off).</p> <p>I would create a script that utilizes local database: when certain link is clicked, it would toggle a property. Ie. how can I effect global bindings such as...
javascript jquery
[3, 5]
2,859,615
2,859,616
How to increment a numeric string by +1 with Javascript/jQuery
<p>I have the following variable:</p> <pre><code>pageID = 7 </code></pre> <p>I'd like to increment this number on a link:</p> <pre><code>$('#arrowRight').attr('href', 'page.html?='+pageID); </code></pre> <p>So this outputs 7, I'd like to append the link to say 8. But if I add +1:</p> <blockquote> <p>$('#arrowRig...
javascript jquery
[3, 5]
3,974,958
3,974,959
writing generic filter using grep in jQuery
<p>Is there a way i can write the following piece of code to be more generic?</p> <pre><code>var result = $.grep(myObjectArray, function(e){ return e.Prop1 == 'SomeVal'; }); </code></pre> <p>This is what i want to do.</p> <p>A generic function that will accept <code>myObjectArray</code> (Object Array to filte...
javascript jquery
[3, 5]
5,479,046
5,479,047
Enable and disable button using javascript and asp.net
<p>I am checking if user exists in database if exists I am showing message as "existed user" and then I need to disable the signup button if not I need to enable it.</p> <p>I am unable to enable and disable the sign Up button.</p> <p>Can anyone help me in this issue?</p> <p>Here is my code:</p> <pre><code> &lt;scri...
javascript asp.net
[3, 9]
1,796,283
1,796,284
Javascript - I'd like to show the checkbox check before a long running function runs
<pre><code>&lt;input type="checkbox" onclick="myFunc()" /&gt; </code></pre> <p>myFunc is somewhat long running, about a second, and the browser shows the check for the checkbox AFTER the function completes. This causes lots of issues with users.</p> <p>I'd like the check to show up immediately and then the onlick fun...
javascript jquery
[3, 5]
2,566,145
2,566,146
Android - Same content in multiple tabs
<p>My application consists of a tab layout with six tabs. Each tab represents a player in a game.</p> <p>I would like the activities within each tab to contain the exact same XML layout and code as the activities in the other tabs. Each player will get access to the same widgets and input fields.</p> <p>Is there a wa...
java android
[1, 4]
184,939
184,940
C# equivalent of PrivilegedAction
<p>What is C# equivalent of <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/security/PrivilegedAction.html" rel="nofollow">PrivilegedAction</a> and <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/security/PrivilegedExceptionAction.html" rel="nofollow">PrivilegedExceptionAction</a> class of Java?</...
c# java
[0, 1]
5,847,143
5,847,144
jQuery.data() with CSS
<p>I change with <code>setAttribute('color', 'black')</code> the CSS of some element. After this element will be stored in a jQuery.data() object. But in my data() object the CSS which I defined before won't be stored. </p> <p>What am I doing wrong?</p> <p>Thanks for the help!</p>
javascript jquery
[3, 5]
4,726,963
4,726,964
Use C# to trigger java script code inside an html page
<p>If I have an html page with all the scrips in it, how can feed this html to some sort of egine in .NET and use C# could to simulate user interaction with that page (like problematically presses a buttom or cause the web page to request a next page of a grid inside the html file) which would cause the page to to do w...
c# javascript
[0, 3]
3,140,569
3,140,570
How to fix these type
<p>I have html data like text including image src.when I alert using jquery it works fine. Entire html is displayed in alert box.And then I want to send that entire html data and text and something's id using quary string of JQuery like:</p> <pre><code>$.post('something.php','socialprofileid='+socialprofileid+ ...
php javascript jquery
[2, 3, 5]
5,428,654
5,428,655
How to disable onCreate action when will orientation be changed?
<p>How can I disable onCreate event when I turn my device from portrait orientation? Because when application start it will get much data from Internet, and it will be badly to download data every time when user turn his device. </p>
java android
[1, 4]
2,725,461
2,725,462
Conditional Toggle of Class using JQUERY
<pre><code>$('.showall').css("cursor","pointer").click(function() { $('.value-container').toggle(); $('.dim-header').toggleClass($('.dim-header').toggleClass() == 'dim-header' ? 'dim-header active' : 'dim-header'); $('.showall').html($('.showall').html() == '+ Expand All' ? '- Hide All' : '+ Expand All'); r...
javascript jquery
[3, 5]
3,160,983
3,160,984
JQuery Load a page into a div and onload change content of second div
<p>I have a page with 2 divs one is called menu and the other is called content. The content div loads a log in page. When a user tries to log in I call a script into the content div and if unsuccessful it reloads the log in page.</p> <p>If it is successful I use header location to redirect to the logged in page. When...
php jquery
[2, 5]
2,272,937
2,272,938
Show message if user has entered content on page and not saved
<p>How can I show a message like a popup modal if a user has entered some content and then not saved it and try to leave the page?</p> <p>Something like:</p> <p><img src="http://i.stack.imgur.com/ZFQF9.png" alt="enter image description here"></p> <p>This appears if you try to go to another page within Facebook BUT i...
javascript jquery
[3, 5]
4,401,507
4,401,508
Why am I having problems with setInterval?
<p>I'm a novice javascript programmer and I always have trouble with the <code>setInterval</code>. W3Schools makes it look so easy but I can never get it to work when i need to. Here I have a span I want to make 'flash'.</p> <pre><code>var id = window.setInterval(function(){ if($("#span1").css("color") ==...
javascript jquery
[3, 5]
5,965,111
5,965,112
Async Task Can it partially run?
<p>It is definitely working as postData sends to my site and forwards an email which it is doing. But loadingDialog does not execute ( it may be but it is a very quick process). The last process sentdialog is not executing as it brings up a new dialog saying sent and is not happening. I have this script for the async</...
java android
[1, 4]
5,062,608
5,062,609
Access value set using javascript in code behind in Master Page
<p>Im executing javascript on a master page that is onClick event of a Menu item i set it to a hidden field and on Init of the Master page im not able to access this hidden field value.</p> <p>Regards</p>
asp.net javascript
[9, 3]
1,573,577
1,573,578
trailing comma problem, javascript
<p>I'm currently trying hard to get my jQuery to work in IE7, when I Lint the following:</p> <pre><code>$(".regflow").validate({ errorLabelContainer: $("#error-message"), rules: { txtTextOnly: {required: true,textOnly: true}, txtNumbersOnly: {required: true,numbersOnly: true}, txtPhoneO...
javascript jquery
[3, 5]
5,071,739
5,071,740
Proxy setings for web service(client or service hosted server)
<p>I am trying to add the a web service through Web reference, i am able to find the service while trying to add it, not able to add, the option is disabled. I suspect this is because of the proxy settings, What do you suggest? While mentioning he proxy in the the client application which proxy should i mention,the pro...
c# asp.net
[0, 9]
3,623,388
3,623,389
How can I make these three statements more secure against SQL injection?
<h2>1.</h2> <pre><code>$con = mysql_connect("localhost","",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("jbell2", $con); $sql="INSERT INTO Profile (username, Date, Height, Weight, WaistSize, WeightforHeight, Blood_Pressure, Medication, Total_Cholesterol, Bad_Cholesterol, ...
c# php
[0, 2]
2,078,689
2,078,690
Jquery - looping with nested functions and setInterval()
<p>Probably not the clearest title, but here goes - I need to display two independent countdowns on a page, accepting a user input for the starting value for each. When one reaches zero, the other starts and counts down to zero. Code for this is below, and working as expected.</p> <p>I call the Timer1 function, which ...
javascript jquery
[3, 5]
3,348,840
3,348,841
Why can't i run a javascript function from c# code?
<p>This is a part of the C# code where i want to insert the network graph:</p> <pre><code>DetailsBody3.Text = "&lt;tr class=\"space\"&gt;"; DetailsBody3.Text += "&lt;td&gt;" + "&lt;div id=\"center-container\"&gt;&lt;div id=\"infovis\"&gt;&lt;/div&gt; /&gt;"; DetailsBody3.Text += "&lt;/div&gt;&lt;/td&gt;"; Detail...
c# asp.net
[0, 9]
2,973,198
2,973,199
non-jQuery equivalent of :visible in JavaScript?
<p>So jQuery provides this awesome pseudo to query in DOM on ':visible', unfortunately, its rather heavily tied into the core of jQuery and Sizzle (or whatever engine you may use). Is there a good equivalent in plain JavaScript when only a given element is known?</p> <p>A reminder on the jQuery :visible rules:</p> <...
javascript jquery
[3, 5]
5,285,805
5,285,806
How to disable SMS notification programmatically?
<p>This not work:</p> <pre><code>try { Context mmsContext = context.createPackageContext("com.android.mms", Context.CONTEXT_IGNORE_SECURITY); mmsContext.grantUriPermission(context.getPackageName(), Uri.parse("file:///data/data/com.android.mms/shared_prefs/com.android.mms_preferences.xml"), Intent.FLA...
java android
[1, 4]
5,154,830
5,154,831
Simulate click on spacebar each 5 secondes in jQuery
<p>i want to simulate a click on spacebar each 5 minutes, how can i do that , i know that the ascii code for spacebar is 32 In jQuery how i we do that ? </p>
javascript jquery
[3, 5]
1,509,878
1,509,879
JQuery syntax error for init
<p>Hey guys I'm getting a syntax error on my var url line but I can't seem to figure out what or why it is, help appreciated </p> <pre><code>SW.wmode = { init: function() { $('iframe').each(function() var url = $(this).attr("src") $(this).attr("src",url+"?wmode=transparent") ); } } ...
javascript jquery
[3, 5]
141,363
141,364
How to convert a MySql selection into an string?
<p>I have a webform made in ASP.NET C# with a MySql database. The database contains a field named id wich is primary, auto-increment and of type INT.</p> <p>I want to select a specific record, say number 10, convert it to a string so i can compare it with another string.</p> <p>Query</p> <p><code>query = "SELECT id ...
c# asp.net
[0, 9]
3,725,709
3,725,710
progress bar in asp.net
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/9080470/progress-bar-on-a-survey-using-c-sharp">progress bar on a survey using c#</a> </p> </blockquote> <p>I made an on-line survey in ASP .NET using C#. My survey contains 30 questions with each question on a ...
c# asp.net
[0, 9]
3,981,144
3,981,145
Jquery calls to page method vs web service vs web api
<p>I'm working on an asp.net webforms application and I see a lot of areas where the page posts back after a dropdownlist selection is made, during which a small amount of data is retrieved from the server to populate another control (like a textbox). It's not a nice user experience to have the page posting back everyt...
jquery asp.net
[5, 9]
3,318,613
3,318,614
How do I refresh dynamic content loaded into a web part inside my existing jvacscript/jquery code?
<p>I have the code that I've pasted below, helpfully supplied by another stackoverflow member. I've added this code into a Kentico web part, and set the cache minutes=0, thinking that would solve my caching issue. It does, but not in IE. Is there any way I can tweak this code to refresh the content when the user comes ...
javascript jquery
[3, 5]
1,229,645
1,229,646
Return Multiple CheckBox Values if Checked in jQuery
<p>I have multiple checkbox in my page. i want to retrieve its values if checked.</p> <p>Here is HTML Code..</p> <pre><code>&lt;input name="ctl1189" type="checkbox" id="chkTicket_189310" class=" chkTicket" value="189310"&gt; &lt;input name="ctl1190" type="checkbox" id="chkTicket_189311" class=" chkTicket" value="189...
javascript jquery
[3, 5]
2,761,545
2,761,546
How does Python's handling of line-breaks differ from JavaScript's automatic semicolons?
<p>Javascript has a feature called Automatic Semicolon Insertion where basically if the parser encounters an invalid token, and the last token before that was a line break, then the parser will insert a semicolon where the linebreak is. This enables you to basically write all your javascript code without semicolons, bu...
python javascript
[7, 3]
3,331,116
3,331,117
Passing Arraylist between activities? Using Parcelable
<p><strong>EDIT:</strong> I've updated my question considerably and am now going with Parcelable as my method.</p> <p>I'm attempting to a pass an ArrayList from one activity to another. I've been reading around and can't seem to find any answers to my problem.</p> <p>I've got an <code>ArrayList&lt;SearchList&gt;</cod...
java android
[1, 4]
1,914,506
1,914,507
object literal not defined unless wrapped in jQuery onready; need ideas for debugging
<p>Adopted some javascript code that I'm rearranging into smaller files to make it more managable; I'm never been a full-time javascript engineer but have worked with it for awhile but don't feel super comfortable with it. </p> <p>I have an object literal that handles most of our controller level activities for our si...
javascript jquery
[3, 5]
955,703
955,704
Refresh parent page with tabs
<p>I'm using an page with 4 tabs. Those are labeled #tab1/#tab2/#tab3/#tab4. I have an edit function which opens a new window. If that window is closed through clicking submit or just closing it the parent window should be refreshed. Well this works now but it always refreshes the first tab. Could you tell me how to ...
javascript jquery
[3, 5]
5,715,832
5,715,833
Why is it null the elements of the array?
<p>I have an activity which has the following variable</p> <pre><code>static CharSequence[] categories; </code></pre> <p>I'm receiving data using JSON</p> <pre><code>try { Thread cThread = new Thread(new getStringContent("http://192.168.0.101/curltest/getcategories.php")); cThread.start(); } catc...
java android
[1, 4]
4,627,879
4,627,880
how does this js function work? Title too small to explain
<p>I've been digging into jquery to find out how it works and I see it uses a construct i've never seen in JS before. The following code seems to execute when the browser loads, it's almost like a function that invokes itself. I've searched for docs for this feature but not sure what its called. Can someone tell me t...
javascript jquery
[3, 5]
407,996
407,997
How to show the text at lock screen in Android
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7569812/how-can-i-interact-with-the-lockscreen-layout-to-display-text-into-it-like-this">How can I interact with the Lockscreen layout to display text into it, like this app:</a> </p> </blockquote> <p>I want to ...
java android
[1, 4]
866,259
866,260
Trouble creating a multiple Row Table from Server Side Code
<p>I am trying to create a table dynamically in my code behind. My problem is I have a count of how many controls I want added to each TableRow after which I want to add that TableRow to the table and then start a new row. Here is the code I have no far but it just adds one row and does not move any of the controls t...
c# asp.net
[0, 9]
3,937,871
3,937,872
How to detect radio button deselect event?
<p>Is there an easy way to attach a "deselect" event on a radio button? It seems that the change event only fires when the button is selected.</p> <p>HTML</p> <pre><code>&lt;input type="radio" id="one" name="a" /&gt; &lt;input type="radio" id="two" name="a" /&gt; </code></pre> <p>JavaScript</p> <pre><code>$('#one')...
javascript jquery
[3, 5]
5,501,235
5,501,236
HTTP Web Requst is sending twice (How to fix?)
<p>I've got the following code to perform a web request and fetch HTTP response. What I'm trying to do is, IF HTTP Response is </p> <blockquote> <p>200 OK</p> </blockquote> <p>I need to read the response body without sending the web request again (I know my code is currently sending it twice).</p> <pre><code> ...
c# asp.net
[0, 9]
5,114,184
5,114,185
Jquery .get() - How to pass the value of a text box into the data parameter?
<p>There is one form with a <code>textbox id="name"</code> and a button.</p> <p>After the user clicks the button, I want to execute the <code>$.get()</code> to capture the reply. (I got the .click() correctly so far)</p> <p>How to I pass the value the user enters to the text box as the {data} parameter in the get fun...
javascript jquery
[3, 5]
5,711,009
5,711,010
Jquery/Javascript : Negative of a Variable
<p>What's the best way to check for the negative of a variable?</p> <p>Here are my variables:</p> <pre><code>var frameWidth = 400; var imageWidth = parseInt($('#' + divId).find('#inner-image').css('width'), 10); var imageMargin = parseInt($('#' + divId).find('#inner-image').css('margin-left'), 10); var numberOfFrames...
javascript jquery
[3, 5]
5,224,760
5,224,761
jquery how to select all the class elements start with "text-"?
<p>I have got some classes</p> <pre><code>.text-1 .text-2 .text-3 </code></pre> <p>I want to select them all, how to do that? Thanks for the help</p>
javascript jquery
[3, 5]
5,045,534
5,045,535
Viewing PDF files without calling the installed pdf reader applications
<p>I'm developing an android application which needs to read the pdf files without calling other installed applications( using Intent.ACTION_VIEW). I searched a lot about this on internet and then i downloaded one <strong>PdfViewer.jar</strong> file. After using it in my project i found that it is a bit slow to load th...
java android
[1, 4]
3,849,142
3,849,143
How to Call Class on page load in Html
<p>I have jquery with class= modal i want to call that class when page load how to do using javascript or php</p>
php javascript jquery
[2, 3, 5]
5,133,014
5,133,015
Jquery, Add elements every 2 seconds
<p>I'm trying to create a growth map similar to <a href="http://projects.flowingdata.com/walmart/" rel="nofollow">http://projects.flowingdata.com/walmart/</a>.</p> <p>I am using <a href="https://github.com/marioestrada/jQuery-gMap" rel="nofollow">https://github.com/marioestrada/jQuery-gMap</a> to do the maping</p> <p...
javascript jquery
[3, 5]
5,316,849
5,316,850
Is there a JQuery event to determine when an element's list of children has changed?
<p>I'm hoping to find a JQuery event that will tell me when an element collection has grown or shrunk after the addition/removal of a child element.</p>
javascript jquery
[3, 5]
5,687,530
5,687,531
Android EditText, make it fill the whole screen and write anywhere in it
<p>As the title say I am trying to have a EditText field that takes more or less the whole screen. That's not a problem to do, but the problem is when you start write then it start's in the midle of the screen. And you can't select where to write. what I try to achieve is to make it to be like a note. That I can write...
java android
[1, 4]