Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
2,905,403
2,905,404
Location returned is null when provider is gps?
<p>I am trying to retrieve the my current location coordinates in the following piece of code</p> <pre><code>LocationManager locationManager= (LocationManager) getSystemService(context); Criteria criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_FINE); criteria.setAltitudeRequired(f...
java android
[1, 4]
4,622,479
4,622,480
Overriding variable value inside the $.get()
<p>I am facing a quite Strange problem, I dont seem to be able to override variable <code>jSonData</code> from inside the success function of <code>$.get()</code></p> <pre><code>$.fn.name = function(data, options) { var jSonData = data; var settings = $.extend({ .... }, ...
javascript jquery
[3, 5]
3,891,506
3,891,507
Having trobule with displaying the calendars correct date
<p>So my widget pulls up correctly but it wont display the correct selection once the user has made a choice. Here is my code.</p> <pre><code>SimpleDateFormat dayFormatter = new SimpleDateFormat("EEEE, MMMM FF, yyyy"); Calendar cal = Calendar.getInstance(); </code></pre> <p>This is run at the beginning of my code and...
java android
[1, 4]
1,001,348
1,001,349
Remove Text before Word in Javascript / jQuery?
<p>'Remove stuff before this <strong>word</strong>. Hello!'</p> <p>How can I remove the text before 'word' in the above string in javascript or jQuery?</p>
javascript jquery
[3, 5]
3,635,366
3,635,367
update attr value in jquery everytime
<p>guys i'm using a plugin to autoload when i scroll down and this is my jquery code :</p> <pre><code>jQuery('#displayimagesDiv').scrollExtend( { 'target': '#displayimagesDiv', 'url': $('#nexturl:last').attr('href'), 'loadingIndi...
javascript jquery
[3, 5]
1,566,208
1,566,209
jquery load content into div and magicline
<p>First post here. Hoping you guys can help. It would be much appreciated and I'm sure I'll learn something. Also, if you see any other redundancies ontop of my problems below, feel free to rip me a new one on coding practices. I need to learn as much as I can asap. On to the problems!</p> <p>I have two separate scri...
javascript jquery
[3, 5]
3,659,947
3,659,948
create string from all checked values jQuery
<p>Ok so I do this:</p> <pre><code>&lt;input type="checkbox" class="checkBoxClass" value="0" /&gt; &lt;input type="checkbox" class="checkBoxClass" value="1" /&gt; &lt;input type="checkbox" class="checkBoxClass" value="2" /&gt; </code></pre> <p>Then in javascript/jquery I'm trying to do something like this:</p> <pre>...
javascript jquery
[3, 5]
1,716,433
1,716,434
How to shutdown and reboot the emulator through code in android?
<p>I have implemented the code like:</p> <pre><code>Intent i = new Intent(Intent.ACTION_REBOOT); sendBroadcast(i); </code></pre> <p>it get the error(runtime):</p> <pre><code>java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.REBOOT from pid=*** and uid=*** </code></pr...
java android
[1, 4]
1,993,365
1,993,366
how can i control jquery validation engine control with multiple buttons?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1602911/jquery-validation-multiple-submit-buttons-on-one-asp-net-form-different-valid">jQuery Validation - Multiple submit buttons on one asp.net form, different validation groups?</a> </p> </blockquote> <p>I am...
c# javascript jquery
[0, 3, 5]
31,247
31,248
loading content into a div with jquery
<p>Hey All - I am having a bit of trouble with a jquery function. I have a nav bar and I want when a user clicks on the nav bar to have the page load into a div (#content)</p> <p>The code I have works for the first click, but when I try to click on another item it shows the loading image, but does not put the new con...
javascript jquery
[3, 5]
1,200,861
1,200,862
How to get a list of active applications in Android?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3304685/how-to-get-the-list-of-running-applications">How to get the list of running applications?</a> </p> </blockquote> <p>How to get a list of active applications in Android? Thanks for answers.</p>
java android
[1, 4]
277,421
277,422
How to iterate a table rows with JQuery and access some cell values?
<pre><code>&lt;table class="checkout itemsOverview"&gt; &lt;tr class="item"&gt; &lt;td&gt;GR-10 Senderos&lt;/td&gt; &lt;td&gt;&lt;span class="value"&gt;15.00&lt;/span&gt; €&lt;/td&gt; &lt;td&gt;&lt;input type="text" value="1" maxlength="2" class="quantity" /&gt;&lt;/td&gt; &lt;/tr&gt; ...
javascript jquery
[3, 5]
5,804,789
5,804,790
window.Open Open popup Instead of new window
<p>I have a ajax function in jQuery and i want in compelet function open a url in new window or tab.</p> <pre><code>&lt;a href="#" onclick="Add('1','http://www.google.com');return false;"&gt;Link&lt;/a&gt; </code></pre> <p>And :</p> <pre><code>function Add(ID, url) { var data = "{'ID' : '" + ID + "'}"; $.aja...
javascript jquery
[3, 5]
6,007,723
6,007,724
remove elements javascript jquery
<p>Im trying to remove a row. But i can't figure it out really. First of all I've got a button that'll add a new row, that works. But I want to give the user the possibility to remove the just added row. The row has an 'div' inside what acts as an deletebutton. But the deletebutton doesn't work?</p> <p>I'm I missing s...
javascript jquery
[3, 5]
5,582,806
5,582,807
how to serve javascript wtih asp.net page?
<p>I don't know if the title is clear enough or not, but let me explain what I'm trying to do.</p> <p>I have two webapps with written in asp.net with C#. </p> <p>App A has the following html.</p> <pre><code>&lt;script type="text/javascript" id="blah" src="http://somServer/AppB/page.aspx?p=q"&gt;&lt;/script&gt; </cod...
javascript asp.net
[3, 9]
4,740,575
4,740,576
Is there a way to execute external Javascript from PHP when Javascript is disabled client side?
<p>I am using PHP to generate a dynamic web form that uses an external (to my site) javascript file to set a hidden form input value. My form submits to my own PHP page before reposting to an external site. The external site requires this hidden value for any submission.</p> <p>Many of the browser that are using my fo...
php javascript
[2, 3]
3,380,763
3,380,764
Python List not getting in rendered in javascript
<p>I have a javascript which takes two variables i.e two lists one is a list of numbers and the other list of strings from django/python</p> <pre><code>numbersvar = [0,1,2,3] stringsvar = ['a','b','c'] </code></pre> <p>The numbersvar is rendered perfectly but when I do {{stringsvar}} it does not render it.</p>
javascript python
[3, 7]
1,615,938
1,615,939
How do I get a unique identifier for an element with JQuery?
<p>I'm building a system where a user can click an HTML element on a page to edit it in real time, but I need a way to identify the exact element on the page for my CSS.</p> <p>So, simply selecting the ID or a class isn't going to cut it since not all elements are going to have one of those.</p> <p>Is there some way ...
javascript jquery
[3, 5]
4,348,276
4,348,277
how to check if a checkbox exists
<p>The check box's exist for each row. the table is created by PHP and I need a way to check if the check box exists. when they are created they are given the ID of checkbox_(an incrementing number).</p> <p>This is what I have so far, but it does not work on checking if the element exists.</p> <pre><code>var check = ...
javascript jquery
[3, 5]
472,114
472,115
How do I get the character pressed in a textarea
<p>This is really weird.</p> <p>I have a textarea. I listen to the keyup and keypress events.</p> <p>When I press "(", keypress is fired with e.keyCode == e.which == 40</p> <p>When I press the arrow down key, keyup is fired with e.keyCode == e.which == 40</p> <p>Why is this so strange?</p>
javascript jquery
[3, 5]
1,343,317
1,343,318
General Question JQ/PHP
<p>What is faster on opening and proccecing:</p> <p>Having under 1 file all the jquery functions or</p> <p>Each function to a separate file and call it when ever you need it?</p> <p>Ex. I have a blabla.js file that has 4 functions in it. And my xaxa.php that calls the blabla.js.</p> <p>Now, when I firstly open my p...
php jquery
[2, 5]
329,563
329,564
How to return variable from jquery function
<p>can you help me please... How to return variable from jquery function</p> <pre><code>var height = $(window).height(); $(window).resize(function(){ var height = $(window).height(); return height; }); setInterval(function() { $('div').append( 'Index: ' + height ); }, 500); </code></pre>
javascript jquery
[3, 5]
5,073,069
5,073,070
A better way to detect the index in the parent's children array by using JQuery?
<p>for example, how to detect the index of the li elem in it's parent ul?</p>
javascript jquery
[3, 5]
2,776,418
2,776,419
Trigger event on data access / data receive
<p>I am trying to build an android app that dynamically shows graph of data usage by different apps in device. I have 2 questions: </p> <p>1) TrafficStats has methods to get getUidTxBytes(int uid), I want to monitor changes as and when it happens, say if there is a app that is running as service and gets data in backg...
java android
[1, 4]
5,592,206
5,592,207
jQuery .trigger('click')
<p>I am having trouble getting this to work. I would like to trigger the second link. If anyone can help that would be much appreciated.</p> <pre><code> $(".links").click(function () { alert($(this)); }) function someFunction(){ $(".links").trigger('click'); } someFunction(); ...
javascript jquery
[3, 5]
3,616,928
3,616,929
how do i make a select box populate div on change
<p>so, I have read just about every question on this subject, but the solutions don't work for my project, it seems that when I change the dropdown, it does the first event, but when I change to a different element it doesn't do anything else, but when I do this with an alert message it changes every time. </p> <p>her...
php jquery
[2, 5]
725,558
725,559
enter in asp:TextBox clicks my button (which has a js function bound to it)
<p>basically I have this:</p> <pre><code>&lt;asp:TextBox runat='server' /&gt; &lt;button id='b2'&gt;hi&lt;/button&gt; &lt;script&gt; $('#b2').click(function(e){ e.preventDefault(); alert('you clicked the button'); }); &lt;/script&gt; </code></pre> <p><strong>the problem is that when hitting enter inside the textbox...
javascript jquery asp.net
[3, 5, 9]
2,283,651
2,283,652
How do I refer to the values in this string in javascript
<p>I have an object with one String value in it in javascript. I believe it should be a key value pair but something is changing it so that this doesn't work:</p> <pre><code>$.each(object, function(index, element) { if (element.key) { //do something with element.key and element.value } } </code></pre> <p>The...
javascript jquery
[3, 5]
494,226
494,227
How to auto indent and enter code from one line coding?
<p><img src="http://i.stack.imgur.com/TQ5xK.jpg" alt="alt text"></p> <p>i open jquey script and i see one line without enter and look hard for edit what about tool/software to view easy look thank</p>
javascript jquery
[3, 5]
2,073,225
2,073,226
Playing a sound from a dynamic generated list
<p>I am new to C# and ASP.NET and I currently have a page that is dynamically displaying a list of .wav files from a directory using a checkbox list and displaying the date of the file when it was created. However since that is a .wav file I am trying to allow the end user to be able to play it but I am not sure where ...
c# asp.net
[0, 9]
2,643,911
2,643,912
JQuery Adding multiple classes to a div tag
<p>I would like to obtain the next line of code using JQuery:</p> <pre><code>&lt;div class="something something_else"&gt; &lt;/div&gt; </code></pre> <p>I use <code>$(document.createElement('div'));</code> to create the div, but then how do I add <code>something</code> and <code>something_else</code> to the div?</p> ...
javascript jquery
[3, 5]
3,825,897
3,825,898
calling javascript from c#
<p>I need to use the javascript functions to show and hide an element on my page, but calling it from within a C# method. Is this possible?</p> <p>EDIT : I tried RegisterStartupScript (see below) but this did not hide the elements as I had hoped :</p> <pre><code>HidePopup("CompanyHQSetup", "$('#&lt;%=DivDataProvider...
c# javascript
[0, 3]
2,238,178
2,238,179
Detect car acceleration in Android app?
<p>I want to incorporate some Accelerometer code into a Android application im working and want to see if this is possible. Basically what I need is for the code to detect car acceleration motion. I am not wanting to determine speed with the code but just distinguish if the phone is in a car and has accelerated motion ...
java javascript android
[1, 3, 4]
3,039,864
3,039,865
JQuery Adding the values of 2 divs into a third div
<p>I have 3 divs with numbers in each...</p> <pre><code>&lt;div id="one"&gt;1&lt;/div&gt; &lt;div id="two"&gt;5&lt;/div&gt; &lt;div id="total"&gt;0&lt;/div&gt; </code></pre> <p>What I need to do for example is:</p> <p>If #one is click then Add the values of #one and #two and update it on #total</p> <p>So, in the ...
javascript jquery
[3, 5]
3,213,648
3,213,649
Nanoscroller doesn't create a scroll if the content is inserted after the scroller is initiated
<p>I'm using <a href="https://github.com/jamesflorentino/nanoScrollerJS" rel="nofollow">nanoscroller js</a> to create a scrollable area in a <code>div</code> element. The problem is that I'm filling that <code>div</code> element with data with ajax (imagine facebook notifications). First there are 0 notifications, no d...
javascript jquery
[3, 5]
4,005,579
4,005,580
JQuery: binding click event to multiple href's not working properly
<p>I am binding the click event to 4 href's (they have class="alink") using JQuery in the ready() event like this: $(".alink").click(function() { debugger; });</p> <p>I expect whenever I click on a link, the event fires. However what I notice is that sometimes it doesn't fire and when it fires, it fi...
javascript jquery
[3, 5]
4,226,261
4,226,262
What is the purpose of assigning the url to the image source in jQuery?
<pre><code>$("&lt;img src="+url+"&gt;").appendTo($("body")); </code></pre> <p>In this the total information is in url and then it is appended to body tag. Why here we use the image source to assign url.</p>
javascript jquery
[3, 5]
3,392,938
3,392,939
python, options to parse a javascript web app
<p>Gents, Have to write a python app to communicate and fetch some data from a password protected, javascript enabled web app.</p> <p>The webapp unfortunately requires javascript to run, and refuses to work if javascript is disabled. Therefore, 'urllib2' and 'requests' dont work when trying to fetch data.</p> <p>W...
javascript python
[3, 7]
5,597,748
5,597,749
how to hide an if statment? or whatever technique can be done?
<p>I have an external javascript file, and it has multiple if statements, the problem is, one of the if statements is still being called even if the form is hidden. my application goes like this, - when a user is logged-in, hide this particular input form - if not logged-in, show the input form</p> <p>so that's the p...
javascript jquery
[3, 5]
3,298,725
3,298,726
Android: write a file with the content of a XmlPullParser
<p>I have following file from a parser:</p> <pre><code>Resources res = getResources(); XmlResourceParser parser = res.getXml(R.xml.textvalues); </code></pre> <p>and I want to copy its content to my private storage to be able to work with it, I would like to do it like this:</p> <pre><code>String FILENAME = "hello_fi...
java android
[1, 4]
5,532,977
5,532,978
Retrieve submit label using jQuery
<p>i have the html as follows </p> <pre><code>&lt;div class="element-container" id="div_3"&gt; &lt;div id="submit_submit" class="element"&gt; &lt;div class="fleft"&gt; &lt;input type="submit" value="Click me!" name="submit" id="submit"/&gt; &lt;/div&gt; &lt;div class="clr"/&gt; ...
javascript jquery
[3, 5]
1,521,324
1,521,325
access variables of one class in another class
<p>In my app, I have a class called <strong>Monsters</strong> that reads in data from an XML file. This Monster class calls another class called <strong>MonsterStats</strong>.</p> <p><em>Monster</em> uses data from the XML file to set variables in the <em>MonsterStats</em> class.</p> <p>Is there a way to use these va...
java android
[1, 4]
1,779,100
1,779,101
Parse data before sending it to action link or artificial POST request
<p>I have a form and it have <code>action="http://anotherhost.com"</code>. But I have a problem, before sending it to another host I need to save entered data to database and here is a problem, how to do it?</p> <p>I have idea, but don't know how to realise it.<br /> 1) Change <code>action="http://anotherhost.com"</co...
php javascript
[2, 3]
1,329,372
1,329,373
Why would javascript work embedded in html page, but not in external script?
<p>I am using a simple script, and when the script is embedded into the actual html page it works just fine, but when it is thrown into an external .js the script no longer works, i am not seeing any errors in the console, it is a jquery delegate function, and i know that the external script is working, because there a...
javascript jquery
[3, 5]
3,947,418
3,947,419
jQuery .data() replace nested objects' properties
<p>I'm using jQuery's <a href="http://api.jquery.com/data/" rel="nofollow"><code>.data()</code> method</a> to store some data using nested objects like this:</p> <pre><code>$('div.divwithdata').data('somedata', { 'a': { 'b': { 'c' : {} } } }); </code></pre> <p>However my question i...
javascript jquery
[3, 5]
4,598,312
4,598,313
jOrgChart - Horizontal View
<p>I was messing around with the jOrgChart plugin, but because of the limitation of our websites width, I was trying to everything I possibly could (at my level anyway) to fit the chart in. However, there were just so made issues in terms of the alignment and size, I decided that the best way to go about it, is to just...
javascript jquery
[3, 5]
1,792,648
1,792,649
Shift from Java to c++
<p>I have been developing applications based on C# (.net) and Java (J2EE) from the last 3 years.</p> <p>But, now I feel, Java, C# makes you lame (from learning point of view) and you can develop your apps quickly but you fail to understand the basic underlying concepts of programming.</p> <p>So, I am trying to learn ...
java c++
[1, 6]
4,759,464
4,759,465
Benefits to starting JavaScript "for" loops at 0, or just traditional?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://programmers.stackexchange.com/questions/110804/defend-zero-based-arrays">Defend zero-based arrays</a> </p> </blockquote> <p>I'm running code that loops through an array of HTML IDs.</p> <p>With the HTML IDs named content1, content2, …, co...
javascript jquery
[3, 5]
5,280,796
5,280,797
ASP.NET - How to check if one or more field values have been changed
<p>I have a web form where I register a new employee. There're 3 parts in the form: Personal info, Address info, Special Status. But there's only one button for the whole form. When I submit the form all the information is updated to the database. So three Update statements are executed against the database. The method...
c# asp.net
[0, 9]
4,536,230
4,536,231
Android javascript bridge and anonymous functions
<p>I'm doing some Android/javascript bridging on a project using <a href="http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface%28java.lang.Object,%20java.lang.String%29" rel="nofollow">addJavascriptInterface()</a>. I'm wondering how would this work with javascript anonymous callbac...
javascript android
[3, 4]
4,380,478
4,380,479
Expanding the dimension of an element
<p>I have a thumbnail. When i click on it, how can i enlarge it. I know there are many plugins that do this, but is there simple code that serve the purpose. </p>
javascript jquery
[3, 5]
4,945,217
4,945,218
Variable is undefined whereas it defined
<p>The code below gives an undefined error on console for the variable <code>mystyle</code>. I don't get it as i defined the variable.</p> <pre><code>jQuery( '.styles_div' ).each( function() { switch (styles) { case 'style1': var mystyle = $('#stylewrap').append('&lt;div class="style1"&gt;&lt;/div&gt; '); ...
javascript jquery
[3, 5]
6,005,226
6,005,227
How to send email with ASP.NET and C#
<p>I'm trying to create a web service that receives user information (including email), and then sends off a confirmation email. Any ideas how I would be able to do that? And would I have to install an SMTP server on my machine?</p>
c# asp.net
[0, 9]
3,484,445
3,484,446
Remove Refresh Help Jquery
<p>I am trying to get the div recentactivity to only refresh when Remove is clicked</p> <p>&lt; a href='#' onclick=\"javascript:remove_wall('$id')\">Remove</p> <p>but when every i click on the link it keeps trying to refresh. when the mouse go's over the tr a link comes up saying remove here is the code for that.</p>...
php javascript jquery
[2, 3, 5]
5,004,512
5,004,513
Animating a div's apearance on mouseover in jquery
<p>I wanted to animate a div on mouseover. I just don't know how to make it fade in/appear slowly (I think we have to use the .animate function or something like that)</p> <pre><code>$("#logo").mouseover(function() { $("#nav").css('visibility','visible'); }); </code></pre> <p>Will appreciate any help :)</p>
javascript jquery
[3, 5]
2,448,953
2,448,954
Programmatically apply the image alt attribue as a class to parent element
<p>I want to add as a class the image alt attribute to its container element. Markup:</p> <pre><code>&lt;div class="field-group-our-people"&gt; &lt;div class="field-items even&gt; &lt;img alt="John"&gt; &lt;/div&gt; &lt;div class="field-items odd&gt; &lt;img alt="Kevin"&gt; &lt;/div&gt; &lt;div class="...
javascript jquery
[3, 5]
3,084,234
3,084,235
jQuery update form element
<p>I have a form that I create a checkbox on a click of a button. I am using <a href="https://github.com/pixelmatrix/uniform" rel="nofollow">https://github.com/pixelmatrix/uniform</a> which provides an update function to style dynamically create elements which does not work. I got a work around but my problem is that i...
javascript jquery
[3, 5]
2,588,219
2,588,220
How to capture paste event from right-click context menu?
<p>I have a textbox in ASP.NET web form, and I need to catch the paste event from right-click context menu. But I can't see where I can catch the associated event. </p> <p>The onchange event is no use, as this is only triggered when the input field loses focus. Neither does OnKeyDown event since it is not a mouse even...
asp.net javascript
[9, 3]
499,372
499,373
Best cross-browser method to capture CTRL+S with JQuery?
<p>My users would like to be able to hit Control+S to save a form. Is there a good cross-browser way of capturing the Ctrl+S key combination and submit my form?</p> <p>App is built on Drupal, so jQuery is available.</p>
javascript jquery
[3, 5]
268,826
268,827
Setting Background from Image on Android
<p>So I have a program, this I want this program to change the background on the linear layout to a new image in the person's gallery every n minutes. Currently I am getting the path using the following...</p> <pre><code>public String getCurrentImageLocation(){ ContentResolver contentResolver = getContentResolver(...
java android
[1, 4]
4,053,681
4,053,682
Jquery clear form in a section
<p>for the following:</p> <pre><code>&lt;div class="section grouping"&gt; &lt;div class="sectionControl"&gt; &lt;div class="parent row errorOn"&gt; &lt;div class="validGroupControl"&gt; &lt;div class="row2 itemWrap clearfix"&gt; &lt;label&gt;Login1 (adress e-...
javascript jquery
[3, 5]
604,936
604,937
Complex text formatting ASP.NET/C#
<p>Accused to be not detailed enough, now I'll try to be detailed and descriptive as possible.</p> <p>So, I have web application with textbox. Next to it I made label for preview, so when I click Submit, it sends text to remote application, when I press preview, it sends text to label for preview.</p> <p>Remote appli...
c# asp.net
[0, 9]
5,218,150
5,218,151
http://10.0.2.2 works on the android emulator but not on android device used as a emulator
<p>I connected my android device via USB to use it as a emulator, if I access the URL from eclipse emulator it works but the same if I access from device as emulator it gives connection time out error.</p> <p>is there any settings do I need to change for this? or is there any possible solution for this?</p> <p>Thanks...
java android
[1, 4]
2,766,370
2,766,371
create bitmap with alpha from multiple drawables
<p>I am drawing multiple resources onto a bitmap via a canvas. I would like the end result of the composite image to have a certain alpha. Right now I'm setting paint's alpha to the level i want and then drawing each bitmap with that alpha, but i know this would create a composite image of a lot of different alphas....
java android
[1, 4]
2,973,995
2,973,996
Use inline style in ASP.NET code file
<p>Good Day.</p> <p>I want to send an email from my code file in ASP.NET. I want to apply styling to my html...How do I do it?</p> <p>Here is the html part:</p> <pre><code>var Message = string.Format("&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=""this does not work!!""&gt;{0}&lt;br/&gt;{1}&lt;br /...
c# asp.net
[0, 9]
952,313
952,314
Preview Images using fileupload
<p>I want to preview 3 images which I have taken on same page using FileUpload.I have to also show 3 thumbnail of it each 3 images.But problem is it shows first images 9 times i.e 3*3 . I create image folder for it .here is code which I have run: string file, thumbPath;</p> <pre><code> file = FileUpload1.PostedFil...
c# asp.net
[0, 9]
1,197,907
1,197,908
Android: How to logout user after 24 hours?
<p>One way I thought was to check the timestamp from the last time it was run to the current timestamp and determine if the user needs to be logged out (from the app's member section). Another developer suggested creating Android services. Would like to know a good approach to automatically forcefully logout user after...
java android
[1, 4]
2,039,096
2,039,097
Scroll to bottom of page, only if the user already was at the bottom before DOM manipulation
<p>I'd like to learn how to use <code>window.scrollTo</code>.</p> <p>Here's is the desired behavior:</p> <ol> <li>Determine if the user is scrolled to the bottom of the page, or no scroll bar is visible</li> <li>Then I want to grow a DIV, this is working</li> <li>If #1 was true, use <code>window.scrollTo</code> to sc...
javascript jquery
[3, 5]
954,192
954,193
php `exec` calls python script. how return strings from python?
<p>I use <code>exec</code> function calling python script from PHP script. Python writes to standard output two strings which I need in PHP script. The problem is that in these strings could be end of line characters <code>\n</code> ( so formally there are many lines in output), and according to <a href="http://php.net...
php python
[2, 7]
2,249,582
2,249,583
Can not removeClass in jQuery
<p>The loading class is added but it doesn't removed. How to fix this ?</p> <pre><code>$(".phones").addClass("loading"); that = this setTimeout(function() { $(that).removeClass('loading'); }, 3000); </code></pre>
javascript jquery
[3, 5]
681,308
681,309
Object Notation in Javascript
<p>I'm trying to call a blur function on a variable assigned to a jquery object (an input field). How do I call the function on the variable?</p> <pre><code>var someObject = { day: $('#dayInputField'), // input text field init:function(){ console.log("this.day" + this.day); // outputs object thi...
javascript jquery
[3, 5]
3,100,899
3,100,900
Can I install an Android application from a byte array programmatically?
<p>I know I can install an Android application programmatically by the below code which passes the <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Identifier" rel="nofollow">URI</a> of an <a href="http://en.wikipedia.org/wiki/APK_%28file_format%29" rel="nofollow">APK</a> file. Can I install the application witho...
java android
[1, 4]
819,469
819,470
Overwrite jQuery method $.POST
<p>I need a way to overwrite the jQuery <code>$.post</code> method, parameters <code>url</code>.</p> <p>I need to append a string to every script I have without editing them one by one. The string value may change because it's created by the system.</p> <p>I know there's a way to overwrite at 100% the value of the pa...
javascript jquery
[3, 5]
706,849
706,850
jquery two replace functions
<p><a href="http://jsfiddle.net/x5jeL/" rel="nofollow">http://jsfiddle.net/x5jeL/</a></p> <p>I am not sure why item count parentheses aren't being removed in this tiny fiddle example.</p>
javascript jquery
[3, 5]
1,844,203
1,844,204
Read data from .xls and .ods files
<p>Is there a way to read data from excel and open office spreadsheets and save them to a temporary store, like a DataSet or array? I came across ExcelDataReader (http://exceldatareader.codeplex.com/), but it only works if the user has Excel installed on their computer. Some of our users only have Open Office (and othe...
c# asp.net
[0, 9]
1,000,009
1,000,010
How does server tags work in javascript?
<p>I have written a code</p> <pre><code>function validate() { if(document.getElementById("&lt;%=txtSearch.ClientID %&gt;").value=="") { message="Enter the User Id To Search"; document.getElementById("&lt;%=lblMessage.ClientID %&gt;").innerHTML=message; return false; } </code></pre> <p>Here I am using <code>...
javascript asp.net
[3, 9]
2,862,256
2,862,257
set val of html string in jquery loop with val()
<p>How do I take this string v that is in a loop and use jquery to add the value to the input id "MyInput"</p> <p>Here is a simplified version of my code</p> <pre><code>var d=''; $.each(row,function(i,v){ //v = &lt;div&gt;&lt;p&gt;gxsfsd&lt;/p&gt;&lt;p&gt;gxsfsd&lt;/p&gt;&lt;input type="hidden" id="Myi...
javascript jquery
[3, 5]
2,148,375
2,148,376
How can I add one DataColumn in two different DataTable?
<p>I am trying to add one DataColumn in two different DataTable, but it is giving me error and saying that "Column 'imgCount' already belongs to another DataTable". Can I do this? here is my code.</p> <pre><code>DataTable dtS = new DataTable(); DataTable dtF = new DataTable(); DataColumn imgCount = new DataColumn("img...
c# asp.net
[0, 9]
1,364,567
1,364,568
How to include track bar in asp.net webpage
<p>Does anyone know how to add a track bar in a page I want to get values from user from the track bar. I want to get the % 0-100. I would like to get some code for that thanks.</p>
c# asp.net
[0, 9]
4,035,498
4,035,499
ignoring fuzzy match and add exact wrd pattern matching using javascript
<p>I am trying to create a text highlight option for my website. But I want exact word match instead of fuzzy word match, The code that I have matches all kind of instances and it has some case sensitivity issues. If we take the Jfiddle example, I only want to add the word cancer, case sensitivity should nt be an issue...
javascript jquery
[3, 5]
104,482
104,483
get classname jquery
<p>I have the following html</p> <pre><code>&lt;div class="static dynamic1 dynamic2 prop"&gt;Hello SO&lt;/div&gt; </code></pre> <p>I need to get <code>dynamic1</code> and <code>dynamic2</code> (get classname that which begins with <code>dynamic</code>)</p> <p>Thanks.</p>
javascript jquery
[3, 5]
2,583,879
2,583,880
What is the best way to get a single value out of a dataset?
<p>I have a dataset that should have only one value in it, what is the best way to get that single value out and into an integer?</p>
c# asp.net
[0, 9]
5,423,143
5,423,144
javascript countdown clock
<p>im trying to write a countdown clock to a certain day in js. I have the following which works if i output it to the page but I cant seem to write it to a div using innerhtml?</p> <p>Can anybody see where im going wrong? </p> <pre><code>today = new Date(); expo = new Date("February 05, 2012"); msPerDay = 24 * 60 * ...
javascript jquery
[3, 5]
523,594
523,595
Email anti spam PHP
<p>I have a contact form with no sort of spam protection on my site and im receiving lots of spam, I'm going to add anti spam protection, I know i can do this with PHP, but if I stopped the form from validation if an anti spam question was wrong using jQuery, would this be sufficient? or do spam bots bypass javascript ...
php javascript jquery
[2, 3, 5]
1,403,176
1,403,177
check for part of a string, read in all then split up
<p>so in different parts of text i will have random links that I need to read in an interpret.</p> <p>for example the text might be </p> <pre><code>&lt;div id="test"&gt; &lt;li&gt; blah blah&lt;/li&gt; &lt;li&gt; &lt;!--{Byond:cta|localAction:products:4|Cool Dude}--&gt; blah blah blahs&lt;/li&gt; &lt;li&gt; blah fa...
javascript jquery
[3, 5]
2,341,259
2,341,260
How can I make a function defined in jQuery.ready available globally?
<p>I'm somewhat new to this so I think there is an easy answer. </p> <p>I have a function that strips the youtube id off a url. I then want to use this function 10 time per page (in the wordpress loop).</p> <p>The function works great when I feed it the url within my function script tags, but when I start a new set o...
javascript jquery
[3, 5]
838,673
838,674
jQuery prevent scroll
<p>I have a click event but it jumps to the top of the screen. </p> <p>I have tried return false and e.preventdefault. I think it maybe something else. Has anyone come across something like this? Thanks</p> <pre><code> $("#savedCompares").click(function() { $('#searchContent').hide(); $...
javascript jquery
[3, 5]
4,974,273
4,974,274
How to release objects from memory
<p>I have this generic list that is being cached in memory. How can I manually during testing release that object from the cache? I cleared cache on the browser but still when I refresh I get the same set of products becuase it's checking my cached object in my database retrieval method.</p>
c# asp.net
[0, 9]
5,145,660
5,145,661
Changing external variable from nested function
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/9041321/return-ajax-callback-return">return AJAX callback return</a> </p> </blockquote> <p>Running the below code: res1 is full, res2 is empty, res3 is empty,</p> <p>How can i change the result variable and use...
javascript jquery
[3, 5]
806,553
806,554
Ajax Control Toolkit Filter Types
<p>I've a radiobuttonlist and an textbox like this ;</p> <pre><code> &lt;asp:RadioButtonList ID="RadioButtonFirm" runat="server" AutoPostBack="true" RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonFirm_SelectedIndexChanged"&gt; &lt;asp:ListItem i...
c# javascript asp.net
[0, 3, 9]
5,418,210
5,418,211
If value of form field is less than variable show alert with info
<p>How to do something like this: if value of this form field: <code>$('#id_erinnerung_am')</code></p> <p>is &lt; <code>enddate</code> ->show <code>alert("Wrong");</code></p> <p>Java script code:</p> <pre><code>$(document).ready(function(){ $('#id_laufzeit_bis').datepicker().on('changeDate', recalculate_deadlin...
javascript jquery
[3, 5]
1,575,567
1,575,568
create an email drop box with php, javascript etc
<p>I am in the midst of creating an online contact management tool for users to manage contacts and clients. I am trying to develop a solution where the user will add a <code>BCC</code> or <code>CC</code> in any email client like this:</p> <pre><code>1234@myappdomain.12345.com </code></pre> <p>and my app will grab t...
java php javascript jquery
[1, 2, 3, 5]
5,757,198
5,757,199
How to Select Text in an Element (akin to highlighting with your mouse) on newly created ajax content?
<p>I'm using the <code>selectText</code> function from here <a href="http://stackoverflow.com/a/987376/784637">http://stackoverflow.com/a/987376/784637</a></p> <p>However when I called this function immediately after an ajax request on the newly created element:</p> <p><code>selectText('some-newly-added-element')</co...
javascript jquery
[3, 5]
370,726
370,727
Run js function once when fired more than once
<p>I have a Div that uses jQuery to load a file/contents with a javascript function..</p> <pre><code>function DoWork() { // Do Stuff } </code></pre> <p>Let's say the user can reload the Div and pull the same file/contents with the same js function DoWork(). The problem is, when the file is reloaded, the previous ...
javascript jquery
[3, 5]
2,182,618
2,182,619
Script to disable select if option selected
<p>how would you write a script to disable a select if you have two selects (both with ids) and an option in the first select is selected. Thanks</p>
javascript jquery
[3, 5]
106,679
106,680
Accessing Javascript In PHP variable
<p>I have a php variable of javascript code which was parsed from another page. Is there a simple way to access the javascript variables individually with php? </p> <p><strong>PHP:</strong></p> <pre><code>$cool = "&lt;script type='text/javascript'&gt; var Title = 'This is the title'; var Text = 'Some text here'; Tit...
php javascript
[2, 3]
2,459,591
2,459,592
Async Task /w Connection\Server Availability
<p>What is the proper way of doing this? I see a lot of suggestions to use Connectivity Manager but that will only determine the client side connection. What if the server is down?</p> <p>Also what kind of exception would I catch to process the error message</p>
java android
[1, 4]
1,941,953
1,941,954
master page link button
<p>I have a link button in the master page "HOME".When I click this link I have to move to Service providers home page(to particular provider page) if I have logged in as service provider, else should log in as service seeker home page.</p>
c# asp.net
[0, 9]
2,338,359
2,338,360
How to Create Session in asp .net C# login and registration memberprofile page
<p>I am new to ASP .net C# i created registration,login and member profile page</p> <p>after all validations data is stored in database.. and login page also working fine...</p> <p>i dont know about sessions ..how can i create session and how to make login module more effective using sessions?</p> <p>thanks in advan...
c# asp.net
[0, 9]
6,013,525
6,013,526
How to get XML declaration header? Android
<p>I'm writing a rss reader app for android and now i need to know what is the encoding of xml before i start parsing it (windows-1251 or utf-8). This is described in xml declaration header i.e. <code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</code>. How can i get this header before parsing? I use android.sax implem...
java android
[1, 4]