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,617,456
5,617,457
how to set longest li element's width as width of all li elements that belong to single parent ul
<p>hi i have an unordered list like this</p> <pre><code>&lt;ul class="dropdown"&gt;Home &lt;li&gt;kithchen &lt;/li&gt; &lt;li&gt;Meeting room&lt;/li&gt; &lt;li&gt;garden&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>When I MouseOver on home, the width of all <code>&lt;li&gt;</code> elements coming under home shuld be the w...
jquery asp.net
[5, 9]
5,280,069
5,280,070
state of activity saving in android when home button pressed
<p>I am having an issue related to home key . when i press home key all current activity gets hidden . but when i press the executable it again starts from the fisrt screen . I have overidden all methods onsaveInstaceState opPause onStop onResume but there are still issues what is the right way to handle thos...
java android
[1, 4]
243,401
243,402
"Please wait..." between two page is not working correctly
<p>I have login page which contains some images and ajax contorls, when this page gets refresh all layout and the way page appears, totally awkward. So, after quick searching in the google, I have taken a javascript method and calling this in page load event like this(), it's working fine but only after refreshing the ...
c# asp.net
[0, 9]
2,183,040
2,183,041
JavaScript/jQuery and "top-level" functions
<p>When I peruse a jQuery-driven JavaScript source file, I see functions defined like so:</p> <pre><code>$(document).ready(function() { ... }); $(function { ... }); </code></pre> <p>I <em>think</em> I understand the first one: I assume its a function to fire once the entire page is downloaded, yes? If not pl...
javascript jquery
[3, 5]
5,790,578
5,790,579
Having a error with implementing add task into my project
<p>I have ad task manager working in another projec, but when I converted the code it gave me an error when I tried to run it. The error is <pre><code>E/AndroidRuntime(681): java.lang.RuntimeException: Unable to start activity ComponentInf {com.screenssample/com.sudarmuthu.android.taskmanager.ViewTasksActivity}: java.l...
java android
[1, 4]
1,480,793
1,480,794
is there a javascript (or jquery) short cut for "function(){return false;}"?
<p>It seems like I type "function(){return false;}" some what too frequently too prevent actions from happening... is there a short cut?</p>
javascript jquery
[3, 5]
4,900,141
4,900,142
Place random positioned element into a document in vertical axes
<p>I have the following code</p> <pre><code>function randomizer(start, end) { return Math.floor((end - start) * Math.random()) + 1; } var top_pos = randomizer(1, $(document).height()); $('.element_selector').css('top', top_pos + 'px'); </code></pre> <p>but the result is not what I realy expect from. The most of...
javascript jquery
[3, 5]
2,194,944
2,194,945
gaming with c++ or c#?
<p>What is the best language for programming a game project and why?</p> <p>Why is the game programing world dominated by c++?</p>
c# c++
[0, 6]
1,146,423
1,146,424
jquery append only appends in first element of list or shows error [object Object]
<p>I have a variable <code>var $deleteEl = $('&lt;a class="upload_delete" href="#"&gt;Delete&lt;/a&gt;');</code> which is a delete link that need to be created next to each uploaded image. html structure is next:</p> <pre><code>&lt;ul id="thumb_galery"&gt; &lt;li class="thumb"&gt; &lt;img&gt; &lt;a...
javascript jquery
[3, 5]
2,224,643
2,224,644
Recording audio in android
<p>I want to record own voice or any through mic(In any way) into a file in my project and want to read later and listen to it.How can i do this? Anyone reply me please.</p>
java android
[1, 4]
3,993,270
3,993,271
Access session in class library.
<p>I am developing an application architecture that uses 2 sub projects: a) asp.net web application (it covers user interface and business logic) and b) class library. (it covers data access layer)</p> <p>After system user successfully logs in , the user information is stored in a session object.</p> <p>T...
c# asp.net
[0, 9]
3,092,841
3,092,842
Cross-browser background Y position animation?
<p>I'm currently using this to animate background positions:</p> <pre><code>$('#icon' + n).animate({ backgroundPositionY : "-=5px" }, 250 ); $('#icon' + n).animate({ backgroundPositionY : "+=5px" }, 250 ); </code></pre> <p>Chrome is warning me <code>backgroundPositionY</code> will be deprecated, also it get's buggy i...
javascript jquery
[3, 5]
2,125,967
2,125,968
How to use jQuery to select all text inside paragraph after specific character
<p>I would like to use jQuery to find specific character, in this case "#" inside one or more paragraphs, remove that character, and wrap everything after in span tag.</p> <p>Here is HTML example:</p> <pre><code>&lt;p&gt;Lorem ipsum dolor sit amet # consectetur adipiscing elit&lt;p&gt; </code></pre> <p>And jQuery sh...
javascript jquery
[3, 5]
1,271,060
1,271,061
How to know what country codes navigator.userLanguage; returns for all countries?
<p>I'm using the following code to detect the language and country of a visiting user of site. According to this <a href="http://www.w3schools.com/jsref/prop_nav_userlanguage.asp" rel="nofollow">http://www.w3schools.com/jsref/prop_nav_userlanguage.asp</a>, it returns the operating system's natural language settings. S...
javascript jquery
[3, 5]
3,673,269
3,673,270
Did jQuery kill the JavaScript discussions?
<p>There are over 100,000 questions on Stack Overflow tagged as questions relating to JQuery troubleshooting/usage. Compare this to the 124,000 questions on stack overflow that are tagged for JavaScript issues. We are very close to almost half of all JavaScript related questions on Stack Overflow being attributed to ...
javascript jquery
[3, 5]
506,488
506,489
How to get $(this) selected option in jQuery?
<p>The following code works:</p> <pre><code>$("#select-id").change(function(){ var cur_value = $('#select-id option:selected').text(); . . . }); </code></pre> <p>How to refactor the second line to:</p> <pre><code>var cur_value = $(this).***option-selected***.text(); </code></pre> <p>What do you use for <code>**...
javascript jquery
[3, 5]
3,249,766
3,249,767
redirect to another page if javascript is disabled
<p>i have a alot of functionality implemented through javascript if at any stage the javascript is disabled he should be redirected to another page. mentioning him to enable the javascript and then proceed. and this functionality should be cross browser compatable Regard,</p>
javascript asp.net
[3, 9]
721,730
721,731
Custom WebControl using jQuery that needs to work inside an UpdatePanel
<p>I have created a custom server side WebControl. This control calls an initialization script that uses jQuery to hookup the events with calls to bind when the page is loaded. </p> <p>This control is now being used inside an UpdatePanel and obviously the client side events no longer exist after the UpdatePanel does...
asp.net jquery
[9, 5]
5,458,806
5,458,807
call click function method but not if it has another class associated
<p>I have the following code:</p> <pre><code> $('#commentContainer').delegate('div.comment-vote div.vote', 'click', function () { //etc } </code></pre> <p>I want this to get called but not when the div.vote also has a class "unauthenticated"</p> <p>how can i do that?</p> <pre><code>&lt;div class="vote"&gt;&lt;/div...
javascript jquery
[3, 5]
3,444,478
3,444,479
How to refresh the size of a div after adding elements to it
<p>I have an element like this:</p> <pre><code>&lt;div id="content" style="border: 2px solid black"&gt; &lt;/div&gt; </code></pre> <p>And through JQuery I add some new stuff:</p> <pre><code>$("#content").append($('&lt;div&gt;&lt;/div&gt;').addClass("box")); </code></pre> <p>where</p> <pre><code>.box { margin: 10px...
javascript jquery
[3, 5]
3,112,874
3,112,875
how to split the values of column in datatable of dataset?
<p>In my dataset I have many rows,</p> <pre><code>In first row last column has the value is "12356.56@Firefox 1@23423" In Second row same column has the value is "12356.56@Chrome2.0@23423" In Third row same column has the value is "3423@Firefox 14.0@sdfsd" </code></pre> <p>here instead of displaying same value like a...
c# asp.net
[0, 9]
2,404,780
2,404,781
How to start activity after VideoView end
<p>I have Activity , in this activity i have video . After this video i wish run another activity . I try make stupid things in java :) but it doesnt work . Help me pls . My clear java code without my stupid ideas :) I hope you help me :)</p> <pre><code>package com.mem.good; import android.app.Activity; import androi...
java android
[1, 4]
4,312,479
4,312,480
Getting a PHP variable in jQuery
<p>So I have this:</p> <pre><code>&lt;?php echo ' &lt;script&gt; $(function(){ $("a#yeah").click(function(){ $.ajax({ url: "ajax.php?action=yeah&amp;id='.$id.'", success: function(html){ $("a#yeah").html("your cool") } }) }) })&lt;/script&gt;'; ?&...
php jquery
[2, 5]
1,379,354
1,379,355
How to set and get id of a view
<p>I have 2 queries:</p> <p>1). I want to display kind of screen lik</p> <pre><code>Heading ImageButton1 ImageButton2 Value1 Value2 </code></pre> <p>Same way number of records</p> <p>So i have used absolute layout programmatically instead of using xml, is it advisable or there is some ot...
java android
[1, 4]
2,807,552
2,807,553
Looping through elements added on the fly
<p>If for example I have the following HTML structure</p> <pre><code>&lt;ul class="actions"&gt; &lt;li class="action"&gt;Action 1&lt;/li&gt; &lt;li class="action"&gt;Action 2&lt;/li&gt; &lt;li class="action"&gt;Action 3&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>And the following Javascript</p> <pre><code>$...
javascript jquery
[3, 5]
1,272,020
1,272,021
replacing Enter key code with TAB key code in jQuery
<p>I have a script in javascript that replace <kbd>Enter</kbd> with <kbd>TAB</kbd> key:</p> <pre><code>function ReplaceEnterWithTab() { if (event.keyCode == 13) event.keyCode = 9; return false; } </code></pre> <p>and I use it this way:</p> <pre><code>txt.Attributes.Add("OnKeyDown", "ReplaceEnterWithTab();"); </code>...
javascript jquery asp.net
[3, 5, 9]
3,329,170
3,329,171
display "page loading" message
<p>I'm trying to display an image (.gif) for "page loading" in html page until the output from my_script.py gets displayed, and I've no idea how to do that. <a href="http://jsfiddle.net/9X4gW/" rel="nofollow">This</a> is what I've got so far. Many thanks in advance.</p> <p><strong>HTML:</strong></p> <pre><code>&lt;di...
javascript jquery
[3, 5]
5,327,184
5,327,185
Surprising value assignment due to operator precedence?
<p>I have this code (fiddle is too slow right now, sorry)</p> <p>UPDATE: Sorry, I completely missed the boat here. </p> <p>Here is the code I meant to write and it works without the ""</p> <pre><code>$(function() { var x=0,y=1; var inputs = $("#div_id").find("input:text"); var y = Math.ceil(inputs.size()/2); ...
javascript jquery
[3, 5]
23,433
23,434
Javascript object retrival
<p>Using Javascript objects, when I execute the code below, the second alert doesn't work. It returns <code>undefined</code>.</p> <pre><code> &lt;script&gt; var operations = {"Create" : "POST", "Read" : "GET", "Delete" : "DELETE" }; //result POST aler...
javascript jquery
[3, 5]
3,342,520
3,342,521
jQuery - don't fire 'click' on 'mousemove'
<p>I created a <a href="http://jsfiddle.net/syTKq/" rel="nofollow">Fiddle</a> to demonstrate my situation.</p> <p>I want to not fire the click event when the user is panning--only if it's just a simple click. I've experimented with different placements of .off() and .on() to no avail.</p> <p>Thanks in advance for you...
javascript jquery
[3, 5]
4,319,265
4,319,266
how to send bubble message in android
<p><img src="http://i.stack.imgur.com/3HmZe.png" alt="enter image description here"></p> <p>I am using a custom list adapter...to display message i want change it to bubble message... <code>this.ListAdapter = new IndMessageAdapter(this, R.layout.chatmessage_list, Messages);</code></p> ...
java android
[1, 4]
4,680,816
4,680,817
Set a timer to a print window
<p>Can we create a timer function for print window in jquery or javascript,My intention was to set a timer so that the the print window closes successfully by itself when the user doesnt perform any operation on it.</p>
javascript jquery
[3, 5]
4,971,984
4,971,985
convert 1,00 to 100 in .Net
<p>How do I convert the number "1,00" to "100" in .Net?</p> <p><strong>Clarification:</strong> I have this code:</p> <pre><code>VALOR = order.Total.ToString("#0.00"); </code></pre> <p>It returns the text "1,00" but I need "100" (without comma).</p>
c# asp.net
[0, 9]
615,230
615,231
Give me script for when click on checkbox then display another checkboxes using javascript or jquery
<p>I want to help for the when click on the checkbox then display multiple checkboxes using jquery or javascript. Pls give me help.</p>
javascript jquery
[3, 5]
5,068,326
5,068,327
jQuery POST to PHP doesn't get to success function
<p>I have a simple jQuery post function that calls PHP script in order to return value from the database.</p> <p>In Firebug I see that the PHP file is being called with 200 OK status, however the success function in JS is not being called.</p> <p>To test the problem I have changed the PHP to only echo a simple string...
php javascript jquery
[2, 3, 5]
2,645,758
2,645,759
How can I change the position of the input cursor in text fields to be right justified for arabic text
<p>Arabic writing starts from right to left but the blinking cursor is on the left side. is there a way to program it or configure it to be positioned on the right?</p>
javascript jquery
[3, 5]
4,579,074
4,579,075
How come the answer to every javascript question ends up being "jQuery"
<p>I've been following the javascript questions here for the last few weeks, and I've found a common recurring theme.</p> <p>Almost any question asked on here that involves JavaScript gets answered with:</p> <ol> <li>"jQuery can do that"</li> <li>"there's a plugin for that"</li> <li>"jQuery can make your bed for you....
javascript jquery
[3, 5]
5,832,447
5,832,448
File Name in ASP.NET Response Buffer
<p>When doing something like this:</p> <pre><code>Response.Clear(); Response.OutputStream.Write(buffer, 0, buffer.Length); Response.ContentType = "audio/mpeg"; Response.Flush(); </code></pre> <p>The downloaded file name is "Default.aspx". How can I change it to something like "a.mp3"?</p>
c# asp.net
[0, 9]
1,578,580
1,578,581
attaching a script dynamically using jQuery
<p>I have a problem which have been troubling me for the last few days. I have to implement tracking to my website simply by adding a script tag as shown below.</p> <pre><code>&lt;script src="domain"&gt; </code></pre> <p>However I need to attach the script tag once a javascript event is fired. I made some research an...
javascript jquery
[3, 5]
2,127,915
2,127,916
Open link on click with jquery after att id append
<p>Hi guys i have a situation like this</p> <pre><code>&lt;div class="todos-pedidos" title="/pedidos"&gt;See More&lt;/div&gt; </code></pre> <p>When click this div its expand my UL / LI with this jquery</p> <pre><code>$('.todos-pedidos').click(function() { $('#bloco-pedidos-andamento ul li:hidden:lt(2)').slideToggle(...
javascript jquery
[3, 5]
5,909,146
5,909,147
What the most efficient way of monitoring changes to data on an ASP.Net form?
<p>I have an ASP.Net form and I want to send an email when the user changes their data. The email should only include data that has changed, and there are about 15 data fields total.</p> <p>I don't want to use an ORM since I am updating a website that a 3rd party built for us, and all their data access calls go throug...
c# asp.net
[0, 9]
4,801,736
4,801,737
What is wrong with this foreach loop..??? Android
<p>I have a foreach loop iterating through each object in a vector. When I debug the code, it runs successfully for the first object in the vector. But then it will fail when it tries to run the loop for the second object. I am <em>sure</em> there is more than one element in the vector.</p> <pre><code>for(Object shape...
java android
[1, 4]
3,906,890
3,906,891
How to find and replace a substring?
<p>For example I have such a string, in which I must find and replace multiple substrings, all of which start with <code>#</code>, contains 6 symbols, end with <code>'</code> and should not contain <code>)</code> ... what do you think would be the best way of achieving that?</p> <p>Thanks!</p> <p>Edit: just one more ...
java android
[1, 4]
2,850,137
2,850,138
Stack of activity from Activity stack
<p>There is a stack of activity i want to call the activity from that stack , My question is that is it possible to check from that stack and call that intent . When i press home button and again when i press the executable it should start the activity where i have left . Is it possible ? Any example related to the s...
java android
[1, 4]
4,163,435
4,163,436
Why doesn't my hide function work on a click
<pre><code>$(document).ready(function() { $('#promotion_profile_booking_description').keyup(function () { var left = 200 - $(this).val().length; if (left &lt; 0) { left = 0; } $('#counter').text('Characters left: ' + left); }); $('#counter').bind('click', function() { (this).hide(); ...
javascript jquery
[3, 5]
2,057,476
2,057,477
How can i get inside parentheses value in a string
<p>How can i get inside parentheses value in a string. </p> <pre><code>String str= "United Arab Emirates Dirham (AED)"; </code></pre> <p>I need only AED text. Thanks</p>
java android
[1, 4]
338,885
338,886
how do i concatenate input values and convert them to an overall number?
<p>I have 4 buttons with values 1 - 4, I want to concatenate the button value each time a number is clicked and present this in <code>#result</code> but I'm getting confused by how this should be done. At the moment I have created an array and then pushed each value into the array as it is clicked then going onto conve...
javascript jquery
[3, 5]
4,076,705
4,076,706
I need to implement a simple .fadeIn with javascript
<p>I am trying to implement, what I think would be a fairly simple fadeIn using javascript, but I just can not get it to work.</p> <p>Here is the code:</p> <pre><code>&lt;script&gt; function changeborder() { search.style.border = '1px solid #4F94CD'; } &lt;/script&gt; &lt;div align='center'&gt; &lt;div id='top'&g...
javascript jquery
[3, 5]
5,509,196
5,509,197
Preload a spritesheet using Jquery
<p>I am having a spritesheet now what i want to do is to preload the spritesheet images how can i get through it using javascript.Please help me out.</p>
javascript jquery
[3, 5]
2,192,151
2,192,152
Unable to get a new line using \n in Confirmation Box
<p>Below is my code </p> <pre><code>btnDelete.Attributes.Add("onclick", "{return ConfirmAction('You are about to Delete Order . Please Note \r\n 1. Order no longer can be retrieved \r\n 2. Changes to the order are not saved. \r\n Are you sure you wish to continue to Delete?')};"); </code></pre> <p>I would like the C...
c# javascript
[0, 3]
5,307,554
5,307,555
how to set a specific date to be available? datepicker
<p>I have DB mysql with column <strong>date_in</strong> and <strong>date_out</strong></p> <p>how to set datepicker to show available only dates from database mysql. i have two inputs with datepicker</p> <pre><code>&lt;input type="text" name="check_in_date" id="check_in" /&gt; &lt;input type="text" name="chek_out_date...
javascript jquery
[3, 5]
2,783,632
2,783,633
Loading local files via jQuery (part 2)
<p>Ok, <a href="http://stackoverflow.com/questions/7666852/loading-local-files-via-jquery">here</a> we discussed the essence of the problem: in some browsers like Chrome and Opera HttpRequests to local files is turned off by default.</p> <p>Now the question is: how to build such HTML+javascript viewer of HTML document...
javascript jquery
[3, 5]
4,498,656
4,498,657
client side validation error
<pre><code>&lt;%@ Page Language="C#" MasterPageFile="~/HomeMaster.master" AutoEventWireup="true" CodeFile="HomePage.aspx.cs" Inherits="Default2" Title="Untitled Page" %&gt; &lt;asp:Content ID="Content1" ContentPlaceHolderID="cp1" Runat="Server"&gt; &lt;script language="javascript" type="text/javascript"&gt; funct...
c# javascript asp.net
[0, 3, 9]
4,018,785
4,018,786
jQuery click behaviour
<p>I'm developing a menu. This menu, will change the background image when you click on a link, as almost all menus do. If I click in one link from the menu, this link background will change the color.</p> <p>My <a href="http://en.wikipedia.org/wiki/JQuery" rel="nofollow">jQuery</a> script is:</p> <pre><code>$(functi...
javascript jquery
[3, 5]
5,240,273
5,240,274
Disabled link button still submitting in asp.net webform
<p>I'm trying to disable a link button to prevent the user from submitting several times.</p> <p>I've seen many questions like this here on SO, most people suggest the following javascript:</p> <p><code>button.disabled = true</code> or <code>button.disabled = 'disabled'</code></p> <p>Which indeed disables the button...
javascript asp.net
[3, 9]
1,518,392
1,518,393
Javascript interrupt Page request
<p>I have a page that sends a request to the server. On the server we then send a synchronous request to a third party web API. Because of the call to the web API we never have complete control over how long our server side processing will take. So, what I would like to do is write a javascript function that will inter...
javascript jquery
[3, 5]
1,131,072
1,131,073
Uploading a large number of fonts and showing sample in drop-down list/input field search font highlight
<p>I am creating a text editor in the style of Microsoft Office 2010. Alike Microsoft Office, I would like to have a drop down list of all fonts in the following format:</p> <pre><code>&lt;li&gt;Arial&lt;/li&gt; &lt;li&gt;Arial Black&lt;/li&gt; &lt;li&gt;Arial Narrow&lt;/li&gt; </code></pre> <p>However, there are ove...
php javascript jquery
[2, 3, 5]
3,111,737
3,111,738
How can I extract a URL from url("http://www.example.com")?
<p>I need to get the URL of an element's background image with jQuery:</p> <pre><code>var foo = $('#id').css('background-image'); </code></pre> <p>This results in something like <code>url("http://www.example.com/image.gif")</code>. How can I get just the "http://www.example.com/image.gif" part from that? <code>type...
javascript jquery
[3, 5]
1,233,705
1,233,706
How do I tie in my image handler with an image control?
<p>I've been looking around and reading about handlers, but I don't fully understand how to implement them for my situation.</p> <p>I want display a screenshot from the user's clipboard. I already have code that retrieves the image from the clipboard into a bitmap format. This is what I have:</p> <pre><code>var datao...
c# asp.net
[0, 9]
4,796,810
4,796,811
Adding new query parameter to hyperlinks dynamically
<p>I have several hyperlinks in my homepage. I would like to add a query parameter at the end of each hyperlink dynamically.</p> <p>For example;</p> <pre><code>&lt;a href="detail.aspx?id=2" target="_blank" &gt;xyz&lt;/a&gt; &lt;a href="detail.aspx?cid=5" target="_blank" &gt;pqr&lt;/a&gt; </code></pre> <p>will be con...
c# asp.net
[0, 9]
5,920,430
5,920,431
jquery fading in from full opacity to 0.2
<p>when the page loads i would like the span overlay to fade in from full #000 to opacity 0.2 and then stay at 0.2 to which when i hover it goes to opacity 0</p> <p>this is the code i have at the moment</p> <pre><code>$(function () { $('ul li a').append('&lt;span id="load"&gt;&lt;/span&gt;'); $('span').css('d...
javascript jquery
[3, 5]
372,415
372,416
Use jQuery to reference other javascript
<p>Basically Im working with Sharepoint, help me god!</p> <p>Sharepoint does some crazy the things but Im hoping what I want to do can be achieved using jQuery.</p> <p>Sharepoint is writing some image values into a table:</p> <pre><code> &lt;script&gt; fNewItem = false; InsertItem("http://dev_site/sites/Pic...
javascript jquery
[3, 5]
2,484,306
2,484,307
Access a JavaScript variable from PHP link
<p>I'm new to JavaScript and PHP. I need to get some variables from a PHP link into my JavaScript. I need to access <code>a1</code>, a text variable (<strong>Edit: string</strong>) as well as <code>a2</code> and <code>a3</code>, two <code>int</code> variables from <code>myfile.php</code>. Can anyone give me an examp...
php javascript
[2, 3]
4,835,308
4,835,309
Implementation of PHP profanity filter
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/273516/how-do-you-implement-a-good-profanity-filter">How do you implement a good profanity filter?</a> </p> </blockquote> <p>I have an iPhone app that passes a string through a URL to my php script, which then i...
php iphone
[2, 8]
1,961,908
1,961,909
How to send dynamically value from javascript to hiddenfield
<p>I have a variable "place", which is changing dynamically (get diffrent values for some actions). Here JS code.</p> <pre><code>google.maps.event.addListener(autocomplete, 'place_changed', function () { var place = autocomplete.getPlace(); }); </code></pre> <p>How to get this variable to asp.net(C#) in code behind...
c# javascript asp.net
[0, 3, 9]
3,566,022
3,566,023
Why doesnt keydown work?
<p>This simple code doesnt work! <a href="http://jsfiddle.net/FPcFn/" rel="nofollow">http://jsfiddle.net/FPcFn/</a></p> <pre><code>$(document).keydown(function(e){ switch (e.which){ case 37: alert("37"); } }); </code></pre> <p>Why? What could possibly go wrong?</p>
javascript jquery
[3, 5]
2,995,600
2,995,601
image loading in jquery
<p>I have a function in which in first draw the div's and call image load function</p> <p>In image load function i call a another function Loadimage</p> <p>In Loadimage i append the image to the div's which i have drawn in first funtion</p> <p>thumb[] has a image html tag</p> <p>I have button when clicked on it a p...
javascript jquery
[3, 5]
5,102,935
5,102,936
Loop through array and retrieve values
<p>I am trying to loop through an array and then loop through a list.</p> <p>The issue I am having is for each <code>&lt;li&gt;</code> the entire array is being appended, but what I need to happen is index(0) of array gets added to the 1st li, index(1) to the 2nd li and so on.</p> <p>Code: </p> <pre><code>// Create ...
javascript jquery
[3, 5]
5,042,160
5,042,161
How to animate 6 boxes incrementally?
<p>Here is my html...</p> <pre><code> &lt;div class="project"&gt; &lt;div class="box"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="project"&gt; &lt;div class="box"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="project"&gt; ...
javascript jquery
[3, 5]
4,658,771
4,658,772
separate a string in c#
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1219094/separate-firstname-and-lastname-from-fullname-string-in-c">Separate firstname and lastname from fullname string in C#</a> </p> </blockquote> <p>I want to split a string which is like lastname, firstname....
c# asp.net
[0, 9]
4,631,326
4,631,327
Jformer questions
<p>I am looking for some help with jFormer.</p> <p>The way my site works a form cannot submit to the same place it was built,</p> <p>yet looking at the demo code it seems that this is how it has to work?</p> <p>Is this true?</p>
php jquery
[2, 5]
4,811,189
4,811,190
how to modify the appearance of a checkboxlist to it look like buttons
<p>I thought it would be easy, but I'm not being able to find how to do it. I found how to do it with a checkbox (<a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.checkbox.appearance.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.windows.forms.checkbox.appearance.aspx)</a>.</p>...
c# asp.net
[0, 9]
2,302,292
2,302,293
Out of range exception of a dataset
<p>Hoping this is a simple one</p> <p>I am extracting the data from a column of my dataset. As the SQL query is supplied an ID only one result will ever be returned. So I would think this result would always be at row '0' of the dataset.</p> <p>If i click the first result in my datagrid........send the id '0' across ...
c# asp.net
[0, 9]
1,722,851
1,722,852
Emulating click based event on a web page
<p>This link goes to an implementation of the imagination captcha <a href="http://goldbach.cse.psu.edu/s/captcha/">imagination</a></p> <p>The authors have themselves requested for people to make algorithms to try its efficiency against AI attacks.</p> <p>Essentially the first page is asking for a mouse click anywhere...
c# javascript
[0, 3]
3,377,476
3,377,477
jQuery match from value string
<p>I trying to match a variable from an url. This works fine if I use the expression directly in the match method. However I am having problem getting it to work if the expression is inside a string.</p> <blockquote> <p>var match = '/(page_art_list=\d+)/';</p> </blockquote> <p>match contains the value..</p> <pre><...
javascript jquery
[3, 5]
4,048,937
4,048,938
Selection row disable/reenable text selection
<p>I have this code which selects multiple row when shift key is pressed. But whenever selection starts, the table text always gets selected, hence I tried to add disableSelection( ); to the table and re-enable it once mouseup. However, it is not working, the text still get selected. Any help is greatly appreciated.</p...
javascript jquery
[3, 5]
2,002,011
2,002,012
What is the difference between having a function in Jquery.Document and not having it in
<p>I am just wondering what is the difference between these two</p> <pre><code>File1.js $(function() { function MyFunction() { // some code here } }); File2.js $(function() { // call it. MyFunction(); }); </code></pre> <p><hr /></p> <pre><code>File1.js function MyFunction() { ...
javascript jquery
[3, 5]
869,864
869,865
Asp.Net program
<p>What does the following line of code do</p> <pre><code>SqlDataSource DataSource =(SqlDataSource)CreateUserWizardStep1. ContentTemplateContainer.FindControl("InsertExtraInfo"); </code></pre>
c# asp.net
[0, 9]
1,252,339
1,252,340
Android: PHP script to MS Access Database
<p>Is there a PHP script that could fetch data from MSAccess Database? because my database is MsAccess. Then android could view that data in that webservice.. As i know.. PHP script is mostly used in MySQL database. Fetch the data and output will be in JSON Format. The android could get the data by using http post. </p...
java php android
[1, 2, 4]
1,227,940
1,227,941
Retain the page update by Javascript and run the PHP code?
<p>In a php project I need to add items to database, list them &amp; allow the user to edit &amp; update items using a single page.</p> <p>This is my code to edit item link in HTML table</p> <pre><code>echo '&lt;a href=" '.$_SERVER['PHP_SELF'].'?name=edit&amp;id=' .$rowCountry-&gt;CountryId .' " id="edit" onClick...
php javascript
[2, 3]
2,915,648
2,915,649
Use of break and continue in jQuery
<p>I know with core Javascript we can do things like this:</p> <pre><code>for(i=1;i&lt;10;i++){ if(i==5){ //break or continue } } </code></pre> <p>But why this is not correct ?</p> <pre><code>$.each(iteratorarray,function(i){ //iteratorarray - just an array if(i==5){ //break or continue,will cause er...
javascript jquery
[3, 5]
2,089,671
2,089,672
get all cookies of my site
<p>how can i get all the cookies set by my site using js. I dont want to do say <strong>Cookie("username")</strong> but loop through all the cookies and get the key=value pairs of my site</p>
php javascript
[2, 3]
4,470,947
4,470,948
how to change jquery ui autocomplete function suitable for python
<p>Instead of using search.php within this example, how can i use a python method to return the data? example: is this valid: $.getJSON( "{{ data }}", { term: extractLast( request.term ) }, response );</p> <pre><code> $(function() { function split( val ) { ...
jquery python
[5, 7]
646,664
646,665
How to tell if string time-A is before time-B?
<p>if I have 4 variables</p> <p>startTime; endTime; startMerid; endMerid;</p> <p>startMarid and endMarid are either going to be 'AM' or 'PM'.</p> <p>but startTime and endTime are going to be strings like 'dd:dd'</p> <p>so it may be start:<code>12:30 PM</code> and end:<code>5:30 PM</code></p> <p>How can I validate ...
javascript jquery
[3, 5]
4,037,635
4,037,636
Clear <input> field from code behind
<p>To pass values from javascript to the code behind after a postback I use this code:</p> <pre><code>string strRowNumberTblOne = Request.Form["iRowNumberTblOne"]; &lt;input type="hidden" id="iRowNumberTblOne" name="iRowNumberTblOne" value="" /&gt; </code></pre> <p>Is there a way to clear the input field from the co...
c# asp.net
[0, 9]
1,425,649
1,425,650
Why this is not Working in Javascript
<pre><code>....... ........ key1 = 'start' + i + ''; key2 = 'end' + i + ''; datePass.push({ key1: start, key2: end }); </code></pre> <p>it returns </p> <pre><code>[{key1 : `somevalue`, key1: 'somevalue'}] </code></pre> <p>but i want </p> <pre><code>[{start1 : `somevalue`, end1: 'somevalue'}] </code></pre> ...
javascript jquery
[3, 5]
1,901,125
1,901,126
How to improve performance..?
<pre><code>function removeTds() { var elements = $('#goldBarList tr:not(:eq(0))').filter(':has(:checkbox:checked):lt(50)'); var count = elements.length; elements.each(function() { grossWeightTotal = grossWeightTotal - $('#goldBarList tr:eq(' + $(this).index() + ') td:eq(8)').text(); netWeigh...
javascript jquery
[3, 5]
4,560,174
4,560,175
Accessing Java Privileged Actions from within Rhino script
<p>How can I execute a local file from JavaScript running within Rhino in Java? I will consider any method that works from within the Rhino environment. My current exploration of the issue is below.</p> <p>I am attempting this through java.lang.Runtime.exec, with help from the Mozilla "Scripting Java" tutorial i can a...
java javascript
[1, 3]
4,118,083
4,118,084
How to get country name from time of android mobile?
<p>Hi I am very new to Android Development. I want to pick the country name based on the current time of the particular mobile, while clicking the button. How can i do it? Any body tell me? Thanks in advance.</p>
java php android
[1, 2, 4]
3,507,291
3,507,292
In the following code is it possible to convert long datatype into string datatype?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5071040/java-convert-number-to-string">Java - Convert number to string</a> </p> </blockquote> <pre><code>private String getHome() { String defaultHome = Environment.getExternalStorageDirectory().getAbsoluteP...
java android
[1, 4]
4,216,727
4,216,728
Android, extract javascript variable from webview using javascript interface
<p>How can I extract this variable bellow from a website to my android code? I guess it should work using javascript interface but how do I get it?</p> <pre><code>&lt;script type="text/javascript"&gt; var Ids = "[4161, 104, 121, 202, 1462]"; &lt;/script&gt; </code></pre> <p>And I can't change the code on the webs...
javascript android
[3, 4]
3,234,855
3,234,856
Match a table cell class and index using jQuery
<p>The following code is just a demonstration for the theory that I want to apply to my app so using THIS instead of td.flex is not appropriate for the the second line in the function.</p> <p>Also I MUST Use .index instead of nth-child for other reasons.</p> <p>That all said :)</p> <p>The following function loops th...
javascript jquery
[3, 5]
2,171,550
2,171,551
Is regular Java the same as the Java for Android
<p>Is regular Java the same as the Java for Android?</p> <p>If yes - from where can I download a good java reference?</p> <p>Looking for something like: <code>Command | small sample | short Explanation</code></p>
java android
[1, 4]
2,173,456
2,173,457
Search & Replace Whole HTML Strings with jQuery
<p>I'm having some trouble searching &amp; replacing an entire string of HTML. </p> <p>My example in this fiddle is me trying to replace an entire div tag with all of its classes &amp; markup:</p> <p><a href="http://jsfiddle.net/LqkNE/" rel="nofollow">http://jsfiddle.net/LqkNE/</a></p> <p>As you can see, there are t...
javascript jquery
[3, 5]
1,850,813
1,850,814
PHP's 'gzuncompress' function in C#?
<p>PHP's 'gzuncompress' function in C#? Is there a function similar to PHPs gzuncompress in C#? </p>
c# php
[0, 2]
2,056,323
2,056,324
Sliding up DIV container
<p>How to make a sliding up horizontal DIV container using jquery? So far I have the below-provided code. The problem is that the content of <code>&lt;h1 id="filter_content"&gt;Content&lt;/h1&gt;</code> is initially not hidden. Also I've seen very nice looking sliding up menus, something like the first screenshot <a hr...
php javascript jquery
[2, 3, 5]
540,614
540,615
jquery validation for specific button onclick
<p>i am using jquery client side validation in asp.net.</p> <p>the problem i am facing now is that whenever i click any button in a page it causes validation rather than for specific button alone.</p> <p>how to resolve this .?</p> <p>thank you</p>
asp.net jquery
[9, 5]
2,746,556
2,746,557
jquery slide show plugin like this
<p>please see that site: <a href="http://www.top-pcb.com/" rel="nofollow">link</a> and watch the slideshow.</p> <p>How can I create a slideshow like that with jQuery? (is there plugin?)</p> <p>thanks ..</p>
javascript jquery
[3, 5]
4,441,348
4,441,349
How to set :hover on a li(A) when hover an other li(B)
<p>I am daily an iOS developer, but i'm trying to give a help for a friend in php and jquery, since I didn't do Jquery for a lonnng time, im asking you guys a little help :)</p> <p>So let's say I got this, for a unique ID</p> <blockquote> <p>&lt; li class="listname" value="'.$id.'"></p> </blockquote> <p>When I go ...
php javascript jquery
[2, 3, 5]
3,169,608
3,169,609
Disabling browser scrollbar
<p>Hi Is it possible to disable browser scroll bar through java script...? If yes how?</p> <p>Help me if anybody knows it... Thanks in advance..</p>
javascript jquery
[3, 5]