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,306,344
5,306,345
Refreshing JS code to display correct data on screen
<p>I'm using script below to countdown from given time and display how many hours+minutes+seconds left for timeout on the script in real-time.</p> <p>Counting down woks perfectly fine but the problem I'm facing is, when using <strong>next</strong> and <strong>previous</strong> buttons on browsers, the time doesn't get...
javascript jquery
[3, 5]
3,179,230
3,179,231
How to express jquery ajax call with only javascript?
<p>Can you help me convert this jquery to javascript? Thanks.</p> <pre><code> &lt;script&gt; $(document).ready(function() { $("a.false").click(function(e) { $(this).closest("tr.hide").hide("slow"); var main_id = this.title; var display = "false"; ...
javascript jquery
[3, 5]
3,013,261
3,013,262
Setup a global loading animation istead on every div. Javascript - Jquery
<p>How can I setup a global loading instead on every div? The loading pic appears until all pages are loaded.</p> <pre><code> $(document).ready(function() { $('#termid').change(function() { var val = $(this).val(); $('#firstresult').empty().addClass('loading').load(val + '.php', function(){$('#firstresul...
javascript jquery
[3, 5]
4,311,524
4,311,525
coin slider jquery --> how do I pass 100% width argument to this? Only seems to allow pixel configuration of images?
<p>I am using the jQuery coinslider, and would like to pass a 100% width argument (rather than the current pixel size arguments). Is there a way to do this?</p> <p>Thanks!</p> <pre><code>&lt;script type="text/javascript"&gt;// &lt;![CDATA[ (function($) { $(document).ready(function() { $('#coin-slider').coinsl...
javascript jquery
[3, 5]
2,719,115
2,719,116
Simple Login using C# in ASP.NET
<p>I just started programing in ASP.NET and I'm currently making a simple Login page. I already have a database for the users and their password so what I want to do is when a user enter a username and password I want the program to check if theres a matching records in the database and allow the user to login (like an...
c# asp.net
[0, 9]
5,774,211
5,774,212
PHP structure changed into a jQuery
<p>As this structure changed into a jQuery? And if this is possible at all?</p> <pre><code>$path=$_SERVER["REQUEST_URI"]; $pathkor = substr(strrchr($path, "/"), 1); $var = "/актеры/женщины/"; if(strstr($pathkor, '%D0%B6%D0%B5%D0%BD%D1%89%D0%B8%D0%BD%D1%8B') or strstr($pathkor, '98+99+100+101')){ print '&lt;div...
php jquery
[2, 5]
2,544,519
2,544,520
Jquery remove and add back click event
<p>Is it possible to remove than add back click event to specific element? i.e </p> <p>I have a <strike><code>$("#elem").click(function{//some behaviour});</code>,</strike> <code>$(".elem").click(function{//some behaviour});</code>(there are more than 1 element) while my other function <code>getJson</code> is executin...
javascript jquery
[3, 5]
5,281,677
5,281,678
Run function after mouse down for set time jQuery/JS
<p>Basically when you hold down any of the buttons with the class of <code>block_delete</code> for more than 1 second, the <code>OpenLoader()</code> should run. I googled and looked around on here and then made this, it kind of works:</p> <pre><code>var functionDeleteBlockDia = function() { $(".block_delete").mou...
javascript jquery
[3, 5]
1,949,089
1,949,090
Strict Mode Scope Error on SetInterval call
<p>Below is an pseudo example of what I am trying to doing</p> <p>In non strict mode this works, but in strict mode I get a not defined error when the setInterval fires. This script is called from another jquery script as a plugin which then makes the call to the init section.</p> <p>From reading here it appears to ...
javascript jquery
[3, 5]
434,739
434,740
How to listen for a key press in Android
<p>I want to listen for an Android key press. For example when I press the Menu key on the phone, I will get this key press and start an application.</p> <p>And I don't know in <code>Phonewindowmanager.java</code> when I pressed a key, the <code>interceptKeyTq()</code> come to twice.</p>
java android
[1, 4]
262,395
262,396
Passing URL parameter with JavaScript
<p>I have some JavaScript that creates Forward and Back buttons. However, I need to pass a parameter in the URL (<code>?id=$idd</code>):</p> <pre><code>&lt;a href="javascript:submitForm('mainForm','back');" title="Go back to the kit home page" style="float: left;"&gt;&lt;img src="images/back.gif" alt="Go back to the k...
php javascript
[2, 3]
3,129,325
3,129,326
Separate a java listener to its own function?
<p>Can I break the set-listener line into smaller pieces?</p> <p>Here is the code I have:</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { Preference button = (Preference)getPreferenceManager().findPreference("exitlink"); button.setOnPreferenceClickListener(new Preference.OnPreferen...
java android
[1, 4]
2,911,178
2,911,179
javascript Running a function under another function
<p>I have 3 functions, with the third function under the first that I want to run in the second.</p> <pre><code>function first () { function third () { } } function second () { third (); } </code></pre> <p>How can I make second run third correctly?</p> <p>Thanks.</p>
javascript jquery
[3, 5]
1,779,837
1,779,838
Alligator tags(<% %>) inside js string?
<p>I am trying to redirect a page reading the url from the config file.</p> <p>However, when I try this:</p> <pre><code> &lt;script type="text/javascript"&gt; &lt;%string redirectUrl = System.Web.Configuration.WebConfigurationManager.AppSettings["RedirectURL"];%&gt; window.parent.location.replace("&lt;%=redire...
asp.net javascript
[9, 3]
5,007,979
5,007,980
jQuery submit ajax form with 2 submit buttons
<p>im trying to achieve the following, in php i have a form like this:</p> <pre><code>&lt;form method="post" id="form_1" action="php.php"&gt; &lt;input type="submit" value="add" name="sub"/&gt; &lt;input type="submit" value="envoi" name="sub"/&gt; &lt;/form&gt; </code></pre> <p>the form action file is:</p> <pre><co...
php javascript jquery
[2, 3, 5]
5,707,776
5,707,777
get the html element after created
<p>i'm creating a img when i click in a input, then i get the html or anyelse from the created img.</p> <p>but i dont know why this is not working!</p> <p>always return <code>null</code></p> <p>my js:</p> <pre><code>$("#click").click(function(){ var $imgDone = $('&lt;img/&gt;').attr('src', 'someImage/insomewher...
javascript jquery
[3, 5]
1,698,828
1,698,829
Showing contents of a word document file in a textarea
<p>I've a asp.net web page which has a textarea control on it. In this control, I need to show contents of a word document file which is sitting on the server. Can someone please help me with the C# code ?</p> <p>Thanks for reading.</p>
c# asp.net
[0, 9]
2,851,329
2,851,330
Need to modify the SelectCommand parameter for SqlDataSource from C#
<p>I have a SqlDataSource that I am trying to modify in C# ASP.NET from my code behind page. The code in the page is:</p> <pre><code>&lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="&lt;%$ ConnectionStrings:TEST_SERVER %&gt;" ProviderName="&lt;%$ ConnectionStrings:TEST_SERVER.P...
c# asp.net
[0, 9]
5,311,044
5,311,045
Using variables in a jQuery function
<p>This line $(''+fullId+'') is giving me problems. I've created an array in a different function that gets the #id's of all the inputs in the DOM. </p> <p>Now with this function i'm trying to create a blur and focus jQuery function. I've set the variable fullId to prepend the '"#' and append the '"' to the variab...
javascript jquery
[3, 5]
4,882,556
4,882,557
$(form).submit not working in any IE version
<p>I have a upload file function that triggers a form submit event after the file has been choosed, however the function doesn't seem to trigger that event in any IE version.</p> <pre><code> var fromPCFunc = function() { var Iframe = '&lt;iframe id="uploadiframe"&gt;&lt;/iframe&gt;', formElement = '&lt;...
javascript jquery
[3, 5]
4,980,053
4,980,054
How can I create my custom properties on xml for Android?
<p>We have in our project a keyboard with "Key" elements, this Key elements have attributes such as android:codes="119", android:keyLabel="w" and so on.</p> <p>My question is how can I include an custom attribute like a "android:alternativeKeyLabel" to do something else.</p>
java android
[1, 4]
120,946
120,947
inline image captions plugin?
<p>Is there such thing as an inline image caption plugin for jquery?</p> <p>So a user can someone select a point on an image, and then insert a text caption. Whenever someone hovers over the image, the caption displays.</p> <p>Flickr has this type of functionality.</p>
javascript jquery
[3, 5]
183,451
183,452
Is it possible to access client harddisk using asp.net or any client side technology
<p>Actually I want to store a file on a client PC.</p> <p>I know that asp.net does not allow to access client harddisk but by using any trick or any idea?</p> <p>For security reasons I want to save a file on client's computer containing user information. I does not want to save a cookie in a user's browser. </p> <p>...
javascript asp.net
[3, 9]
340,259
340,260
Javascript For loop doesn't always work in IE
<p>After two days of searching, I'm stuck and could really use some assistance.</p> <p>I have a javascript array that when iterated through will give me the key to each subsequent array. This works in all browsers except for some versions of IE. In some versions of IE, it appears that it first reorders the array in ...
javascript jquery
[3, 5]
1,949,666
1,949,667
How to give the same link to multiple auto-generated buttons with the same ID
<p>How to give the same link to multiple auto-generated buttons with the same ID?</p> <p>I've tried, but it only gives the first button the link, the rest of the buttons remain empty</p> <pre><code>$('#Button').click(function() { window.location='aaa.html'; }); </code></pre>
javascript jquery
[3, 5]
5,740,286
5,740,287
What is the initial step to start with android? How does java programming help?
<p>I am a Java professional. Now I'd like to write an application for the Android platform. </p> <ul> <li>What is the initial step I need to take?</li> <li>How does my Java programming experience help in this case?</li> </ul>
java android
[1, 4]
1,241,569
1,241,570
Remove all other list items except the one that is clicked using jQuery
<p>I have list of this kind</p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;div class="pname"&gt;Name1&lt;/div&gt;&lt;div class="pid"&gt;ID1&lt;/div&gt;...&lt;/li&gt; &lt;li&gt;&lt;div class="pname"&gt;Name2&lt;/div&gt;&lt;div class="pid"&gt;ID2&lt;/div&gt;...&lt;/li&gt; &lt;li&gt;&lt;div class="pname"&gt;Name3&lt;/div&gt;&lt...
javascript jquery
[3, 5]
1,636,415
1,636,416
Performing click event on a disabled element? Javascript jQuery
<p>I would like to perform the click event of a element:</p> <pre><code>jQuery('input#submit').click(function() { if ( jQuery('input#submit').attr("disabled") ) { alert('SUP'); } }); </code></pre> <p>However this will not work as the element is required to be enabled for the click even to be executed.</p> ...
javascript jquery
[3, 5]
2,986,701
2,986,702
jquery, write a function to get both new and old window.width
<p>how do i write a function that detects and caches the start and the end of a window.width resize</p> <p>the width in the the .resize(funciton{}) changes instantly when resizing, but I'm after the differences between the old and new size every time it resizes.</p> <p>update---</p> <p>I Need to catch the diffeence ...
javascript jquery
[3, 5]
4,178,593
4,178,594
exception of type 'system.outofmemoryexception' was thrown
<p>My page throws error exception of type 'system.outofmemoryexception' was thrown .</p> <p>This happens when i press submit button in submit button there are sqlconnections with stored procedure as im populating grid with data .</p> <p>It gives error when i put code in submit button. But when i put tht on page load ...
c# asp.net
[0, 9]
321,036
321,037
php $FILES is empty
<p>i try to insert a row to db with php and jquery</p> <p>I have this code</p> <pre><code>$.post('/json/management/AddArtistAjax', { "artistName": $("#nameSurnameID").val() , "Country": $("#country").val() , "bDate" : $("#demo1").val() , ...
php jquery
[2, 5]
5,484,225
5,484,226
JavaScript - jQuery toggle option
<p>I have a script to execute some tasks based on an option variable. Option has a default value 1. The value can be toggled by clicking some links. Then a set of operations are set, for that operations to execute. The sample layout will be like;</p> <p>HTML</p> <pre><code>&lt;a id="opt1"&gt;1&lt;/a&gt;&lt;br&gt;&lt;...
javascript jquery
[3, 5]
1,406,295
1,406,296
Android Content Provider database leak issue
<p>I am writing a content provider for this application and in my content provider I am opening a database connection, running a query and returning the cursor of results to the calling program. If I close this database connection in the provider, the cursor has no results. If I leave it open, I get "leak found" errors...
java android
[1, 4]
2,054,434
2,054,435
How to store order of items in case we have a bitmask that contains a list of items?
<p>I have a bitmask in my db for storing a list of items. Before now I just rendered these items one by one on the screen. But now user should have an ability to set the order of items. I have a solution that I dislike: to store ids list in the field using some separator (something like this 1|8|4|16). </p> <p>Can any...
c# asp.net
[0, 9]
559,356
559,357
onChange="document.myform.submit() and PHP while loop
<p>I have the following code and on it's own works fine, but I need to have it in a PHP while loop as there may be hundreds of records. This does not work, meaning it does not submit the form.</p> <p>Any help with this code, or other ideas that will work are appreciated. It also needs to write to a mysql DB the new va...
php javascript
[2, 3]
318,640
318,641
Why does jCaroussel Lite cut off text in some slides?
<p>I'm using a jQuery plugin called <a href="http://www.gmarwaha.com/jquery/jcarousellite/" rel="nofollow">jCarousel Lite</a> to create a vertical scrolling Twitter ticker. Everything works fine, except for the fact that some tweets aren't shown completely. They're cut off before the last line of text. I can't seem to ...
javascript jquery
[3, 5]
3,766,350
3,766,351
Save int into nullable int column
<p>I am trying to save an integer into a nullable int column only if there is a value</p> <pre><code>if (user.AssociationID != 0) { int? AssociationID = user.AssociationID; currentUser.AssociationID == AssociationID; } </code></pre> <p>I have tried casing currentUser into an int <code>(int?)currentUser.Associat...
c# asp.net
[0, 9]
4,119,298
4,119,299
Override jquery onclick event?
<p>I have a button in ASP.NET, that renders to HTML as such:</p> <pre><code>&lt;input id="btn" type="submit" value="clickme"&gt; </code></pre> <p>If I then add the jquery:</p> <pre><code>$('#btn').click(function(){return false;}); </code></pre> <p>Every time the button is clicked, nothing will happen (i.e. no postb...
javascript jquery asp.net
[3, 5, 9]
5,048,030
5,048,031
How to Append a Row in a Datatable?
<p>I have a datatable say dt1( which keeps changing its inside a loop). I have another datatable say dt2( initially its null). Now I have to append the Rows of dt1 in dt2. I tried using Merge(), but the previous rows of dt2 are vanishing. Any idea How to do this ??</p>
c# asp.net
[0, 9]
3,623,501
3,623,502
SubString/subsequence in javascript
<p>Can anybody help me in formatting the below string to display the final result as "<strong>Mark, Anthony</strong>" i have been using substring in javascript to format and do we have anything like subsequence to make these format in a single line code?</p> <pre><code>var res="undefinedMark, Anthony," var final = r...
javascript jquery
[3, 5]
4,080,270
4,080,271
i want call MotionEvent.ACTION_DOWN in one activity and MotionEvent.ACTION_UP in another activity
<pre><code> ImageView ii = (ImageView)v.findViewById(R.id.picture); ii.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent e) { ImageView i2 = (ImageView)findViewById(R.id.btn_imagetest); if(e.getAction() == MotionEvent.ACTION_DOWN){ //call activity one } if (e.getAction() ...
java android
[1, 4]
5,478,247
5,478,248
State Of Variables
<p>In "edmx" page I have button control with event "NextButton_Click" for click. When I click this button the variables "index" doesn't want to change to "40" and the "text" variable doesn't want to change to "active". These variables are always in the same state "text" is always equal to "start" and "index" is always...
c# asp.net
[0, 9]
1,780,092
1,780,093
How to not activate mother when clicking child?
<p><a href="http://jsfiddle.net/aQb9H/" rel="nofollow">http://jsfiddle.net/aQb9H/</a> What is the best way to do this, do not activate the parent while on click its child. Now while clicking the child both are activated .</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;head&gt; &lt;script type="text/javascript" src="http://a...
javascript jquery
[3, 5]
4,488,165
4,488,166
Pass this object into event handler
<p>I got the code below how do I pass the current object "this" into the event handler so that I can pass it to the object Foo:</p> <pre><code>btn.setOnClickListener(new View.OnClickListener(this) { public void onClick(View view) { new Foo(this).AlertBox("Hello Lennie!"); } }); </code></pre> <p>Where "this" is: an...
java android
[1, 4]
5,469,148
5,469,149
override Master Page CSS div width in Child Page
<p>I've set a specific width to the body div in my Master Page and I want to change that in a Child Page that belongs to the Master Page. Is this possible? I've been searching and I think what I need is javascript.</p> <p>I haven't used javascript before though, but here's what I've tried:</p> <pre><code>&lt;asp:Cont...
c# asp.net
[0, 9]
2,423,908
2,423,909
How to Overwrite first some bytes of a file with different bytes in android
<p>I have a problem that I want to overwrite first 2^21 bytes of a video file with another 2^21 bytes, but I don't know how to do that? Please suggest me the right solution for the same.</p> <p>Thanks in advance.</p>
java android
[1, 4]
2,347,780
2,347,781
How to get content from a drop down menu to text field?
<p>I am a new person in this PHP and Javascript. I have a drop down menu as follows. Want to get the content or value to a text field and retain the value after the page refreshs? How will do this?</p> <pre><code>&lt;select name="animal" style="width: 350px;"&gt; &lt;option value=""&gt;Please Select&lt;/option&gt; ...
php javascript
[2, 3]
142,839
142,840
MediaPlayer errors
<p>I need to write a very simple android application but I have a serious problem.</p> <p>Here is my class:</p> <pre><code>package com.music.playa; import java.util.Random; import android.app.Activity; import android.content.Context; import android.media.MediaPlayer; import android.os.Bundle; import android.view.Vi...
java android
[1, 4]
5,706,842
5,706,843
Prevent user from holding f5 for more than x seconds?
<p>Is there a way to bind a jQuery event to pop off after a visitor holds a button for more than, say, 3 seconds? In this case I'd like to do something after a user holds f5 for 3 seconds.</p> <p>I've found a solution that prevents the refresh when user presses f5 here:</p> <p><a href="http://stackoverflow.com/questi...
javascript jquery
[3, 5]
3,180,805
3,180,806
Converting Url list to an ip?
<p>Is there any program for converting list of Urls to an ip list ? example:</p> <pre><code>site1.com ip1 site2.com ip2 site3.com ip3 </code></pre>
php javascript
[2, 3]
1,569,916
1,569,917
jQuery remove element on ajax success
<p>I have <code>&lt;button&gt;</code> with ajax on it, and want to remove it after successful request.</p> <pre class="lang-js prettyprint-override"><code>&lt;script type="text/javascript"&gt; $(".approve").click(function(){ var el, image_id = $(this).data('image-id'); $.ajax({ type: "...
javascript jquery
[3, 5]
3,836,285
3,836,286
How can I get these jQuery results with vanilla JavaScript?
<p>Does anybody know how I can get the equivalent of jQuery's <code>.offset()</code> and <code>.closest()</code> without a JavaScript library?</p> <p>For <code>.closest()</code>, if I know how far to climb up the DOM tree, I can just use that many <code>.parentNode</code>s, but if I don't know how far to go, I'm stuck...
javascript jquery
[3, 5]
1,266,032
1,266,033
Jquery Class selector
<p>I a developing an app in which I am using</p> <pre><code> $("#plblAgreeProblem",".plblAgreeComment").live("click", function(){ alert("bil"); } </code></pre> <p>but class selector is not working. my divs which have class="plblAgreeComment" are creating dynamically so I am using .live()</p> <p>Please help me....
javascript jquery
[3, 5]
5,859,195
5,859,196
Execute Server Side from Client Side
<p>I want to execute the Add button click event(server side) from client side.</p> <p>This is my javascript function</p> <pre><code> function validateinput() { var arrTextBox = document.getElementsByTagName("input"); var retVal = 1; for (i = 0; i &lt; arrTextBox.length; i++) { if (arrTextBox[i]....
javascript asp.net
[3, 9]
4,453,774
4,453,775
extension method parameter in gridview databind
<p>I'm binding an object to a gridview. The object (LeClient) consists of several variables, two of which are related to its phone number. One variable contains a string of digits (LePhone) and the other contains an int that represents the country code (LeCountryCode). I have an extension method for strings that works ...
c# asp.net
[0, 9]
5,114,972
5,114,973
Iframe contact form dosen't send parent windows link
<p>here is my site <a href="http://www.atc-center.com" rel="nofollow">http://www.atc-center.com</a>. i have an inquiry form embed in you can see at product page click at any product and find " Inquiry " in red. i want to get the current url of page ( for product details). i tried many things but i can't get the url o...
php javascript
[2, 3]
3,504,578
3,504,579
Android 2.1 How to create sniper style game
<p>I am trying to make a sniper style game where the user looks through a scope to see a large image that he can navigate. The user can only see part of the image at a time. The image is supposed to be much larger than the screen size that way he has to actually navigate and look for the enemy. How do I use an image...
java android
[1, 4]
3,610,002
3,610,003
Writing a stream to the response in ASP.Net
<p>Ok just want to clarify something with my solution.</p> <p>I have a requirement to grab a file from a respository somewhere, this repository requires a session token to be passed in the form of a cookie along with the request for the file. </p> <p>I am authenticating the user against this repository and storing ...
c# asp.net
[0, 9]
2,764,310
2,764,311
Why is it risky to store data as an attribute of an element?
<p>I keep reading the same thing:</p> <blockquote> <p>"Storing property values directly on DOM elements is risky because of possible memory leaks."</p> </blockquote> <p>But can someone explain these risks in more detail?</p>
javascript jquery
[3, 5]
2,093,007
2,093,008
Jcarousel change a divs text depending on first item shown
<p>I'm having a problem with Jcarousel where i need to have a divs text changing when the next button is pressed on the carousel. I have the carousel set up and working how i want, scrolling one item at a time:</p> <pre><code>jQuery(document).ready(function() { jQuery('.mycarousel').jcarousel({ scroll : 1 });}); <...
javascript jquery
[3, 5]
4,056,229
4,056,230
FindControl always returns null on dynamically generated table
<p>I have a generated table using the following code (snippet):</p> <pre><code>String sTable = "&lt;table id=\"ediTable\" runat=\"server\"&gt;\n" + "...\n" + "&lt;/table&gt;\n"; table_display.InnerHtml = sTable; table_win.Style.Add("display", "block");//show table </code></pre> <p>I then, later in m...
c# asp.net
[0, 9]
1,675,318
1,675,319
How can i have Response.Redirect() work from MasterPage?
<p>I have a problem: when i call a Response.Redirect() from the MasterPage it doesn't work. Well, debugging i can see that until the Pre_Render() method the target page is loaded, but then is rendered the previous page.</p> <p>Here's some code to better explain:</p> <p>(from MasterPageMain.master.cs)</p> <pre><code>...
c# javascript asp.net
[0, 3, 9]
2,769,196
2,769,197
how to bundle javascript files into Java application?
<p>Javascript is executed by Java application. However, something like Jquery library is really too long to fit into a String variable. I am able to read jquery.js from a file but not sure how to package it inside the .jar file.</p>
java javascript jquery
[1, 3, 5]
678,133
678,134
Why parent element is undefined in Firefox only when onerror event of IMG tag is called?
<p>I am trying to unhide a DIV element if my extension in Firefox is not installed. </p> <p>For this purpose i am using the following technique.</p> <p>This doesn't work in Firefox. it says</p> <p><strong>ExtensionNeeded is undefined.</strong> </p> <p>I get the alert though. Please have a look at my code.</p> <pre...
javascript asp.net
[3, 9]
3,496,239
3,496,240
From Variable separate the javascript using php
<pre><code>$current = file_get_contents('template.html'); </code></pre> <p>From above varible how to seprate the <strong>Javascript</strong> using <strong>php</strong></p> <p>Plz Help me</p> <p>Thank You</p>
php javascript
[2, 3]
2,020,204
2,020,205
Get all div values of similiar id in a particular div
<p>I have a div structure like below </p> <pre><code> &lt;div id=main"&gt; &lt;input type="hidden" id="people_0_1_0" value="12"/&gt; &lt;input type="hidden" id="people_0_1_1" value="12"/&gt; &lt;/div&gt; </code></pre> <p>Now how to add all hidden input values in a variable. Thanks</p>
javascript jquery
[3, 5]
1,427,290
1,427,291
Php use header location to load new page in entire window within jquery tabs
<p>I use Jquery tabs with in each tab a form. If the form is submitted it’s reloaded (after the actions in the database) in the tab so that not the whole page has to be reloaded. One of the forms has to link to a payment page if there has to be payed, so after some checks after a submit the payment page has to be loade...
php jquery
[2, 5]
3,987,956
3,987,957
How do I read a GET variable from JavaScript/jQuery?
<p>How do I get a particular GET variable in JavaScript or jQuery?</p> <p>I want to pass it on in ajax script in this sort of way:</p> <pre><code>$.ajax({ url: 'foo/bar.php', data: { search: $(this).val(), page: something //$_GET['page'] only in js }, ... </code></pre>
javascript jquery
[3, 5]
258,943
258,944
jQuery - If none of 3 id's have content hide this
<p>I have 3 div's drawing content from fields in a database:</p> <pre><code>&lt;div id="one"&gt;{data_one}&lt;/div&gt; &lt;div id="two"&gt;{data_two}&lt;/div&gt; &lt;div id="three"&gt;{data_three}&lt;/div&gt; </code></pre> <p>If none of these three div's have data, can I add some jQuery to hide another div?</p> <p>T...
javascript jquery
[3, 5]
5,442,144
5,442,145
How can I parse the string to Double
<p>I want to parse 78 into double variable where 78 is stored as a String</p> <p>I used below code to parse. </p> <pre><code>Double.parseDouble("78"); </code></pre> <p>It display's Exception Error java.lang.NumberFormatException</p> <p>Plz tell me How can I parse String 78 into double </p>
java android
[1, 4]
3,499,935
3,499,936
How do I find if an element contains a specific class?
<p>I need to check if an element contains a certain child class using JQUERY.</p> <p>I tried:</p> <pre><code>if ($('#myElement').has('.myClass')) { do work son } </code></pre> <p>Didn't work.</p> <p>My html code is laid out like this:</p> <pre><code>&lt;div id="myElement"&gt; &lt;img&gt; &lt;span&gt;som...
javascript jquery
[3, 5]
3,626,521
3,626,522
Setting the width of a pagination depending on how many child elements
<p>I am trying to set the width of a pagination depending on how many child elements are available.</p> <p>The reasoning for this, is because I want to centralise it within a parent div element.</p> <p>At the moment, I've resorted to trying to find the outerWidth of the UL element and setting the css to mirror this, ...
javascript jquery
[3, 5]
3,879,892
3,879,893
How to run java script code before page load?
<p>I have working in asp.net web application. Here I need to run javascript before page load.</p> <p>I have gone through </p> <pre><code>&lt;body oninit="funinit();" onprerender="funRender();" onload="funload();"&gt; &lt;/body&gt; &lt;script type="text/javascript" language="javascript"&gt; function funinit() ...
javascript jquery asp.net
[3, 5, 9]
3,718,812
3,718,813
Error Reference when assigning value to asp:textbox
<p>Hi everyone I have been having a lot of problems with Jquery right now and ended coming here to search for the problem I have, I found nothing that could help me so I decided to ask at once.</p> <p>So I was able to bring the value of the input by using this line of code:</p> <pre><code> $('#ClienteDialog').find('i...
c# jquery
[0, 5]
4,521,440
4,521,441
double click needed to activate binded mousedown/up
<p>this is part of my code:</p> <pre><code> $('.toggle_box').each(function (){ var timeout, longtouch; $(this).bind('mousedown', function() { timeout = setTimeout(function() {longtouch = true;}, 1000); $(this).bind('mouseup', function(){ if (!longtouch) { ...
javascript jquery
[3, 5]
3,385,853
3,385,854
simple jQuery - I can't figure out why this isn't working
<p>I am trying to do 2 things: 1: append a div to the body 2: make all clicks to links class 'editlink' make a popup and not go to their href</p> <p>Doing just #2 is fine:</p> <pre><code>$(document).ready(function(){ // $(body).append("&lt;div&gt;Hello world&lt;/div&gt;"); $("a.editlink").click(function(event){ ...
javascript jquery
[3, 5]
5,324,458
5,324,459
access javascript variables outside the scope of a jquery function
<p>I have a <code>jquery</code> function to display a menu on right click event. I wish to access an object from the parent function inside the <code>callback</code> function.</p> <p>Am using <a href="http://medialize.github.com/jQuery-contextMenu/" rel="nofollow">following</a> JQuery plugin to get the context menu.</...
javascript jquery
[3, 5]
1,120,428
1,120,429
What is the purpose of global.asax in asp.net
<p>how can we use global.asax in asp.net? and what is that?</p>
c# asp.net
[0, 9]
5,849,339
5,849,340
Programmatically Setting Number Input Value Not Working
<p>I have a piece of javascript that sets the number input value. However, it won't work. The input's value field is still empty after the call (although console.log() outputing the element's val() does show the correct value). I have tried setting the value three ways jQuery's .val(total), .attr('value', total), and w...
javascript jquery
[3, 5]
599,337
599,338
Cannot set the var i when returning up the chain
<pre><code>var i = -1; $('.rightBtn a').click(function(){ --i; // this part works.. if(i == -z){ $(".homeSlider").css("margin-left", 0); $('.homeSlider').animate({ marginLeft: '-='+$(window).width() }, function(){ var i = -1; // this ...
javascript jquery
[3, 5]
3,123,143
3,123,144
Jquery/Javascript link $(this) to an element in a different div?
<p>I've got a multiple select that I want to use to pick which elements show up in an HTML template window. So I have several options that I want to iterate over, and based on whether it's been selected, make the preview elements visible or hidden. I'm going for something like this:</p> <pre><code>$('#area_select opt...
javascript jquery
[3, 5]
5,761,690
5,761,691
JQuery Autosubmit Dropdown
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/12655229/jquery-javascript-how-to-parse-html-using-a-get">JQuery/Javascript how to Parse HTML using a Get</a> </p> </blockquote> <p>I have the following code that is working:</p> <pre><code>$.getJSON('json/shar...
javascript jquery
[3, 5]
2,626,347
2,626,348
Converting Microsoft Word Smart Quotes to Straight Quotes
<p>We have a program where the user needs to do a Copy-Paste of some content from Microsoft Word into a HTML editor (Visual Studio 2008).</p> <p>That content in the HTML is then used in our confirmation emails.</p> <p>Some of the characters like curly quotes turn into ? on the browser &amp; in our confirmation email....
c# asp.net
[0, 9]
5,254,337
5,254,338
How to fadeOut with jQuery?
<p>I have this function in javascript:</p> <pre><code>function hid(id) { var x = document.getElementById("desc_div" + id).style.display = "none"; } </code></pre> <p>and I hope to use fadeOut effect instead of <code>display = "none"</code> by using jQuery</p> <p>How can I do that?</p>
javascript jquery
[3, 5]
1,975,211
1,975,212
ASP.NET Textbox omits the string after the double quote
<p>I have added an ASP.NET Textbox in my page and i do have next and previous button. I entered string, say <strong>Hello "World"</strong> in the textbox. I clicked on next button which will show the review page(non-editable), all the datas are stored in the sessioin. After this i am clicking on the previous button whi...
c# asp.net
[0, 9]
1,811,702
1,811,703
Is there Android Intent concept in iPhone SDK
<p>Just switching from Android to iPhone. In Android I can make several apps and use a tabView to call each app as intent.</p> <p>In iPhone, I can make several apps. I need a tab to call each apps or app views. Is there similar concept as intent in iPhone? Just switched to iPhone, copying all the other projects into t...
iphone android
[8, 4]
3,362,962
3,362,963
Extending a DOM element with jQuery
<p>I'd like to extend a DOM element without extending all of them. That is, I'd like a custom class with its own methods and properties, but also be able to treat it as a div. E.g.</p> <pre><code> MyClass = function(){ this.foo = "waaa"; } MyClass.prototype.changeText = function(newtext){ // if this extended...
javascript jquery
[3, 5]
1,499,672
1,499,673
How do I chain multiple selectors with filters in jQuery?
<p>I'm trying to select multiple elements which do not have the attribute 'disabled' but I'm not sure if there's an easier way to type this:</p> <pre><code>$('input:not(:disabled), select:not(:disabled), textarea:not(:disabled)') </code></pre> <p>It seems a little wasteful to be typing multiple 'not(:disabled)'.</p>
javascript jquery
[3, 5]
25,103
25,104
Javascript undefined attribute
<p>I'm new to Javascript and I got this:</p> <p>I have a <code>GridView</code> with the following event:</p> <pre><code>protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { foreach (TableCell c in e.Row.Cells) { c.Attributes.Add("full","false"); } } </code></pre> <p>And in my javasc...
c# javascript asp.net
[0, 3, 9]
1,098,443
1,098,444
Post a form into an iframe on another page
<p>I have a page from a 3rdparty I want to post to another page into an iframe so that tha layout is maintained. So i have host.com/pageA. This contains the form</p> <p>host.com/pageB This contains the iframe</p> <p>vendor.com/reallyComplicatedUrlthatSoundsFancyButMeansNothing</p> <p>I want to post the results from...
php javascript jquery
[2, 3, 5]
2,720,915
2,720,916
How can I access content of a website client side?
<p>I've set up my own whatsmyip type site that returns a simple string of the callers external IP.</p> <p>But I can't figure out how to get the queried text into an asp control for use.</p> <p>I can load it up in an iframe and see it on the page, but accessing it and using it is blocked for built in security reasons....
c# javascript asp.net
[0, 3, 9]
4,877,643
4,877,644
Load Image and Fade In, but in sequential way
<p>I'm trying to load my images and fade in. Its working. But lets suppose that I have 4 images. Right now, my script its working by loading the last image, not the first. How can I make my js load the first image, and just start loading the second after the first has been loaded?</p> <p>Here's my code:</p> <pre><cod...
javascript jquery
[3, 5]
3,831,348
3,831,349
javascript (trying to copy windows.location without success)
<p>This seems like I've fallen down the rabbit hole and I imagine there's a simpler overall strategy, but here I am. </p> <p>I want to allow users to sort a given set of results AFTER they've already filtered those results. I want to keep the original filters in place while adding a new one (sort). I wanted to avoid...
javascript jquery
[3, 5]
1,967,344
1,967,345
Js javascript code problem
<p>Hi i have a problem with my js code. So, i include in 'head' in my site, script</p> <pre><code>var Engine; jQuery ( function($) { Engine = { utils : { site : function(id) { $('#content').html('&lt;strong&gt;Ple...
javascript jquery
[3, 5]
5,117,005
5,117,006
Javascript looping issue
<p>I know this is something easy that is just eluding me.</p> <p>Anyway, I have a simple function that loops through a series of six images and text and hides and shows them based on which one is visible.</p> <p>Issue I'm having is that when it gets to the last image, it should just start over with the first but inst...
javascript jquery
[3, 5]
867,860
867,861
android convert Date to TimeStamp
<p>Following code is working fine in my java application. But when I am making the same application for Android using java it's showing error "<em>The constructor Timestamp(long) is undefined</em>" in the following bold line "<strong>Timestamp rtnTS = new Timestamp(theDate.getTime());</strong>"</p> <pre><code>public s...
java android
[1, 4]
1,946,676
1,946,677
Show/Hide DIV on ASP.NET dropdown value change
<p>I have the following dropdown on my ASP.NET page:</p> <pre><code>&lt;asp:DropDownList ID="selectAttending" runat="server"&gt; &lt;asp:ListItem Value="Select One..."&gt;Select One...&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="Yes"&gt;Yes&lt;/asp:ListItem&gt; &lt;asp:ListIt...
c# jquery asp.net
[0, 5, 9]
412,267
412,268
What additional I need to convert a Java Application to Android Application?
<p>The title itself is my question.. </p> <p>What additional I need to convert a Java Application to Andriod Application?</p> <p>I have an application developed in Java J2SE with XML as back-end. I want to convert it to Andriod. Thanks in advance.</p>
java android
[1, 4]
4,265,832
4,265,833
Cannot select Combo box value
<p>I have two Combobox's where second one is dependent upon first one.</p> <p>This means when the selectedindexchanged event of first Combobox fires, then the second Combobox will be enabled. After Event Apply the second Combobox is loaded but I could not select the ComboBox Value </p> <p><strong>How will i select th...
c# asp.net
[0, 9]
1,333,279
1,333,280
How do I make an image that is currently hidden, become visible upon validation passing in asp.net
<p>I have a simple web form in asp.net that has some validation on the form fields. I also have an image whose visibility is set to false. In my validation if statement I want code that will make that image visible if the validation has passed. Below is what I have but the image is not displaying. Thanks!</p> <pre><co...
c# asp.net
[0, 9]