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
5,002,252
5,002,253
Android crashing on activity start
<p>Android crashes whenever this activity is started. here is the code.</p> <pre><code>import java.util.ArrayList; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content...
java android
[1, 4]
5,444,730
5,444,731
Checking something isEmpty in Javascript?
<p>How can I check if a variable is empty in Javascript? Sorry for the stupid question, but I'm a newbie in Javascript!</p> <pre><code>if(response.photo) is empty { do something else { do something else } </code></pre> <p><code>response.photo</code> was from JSON, and it could be empty sometimes, empty data c...
javascript jquery
[3, 5]
2,594,016
2,594,017
Set Page Variable With JS/JQuery
<p>I have an html page that is basically a wrapper. I have tabs on the page, that when clicked uses the JQuery.load function to load a particular page in a subdirectory. This allows me to change content to suit a partticular page view without having to refresh the page or set session variables. However, if I <em>do<...
javascript jquery
[3, 5]
4,962,072
4,962,073
Jquery - techniques for extending 'perimeter' for mouseout?
<p>I would like to implement behaviour such that a mouseover/hover event is triggered when the mouse pointer hovers over a certain div, but such that the mouseout event tiggers not when the pointer leaves the div, but when it leaves the area 10px ourside the div.</p> <p>Is there any way of achieving this that doesn't ...
javascript jquery
[3, 5]
1,259,755
1,259,756
Better Way to Remove Elements from a List?
<p>I'm going to have a unordered list (<code>&lt;UL&gt;</code>) of items. Each item will have a delete button, which will make an ajax call &amp; then remove the item from the list. I have all the info I need to make the Ajax call, but I'm wondering the best way to let the user remove any item in the list.</p> <p>My...
javascript jquery
[3, 5]
5,481,598
5,481,599
Prevent scrolling to top using .load()
<p>I'm trying to prevent the scrolling to the top when using jQuery's .load function. I've read at SO that you can use <code>event.preventDefault(); event.stopPropagation();</code>. <a href="http://stackoverflow.com/questions/7537777/prevent-scrolling-to-top-when-using-jquery-load">Here</a> is the link to this question...
c# jquery
[0, 5]
4,144,537
4,144,538
What's a good Javascript tutorial library?
<p>I'm looking for something that will allow me to walk a new user through a a web app one step at a time with different hints on what to click and look at. Does something like this exist?</p>
javascript jquery
[3, 5]
5,162,894
5,162,895
Arraylist in arraylist
<p>I wonder how I create arraylists dynamically and add them to an arraylist that holds all arraylists? I also wonder how I read from a dynamically created arraylist inside the main arraylist in a for-each loop?</p>
java android
[1, 4]
494,343
494,344
How to Stop Browser from Closing Using ASP.NET or Else?
<p>i got a web page and when browser fire Closing Event i wanna stop it ? How can i do that in asp.net or anyother alternative?</p>
c# asp.net javascript
[0, 9, 3]
2,251,246
2,251,247
Where can I find a plugin that will zoom in and out a div's content with a slider?
<p>Are there any plugins that allows zooming in and out a div and it's content via a slider?</p> <p>Thanks</p>
javascript jquery
[3, 5]
5,945,692
5,945,693
Map structure in Android and dynamic memory allocation
<p>Not so recently I've published a game that is written entirely in Java on Android platform. Currently I'm trying to get as much of the performance as possible. It seems that the problem in my game's case is that I'm using more too often <code>ArrayList</code> container in places where <code>Map</code> could be bette...
java android
[1, 4]
1,755,185
1,755,186
Passing PHP variables to jQuery integer
<p>basically I know more or less how to do it but would like to know if there is any better way?</p> <p>I have the following variables in PHP</p> <pre><code>$day; $month; $year; </code></pre> <p>The ones above have values from exploding a php date string.</p> <p>Below is PHP plugin function which states the date fo...
php javascript jquery
[2, 3, 5]
907,478
907,479
Constraint - Derived Class must have a default Constructor
<p>I want to Constraint that the Derived Class must have a Default Constructor. I am currently thinking it in a perverted way</p> <pre><code>template &lt;typename Derived&gt; class Base{ public: Base(){ } virtual ~Base(){ new Derived; } }; </code></pre> <p>Another idea comes to mind is to kee...
php c++
[2, 6]
3,472,159
3,472,160
change content of a cell in table usnig javascript
<pre><code>&lt;html&gt;&lt;head&gt; &lt;script type="text/javascript"&gt; function addFunction(id) { cnt=parseInt(id.substr(7)); var row=document.getElementById('driverDetails').insertRow(cnt+1); var c1=row.insertCell(-1); var c2=row.insertCell(-1); var c3=row.insertCell(-1); c1.innerHTML="row"+(cnt+1)+"col...
php javascript
[2, 3]
570,266
570,267
add dynamically tab panel and add the image button or button on the dynamically added tab and show like the internet explore tab
<p>I want to add a tab dynamically and also add a button or image button in the added tab. But when i add a but on the added tab the button show below the tab header text. I want that The header text of dynamic added tab and button show in single line i.e align horizontal. The code is given below. Please suggest me.</p...
c# asp.net
[0, 9]
1,590,556
1,590,557
Adding support for settings screen android
<p>I'am using several CheckBoxPreference in my android app to add a settings menu. But is there a way to say that one and only one CheckBoxPreference <strong>MUST</strong> be checked at the time? </p>
java android
[1, 4]
1,022,274
1,022,275
Stop/break an SaxXMLparsing
<p>Im making an app that fetches some XML using SAXparser. Im parsing the xml and if the xml does not have a specific node I have to start over the SAXparser with a different URL. </p> <p>This means that when I'm in my XML handler inside startElement I have to break/stop it and do it again. How can I do this break/sto...
java android
[1, 4]
1,908,302
1,908,303
Why selector ":button" doesn't work with click event?
<p>Hi I'm using the Jquery selector ":button" but doesn't work combine with click event....</p> <pre><code>$(":button").click(function () { alert("click"); return false; }); </code></pre>
javascript jquery
[3, 5]
805,358
805,359
Dropdownlist not showing previous value
<p>I have an asp.net dropdownlist control with autopostback false. I have written js code to display confirm message while dropdown value changed.</p> <pre><code>function ConfirmAbsent(ddlPresence) { if (ddlPresence != null) { var myValue = ddlPresence.options[ddlPresence.selectedIndex].text; ...
javascript asp.net
[3, 9]
2,584,599
2,584,600
jquery how to wrap every fifth element
<p>i know i can do that in the hard way by using for loop or something like that but i'm asking </p> <p>if : there is any simple way to wrap every 5 images in a long list of images</p> <p>Thanks</p>
javascript jquery
[3, 5]
812,766
812,767
adding css to custom reusable function
<p>i created a function in jQuery which lets me create a lightbox as following:</p> <pre><code>var lightbox = create_lightbox(params); </code></pre> <p>I would like to expand this function so i can add custom css to it and make it look like a feel in any given circumstance. I would prefer to be able to do the folowin...
javascript jquery
[3, 5]
2,581,157
2,581,158
jQuery submit with $_Get parameter not working
<p>Hi I have a form here:</p> <pre><code>&lt;form method="post" name="work_form" action="&lt;?php echo $link; ?&gt;" </code></pre> <p>All is working OK and I have a separate jQuery that will also do the same submission and I have been reading on SOF and seems I can do something like this:</p> <pre><code>var action="...
javascript jquery
[3, 5]
4,532,329
4,532,330
need Help on storing data
<p>Im my application i have one page which shows lots of records in gridview and i also have one dropdown(html control ) in that page. User can select one or more records from gridview and need to select anyone option from dropdow.After that user need to click submit button(Html button not a server control). Based upo...
c# asp.net
[0, 9]
351,270
351,271
Android record exists() in database?
<p>I am looking to the fastest and the correct way to check if a record exists in the database:</p> <pre><code>public boolean Exists(String _id) { Cursor c=db.query(TABLENAME(), new String[] {"1"}, "_ID="+_id, null, null, null, null); if (!c.equals(null)) return c.moveToFirst(); return false; } </c...
java android
[1, 4]
5,107,394
5,107,395
Create a cookie accessible to a domain A from a popup in a domain B
<p>The functionality im trying to create is similar to how <em>facebook connect</em> works, in a domain A when a button is pressed a popup fires up, showing content from a domain B, on this popup if the user login a cookie is created and then the popup is closed, but since this cookie was created in the domain B i cant...
php javascript
[2, 3]
2,448,376
2,448,377
How to maintain JavaScript performance while making an Ajax request at mousemove event?
<pre><code>$( document ).bind( 'mousemove', function ( e ) { if ( e.pageY &gt; $( document ).height() - 400 ) { $.ajax( { url: '/Tweet/GetFiveUserTweets', type: 'POST', async: false, // preventing a lot of asynchronous requests success: functi...
javascript jquery
[3, 5]
5,228,214
5,228,215
single quote to double quote , and , double quote to single quote in javascript
<p>I want to change </p> <p>every single quote to double quote and every double quote to single quote </p> <p>in jquery or js.</p> <pre><code>var myString = " tes't tes\"t tes\"t te'st "; console.log(myString); for (i = 0; i &lt; myString.length; i++) { console.log(myString[i]); if (myString[i] == "'") { ...
javascript jquery
[3, 5]
3,136,766
3,136,767
Session Timeout Add to QueryString
<p>I have an web app in C# and after 20 mins the session times out. I can't change this because other apps use the same config.</p> <p>So I am checking to see if the Session is NULL and if it is. It redirect and adds a QueryString with the Session ID. The problem I am having is when the Session times out the SessionID...
c# asp.net
[0, 9]
3,460,510
3,460,511
Javascript function not found
<p>I am having a problem with the jCal plugin. I have no javascript errors when the page is loaded locally however when the page is loaded online the jCal function can not be found. I think the jCal function is called before jCal/jCal.js file is executed. <a href="http://aidnetgc.com/test/volunteer.html" rel="nofollow"...
javascript jquery
[3, 5]
5,480,606
5,480,607
sql asp.net send email c#
<p>if you could please help me out... i am try to create o forgot password method.access my database and send an e-mail. if you please help me out since i don't have a lot of experience. thanking you in advance. Login is unique. C# </p> <pre><code>protected void LinkButton1_Click(object sender, EventArgs e) { ...
c# asp.net
[0, 9]
2,854,674
2,854,675
LinqDataSource Syntax
<p>I have quite a complex LinqDataSource that I'm trying to setup. I've been able to write part of the Linq for it but am unsure how to convert this to LINQDataSource syntax or whether it is even possible. It looks like this.</p> <pre><code>ConfigDetails.Where (cd =&gt; AuthProductOwners .Where (o =&gt; (o.LoginID...
c# asp.net
[0, 9]
1,518,216
1,518,217
How to implode JavaScript into PHP's return function?
<p>I have a PHP function:</p> <pre><code>function output_errors($errors) { return '&lt;ul&gt;&lt;li&gt;' . implode('&lt;/li&gt;&lt;li&gt;', $errors) . '&lt;/li&gt;&lt;/ul&gt;'; } </code></pre> <p>But instead of <code>&lt;ul&gt;</code> and <code>&lt;li&gt;</code>s I wish to use jQuery to show errors:</p> <pre><co...
php javascript
[2, 3]
3,635,505
3,635,506
how can we increase or decrese the size of div on btn click in asp.net?
<p>how can we increase or decrese the size of div on btn click in asp.net?</p> <pre><code> //stylesheet &lt;style&gt;div { width:50px; height:70px; float:left; margin:5px; background:rgb(255,140,0); } &lt;/style&gt; &lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&...
c# javascript asp.net
[0, 3, 9]
3,738,738
3,738,739
Interacting with jQuery plugin objects after their creation
<p>I have a ticker which items are updated using polling. I have written a simple jQuery plugin for the ticker which is invoked like so:</p> <pre><code>$("#cont ul").ticker(); </code></pre> <p>Which turns a ul into a ticker, scrolling through the li. To add new items I have to add lis to the ul, which works fine. How...
javascript jquery
[3, 5]
5,410,069
5,410,070
Is there a way to play the role of Javascript with any other language like C#?
<p>Is there a way to play the role of Javascript with any other language like C#? One way came up in my head is, having silverlight installed, using C# instead of Javascript for all the client side scripting (Though C# is not a scripting language). Is it possible?</p> <p>I am not talking about something like GWT(Java)...
c# javascript
[0, 3]
4,577,325
4,577,326
Creating a loop that fades out each article in succession. jQuery
<p>So the idea is to fade each image out from the bottom.. obviously it's going to have to backwardly traverse the array. However, i can't seem to figure it out at the moment. The idea is that it would pause after running the fadeOut() function, I thought set time out would work, but firebug gives me this error: useles...
javascript jquery
[3, 5]
4,890,345
4,890,346
Error not being displayed with updatepanel
<p>It appears like something is stopping my errors from displaying normally an in ASP.NET site.</p> <p>Scenario 1 - I have an admin screen that has most of its content inside an updatepanel. When the user's session times out. You click a button and nothing happens. It doesn't redirect you to the home page and it do...
c# asp.net
[0, 9]
2,408,894
2,408,895
String variable out of context for use in HTML output
<p>I'm trying to understand why the variable <code>myUrl</code> is out of context in the example below. What's the best way to handle this situation? Are there alternatives? The code is C# in an ASP.NET page.</p> <pre><code>&lt;% string myUrl = "http://www.website.com"; %&gt; &lt;ul class="footerLinks"&gt; &lt;li&...
c# asp.net
[0, 9]
2,506,045
2,506,046
Downloading a file from server and save it in client
<p>I am currently developing an ASP.net application, where I generate a word document in server and I want to save it in client machine who access that feature with out user interactions. How can I download it and save it in client machine, using Javascript?</p>
c# javascript asp.net
[0, 3, 9]
3,982,598
3,982,599
Change hyperlinks dynamically using jquery
<p>I want to change the param of link dynamically.</p> <p>For e.g. </p> <ol> <li>Link1</li> <li>Link2</li> <li>Link3</li> </ol> <p>by default their url is ?item=text i.e. for link1(href="?item=link1") etc.. but when i click link1 the url of link2 and link3 should be link2(?item=link2&amp;item=link1) link3(?item=link...
javascript jquery
[3, 5]
1,700,475
1,700,476
Problem with blur and click event?
<p>I have a web application with asp.net and at code behind with Jquery.</p> <p>In that there are text boxes and a grid. There is written blur event in jquery page for the text boxes and row click event for the row in table. </p> <p>When click the row then as per row value its details will displays in text boxes. My ...
jquery asp.net
[5, 9]
263,371
263,372
Multiple .live() bound to element
<p>I have a nice tooltip script. Scrip puts element's title attribute into tooltip div. Tooltip follows mouse arrow via mousemove, removes div after mouseout and puts element's title back. It works perfect on static pages, but i have some troubles with ajax. </p> <p><a href="http://jsfiddle.net/b5LRK/3/" rel="nofollow...
javascript jquery
[3, 5]
4,425,817
4,425,818
Stop click from working on inner elements
<p>I have a div that covers the screen. Within the div is another div and within that, an image get dynamically placed. When the user clicks on the outer div it closes, and that is fine. When the user clicks on the image or the inner div it closes as well, how can I stop that from happening? I only want it to close if ...
javascript jquery
[3, 5]
5,328,054
5,328,055
How to open pop up with tool bar
<p>i need to open a page with same window.</p> <p>i used code like</p> <pre><code>window.open('NZFReferenceSelector.aspx?RefId= ' + refID, '_self', parameters, false); </code></pre> <p>the page is open with in same page.</p> <p>but it does not show the tool bar?</p> <p>iam using vs 2010 and javascript need help Th...
javascript asp.net
[3, 9]
3,906,621
3,906,622
combining js scripts from a js newb
<p>I've got a small .js file on my wp site where I have been adding in all of my small js scripts. It works perfectly, but I am stuck trying to figure out how to add in another script. So far jslint does not complain about my current file and says it is ok.</p> <p>my script:</p> <pre><code>jQuery(function ($) { funct...
jquery javascript
[5, 3]
2,506,014
2,506,015
how to avoid looking css property using jquery or javascript
<p>There is some content in html page and one of div style for that is like below:</p> <pre><code>.class1{ property1:value1; property2:value2; property3:value3; property4:value4; } </code></pre> <p>I want to avoid applying css property property1 into concerned content and rest property property2, property3, property4...
javascript jquery
[3, 5]
4,680,375
4,680,376
How to get if a zip code is in australia or not in android?
<p>In my new project I am providing user an edittext where he has to put a zip code, i have to check if this provided zip code is valid for Australia or Not. I am getting so much suggesions, but I need the easiest and simplest one. Moreover it would be the best If I could find a webservice from where I could check this...
java android
[1, 4]
3,596,160
3,596,161
Why this code doesn't work (and how to repair it)?
<p>This question is a consequence of <a href="http://stackoverflow.com/questions/15871307/ultimate-solution-to-defer-javascript-and-jquery-after-page-is-loaded">another question of mine</a>.</p> <p>The code is:</p> <pre><code>&lt;script type='text/javascript'&gt; var scripts = [ "http://www.---.com/inclu...
javascript jquery
[3, 5]
5,926,989
5,926,990
jquery fetch images from url and provide as zip file
<p>I have the URLs of a list of images. Now on click of a link, ineed to to zip the images in all those URL's and provide it as a downloadable file. What i have currently done is,</p> <ol> <li>Pass the URLs to django views</li> <li>Fetch the images and store it to filesystem</li> <li>Zip them and</li> <li>Return a dow...
javascript jquery
[3, 5]
4,205,854
4,205,855
Can I add a javascript alert inside a PHP function? If yes, how?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1045845/how-to-call-a-javascript-function-from-php">How to call a JavaScript function from PHP? </a> </p> </blockquote> <p>Can I add a javascript alert inside a PHP function? If yes, how?</p>
php javascript
[2, 3]
5,430,586
5,430,587
Using PHP inside Javascript? To shrink URL
<p>I made a bitly url shrinker, and I currently have a Soundcloud Javascript API that outputs a url link of a song. Im trying to shrink it using my shrinker. The shrinker works using this:</p> <pre><code>&lt;?php echo $bitly-&gt;shorten('http://google.com'); ?&gt; //Equals google.com in short url format </code></pre> ...
php javascript
[2, 3]
5,147,836
5,147,837
PHP equivalent to JavaScript's string split method
<p>I'm working with this on JavaScript:</p> <pre><code>&lt;script type="text/javascript"&gt; var sURL = "http://itunes.apple.com/us/app/accenture-application-for/id415321306?uo=2&amp;mt=8&amp;uo=2"; splitURL = sURL.split('/'); var appID = splitURL[splitURL.length - 1].match(/[0-9]*[0-9]/)[0]; document....
php javascript
[2, 3]
383,561
383,562
How to make this code work in jQuery 1.4.x?
<p>The on() method isn't supported in jQuery 1.4.x. Can someone tell me how to fix this so it's compatible?</p> <pre><code>$(document).on({ mouseenter: MyObj.mouseenter, mouseleave: MyObj.mouseleave }, '.class'); </code></pre>
javascript jquery
[3, 5]
5,876,333
5,876,334
Is there a way to __doPostBack to another page using javascript?
<p>I'm writing a suite of admin tools to sit on top of our existing site that will allow a user to quickly administer a number of pages from one convenient jquery ui window.</p> <p>The issue I'm running into is that a lot of the functionality requires <strong>postbacks on specific pages</strong>, while this admin over...
javascript jquery
[3, 5]
4,701,080
4,701,081
Bundle becomes null when passed to a sub activity
<p>I'm using the standard Android Intent/Bundle method to pass data to a sub activity.</p> <p>The problem is that although the Intent looks good before the activity is kicked off, it shows up as null in the sub activity. I can't find anyone else who has had this problem, so I thought I'd ask for pointers about where t...
java android
[1, 4]
1,264,265
1,264,266
Create object on page_load and pass to JQuery
<p>I have an asp.net page and the JQuery date picker. On page load, I want to look at some config and create an object of dates to not include and then pass that to my JQuery in an external .js file. Is there a way to do this? How?</p> <p>EDIT: I'd like to pass a Class object</p>
jquery asp.net
[5, 9]
1,380,951
1,380,952
How to match external links with javascript (but ignore subdomains)?
<p>I have the following (jquery) selector looking for external links.</p> <p>This works, and ignores all links that include <code>location.hostname</code> <em>(e.g. www.domain.com)</em></p> <p>My question is, how to extend this to also ignore links to subdomains of your site? <em>(e.g. new.domain.com)</em></p> <pre>...
javascript jquery
[3, 5]
2,956,114
2,956,115
Why do I encapsulate a jQuery function within jQuery(function ($) { });
<p>I came across a piece of code which looks like this:</p> <pre><code>jQuery(function($) { $('#saySomething').click(function() { alert('something'); }); }); </code></pre> <p>I don't quite get it. Why can't I simply do this:</p> <pre><code>$('#saySomething').click(function() { alert('saySomething'); }); <...
javascript jquery
[3, 5]
5,058,511
5,058,512
Simulating AppDomain recycle
<p>I read Phil Haack's article on using the <code>IRegisteredObject</code> interface to be sure that a background thread finishes completion when the AppDomain is brought down, and I implemented it into my code. However, I'm not entirely sure how to simulate a AppDomain crash in order to test it. How can I simulate an ...
c# asp.net
[0, 9]
4,536,798
4,536,799
How to make a "do not ask me again" dialog pop-up box? Android
<p>I am trying to create a "hint" dialog box that informs the user about enabling GPS on their phone will decrease battery life. I want it to pop-up but have a check box that says: "Do not ask me again". </p> <p>How do I go about creating this in Android?</p> <p>Thank you,</p> <p>Zukky.</p> <pre><code>AlertDialog.B...
java android
[1, 4]
3,299,806
3,299,807
Javascript/JQuery: return immediately from PARENT function in call to each() via anon function
<p>For example:</p> <pre><code>&gt; function foo() { &gt; jQuery(whatever).each( function() { return; // this just exits the anonymous function - is there a way to return from foo? } ); &gt; &gt; } </code></pre>
javascript jquery
[3, 5]
3,827,978
3,827,979
Delete does not ask for confirmation
<p>When Delete button is clicked, the confirmation box should pop up if the selected node has child nodes. Otherwise, it should not do anything.</p> <p>Right now, when I click on delete, it just deletes without confirming.</p> <p>Here is the code:</p> <pre><code> &lt;asp:Button ID="btn_delete" runat="server" Height...
c# javascript asp.net
[0, 3, 9]
5,605,632
5,605,633
How do I add a reference to a Web Application Project in an Associated Class Library?
<p>I'm working on an internet application that has been set up as a web SITE project (I know...) in Visual Studio. I need to add additional features/functionality so have added a class library to the project and referred to it in the main web site project.</p> <p>The issue now arises because I need to make use of core...
c# asp.net
[0, 9]
666,243
666,244
jQuery Validation - Using validation on click, not on submit
<p>I'm using (or trying to) <a href="http://docs.jquery.com/Plugins/Validation" rel="nofollow">JQuery Validation</a> with WebForms/html.</p> <p>I have, basically (simplifying the real html, showing only the elements):</p> <pre><code>&lt;input id="txtEmail"/&gt; &lt;input id="txtTicketID"/&gt; &lt;a id="create" href="...
asp.net javascript jquery
[9, 3, 5]
3,418,040
3,418,041
Preventing MicrosoftAjaxWebForms.debug.js from loading
<p>I've got an ASP.NET web application, and I'm attempting to reduce HTTP calls to the server, so I'd like to not load things like <code>MicrosoftAjaxWebForms.debug.js</code> and <code>MicrosoftAjax.debug.js</code>. </p> <p>Script manager is used to form all of my external javascript files into one, and I'm concerned ...
asp.net javascript
[9, 3]
4,449,192
4,449,193
jquery tooltip mouseout mouseover
<p>I have a Problem. The following Tooltip working great, but there is a Problem. When i go with the mouse to the right side, the cursor is faster then the tooltip and will hover it. This will hide and show the Cursor for a split Second. </p> <pre><code>http://gabibyte.zxq.net/jquery_tooltips/example.html // !REMEMBER...
javascript jquery
[3, 5]
5,115,389
5,115,390
how do i call this code from an html button and pass it parameters
<p>OK I found this code here at stackoverflow It works nice. But how can I call it in a webview from a button on an html page that also has the event details (date time place)? <a href="http://stackoverflow.com/questions/246249/programmatically-add-custom-event-in-the-iphone-calendar">Programmatically add custom event...
javascript iphone
[3, 8]
3,593,456
3,593,457
Jquery uncheck radio button not working
<p>This should be the right code but its not working</p> <pre><code>&lt;input type="radio" name="test"&gt;1 &lt;input type="radio" name="test"&gt;2 $('input[name=test]').click(function() { $('input[name=test]').attr(‘checked’,false); }); </code></pre> <p>example here</p> <p><a href="http://jsfiddle.net/8jKJc/1...
javascript jquery
[3, 5]
2,412,020
2,412,021
each() on select not iterating
<p>For some reason I only get to the first option when I alert out below and then it exists my entire function. It never iterates through each option:</p> <pre><code> function SelectAlbumOption(iAlbumID, iAlbumDropdownID) { var dropdownID = '#' + iAlbumDropdownID; $(dropdownID).each(function(i...
javascript jquery
[3, 5]
1,675,926
1,675,927
dynamic image (from db) using Generic Handler
<p>I'm trying to using a Generic Handler to retrieve and display images that are stored in a database.</p> <p>But its just not working. Ive tried verious of the code below, but I cant seem to get it to work.</p> <p>Can anyonne spot what I am doing wrong, or have some suggestions?</p> <pre><code>&lt;%@ WebHandler Lan...
c# asp.net
[0, 9]
2,455,909
2,455,910
Does Integer.parseInt(String) creates object?
<p>I am using <code>int duration = Integer.parseInt(durationInString)</code> to convert String object to primitive integer value. I am using this in a while loop and the integer conversion happens every second until the end of video duration. For example - if Video is 2 min I will call <code>Integer.parseInt</code> 120...
java android
[1, 4]
3,561,300
3,561,301
Client id method javascript
<pre><code> &lt;input type="text" id="txtFirstName" runat="server" class="textReg" onblur="javascript:validate_input(&lt;%=txtFirstName%&gt;,'imgFirstNameS','imgFirstNameE');" /&gt;` </code></pre> <p>I want to send control id to my javascript function </p> <p>like <code>ctl0...
javascript jquery asp.net
[3, 5, 9]
290,412
290,413
How can I make jQuery work even on objects not yet created?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2238616/binding-dynamically-created-elements-in-jquery">Binding dynamically created elements in jQuery</a> </p> </blockquote> <p>Is there a way I can change the following code:</p> <pre><code>$('#city') ...
javascript jquery
[3, 5]
3,812,867
3,812,868
Activate onchange after changing content with javascript
<p>Why wouldn't onChange function of an input be activated when the value of the input is changed by javascript? For example why when clicking on the button alert wouldn't happen?</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;input type="text" id="myInput" onchange="alert(1)" /&gt; &lt;button onclick = "document.getEle...
javascript jquery
[3, 5]
536,502
536,503
jQuery event to trigger action when a div is made visible
<p>I'm using jQuery in my site and I would like to trigger certain actions when a certain div is made visible.</p> <p>Is it possible to attach some sort of "isvisible" event handler to arbitrary divs and have certain code run when they the div is made visible?</p> <p>I would like something like the following pseudoco...
javascript jquery
[3, 5]
638,292
638,293
Understanding $.proxy() in jquery?
<p>From docs i understand that .proxy() would change the scope of the function passed as an argument.Can someone please explain this better ?, why should we do this?</p>
javascript jquery
[3, 5]
1,039,323
1,039,324
Android text to speech issue
<p><a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TextToSpeechActivity.html" rel="nofollow">http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TextToSpeechActivity.html</a></p> <p>I was going to add this but how can i add it if my...
java android
[1, 4]
2,841,118
2,841,119
google calendar api asp.net c#
<p>i create a new calendar "test" and i use this code</p> <pre><code> public static CalendarService GetService(string applicationName, string userName, string password) { CalendarService service = new CalendarService(applicationName); service.setUserCredentials(userName, password); return s...
c# asp.net
[0, 9]
3,435,133
3,435,134
Show a loading GIF BeforeUnload Of a Page
<p>I am working on a application which will work on computer as well as Ipad,Iphone,Tablets and Android phones. I have one requirement of Showing a loading... gif when user moves from one page to other because this will give user a info that page loading/unloading is in process.</p> <p>So i Tried below mentioned code ...
javascript jquery
[3, 5]
5,481,444
5,481,445
How to connect between ASP.NET page and javascript
<p>I'm trying to put current time on ASP.NET page. How can i get the control ID from Javascript? I'm using C# ASP.NET </p> <p>On my Form</p> <pre><code>&lt;body onload="updateClock(); setInterval('updateClock()', 1000 )"&gt; &lt;form id="form1" runat="server" &gt; &lt;span id="clock"&gt;&amp;nbsp;&lt;/spa...
javascript asp.net
[3, 9]
2,738,974
2,738,975
When should I Init my tiles in my Android view?
<p>The dimnensions of my tiles depend of the width annd height of the screen.</p> <p>When should I give them their dimensions?</p> <p>If I init them in OnSizeChanged, then I'll need a boolean to know if it's the first time onSizeChanged occured.</p> <p>Would it be more appropriate to store my tile dimensions in rela...
java android
[1, 4]
2,718,476
2,718,477
add and remove multiple classes in jquery
<p>hello i'm trying to add and remove multiple classes on a text field by clicking different radio buttons. i'm not able to remove the unwanted classes while switching between different radio buttons. my code for this is:</p> <pre><code>//for 1st radio button if(actionUrl == "search-client-by-id") { $("#req").rem...
javascript jquery
[3, 5]
1,367,433
1,367,434
Define function inside the the module in javascript
<p>I tried to define a function attachPicker can be called like:</p> <pre><code>(function(){ $.fn.tagPicker = function(source){ this.attachPicker(); } })(jQuery); </code></pre> <p>I tried:</p> <pre><code>(function(){ $.fn.tagPicker = function(source){ this.attachPicker(); //define attachPicke...
javascript jquery
[3, 5]
3,257,252
3,257,253
$(document).ready(function(){}); vs script at the bottom of page
<p>what is the difference / advantage / disadvantage of writing script at the bottom of the page and writing the script in </p> <pre><code>$(document).ready(function(){}); </code></pre>
javascript jquery
[3, 5]
1,482,415
1,482,416
Creating FTP user dynamically
<p>I need to create FTP users via a C# software, which is run Client-Side, I have no idea where to start or how to do that, I am not even sure if this is possible as this may require to be logged as root?</p> <p>My other option would be to call a PHP script via the C# software, which could call a system() script?</p> ...
c# php
[0, 2]
2,681,758
2,681,759
Which C# practices should be avoided in C++?
<p>I'm currently teaching myself C++. I'm very proficient at C#, and was wondering which common practices in C# can lead to difficulties in C++, and what a C++ programmer should do instead.</p>
c# c++
[0, 6]
4,243,836
4,243,837
Check if a text file exists in ASP.NET
<p>I need to check if a text file exists on a site on a different domain. The URL could be:</p> <pre><code>http://sub.somedomain.com/blah/atextfile.txt </code></pre> <p>I need to do this from code behind. I am trying to use the <code>HttpWebRequest</code> object, but not sure how to do it.</p> <p><strong>EDIT: I am ...
c# asp.net
[0, 9]
4,268,500
4,268,501
Set input values according to children of the parent div
<p>given series of DIVs w/unique ID as in: </p> <pre><code>&lt;div id="2988"&gt; &lt;div class="site"&gt;YaHoot.com&lt;/div&gt; &lt;div class="logo"&gt;/images/yahootLogo.jpg&lt;/div&gt; //[and so on] &lt;input type="button" value="YaHoot" onclick="javascript:processMe('2988');" /&gt; &lt;/div&gt; //[foll...
javascript jquery
[3, 5]
1,716,951
1,716,952
Android save/rewrite file to sdcard
<p>I have implemented method which can save audio resource to sd card, but if i use it 2 times with equal resource i see in Music Player 2 equal files... How to overwrite file? Or it is problem with player scanning?</p> <pre><code> public Uri saveToSdCard(String name, int audioResourceId) { String path = "/sdc...
java android
[1, 4]
2,344,274
2,344,275
Pagination jQuery next and previous control with keyboard - .trigger('click') doesn't work
<p>I am working on pagination.</p> <p>To help a user to change pages with keyboard short-keys, instead of clicking a mouse, I came up with a jQuery solution that catches user keyboard events with <code>CTRL + →</code> and <code>CTRL+ ←</code></p> <pre><code>$(document).keydown(function(event) { if (event.ctrlKey) {...
javascript jquery
[3, 5]
1,916,131
1,916,132
How do I save an Image from an url?
<p>How do I take an image from an url and save it locally?</p> <p><a href="http://someurl.com/imagename.jpg" rel="nofollow">http://someurl.com/imagename.jpg</a> -> c:\apppath\imgfolder</p> <p>ASP.NET C#</p> <p>I am not very good with IO stuff, hope someone can help me out :)</p>
c# asp.net
[0, 9]
2,889,952
2,889,953
How can get data from mysql server from apps written by JQueryMobile and Phonegap?
<p>I have create Android apps using JqueryMobile and PhoneGap.<br> How can I send request to mysql server and get back the results?<br> I have researched for few days but still no idea<br> Please help to solve</p>
jquery android
[5, 4]
3,725,256
3,725,257
Compare two objects and find the differences
<p>what is the best way to compare two objects and find the differences?</p> <pre><code>Customer a = new Customer(); Customer b = new Customer(); </code></pre>
c# asp.net
[0, 9]
1,798,356
1,798,357
how to get dropdown selecteditem in server side when I have set options using javascript
<p>I have set options on dropdownlist using javascript and cant able to get selectedItem. Any idea?</p>
c# javascript asp.net
[0, 3, 9]
2,309,435
2,309,436
jquery reset the css value of an animation?
<p>I have a created a snippet of code that basically animates an h2 onto an image on hover and then off the right on hover off, so i've initially set the h2 to be left: -200px off the page on load, then on hover to animate to left: 10px inside the .image and then on hover off to animate to left: 500px to zoom off. Now ...
javascript jquery
[3, 5]
146,612
146,613
String manipulation - getting value after the last position of a char
<p>How I can get the value after last char(. ; + _ etc.): e.g.</p> <blockquote> <p>string.name+org.com</p> </blockquote> <p>I want to get "com". Is there any function in jQuery?</p>
javascript jquery
[3, 5]
2,696,753
2,696,754
insert an element at a certain time of the day
<p>what is the best way to do something , like inserting an element at a certain time of the day ? should I use setTimeout() os is there a better way to do it ?</p>
javascript jquery
[3, 5]
4,458,003
4,458,004
What's a good Javascript tutorial library?
<p>I'm looking for something that will allow me to walk a new user through a a web app one step at a time with different hints on what to click and look at. Does something like this exist?</p>
javascript jquery
[3, 5]
2,056,373
2,056,374
upload an view image
<p>Problem is i set the image url clicking lnkFV link button. but image not viewed on the page.<br /> source</p> <pre><code>&lt;tr&gt; &lt;td style="width: 160px; height: 15px"&gt; &lt;asp:Label ID="Label4" runat="server" Text="Style Front View"&gt; &lt;/asp:Label&gt; &lt;/td&gt; &lt;td...
c# asp.net
[0, 9]
4,706,898
4,706,899
Jquery - Dynamic button, can I clean this up?
<p>I created a button that will randomly appear on the screen (per my boss's request) that when clicked will open an email in order to provide feedback.</p> <p>My goal is to make this script do everything, mainly so I don't have to access the ASP markup or CSS files for each website. Just throw the script in the heade...
javascript jquery
[3, 5]