Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
641,667
641,668
jQuery ajax form submit in asp.net
<p>I am new to <code>asp.net</code>. I have used <code>jQuery</code> with <code>php</code> for submitting forms and other operations.</p> <p>I tried submitting form to an <code>.aspx</code> page and it worked fine,<br> But i read it some where that its a wrong approach.<br> How can i do it through <strong><em>web-serv...
jquery asp.net
[5, 9]
4,677,360
4,677,361
webservice returns rounded number instead of decimal
<p>I have a web service that returns a decimal value into my json string but it rounds it off on numbers that are 400.00 to 400 instead, but if it has 400.50 it returns 400.50 which is what i want how do i return a value that is 400 to 400.00 in that format </p> <p><strong>Error</strong></p> <pre> {"Message":"LINQ to...
jquery asp.net
[5, 9]
2,345,598
2,345,599
Trying to interpret ASP.Net Error
<p>So I put my code like this:</p> <pre><code>&lt;%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt; &lt;asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"&gt; &lt;/asp:Content&gt; &lt;asp...
c# asp.net
[0, 9]
1,918,610
1,918,611
jQuery multi level selector does not work but .children does
<p>I have this javascript code which works fine</p> <pre><code>var QuestionID = panel.siblings('.QuestionIDWrapper').children('input[type=hidden]').val(); </code></pre> <p>but if I convert it to use a multi level jQuery selector like this:</p> <pre><code>var QuestionID = panel.siblings('.QuestionIDWrapper input[type...
javascript jquery
[3, 5]
5,512,275
5,512,276
Javascript detect when inner html has changed
<p>I have tried attaching the even onchange and change(with jquery) to an element that updates every couple seconds. Neither of these events are raised when the inner html is changed. How can I detect with with javascript or jquery?</p>
javascript jquery
[3, 5]
5,911,233
5,911,234
How to print value of .hasClass via console?
<p>using the Firebug console I'm trying to test whether this code is working:</p> <pre><code>$(window).bind("load", function() { $('#tab1link').click(function() { $('#tab2').hide(); $('#tab2').removeClass('selected'); $('#tab1').show(); $('#tab1').addClass('selected'); }); ...
javascript jquery
[3, 5]
3,626,279
3,626,280
How do I get the value of td using hierarchy?
<pre><code>&lt;tr&gt; &lt;td&gt;#&lt;/td&gt; &lt;td&gt;2009&lt;/td&gt; &lt;td&gt;&lt;a class="delete_this"&gt;Click&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>I want to use jquery and get the text of 2nd (second) "td" when clicking the anchor. I want the "td" in the same tr as the anchor...</p> <p>How do I ...
javascript jquery
[3, 5]
5,158,865
5,158,866
Java: Equivalent of Python's range(int, int)?
<p>Does Java have an equivalent to Python's <code>range(int, int)</code> method?</p>
java python
[1, 7]
3,913,142
3,913,143
How to capture when a user is leaving ASP.Net page unexpectedly
<p>I need to prompt a user when they are leaving my ASP.Net page unexpectedly with a message to ask if they are sure they want to leave. A post back or when the save button is clicked should not fire the warning. There are a bunch of articles covering this but I am brand new to this and appear to have got my wires cros...
javascript jquery
[3, 5]
3,874,874
3,874,875
Getting class value
<p>I have an image, onclick on wich i make some <code>ajax</code> requests. i need to pass a variable from <code>$_GET[]</code> to my onclick function, so i deside to do the following</p> <pre><code>&lt;img id="img1" class="&lt;?=$_GET['value']"?&gt; /&gt; </code></pre> <p>and jquery</p> <pre><code>$("#img1").click(...
javascript jquery
[3, 5]
3,740,950
3,740,951
View receives touch events when covered by other view
<p>My Android app has a layout that looks like this:</p> <pre><code>--------------------- | | | button | &lt;- View panel A | | --------------------- | | | | &lt;- view panel B (a SurfaceView) | | |------------------...
java android
[1, 4]
3,678,123
3,678,124
Attach event listener to dynamic element
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8021436/jquery-1-7-turning-live-into-on">jQuery 1.7 - Turning live() into on()</a> </p> </blockquote> <p>I used to love the <code>.live()</code> function that jQuery had. You would add it and voila, any future e...
javascript jquery
[3, 5]
2,535,556
2,535,557
Calling a javascript function multiple times
<p>I have a couple of those:</p> <pre><code> &lt;div class="enunt"&gt;text here&lt;/div&gt; &lt;div class="ans"&gt;&lt;input type="text" id="amount1" style="border: 0; color: #f6931f; font-weight: bold;" /&gt;&lt;/div&gt; &lt;div id="slider1" class="slide"&gt;&lt;/div&gt; </code></pre> <p>The o...
javascript jquery
[3, 5]
1,212,525
1,212,526
gridview Binddata
<p>I'm working with a nested grid view. The second one should be bound by using a stored procedure. The parameter for the stored procedure is <code>gridview1.selected</code> value and the connection string should be taken from config.connection string. My code is:</p> <pre><code>SqlCommand cmd = new SqlCommand("s...
c# asp.net
[0, 9]
1,524,545
1,524,546
jQuery: how to scroll to certain anchor/div on page load?
<p>Lately im trying to use jquery more often and right now im having some problem i'd like to solve with jquery hope u could help me.</p> <p>I have some web page that includes some anchor tag (lets say the anchor is located in the middle of the page) and on the event onload i want the page to start on that certain anc...
javascript jquery
[3, 5]
5,628,067
5,628,068
Need help editing and understanding jQuery portfolio template for Dribbble API
<p>I need some help understanding what the below does:</p> <pre><code>var inner = ""; var innerP1 = '&lt;li style="list-style-type:none;"&gt;&lt;div class="dribbble"&gt;&lt;div class="shot"&gt;&lt;a href="'; var innerP2 = '"&gt;&lt;img src="'; var innerP3 = '"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="likes"&gt;' var...
javascript jquery
[3, 5]
5,393,662
5,393,663
Check select box values and compare them with an input
<p>I would like to check if a textfield, newTeamName is already in a list of teamnames stored in a select box. Unfortunately, my code does not work - what's wrong with it? Oh and I have no console problems.</p> <pre><code> optionList = []; $('#chooseTeam option').each(function() { optionList.push($(this...
javascript jquery
[3, 5]
3,084,425
3,084,426
Works in jsFiddle but not on live site
<pre><code>var add_time = function ($category) { 'use strict'; var time_element = $('&lt;input size="7" class="time" placeholder="00:00" pattern="(?:(?:\\d:)?[0-5])?\\d:[0-5]\\d" title="Please insert a time in the form of [[h:]m]m:ss." /&gt;'); if ($('.time').length === 0) { time_element.insertAft...
javascript jquery
[3, 5]
968,621
968,622
Check if User has clicked "Ok" for "onbeforeunload event"
<p>I am checking when the user closes the browser window, if he says ok, how i do I trigger some action, like opening another window or saving a form. If he chooses "cancel", it should stay in the same page (which is working now). pls share some idea on how to approach this issue</p> <p><a href="http://jsfiddle.net/sk...
javascript jquery
[3, 5]
2,391,697
2,391,698
Trying to use jQuery to show/hide multiple lists independently
<p>I have a web page where I am trying to hide extra bits of information by default. These extra bits take the form of lists of items that I want users to be able to show or hide by clicking a JavaScript link. </p> <p>Initially, I used this code: <a href="http://jsfiddle.net/4Yk39/2/" rel="nofollow">http://jsfiddle.ne...
javascript jquery
[3, 5]
5,768,763
5,768,764
convert normal window to modal window?
<p>Is there any way to convert normal window to modal window?</p> <p>I have a grid with a image column. As I click the image a window is appearing with the image.(using javascript window.open(...) )</p> <p>But, as I click a different image in the grid a second window is appearing with respective image. I dont want th...
c# asp.net javascript
[0, 9, 3]
5,177,369
5,177,370
Default Record Voice in Android
<p>i notice in the Android Default Voice Recorder that can sense how loud is your voice and <a href="http://www.androidtapp.com/wp-content/uploads/2009/08/OI-Shopping-Voice-Recording.jpg" rel="nofollow">show it to you in UI parameter</a> .</p> <p>Can i use this from the intent or how can i program a code that sense th...
java android
[1, 4]
975,086
975,087
how to make sure everything is loaded in ajax using jquery
<p>Hello everyone I got trapped when Im using jquery loading some content into my page. The code is like this:</p> <pre><code>$("#holder").fadeout(); $("#holder").load("test.html", callbackfn); function callbackfn(){ $("#holder").fadein(); } </code></pre> <p>test.html</p> <pre><code>&lt;div style="background-im...
javascript jquery
[3, 5]
2,671,126
2,671,127
jQuery expandable menu
<pre><code>&lt;div id="firstDiv"&gt; &lt;div id="secondDiv"&gt; &lt;ul id="accordionMenu"&gt; &lt;li&gt;&lt;a href="#"&gt;menu item&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;menu item&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;suboptio...
javascript jquery
[3, 5]
2,807,381
2,807,382
How do I make an applcation's launch icon run the preferences activity?
<p>I would like an app's launch icon run the app's preferences activity (as it has no Activities, only a Service).</p> <p>The preferences are defined in res/xml/preferences.xml.</p> <p>Please help me regarding this.</p>
java android
[1, 4]
3,345,185
3,345,186
Platform for develop on multi OS-Phone
<p>I want develop on Android and iPhone...</p> <p>How Platform can i use?</p>
iphone android
[8, 4]
938,869
938,870
autotrader.com posting
<p>Does anybody know if autotrader.com offers an API or something that would help with mass postings of vehicles? Or does anybody have any idea of what to use to create something like this? I was thinking of maybe a mouse location and click over a browser window type of thing.</p>
c# c++
[0, 6]
4,732,067
4,732,068
JQuery: Help with $("#div")
<p>I just started using JQuery, as such, I'm cleaning up old code of mine to use JQuery throughout.</p> <p><strong>Question</strong>: How would I convert the following code to use JQuery?</p> <pre><code>// enable the other link document.getElementById("asc").setAttribute("href", "#"); document.getElementById("asc").o...
javascript jquery
[3, 5]
4,243,684
4,243,685
The constructor Intent is undefined
<p>I have the content module loaded, the specific error I'm getting is: <code>The constructor Intent(new View.OnClickListener(){}, Class&lt;ContactWidget&gt;) is undefined</code></p> <p>Any ideas on this? I got this from the tutorial here: <a href="http://developer.android.com/guide/topics/ui/notifiers/notifications....
java android
[1, 4]
1,710,175
1,710,176
Using C++ from Python? (not boost)
<p>I'm currently using boost-python to wrap a small C++ library and make it usable from Python. However, I'd like to stop using boost (mainly due to reasons relating to building/linking). So what other options are there?</p> <p>Is there something that's equally convenient to use?</p>
c++ python
[6, 7]
3,353,925
3,353,926
Do you use lock in your web applications?
<p>After posting this question:</p> <p><a href="http://stackoverflow.com/questions/781189/how-to-lock-on-an-integer-in-c">http://stackoverflow.com/questions/781189/how-to-lock-on-an-integer-in-c</a></p> <p>Many of the answers made me feel that I'm a 'sinner' for using lock in my web apps. I never thought this is a pr...
c# asp.net
[0, 9]
4,577,767
4,577,768
Passing variable string to create arrays (Android)
<p>I am a newb to Android and Java and want to write a funtion that will display a list based on a varable that I pass to the function. </p> <p>The function is below and the code below creates an array out of a string called type, but what I want to do is pass it a variable string and have it build a list based on tha...
java android
[1, 4]
2,230,747
2,230,748
Handle heavy service call with multithreading or parallel processing
<p>I have a Service method as mentioned below</p> <pre><code>GetDetails(List&lt;int&gt; ids) </code></pre> <p>The problem is that the above service method works fine if the number of ids (Count) is less than 50...anything above 50 ids throws an error... this is how the service was built and I do not have any control ...
c# asp.net
[0, 9]
3,740,215
3,740,216
Page_Unload not firing when using response.redirect(somepage,true)
<p>I'm closing a WCF endpoint in the page_unload of an asp.net page, when using response.redirect() the page_unload event doesn't fire and i'm ending up with ophanned endpoint references.</p> <p>I thought the page_unload should fire everytime.</p> <p>Anyone shed any light.</p> <p>Thanks</p>
c# asp.net
[0, 9]
58,683
58,684
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]
3,919,756
3,919,757
jQuery get attribute
<p>I'm trying to get the source attribute of all images withing a specific div but somehow it keeps telling me that the function .attr() doesn't exist...</p> <p>That's the function. Firebug also tells me that "this" is an image element. I'm using jQuery v1.3.2</p> <pre><code>$('#products LI DIV IMG').each(function() ...
javascript jquery
[3, 5]
5,063,673
5,063,674
Farbtastic jQuery Color Picker Callback Issues
<p>I'm trying to play around with the Farbtastic: <a href="http://acko.net/dev/farbtastic" rel="nofollow">http://acko.net/dev/farbtastic</a> color picker plugin but I'm having some issues.</p> <p>I want to setup a callback function so that I can change the bg color like so:</p> <pre><code> $('#picker').farbtastic(fu...
javascript jquery
[3, 5]
3,366,675
3,366,676
Accessing $_SESSION from android
<p>I built a website with PHP, and now and am working on an application to go with it, (however I am not new to php nor Android, just to them together) and I am able to login, and get Status Code: 200 response (successful login), however in the headers list when I print out</p> <pre><code>Header[] heads = response.get...
php android
[2, 4]
4,106,381
4,106,382
Anchor tag's onClick is not working
<p>I am creating an anchor tag on the fly. It gets created, but for some reason the <code>onClick</code> is not working.</p> <p><strong>Here is my generation code:</strong></p> <pre class="lang-cs prettyprint-override"><code>HtmlGenericControl emailsubject = new HtmlGenericControl("div"); emailsubject.ID = count++ + ...
c# asp.net
[0, 9]
2,512,601
2,512,602
jquery Malsup's form plugin and Ketchup validation to work together?
<p>i'm having lots of problems getting the 2 plugins to work together... </p> <p>heres the script i'm currently using, which doesn't work... it submits the form without validation...</p> <pre><code> &lt;script&gt; function validate() { $('#contact_form').ketchup(); } function showResponse() { $('#form_content')....
javascript jquery
[3, 5]
3,994,693
3,994,694
Ignore commas in a text input field when submitting
<p>So I've made this search that does what its supposed to do front-end wise. However, when submitting I'd like the query to ignore commas.</p> <p>Right now I'm using commas to make a comma separated search. The whole thing is, when I submit; the comma's are included and thus messes up my search values. </p> <p>Is t...
javascript jquery python
[3, 5, 7]
1,757,331
1,757,332
Javascript - How to change a new value on drop down
<p>When we change the <code>name="quantity"</code> and the <code>$product['price']</code> value will changing too. Here will have dynamic quantity and price. How to do that using jquery/javascript.</p> <pre><code>&lt;?php $select = "SELECT * FROM `products` ORDER BY `id` DESC LIMIT 10"; $query = mysql_query($selec...
php javascript jquery
[2, 3, 5]
765,935
765,936
Pass data using jQuery Trigger event to a Change event handler?
<p>Is there a way to pass data to a "change" event via jQuery's trigger method?</p> <p>The issue here is that a "click" event triggers the upload menu. Once the image is selected, the "change" event is fired, however. The data I passed into the trigger event's second parameter is passed to the click event, not to the ...
javascript jquery
[3, 5]
3,416,000
3,416,001
recieving header(location:) as a callback from a php script in jquery .ajax
<p>With this jquery : </p> <pre><code>$.ajax({ type: "POST", url: "tosql.php", data: { content: content }, success: function() { } }); </code></pre> <p>I was wondering if I could receive a header(location: ) from the php, to redirect to another page with specific values stored in the...
php jquery
[2, 5]
3,567,037
3,567,038
Getting a server control property value via Java Script
<p>I want to access a boolean property of my User Control through Java Script. For this I do:</p> <pre><code>..=document.getElementById('&lt;%= dtPickerBirth.ClientID%&gt;').IsValidDate; </code></pre> <p>As you might guess IsValidDate is a boolean value and I want to access it. Is there anything wrong with this code?...
javascript asp.net
[3, 9]
3,984,962
3,984,963
disable paste (control V) in IE for an input text box
<p>Is there a way to disable the paste (control V) into a text box using javascript/jquery for IE? </p> <p>I do not have access to the markup unfortunately or I would use onPaste="return false". Can it be attached with Jquery? </p> <p>If it cannot be disabled at least is there a way to detect it so that when the past...
javascript jquery
[3, 5]
2,372,446
2,372,447
Using :not selector with $(this)
<p>I have the following line which works OK</p> <pre><code>$("#myDiv img:not(:eq(0))").hide(); </code></pre> <p>I want to write a similar line but using "this". So:</p> <pre><code>$(this":not(:eq(0))").hide(); </code></pre> <p>But that doesn't work... Any ideas where it's gone wrong?</p>
javascript jquery
[3, 5]
3,558,064
3,558,065
I want to dynamically display submenu in asp .net
<p>I want to <code>display submenu dynamically from database</code>.But I am getting an error in line menuBar. <code>FindItem(dr["ParentMenuId"].ToString()).ChildItems.Add(mnu);</code> that object reference not set to an instance of an object. also I am <code>unable to display my submenu</code>. What is the error plea...
c# asp.net
[0, 9]
2,855,872
2,855,873
Undefined index: uploaded_file in C:\wamp\www\upload_test\upload_media_test.php on line 5
<p>Here is my php file</p> <pre><code> &lt;?php $target_path1 = "uploads/"; /* Add the original filename to our target path. Result is "uploads/filename.extension" */ $target_path1 = $target_path1 . basename( $_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_nam...
php android
[2, 4]
2,003,477
2,003,478
ClearInterval won't stop
<p>I'm using jQuery to "blink" some text when loading (after an AJAX call), but whenever I call clearInterval, I get an "undefined" error.</p> <p>Here's a snippet of my code:</p> <pre><code>OrderId="a12345"; var AllIDs = {}; AllIDs[OrderId] = setInterval( function() {j$("#" + OrderId + "_MessageListSize").fade...
javascript jquery
[3, 5]
2,334,759
2,334,760
Passing array of strings from c# to javascript
<p>I am building two arrays in c# and pass them to a js function like this:</p> <pre><code> //call js to show the map with the markers string[] lats = new string[10]; string[] longs = new string[10]; for (int i = 0; i &lt; 10; i++) { lats[i] = dv[i]["Latitude"].T...
c# javascript
[0, 3]
5,371,609
5,371,610
How to hide an element inside HTML iframe?
<p>I have a page that have toolbar at top and an iframe below the toolbar. It is Stumbleupon style. Some web pages that are loading into iframe has flash objects and those open on my modal div. How can I hide flash objects in iframe? You may see it in action here: <a href="http://www.yemeklog.com/1-pakistana-yardim-zam...
javascript jquery
[3, 5]
456,171
456,172
Jquery bind click and hover, how to check if click
<p>I have combined function like this(simplified version):</p> <pre><code>$('label').bind('click hover', function() { $('label').removeClass("active"); $(this).addClass("active"); }); </code></pre> <p>How can I add an <code>if</code> to check if it is a click?</p>
javascript jquery
[3, 5]
4,425,880
4,425,881
Difference between the classes System.StringComparer and System.StringComparison?
<p>What is the difference between these two classes ?</p> <p>I have used <code>System.StringComparer.OrdinalIgnoreCase()</code> and <code>System.StringComparison.OrdinalIgnoreCase()</code> and both yield the same results. Do they have any difference or they both same ?</p>
c# asp.net
[0, 9]
3,833,063
3,833,064
jQuery.editable: Need to strip HTML breaks on edit
<p>I have a field that I'm outputting text into after doing an nl2br(). I've made the field editable by users. However, I don't want users to see the <code>&lt;br&gt;</code>s when they click edit.</p> <p>This is my function:</p> <pre><code>$(this).editable({ type: 'textarea', submit: 'Save', cancel: 'Canc...
javascript jquery
[3, 5]
269,230
269,231
How may I obtaining value of label element using substring in label's for attribute using jQuery?
<p>I am trying to obtain the value of label elements using jQuery (or javascript). The only search term I have is a substring of the label element's for attribute. In the example code shown below, this would be 'Okuku'.</p> <pre><code>&lt;label class="required" for="Nigeria-Osun-Okuku"&gt;The Township of Okuku&lt;/lab...
javascript jquery
[3, 5]
1,989,682
1,989,683
Site tour for first time user for all pages
<p>What is the best way to identify a user to visit a page in a site for the first time. I've written a script which shows a tour of the page. Since tours should be shown only once. I need to know.</p> <p>For example consider a domain example.com if a user login for the first time i need to show a tour on the '/' page...
php javascript jquery
[2, 3, 5]
2,570,613
2,570,614
Problems converting from an object to XML in java
<p>What I'm trying to do is to convert an object to xml, then use a String to transfer it via Web Service so another platform (.Net in this case) can read the xml and then deparse it into the same object. I've been reading this article: </p> <p><a href="http://simple.sourceforge.net/download/stream/doc/tutorial/tutori...
java android
[1, 4]
2,465,996
2,465,997
Sugestion for FB meta tags using jquery and php
<p>here is my problem:</p> <p>i have FB app, where i am getting data from json and using that data for making list of items in my main window, i can click on every item, and after i click it opens in new ajax window where i get more info about that item</p> <p>problem is about meta tags for FB, cos i have LIKE button...
php jquery
[2, 5]
3,042,894
3,042,895
Rotating an image - readonly
<p>I found code to rotate an image. My problem is that when I save it, the image is already opened, and in use by me (As, I opened it to rotate it).</p> <p>How can I avoid this?</p> <pre><code> public static void RotateImage(string filePath, float angle) { //create a new empty bitmap to hold rotate...
c# asp.net
[0, 9]
683,864
683,865
JavaScript wrong scope
<p>I have the JS scope mixed up. I am trying to assign to values to coordinates and use them later, but for some reason i always get the coordinates as null. </p> <pre><code> var thing = (function($){ var obj = function(config) { $.extend(obj.config, config); obj.init(); }; $.extend(obj, { coordi...
javascript jquery
[3, 5]
4,975,990
4,975,991
jQuery: position element next to another and fix it there
<p>I want to position ElementA next to ElementB like specified here: <a href="http://stackoverflow.com/questions/158070/jquery-how-to-position-one-element-relative-to-another">jQuery: How to position one element relative to another?</a></p> <p>with the only difference being that I want ElementA to move around with Ele...
javascript jquery
[3, 5]
1,865,522
1,865,523
Want to pass php variable as argument in javascript function?
<p><br> i want to pass my php variable in one javascript function.<br> i know it seems simple but i don't know where am i missing something?</p> <pre><code> &lt;?php while($gg=mysql_fetch_array($lg)) { ?&gt; &lt;td id="add_td"&gt; &lt;?php $id = $gg['p_id']; echo ...
php javascript
[2, 3]
5,821,630
5,821,631
Create a radial gradient programmatically
<p>Im trying to reproduce the following gradient programmatically. </p> <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;gradient android:startColor="@color/startcolor" android:centerColor="#343434" android:endColor="#00000000" android:type="...
java android
[1, 4]
3,909,129
3,909,130
Transcompile jQuery to JavaScript
<p>I know all internal jQuery functions are written in JavaScript, so it should technically be possible to just evaluate jQuery to JavaScript.</p> <p>I have a snippet of JavaScript that uses jQuery that I need to use in an environment where jQuery isn't available. I know I could translate it by hand, but it is quite a...
javascript jquery
[3, 5]
3,813,818
3,813,819
Requesting something via ajax - how to stop other requests until this one is done
<p>I have a php script that outputs json data. For the purposes of testing, i've put sleep(2) at the start.</p> <p>I have a html page that requests that data when you click a button, and does <code>$('.dataarea').append(data.html)</code></p> <p>(php script returns a json encoded array. data.html has the html that i w...
javascript jquery
[3, 5]
5,086,978
5,086,979
Targeting Next Div Element in Jquery
<p>Here is the HTML</p> <pre><code>&lt;a style="border: medium none; display: block;" class="agendaNav" href="#"&gt;&lt;img class="rightArrow" src="/images/arrowdown.png"&gt; WEEK AT A GLANCE&lt;/a&gt; &lt;div class="agendaDay"&gt; Content In Here &lt;/div&gt; </code></pre> <p>The Same link / class is repeated s...
javascript jquery
[3, 5]
3,586,213
3,586,214
count the textbox values using javascript
<p>I have dynamically added rows using javascript.now I have to sum the values in the text boxes.if i click add button the same row will be added.now i have one fixed textbox.if i enter the values in the textbox it should add and get displayed in the fixed textbox on keypress.how can i do this with javascript or jquery...
javascript jquery
[3, 5]
3,185,553
3,185,554
ASP.NET Routing webform query
<p>I have a ASP.net Web forms project that I am working on. I need to have a add club page where the admin can add a club to the website.</p> <p>When the club is added it creates a small website within my website for that club automatically. I think this uses some form of string builder.</p> <p>Then that club should ...
c# asp.net
[0, 9]
5,086,037
5,086,038
Calling a function and pass it a json object
<p>I have a json object named data like below</p> <p><img src="http://i.stack.imgur.com/1Rw9b.png" alt="enter image description here"></p> <p>And I have a function denomination in a string like below</p> <p><img src="http://i.stack.imgur.com/G8x09.png" alt="enter image description here"></p> <p>test is the name of ...
javascript jquery
[3, 5]
1,714,964
1,714,965
How can delete Click event?
<p>How can I completely delete the $(selector).click() event?</p> <p>I created option buttons and I would like to stop the click event so that the user won't be able to change the option already selected.</p> <p>How to complete the overriding of the click (or any other) event on jquery?</p>
javascript jquery
[3, 5]
2,389,480
2,389,481
Next count no. clients connected to the server
<p><a href="http://stackoverflow.com/questions/8854176/get-a-list-of-all-active-sessions-in-asp-net">Get a list of all active sessions in ASP.NET</a> the above linked show the get active session but how to used this method when i used the application_start or user form load it returns null.</p> <p>i want to calculate...
c# asp.net
[0, 9]
1,138,925
1,138,926
selected text in iframe
<p>How to get a selected text inside a iframe.</p> <p>I my page i'm having a iframe which is editable true. So how can i get the selected text in that iframe.</p>
javascript jquery
[3, 5]
1,419,997
1,419,998
calling php function in jquery
<p>I have one file json.js and one php function in php file .in json.js i want to check value returned by php function if value returned by fucntion is 0 jquery should perform :$(':input').prop('disabled', true); otherwise nothing –</p> <pre><code>function loadJson (table, id) { $.get("json-object.php", {'table'...
php jquery
[2, 5]
2,532,483
2,532,484
How do I target a jquery click function where identical links exist (ie within a php foreach)?
<p>Similar to what Facebook does on its newsfeed, I want to allow commenting on numerous feed items, which I'm pulling via a php foreach statement. This is creating identical classes. So when I click .show_comments it activates everything.</p> <p>I went through SO and found something akin to what you see below...but...
javascript jquery
[3, 5]
4,370,680
4,370,681
Is there internal layout with icon and text?
<p>I know that there are many iternal layouts which I can use for adapters - android.R.layout.simple_list_item_1, android.R.layout.select_dialog_item, etc. But is there any internal layout which I can use for making item with icon and text (image_<em>_</em>_text)? Why android.id should I use for it? </p>
java android
[1, 4]
960,214
960,215
C# - Loading remote image and sending to browser using .ashx file
<p>I'm trying to load a remote image from my Amazon S3 bucket and send it to browser in binary. I'm also trying to learn ASP.Net at the same time. I've been a classic programmer for many years and need to change. I started yesterday and have my first headache today.</p> <p>On a page in my application I have this image...
c# asp.net
[0, 9]
5,015,633
5,015,634
Data from database show/hide onclick trouble
<pre><code>&lt;?php $getNews = $db-&gt;prepare("SELECT * FROM news ORDER BY id DESC LIMIT 4"); $getNews-&gt;execute(); $news = $getNews-&gt;fetchAll(); foreach ($news as $newspost) { echo $newspost['title'] ; ?&gt; &lt;a style="cursor:pointer;" onclick="return toggleMe('problem')"&gt;read/hide&lt;/a&gt; &lt;?php...
php javascript
[2, 3]
1,321,109
1,321,110
Passing dynamic value via param
<p>I am using this plugin <a href="http://valums.com/ajax-upload/" rel="nofollow">http://valums.com/ajax-upload/</a>. I am using this code :</p> <pre><code>var uploader = new qq.FileUploader({ // pass the dom node (ex. $(selector)[0] for jQuery users) element: document.getElementById('file-uploader'), // ...
javascript jquery
[3, 5]
145,865
145,866
Why jquery class selector select items that has part of the classname?
<p>if i have :</p> <pre><code>&lt;div class="carBig"&gt;&lt;/div&gt; </code></pre> <p>and</p> <pre><code>&lt;div class="car"&gt;&lt;/div&gt; </code></pre> <p>and $(".car").size();</p> <p>i get 2 items ..</p>
javascript jquery
[3, 5]
4,112,956
4,112,957
Can I get a jQuery object from an existing element
<p>I have a function</p> <pre><code>function toggleSelectCancels(e) { var checkBox = e.target; var cancelThis = checkBox.checked; var tableRow = checkBox.parentNode.parentNode; } </code></pre> <p>how can I get a jQuery object that contains tableRow Normally I would go <code>$("#" + tableRow.id)...
javascript jquery
[3, 5]
3,446,968
3,446,969
Make the Alphabet enter capital if there is a space before it when entering text in the textbox
<p>I want to make the ALPHABET capitalize entered by the user in the textbox if there is a space before it.</p> <p>Example user writes "test new" so "n" should be a capital and it will be so smooth that it feels like the user pressed the shift key</p> <p>I think we can do the same in keydown event (jquery)</p> <p>Th...
javascript jquery
[3, 5]
5,130,940
5,130,941
Why does this code block say "not all code paths return a value"?
<p>I wrote following code...but i am getting Error like:</p> <p><strong>Error 1 'LoginDLL.Class1.Login(string, string, string)': not all code paths return a value</strong></p> <p>Please help me...</p> <p>Thanks in advance...</p> <p>My code is as given below...</p> <pre><code>public int Login(string connectionStrin...
c# asp.net
[0, 9]
3,448,851
3,448,852
jQuery DatePicker set time and date
<p>Hello I was asked to modify some code. We got something like this:</p> <pre><code>$("#expiration_datepicker").datetimepicker( "option", "disabled", false ).attr('value', ''); $("#expiration_datepicker").datetimepicker( { dateFormat: 'mm-dd-yy', showOn: 'button', buttonImage: '../chassi...
javascript jquery
[3, 5]
3,284,857
3,284,858
Label showing "System.Web.UI.WebControls.Label"
<pre><code>double peratusE = ((double)(bilanganE / calonAmbil)) * 100.00; Label peratusELabel = row.Cells[16].FindControl("peratusELabel") as Label; peratusELabel.Text = String.Format("{0:0.00}", peratusELabel); </code></pre> <p>i use that particular code to calculate the perce...
c# asp.net
[0, 9]
4,131,304
4,131,305
how to accept only alphabetical pressed keys ( for "autocomplete" purpose )
<p>am wondering ... how to only accept alphabetical pressed keys from the keyboard .. i am using the jQuery .keypress method ... now i wanna know how to filter the passed key ... </p> <p>i am trying to build a simple autocomplete plugin for jQuery ...i know a about jQuery UI, but i want to do it myself ...</p> <p>tha...
javascript jquery
[3, 5]
1,996,059
1,996,060
Yes no dialog with progress
<p>I was wondering if anyone has an example of a yes no dialog that when yes is pressed it shows the progress of the background activity.</p> <p>When yes is pressed my application inserts data into an SQL server database and it can take some time. Although the dialog is model while this happens it would be nice to sho...
java android
[1, 4]
3,586,212
3,586,213
Are zero length timers still necessary in jQuery?
<p>I am finally getting around to really implementing some jQuery solutions for my apps (which is seeming to also involve a crash course in javascript).</p> <p>In studying examples of plugins, I ran across this code. I'm assuming the author created the zero length timer to create some seperation of the running code, s...
javascript jquery
[3, 5]
4,102,555
4,102,556
How to get the textbox value from a hidden field value assigned
<p>I have written the following script to get the value of hidden field to a text box when text box is empty on hitting tab but it did not works so can any one tell what's wrong in this</p> <pre><code>&lt;script type="text/javascript"&gt; function Tab() { var PayDate = document.getElementById('txtD...
javascript asp.net
[3, 9]
5,856,297
5,856,298
Why are my values not being kept between instances of a type?
<p>I have the class:</p> <pre><code>public class pro { private string url = string.Empty; public string GetURL() { return url; } public void SetURL(string value) { url = value; } } </code></pre> <p>In this line I'm getting value:</p> <pre><code>string url = li1.Value; pro itm = new pro(); // I have c...
c# asp.net
[0, 9]
5,088,406
5,088,407
sending parameters from ASP.NET to javascript
<p>I want to call a javascript function from my ASP.NET (C#) code, I want to pass a variable (string) with another string like below:</p> <pre><code>tag_label.Attributes.Add("onmouseover", "tooltip.show('my text'+'"+myString+"'&lt;br/&gt;'another text);"); </code></pre> <p>how should I pass these values? also I want ...
javascript asp.net
[3, 9]
3,576,633
3,576,634
How can I take the user to a new page, along with some variables, using Javascript/jQuery, without causing a URI Too Large error?
<p>Using Javascript/jQuery, I need to take the user to a new page when a button is clicked, and also send along a bunch of variables to the new page. At the moment I'm doing it like this:</p> <pre><code>location.href=window.location.href + '/new_note?id='+$('#note_id').val()+'&amp;note_subnotes='+encodeURIComponent(wi...
javascript jquery
[3, 5]
4,366,118
4,366,119
global asax file
<p>What is the global asax file for? I'm looking to declare a user-specific dictionary of objects that'll be used throughout the pages of the application. Where do I declare this dictionary?</p> <p>Thanks.</p>
c# asp.net
[0, 9]
1,829,689
1,829,690
Why heder('Location:index')not working but window.location.href='index.php' is working?
<p>I have the Index file like this</p> <pre><code>&lt;?php include('file1.php'); include('file2.php'); ?&gt; </code></pre> <p>in file1.php I am having the code like below.</p> <pre><code>&lt;?php echo "hai"; ?&gt; </code></pre> <p>I am trying to redirect the page by using <code>header('Location:index.php')</code>.I...
php javascript
[2, 3]
3,406,429
3,406,430
Filtering mobile browsers by failure to execute using jQuery
<p>Just getting some css together for a mobile web app (using the xhtml-basic/xhtml-basic11 dtd) and was trying to think of a reliable way to filter for mobile browsers. I've taken a look at <a href="http://detectmobilebrowser.com" rel="nofollow">http://detectmobilebrowser.com</a> but that appears to filter on the basi...
javascript jquery
[3, 5]
3,860,188
3,860,189
android resize layout when keyboard appears
<p>I would like to reposition layout when keyboard appears, for example when editing a text field, in order to get visibility on focused field. I tried windowSoftInputMode but I cannot get any difference. How to reach it? Thank you.</p> <pre><code>&lt;activity android:name="com.xxxx.projecte1.TabBar_Activ...
java android
[1, 4]
4,986,033
4,986,034
Java to C# Conversion
<p>I need to convert several Java classes to C#, but I have faced few problems.</p> <p>In Java I have following class hierarchy:</p> <pre><code>public abstract class AbstractObject { public String getId() { return id; } } public class ConcreteObject extends AbstractObject { public void setId(Str...
c# java
[0, 1]
9,184
9,185
asp:LinkButton code to open new browser window/tab after other code
<p>For my internal webpage at work, I display a DataGrid based on entries in a SQL table (not directly, but with some processing on entries).</p> <p>Each row in the DataGrid has a button that the user clicks. I need this button to open a new window or tab (I believe I can't decide as this is based on browser config) a...
c# asp.net
[0, 9]
1,424,344
1,424,345
Why doesn't this work?
<p>I want to change the value of an element with javascript.</p> <pre><code>&lt;span id="mixui_title"&gt;Angry cow sound?&lt;/span&gt; &lt;script type="text/javascript"&gt; $("#mixui_title").val("very happy cow"); &lt;/script&gt; </code></pre>
javascript jquery
[3, 5]
2,510,249
2,510,250
jQuery IF statement (Only if a web browser on a desktop) not a mobile device / iPad
<p>is there a easy way with jQuery to essentially have a jQUery/JS if statement along the lines of:</p> <pre><code>IF User is on a web Browser on a desktop... not a mobile device / iPad </code></pre> <p>Thanks</p>
javascript jquery
[3, 5]