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,538,364
5,538,365
Clicking a button: disabling and executing the button's handler
<p>On the Button's Click event, ow can you disable the button, and also call its event handler?</p> <p>I have tried this:</p> <pre><code>protected void Button1_Click(object sender, EventArgs e) { Button1.Enabled = false; } </code></pre> <p>This doesn't work in IE, Mozilla, or Chrome.</p>
c# asp.net
[0, 9]
87,006
87,007
jQuery cycle fade Images on Hover
<p>What would be the best way to have a single image which when you hovered your mouse over it, it would cycle fade in/out into a series of other images (like 3 or 4) before returning back to the original? Also, it would stop fading/changing images and go back to the original image if you moved your mouse off of the im...
javascript jquery
[3, 5]
5,934,837
5,934,838
Object cannot be cast from DBNull to other types
<p>I am trying to save the gridview data into the database. To decide if it should be an Insert or update, i need to find out if the <code>Order_SelectionID</code> exists. Foreach Gridview row, i am trying to use the statement like the following in C# using Asp.Net.</p> <pre><code>foreach (GridViewRow row in grdFavori...
c# asp.net
[0, 9]
266,653
266,654
Long integer to 16 character Hex for Google Reader sync
<p>Python Code </p> <pre><code>h = "%s"%("0000000000000000%x"%(i&amp;0xffffffffffffffff))[16:] </code></pre> <p>I'd like to know how this would be done in PHP.</p> <p>The application is for google reader syncronization. An initial sync list comes with numeric values, but the actual article id hex.</p> <p>Example Lo...
php python
[2, 7]
4,049,421
4,049,422
Why doesn't JQuery consolidate its constants?
<p>All my constants are near the top of my javascript file like below.</p> <p>When I search the core JQuery file, nothing comes up for Constant and I can't see that they are pulling out constants? Do they not have any, do they have them spread out throught the code, if so, why don't they consolidate them?</p> <p>I'm...
javascript jquery
[3, 5]
5,831,758
5,831,759
Javascript - How to remove all extra spacing between words
<p>How can I remove all extra space between words in a string literal?</p> <pre><code>"some value" </code></pre> <p>Should become</p> <pre><code>"some value" </code></pre> <p>Also, </p> <pre><code>" This should become something else too . " </code></pre> <p>Becomes</p> <pre><code>"This sho...
javascript jquery
[3, 5]
4,165,104
4,165,105
Referencing javascript libraries locally or externally?
<p>We are currently developing an ASP.NET MVC application which will be deployed on a corporate intranet, with a slightly-modified customer facing version available on the public internet.</p> <p>We're making use of a number of external javascript libraries (e.g. jQuery) and a discussion has come up regarding referenc...
javascript asp.net jquery
[3, 9, 5]
2,769,976
2,769,977
Master Slave DropDownLists in client side without postback
<p>How can I have 2 dropdownlists, those are Master Slave, And when select a master item without any postback the slave dropdownlist updated? And I am interest to use jQuery.post() ?</p>
c# javascript jquery asp.net
[0, 3, 5, 9]
1,460,617
1,460,618
How to show alert message when closing a window?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/333665/javascript-to-get-an-alert-when-closing-the-browser-window">Javascript To Get An Alert When Closing The Browser Window</a> </p> </blockquote> <p>I want to show an alert message "Please logout before closi...
javascript jquery
[3, 5]
2,227,496
2,227,497
animate move to the left and to the right?
<p>I want is to move my pagination to the left and to the right after clicked on <code>#prev_pag</code> and <code>#next_pag</code>. how is it and solve my problem?</p> <p><strong>Eg:</strong> <a href="http://jsfiddle.net/szVKD/5/" rel="nofollow">http://jsfiddle.net/szVKD/5/</a></p> <pre><code>$('#next_pag').click(fu...
javascript jquery
[3, 5]
4,757,986
4,757,987
How to get the value of radio buttons via Jquery
<p>If I have the following radios:</p> <pre><code>&lt;input name="color" id="color_blue" value="blue"&gt;Blue &lt;input name="color" id="color_red" value="red"&gt;Red &lt;input name="color" id="color_green" value="blue"&gt;Green </code></pre> <p>What's the easiest way to find out which radio the user selected? Prefer...
javascript jquery
[3, 5]
330,556
330,557
Setting multiple value for select
<p>How can i set multiple values for multiple select. This is what i have tried so far in jquery. I looking for a jquery as well as pure js solution(just for my knowledge). </p> <pre><code>for(x in gList) { $('#GList').val(gList[x]); } </code></pre> <p>This is selecting only one and not all.</p> <p>EDIT: I found...
javascript jquery
[3, 5]
4,111,494
4,111,495
how to set visible true and false for drop down list box using javascript in asp.net
<pre><code>&lt;asp:DropDownList ID="ddloption" runat="server" Visible="false"&gt; &lt;asp:ListItem Text="Active" Value="Active"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="D-Active" Value="D-Active"&gt;&lt;/asp:ListItem&gt; &lt;/asp:DropDownList&gt; function boxchange(dd) { document.getElementById("&lt;%= dd...
asp.net javascript
[9, 3]
1,128,600
1,128,601
My ASP.Net project is not running in Firefox but running in IE
<p>My Asp.Net project hosted in IIS. I am running this project through IIS. It is running successfully in IE7 but not running in Firefox. I am using Javascript in my ASP.Net project. Is there any changes in my project through run on Firefox ?</p> <p>If any one know about this tell me.</p>
c# asp.net
[0, 9]
3,204,315
3,204,316
Android phones for testing
<p>I heard that for testing android application you have to test them on 2 different phones(depends of resolution) What phones are recommended?</p>
java android
[1, 4]
842,075
842,076
Get a process response
<p>I am looking for a way to get a response in a form of a javascript alert after a form has been submitted using a php script. I guess ajax should do this but Im not an Ajax guy yet. A simple sample code would help a lot. Thanks for reading</p>
php javascript
[2, 3]
313,049
313,050
How does one pass string contains '\' from from asp.net server side to Javascript function?
<p>How does one pass string contains '\' from from asp.net server side to javascript function?</p> <p>After checking parameters at client side, all '\' replaced with '' even, replacing '\' with '%5C' at server side doesn't work.</p> <p>Any idea?</p>
asp.net javascript
[9, 3]
2,241,582
2,241,583
How to show a form field ONLY if another is selected in JavaScript or jQuery?
<p>I have a form, like so:</p> <pre><code>&lt;form action="" method="post"&gt; &lt;select name="pageType"&gt; &lt;option value="main"&gt;Main Page&lt;/option&gt; &lt;option value="sub"&gt;Sub Page&lt;/option&gt; &lt;option value="sub-sub"&gt;Sub-Sub Page&lt;/option&gt; &lt;/select&gt; &lt;br /...
javascript jquery
[3, 5]
3,138,638
3,138,639
How to use www.addthis.com
<p>I need to use addthis.com plugin to my website, when they click the email link, i need to pass my own data to the plugin, that needs to be sent to client.</p> <p>Is there anyway to accomplish my goal?</p>
c# javascript
[0, 3]
449,968
449,969
How to catch selected value from Android Menu Radio Values
<p>I've created a radio button menu list .. </p> <pre><code> final CharSequence[] items = { "3 sec", "5 sec", "7 sec" }; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("Change Wallpaper Every.."); builder.setSingleChoiceItems(items, -1, new DialogInterface.OnC...
java android
[1, 4]
5,246,825
5,246,826
How can I capture the WINDOWS USERNAME included to my below code?
<pre><code>private void UndeletableComments(LinqDataSourceUpdateEventArgs e) { //get a reference to the currently saved item ****NOTE (State) is the ClassName. It’s a table of states in this test database var currentData = ((MyData)e.OriginalObject).Notes; // make a copy of whatever is in the edit field an...
c# asp.net
[0, 9]
3,082,394
3,082,395
how to bind the same event to checkboxes, dropdown select and multiple select components?
<p>there are checkboxes, dropdown select and multiple select components in my webform, I want that they bind the same event that will be triggered when items are check(unchecked) or selectd(unselected), show should do that? Is there a clever and neat way?</p>
javascript jquery
[3, 5]
3,648,907
3,648,908
how to calcualate bounding box withing given distance
<p>I am developing a website in which i want to give a search functionality for user..the search feature will detect the users current location and will show all the business within 10 kilometer from the user's current location.. businesses are stored in database.. please can anyone help me?</p>
php javascript
[2, 3]
5,324,674
5,324,675
DOM element not being found after cloning and appending unique ID
<p>So I'm creating a random string value:</p> <pre><code>var randomString = function(stringLength) { var i = 0; stringLength = stringLength || 10; var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; var randomString = ''; for (i = 0; i &lt; stringLength; i += 1) { v...
javascript jquery
[3, 5]
356,411
356,412
Toggle control - how to create plus minus button?
<p>My toggle control is working, but I would like to add a plus-minus button: when content appears it becomes "-" and when content is hidden it changes to "+". Can you help please?</p> <pre><code> &lt;div class='toggle'&gt; &lt;h2&gt;Read More&lt;/h2&gt; &lt;div class="togglebox"&gt; &lt;div class="conte...
javascript jquery
[3, 5]
1,689,324
1,689,325
Clear gridview using javascript/jquery
<p>Afternoon all.</p> <p>Another hour, another question!</p> <p>I have the following bit of jquery up and running that essentially 'resets' control contents.</p> <p><code> tbxProdAC.Attributes.Add ("onclick", "$('#txtbxHowMany').val(''); SetRadioFocus('" + radProd.ClientID + "');"); </code></p> <p>I hav...
javascript jquery
[3, 5]
2,908,459
2,908,460
Removing an Element on Certain Location
<p>Let's say the window's location is on <code>htt://stackoverflow.com/index.php</code>, I want to remove an element in the index page with jQuery. This is what I have and it's not working:</p> <pre><code>$(document).ready(function() { var location = window.location; var locQuery = /index/i; if (...
javascript jquery
[3, 5]
4,511,089
4,511,090
Getting jquery to delay after adding a class
<p>I want a script to halt before continuing after adding a class, below are two attempts that seem to fail. </p> <pre><code> window.setTimeout($("#"+item).addClass("highlight"), 5000 ); $("#"+item).addClass("highlight").delay(5000); </code></pre> <p>Where am I going wrong here?</p>
javascript jquery
[3, 5]
2,692,270
2,692,271
Detect page zoom change with jQuery in Safari
<p>I have a problem with Safari in a web application that contains a position:fixed element. When the page is zoomed out (smaller 100%) things break and would need to be fixed by calling a function. So I'd like to detect the user's zooming. I found this jQueryPlug-in a while ago:</p> <p><a href="http://mlntn.com/2008/...
javascript jquery
[3, 5]
3,298,166
3,298,167
dynamic selection country city using javascript
<p>I wrote the code for dynamic selection country city like this way.The code running fine on Mozila, Chrome, Opera, Safari and Internet Explorer <em>9</em>, but the dynamic selection of country city code is not working on Internet Explorer <em>8</em> and earlier versions.</p> <pre><code>&lt;form method=post id="formn...
php javascript
[2, 3]
1,373,311
1,373,312
Is C++ worth investing time in learning?
<p>With languages like C# that can basically do anything, I found a drawback that could not be the case in the future, and that is the lack of many open source 3rd party libraries that are well documented to choose from. However with C++, there are many libraries to choose from, and this is a big pro for me. One thing ...
c# c++
[0, 6]
4,985,588
4,985,589
Android EditText check assistance
<p>I have an editText field for which I want check that it meets with certain criteria, basically it has to contain 2ints and 3 strings, how can I check this before adding the element.</p> <pre><code> EditText.getText().toString(); </code></pre> <p>could I add a check that does comething like this</p> <pre><code>pub...
java android
[1, 4]
589,023
589,024
what is it in Java standard library that Python's lacks
<p>I hear that Java's standard library is larger than Python's so I'm curious, what's missing in Python's?</p>
java python
[1, 7]
2,690,099
2,690,100
communication between PHP and Javascript
<p>I want to send some data to Javascript from PHP.(these two file is different file in same folder) For example, If I calculate some value in PHP side, I want to send the data to javascript and I use the data. How can I do this??</p>
php javascript
[2, 3]
1,900,132
1,900,133
Gridview in a Tooltip
<p>Is there a way to display a gridview in a tooltip?</p>
c# asp.net jquery
[0, 9, 5]
405,963
405,964
Float with either comma ',' or '.'
<p>I am experiencing a problem in Asp.net using C# when converting a string to float. At a local database, it works fine with '.' notation for float values but it does not work after uploading the website to the server. I think the server only understands ',' instead of '.'</p> <p>I remember I read this somewhere that...
c# asp.net
[0, 9]
3,496,459
3,496,460
How can a block diagram be dynamically generated in ASP.NET?
<p>Based on the data, I need to dynamically generate a graphic in my ASP.NET page. What is the best way to do this. Is this easier to implement in Silverlight.</p>
c# asp.net
[0, 9]
984,481
984,482
How to I only show the divs if that div has an input that isn't blank?
<p>I have a bunch of divs that are all hidden like this</p> <pre><code>&lt;div class="elements"&gt; &lt;input value="something" type="text" value="" name="name"&gt; &lt;input value="" type="text" name="phone"&gt; &lt;/div&gt; &lt;div class="elements"&gt; &lt;input type="text" value="" name="name" class="...
javascript jquery
[3, 5]
4,044,941
4,044,942
Is possible to create an android spinner with pull-down like notification bar?
<p>for my Android app need a selector that onclick or on pull-down show a dropdown list( not a dialog window), is possible to customize spinner to do this?</p>
java android
[1, 4]
4,898,570
4,898,571
getting the contents of a function in an `onclick` attribute in my html with jQuery
<p>What?! I know, what a bad idea. </p> <p>Firstly I have no control over the html that was output, its from a vendor and it is produced via their crazy system that our company has an agreement with. (let's not talk about the situation, I know it's not optimal)</p> <p>In the html I have:</p> <pre><code>&lt;a id="no...
javascript jquery
[3, 5]
5,732,171
5,732,172
Adding items to select (list box) of html/php through jQuery or javascript
<p>Is it possible to add items to a select (list box) of html/php through jQuery or javascript when a specific action is triggered by another control in jQuery/javascript? <em>(edited by <a href="http://stackoverflow.com/users/611306/alex-thomas">Alex Thomas</a>)</em></p>
php javascript jquery
[2, 3, 5]
762,998
762,999
How can I send TCP requests from my phone?
<p>I have following task: to make Android application which connects to router, sends TCP requests for system and gets response. I have made Android application already which uses PHP web-services, but I never make application for TCP requests. Please, tell me, what means should I use for my task? Thank you.</p>
java android
[1, 4]
1,375,774
1,375,775
shim for the required attribute for IE9 users
<p>According to <a href="http://caniuse.com/#search=required" rel="nofollow">CanIuse</a>, the required attribute is not supported in IE9. Is there a shim to provide the same functionality as the native required attribute if the browser doesn't support it?</p>
javascript jquery
[3, 5]
2,561,828
2,561,829
How to replace preview of post with full content using jQuery / Javascript?
<p>In a php variable <code>$preview</code> I save about 4 lines of a post without any tags. In the <code>$full</code> I save full of the post with tags.</p> <p>This is what I used to have, an expand/collapse toogle <a href="http://fiddle.jshell.net/r4F8Q/22/" rel="nofollow">http://fiddle.jshell.net/r4F8Q/22/</a> when ...
javascript jquery
[3, 5]
4,791,834
4,791,835
English to french asp.net resource file translation
<p>I have a asp.net resouce language file in english and I have to translate that resource file into french. how can this be achieved? There are lot of values on the resource file that needs to be translated. </p> <p>is there any sample available on how this can be done by using google language translation or somethin...
c# asp.net
[0, 9]
5,405,737
5,405,738
Javascript/Jquery - How do I get the element that the user has selected with their cursor?
<p>If the user highlights the text within an <code>&lt;h1&gt;</code> with their cursor, how do I get that <code>&lt;h1&gt;</code> object? Or if they selected text within an <code>&lt;li&gt;</code>, how do i get that <code>&lt;li&gt;</code>?</p>
javascript jquery
[3, 5]
1,798,830
1,798,831
Animating left to right
<p>I'm trying to achieve something that seems quite simple but I have hard time doing so.</p> <p>How can I animate a div making its width 80% of original from left to right? I want to keep the right margin where it is and moving the left one toward right.</p> <p>Thanks and have a nice day.</p>
javascript jquery
[3, 5]
5,029,374
5,029,375
Where in code should one keep data that doesn't change?
<p>I have defined models based on the tables in the database. Now there are some models whose data hardly changes. For example, the categories of the products that an e-comm site sells, the cities in which it ships the products etc. These don't change often and thus to avoid hitting the db, these are currently saved as...
c# asp.net
[0, 9]
3,598,809
3,598,810
jQuery vs. $ - Creating jQuery scripts in JavaScript in WordPress using External Libraries
<p>I am trying to utilize Trent Richardson's Date Time Picker (<a href="http://trentrichardson.com/examples/timepicker/" rel="nofollow">see here</a>).</p> <p>I am trying to get the selected time when the popup closes, so I am using the following code (in an external .js file):</p> <pre><code>jQuery(function() { v...
php jquery
[2, 5]
5,685,221
5,685,222
Delay page redirect after form submit using jquery / js?
<p>My code is:</p> <pre><code>&lt;input class="toBasketButton" type="submit" value=""&gt; </code></pre> <p>Thanks in advance !</p>
javascript jquery
[3, 5]
5,290,131
5,290,132
Problem with getJSON or PHP
<p><code>Display.php</code>:</p> <pre><code>&lt;?php include 'sql.php'; $dataget = mysql_query("SELECT `user`,`message`,`timestamp` FROM `messages`"); $arr = array(); while ($dataarr = mysql_fetch_assoc($dataget)){ $arr[] = $dataarr; } echo json_encode($arr); ?&gt; </code></pre> <p><code>Index.php</code>:</p> <p...
php javascript jquery
[2, 3, 5]
1,753,735
1,753,736
Remap a key press in javascript / jquery
<p>Is there an "easy" way to map a keystroke to another key when on a page?</p> <p><strong>Background:</strong></p> <p>We are using a custom javascript grid for handling keyboard entry in a web application. Normally, the [enter] key allows the user to move to the next line, and the [tab] key allows the users to move...
javascript jquery
[3, 5]
2,370,336
2,370,337
Different background position every click
<p>Im trying to build sort of slide where when click on link ".animate" will change it position ( every time 100px more)</p> <p>This: </p> <pre><code>$(function(){ $('#m-main').click(function(){ $('slide').animate({top : "100px"}, {duration:500}) }) }); </code></pre> <p>will work only once.</p> <p>H...
javascript jquery
[3, 5]
1,558,627
1,558,628
get value of inside a tag with jQuery.?
<p>How can by jQuery get value inside tag <code>b</code>?</p> <pre><code>&lt;span&gt; &lt;b&gt;hi_1&lt;/b&gt; &lt;b&gt;hi_2&lt;/b&gt; &lt;b&gt;hi_3&lt;/b&gt; &lt;b&gt;hi_4&lt;/b&gt; &lt;span&gt; </code></pre> <p>I want this output with jQuery: <code>hi_1, hi_2, hi_3, hi_4</code><p> Please give me example in <a hr...
javascript jquery
[3, 5]
255,122
255,123
ASP.NET: Global hook in Response?
<p>Is there any way to intercept all ASPX Page Responses? I'd like to intercept all the pages served and inject a small JavaScript at the end of each. </p>
asp.net javascript
[9, 3]
1,749,701
1,749,702
copying one array to another array
<p>I am an array in following format. I am reading following data from a file <code>data.json</code> like this</p> <pre><code>$.getJSON('data/data.json', function (ids) { for (var i = 0; i &lt; ids.length; i++) { var id = ids[i]; teams = id; $('&lt;li&gt;' + ...
javascript jquery
[3, 5]
1,935,674
1,935,675
ListView: Display data divided into groups?
<p>I would like to display the contents of a DataTable, divided into several groups depending on the value of one of the columns. So, if I have a DataTable (from SQL query) with:</p> <pre><code>GroupID Name Description 1 foo bar 1 one two 2 some thing </code></pre> <p>I would like ...
c# asp.net
[0, 9]
2,067,433
2,067,434
Better way of gathering multiple input
<p>I am trying to find a better way to gather multiple input. At the moment, I am using a slider to represent how many items a user wishes to enter. If a user say selects 3 then I am looking for a way to display a way for them to enter 3 items. </p> <p>I guess what I need is say if a user selects 3 with the slider, th...
javascript jquery
[3, 5]
2,161,034
2,161,035
Include PHP inside javascript (.js) file
<p>I have a javascript file (.js file, not HTML file) containing several js functions. I want to call one of the PHP functions in a PHP file containing only several PHP function from within one of the js functions. Is that possible? Would I need to "include" the .php file containing the php function in the .js file?...
php javascript
[2, 3]
1,265,414
1,265,415
jQuery: test if element is first of MATCHED elements
<p>I have several divs that are alerts. The user dismisses them and after the final one (which is the FIRST in the DOM) I need to trigger some jquery magic.</p> <p>Here's some simplified HTML:</p> <pre><code>​&lt;body&gt; &lt;div class=""&gt;Bla bla bla&lt;/div&gt; &lt;div class="alert"&gt;A&lt;/div&gt; &lt;div class...
javascript jquery
[3, 5]
4,031,871
4,031,872
Controlling one page with another using jQuery
<p>Using two separate browsers or computers, or for the sake of experimentation, two tabs, is there any way to push a command from one page to another that has some sort of listener object?</p> <p>So for example: </p> <p>controller.html has a link, when clicked triggers an action on viewer.html. </p> <p>Is this po...
php jquery
[2, 5]
1,844,741
1,844,742
using c# web service (asmx) in php
<p>i want to use c# web service with PHP and jQuery. below code is posting data with $.ajax into php code. but inside i=of url i can't get any data from web service. how can help me for develop this code</p> <pre><code>$.ajax({ type: "POST", url: "http://www.w3schools.com/webservices/tempconvert.as...
php jquery
[2, 5]
3,789,075
3,789,076
jQuery datePicker plugin loading problem
<p>I'm trying to use the following plugin for date picking:</p> <p><a href="http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html" rel="nofollow">http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html</a></p> <p>And I'm trying to use the code from the first demo but I get an error that ...
javascript jquery
[3, 5]
2,965,334
2,965,335
Android java how to have it select a random string from a predetermined list of strings
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/6726963/random-string-from-string-array-list">Random string from string array list</a> </p> </blockquote> <p>How can I make it where i can press a button and it display one sting (words) at random from a long li...
java android
[1, 4]
895,460
895,461
Adding textbox values
<p>In Asp.net using c# ,I am having</p> <pre><code>int sum = Convert.ToInt32(txtbox1.Text) + Convert.ToInt32(txtbox2.Text); </code></pre> <p>When i have an empty textbox, i get the error "Input string is not in a correct format".</p> <p>So, I am wondering if there is a simple way to add textbox values only they are ...
c# asp.net
[0, 9]
5,047,456
5,047,457
Stop Sound when Hold key is pressed
<p>I want to stop media sound when the user press hold key or power key I do this</p> <pre><code> public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_ENDCALL || keyCode == KeyEvent.KEYCODE_POWER){ pauseSound(); } return super.onKeyDown(keyCode, event); } </code...
java android
[1, 4]
77,713
77,714
change language of html content using javascript dynamically
<p>I have created some html pages with the content in english language. Now i need to change the language to Mandarin language(Singapore language) dynamically based on user selection without redirecting the pages.Please anyone help me to do this.</p> <p>Thanks in Advance.</p>
javascript jquery
[3, 5]
4,996,544
4,996,545
display button only when page loads completely
<p>I have a button like this:</p> <pre><code>&lt;input type="submit" id="product_197_submit_button" class="wpsc_buy_button" name="Buy" value="Add To Cart"&gt; </code></pre> <p>Now the thing is that if user clicks button before all scripts are loaded -> I get error in shopping cart. Is there a way to disable clicking ...
javascript jquery
[3, 5]
186,382
186,383
Image removed but still using network traffic
<p>I have a strange problem here, and i can't find any usefull results using google search, so I now ask for your help.</p> <p>I have a video stream on my HTML+Javascript(mostly jQuery) application. It is embeded like this:</p> <pre><code>&lt;img width='300' id='videoFeedImg' src='http://IP:PORT/PAGE' /&gt; </code></...
javascript jquery
[3, 5]
2,076,930
2,076,931
jquery bind on images?
<p>I've an img and a button, and I'd like to use jQuery bind to respond to onclick events. Bind works on the input button, but not on img. Here is my JavaScript code:</p> <pre><code>function drawDetails (event) { var id=0; if ((typeof $(this).attr('id')) !== 'undefined') { id = parseInt($(this).attr('i...
javascript jquery
[3, 5]
5,632,257
5,632,258
How to retrieve domain name from a webview?
<p>I want to be able to retrieve the domain name in a webview in which the user is able to enter in the URL. I want to post the domain name instead of the URL if this is possible. Any help is greatly appreciated.</p>
java android
[1, 4]
2,469,446
2,469,447
Add new div every 3
<p>The focus is on the <code>else</code> bit, I am adding a div <code>$('&lt;div id="content" class="span4"&gt;&lt;/div&gt;').appendTo('.new');</code>, I need to check if I already added 3 divs, and if so, add a new <code>$('&lt;div class="row-fluid new"&gt;&lt;/div&gt;').insertAfter($row);</code> and then start again...
javascript jquery
[3, 5]
4,545,349
4,545,350
jQuery, find li class name (inside ul)
<p>I have ul with a number of li inside. All li have an id "#category" but different classes (like ".tools", ".milk", ".apple").</p> <p>Using jQuery. I do : </p> <pre><code>$("li#category").click(function(){ some_other_thing ( .... )}); </code></pre> <p>now i have to put a li's class "name" — (a string indeed) insid...
javascript jquery
[3, 5]
3,887,976
3,887,977
Text being updated in real time
<p>I need some text to be updated in real time depending on choices from dropdown boxes.</p> <p>Here's an example: <a href="http://www.thatsoftwareguy.com/swguy_demo_1.3.7/index.php?main_page=product_info&amp;cPath=65&amp;products_id=183" rel="nofollow">http://www.thatsoftwareguy.com/swguy_demo_1.3.7/index.php?main_pa...
php javascript
[2, 3]
1,747,949
1,747,950
Display a variable in Android Widget
<p>I have a String variable that is declared and edited in the Main Activity.</p> <p>I would like it to be display in a widget, but not sure how.</p> <p>In the Widget file I have:</p> <pre><code>remoteViews.setTextViewText(R.id.widgetAmount, String.valueOf(number)) </code></pre> <p>but the number variable is declar...
java android
[1, 4]
4,719,605
4,719,606
jquery read all document events
<p>Hello how to get all attached events to document ? I tried this but it doesn't work</p> <pre><code> $.noConflict(); jQuery(document).ready(function() { var events = jQuery(document).data("events"); //var isExistGlobalEvents = jQuery.data(jQuery(document).get(0), 'events').click; if (...
javascript jquery
[3, 5]
3,902,661
3,902,662
Webservices for trading mutual fund and shares in india
<p>I have to build a Online Mutual Fund section in a portal where users may purchase &amp; sell mutual funds for One time &amp; SIPs. (Payment Gateway System attached). In another section need to provide reports for share trading based on filter criteria like user specific or portfolio specific. The share trading is do...
c# asp.net
[0, 9]
1,976,164
1,976,165
App crashing on count and dialog box
<p>i am using following code.</p> <pre><code>public class MyCount extends CountDownTimer { public MyCount(long millisInFuture, long countDownInterval) { super(millisInFuture, countDownInterval); } @Override public void onFinish() { display...
java android
[1, 4]
1,375,335
1,375,336
Launching Intent using userID with if block
<p>I have this activity class that won't catch the if block. Because I'm a beginner, I couldn't think of any other way to catch the given userID("001") to launch a specific intent(AdminTab) after the Splash Thread. </p> <p>Could someone please help me point out what i'm doing wrong or advice me with some sample code? ...
java android
[1, 4]
306,993
306,994
How to check if there exists at least one li element with attr = something?
<p>So I want to check if there is any li element that has a attribute of "data-foo" and its value is "bar".</p> <p>Would this work? :</p> <pre><code>if ($('li[data-foo=bar]')) { //exists } else { //does not exist } </code></pre> <p>Thanks</p>
javascript jquery
[3, 5]
5,765,646
5,765,647
FileUpload Control not taking file name
<p>I am using FileUpload Control to upload images, I can select the image using that browse button, but when i try to preview that selected one, i am not getting the file name, its showing empty..</p> <pre><code>protected void btnImgUpload_Click(object sender, ImageClickEventArgs e) { try { string stri...
c# asp.net
[0, 9]
2,575,876
2,575,877
Can i do the effect shown in this page using jquery?
<p>Please look at this page:</p> <p><a href="http://www.nike.com/nikeos/p/nikegolf/en_US/" rel="nofollow">http://www.nike.com/nikeos/p/nikegolf/en_US/</a></p> <p>In the slide number 2, there is a midpanel that does a growing effect onmouse over.Some panels step aside at the same time or simply grows over another. As ...
javascript jquery
[3, 5]
4,373,821
4,373,822
Create links in single image
<p>I want to create some links in single image.I know we can do it with area map.i have used <a href="http://davidlynch.org/js/maphilight/docs/demo_usa.html#" rel="nofollow">this</a> link for help</p> <p>Please have a look at link.</p> <p>But now my requirement is to show the selected state as active.Along with this ...
javascript jquery
[3, 5]
3,854,993
3,854,994
I'm getting a null pointer exception when I subclass an OnClickListener()
<p>I'm trying to subclass one of my <code>OnClickListener()</code> 's and I'm getting a 'null pointer' exception, but I'm not sure why.. I'm going nuts over this.. any help would be greatly appreciated..</p> <p>Here is the code in my Utilities Class located in com.Tools</p> <pre><code>public class Utilities { public...
java android
[1, 4]
4,821,388
4,821,389
file upload C# asp.net
<p>i am trying to upload files in asp.net and putting a specific path to be saved. windows user.</p> <p>it is outputting me an error :</p> <pre><code>System.UnauthorizedAccessException was unhandled by user code Message=Access to the path 'C:\Users\USER\Desktop\fyp2\CMS TEST4\CMS\CMS\Upload' is denied. </code></pr...
c# asp.net
[0, 9]
3,108,808
3,108,809
javascript event listener for changes in an object variable
<p>I have an object variable that has several properties.</p> <pre><code>MyVar = {"prop1" : 0, "prop2": 0....}; </code></pre> <p>How do I write an event listener that listens for a change in any of the properties.</p> <p>Thanks for your suggestions.</p>
javascript jquery
[3, 5]
3,560,670
3,560,671
Search through document and find all inputs with titles
<p>I want to search through my document, and find all inputs with <code>title</code> attribute, but at the same the <code>title</code> attribute can not be empty. So it should look for every input with title attribute that has at least one character in length.</p> <p>Then I would like to make some event on those input...
javascript jquery
[3, 5]
2,591,542
2,591,543
Why doesnt this asp.net Web Application Project compile on change to config?
<p>In a seperate question, yesterday, I was trying to figure out why I had issues with source code pulled from a working site on a server.</p> <p>The server contains a fully functional website / database (.Net 2).</p> <p>When I pulled the code down to my Box it wouldnt run. After some head scratching, and liberal use...
c# asp.net
[0, 9]
3,731,402
3,731,403
Why does jQuery "toggle" button trigger the Submit button on a form?
<p>I have built a fairly complex form which includes a hidden section that the user can toggle open for entering more information if necessary. However, when you click on this toggle button labeled <strong>I have more Nativities</strong>, it triggers the submit button and prematurely submits the form.</p> <p>The form ...
javascript jquery
[3, 5]
2,519,061
2,519,062
Relationship between the textbox and image
<p>Hey, Easy question for ASP.NET profenssionals: I have a few dynamic generated textboxes in a row. In this row is also a image with an eventhandler "onclick". I will create a relationship between the textbox and the image. I click on the image, choose a value and then the textbox will be filled.</p> <p>Currently my ...
javascript asp.net
[3, 9]
1,683,605
1,683,606
How to create a temporary file (for writing to) in C#?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/16656/creating-tempory-folders">Creating tempory folders</a> </p> </blockquote> <p>I'm looking for something like the <code>tempfile</code> module in Python: A (preferably) secure way to open a file for writing ...
c# python
[0, 7]
4,915,282
4,915,283
Prevent onclick execution with jquery
<p>UPDATED</p> <p>Html Code:</p> <pre><code>&lt;input type="textbox" id="textbox" value=""&gt; &lt;input type="button" id="btn" value="Validate" onclick="document.write('VALIDATION PASSED')" /&gt;​ </code></pre> <p>JS Code:</p> <pre><code>$(document).ready(function() { $("#btn").click(function() { if ($...
javascript jquery
[3, 5]
2,877,296
2,877,297
image embedded in a Custom Server Control
<p>How to use image in Custom Server Control ?</p>
c# asp.net
[0, 9]
5,059,351
5,059,352
On delete confirmation window does not appears in php
<p>Please tell where I am wrong so that I can correct it? Its not giving error it should show confirmation window before it deletes record but it directly deletes record </p> <pre><code>&lt;script type="text/javascript"&gt; var elems = document.getElementsByClassName('confirmation'); var confirmIt = function (e)...
php javascript
[2, 3]
1,692,011
1,692,012
Toggle only the current div after you click its own toggle button?
<p>I have the following HTML structure:</p> <p>(jade template language)</p> <pre><code>#review-item-1.review-item a.submit-review-toggle(href="#").review-item-toggle + h3 Service .review-overview textarea(class='submit-review-overview', name='message', placeholder='Overview') .review-p...
javascript jquery
[3, 5]
19,210
19,211
How to run a local function from inside an jQ's AJAX request?
<pre><code>var main = { doSomething: function(){ function firstOne(){} function secondOne(){ $.ajax({ success: function(){ firstOne(); /* here I want the previous function */ } }); } } } </code></pre> <p>How can I run the firstOne() funct...
javascript jquery
[3, 5]
803,042
803,043
anr broadcast of intent. What is my mistake?
<p>anr broadcast of intent { act=android.provider.Telefony.SMS_RECEIVED cmp=com.site/.SmsReceived {has extras}} in}}</p> <p>What is my mistake?</p> <p>Shows the error when it comes to SMS. BroadcastReceiver: connects to sqllite and search number is the same sender SMS.</p>
java android
[1, 4]
4,545,744
4,545,745
jQuery: For each attribute of an input element how do I get that input element's name?
<p>I'm looking at each input element that has an attribute named "isDate". I want to find that attributes parent input element's name attribute.</p> <pre> &lt;input name="A0000" isDate="true" value="01/01/2020" /&gt; &lt;input name="A0001" isDate="true" value="01/01/2021" /&gt; &lt;input name="A0002" isDate="true" va...
javascript jquery
[3, 5]
5,482,725
5,482,726
Using ID as a variable
<p>I'm trying to find the text of the span with the class name "link" but i have problems.</p> <pre><code>&lt;div id="item-0" class="box"&gt; ....... &lt;/div&gt; &lt;div id="item-1" class="box"&gt; &lt;p&gt;&lt;strong&gt;Link: &lt;/strong&gt;&lt;span class="link"&gt;http://www.domain.com/list44/&lt;/span&gt;&...
javascript jquery
[3, 5]
540,274
540,275
Jquery multiple forms in same page
<p>I have the following dynamically generated HTML</p> <pre><code>&lt;div id="1"&gt; &lt;form name = "inpForm"&gt; &lt;input name="FirstName" type="text"/&gt; &lt;input type="submit" value="Submit"/&gt; &lt;/form&gt; &lt;/div&gt; &lt;div id="2"&gt; &lt;form name = "inpForm"&gt; &lt;input name="FirstName" type="text"/...
javascript jquery
[3, 5]