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
2,427,334
2,427,335
calling javascript from server side
<p>How to call javascript function from server side</p>
c# asp.net
[0, 9]
2,267,786
2,267,787
calculate all textboxs value OnTextChanged
<p>i have many textboxes that the user should fill, and i have in the bottom of the page a textbox sum.</p> <p>i need a way to calculate the sum of all the textboxs values and put the result in the sum textbox.</p> <p>and the sum should be updated after every textbox changed.</p> <p>example :</p> <pre><code>&lt;asp...
c# javascript asp.net
[0, 3, 9]
3,850,154
3,850,155
JQuery call to .php file and passing three arguments
<p>I want to call a .php file and pass three arguments so that the .php files GETS from the query string. I am new to JQuery. Can someone illustrate how to call the .php file using JQuery?</p>
php jquery
[2, 5]
3,697,319
3,697,320
jQuery: trying to load jQuery dynamically. Not instantiating until after script has been run
<pre><code>javascript:var width=1900; var height=800; var jQueryScriptOutputted = false; function initJQuery() { if (typeof(jQuery) == 'undefined') { if (! jQueryScriptOutputted) { jQueryScriptOutputted = true; var oHead = document.getElementsByTagName('HEAD').item(0); var oScript= ...
javascript jquery
[3, 5]
2,486,894
2,486,895
Moving a view perfectly from one side to another in Android using Animations
<p>I want to have a block start perfectly off of the screen, and then have it move across the entire screen so that it becomes invisible.</p> <h2>This is a graphic of what it should look like:</h2> <p><img src="http://i.stack.imgur.com/kc8xU.png" alt="enter image description here"></p> <h2>And this is my code:</h2> ...
java android
[1, 4]
2,685,748
2,685,749
Asp.net upload file programatically
<p>I need a way to upload a file to server programatically or using a client side API.</p> <p>Any help is very appreciated.</p>
c# javascript asp.net
[0, 3, 9]
5,585,073
5,585,074
Change values in <td>'s with jquery
<p>I have a table of values. Is it possible with JQuery by clicking on currency link to change value in cells with exchange rates? This static example table</p> <pre><code>&lt;table border="1"&gt; &lt;tr&gt; &lt;td class="currency"&gt;100&lt;/td&gt; &lt;td class="currency"&gt;200&lt;/td&gt; &lt;t...
javascript jquery
[3, 5]
491,235
491,236
jQuery function call not working
<p>I am trying to add and remove a class within a <code>&lt;span&gt;</code>, but the removeClass is not working though the function is being called. </p> <pre><code>setInterval(changeClass,4000); var spanId=1; function changeClass(){ $('#'+spanId).addClass("hilite"); setTimeout(remove, 1000); spanId++;} fun...
javascript jquery
[3, 5]
3,849,557
3,849,558
Open popup onbeforeunload
<p>I want to open pop-up on exit (Not "stay on page or leave" box). I can't get this working. Where do I make mistake ?</p> <pre><code> function poponload() { testwindow = window.open("http://www.google.com", "mywindow", "location=1,status=1,scrollbars=1,width=5,height=5,left=100,top=100"); } $(document).ready(f...
javascript jquery
[3, 5]
2,639,580
2,639,581
How do you disable a button using an onclick javascript function?
<p>I need to remove button click event after press. How can I edit the function so whenever it's clicked, it gets disabled then runs the url, or vise-versa.</p> <pre><code>&lt;form id="edit" action="" method="post"&gt; &lt;input type="submit" name="button" onclick="this.value='test...'; MyFunction();" id="1" class...
javascript jquery
[3, 5]
4,588,459
4,588,460
accessing html control inside the page from web user control
<p>I have created a web user control I want to change the iframe' src value when the user click on the link but the problem is that I dont have access to iframe inside the page from web user control I think there is a way because my control is in the page they have some relation perhaps I like to find something like th...
c# asp.net
[0, 9]
1,761,638
1,761,639
How to optimize an asp.net spawning a new process for each request?
<p>I have an asp.net mvc application that spawns a <code>Process</code> as follows:</p> <pre><code> Process p = new Process(); p.EnableRaisingEvents = true; p.Exited += new EventHandler(p_Exited); p.StartInfo.Arguments = "-interaction=nonstopmode " + inputpath; p.StartInfo.Work...
c# asp.net
[0, 9]
4,653,590
4,653,591
navigation bar animation hiden from the last to the first
<p>I am new in jquery and animations, and I need help to do this. I've got a navegation bar in my website and it has 10 buttons (level 1), when one of them has been clicled the navigation bas has to hide the buttons from right to left, when all of them have been hiden, start to appera a new navegation bar (level 2) sho...
javascript jquery
[3, 5]
4,921,408
4,921,409
How to set readonly property of a textbox in javascript
<p>i have a textbox whose property i need to set as readonly... how to set that? I tried </p> <pre><code>document.getElementbyid("txtbox").readonly=true; document.getElementbyid("txtbox").disable=true; document.getElementbyid("txtbox").setattribute("readonly","readonly"); </code></pre> <p>all these are not working fo...
javascript asp.net
[3, 9]
3,021,179
3,021,180
hosting a java based server
<p>i want to write a game that will utilize java applets as client programs and will run a server application to operate the game (control the game handle the chat etc) is there a way to host such an application on a free server, or does it require a specialized server? also is there a way to use php for tcp connection...
java php
[1, 2]
1,061,991
1,061,992
Javascript/jQuery, Display div after animation finishes
<p>here is a working jsfiddle:</p> <p><a href="http://jsfiddle.net/YnT2X/" rel="nofollow">http://jsfiddle.net/YnT2X/</a></p> <p>I don't want the div to display until AFTER the return animation completes. </p> <p>jQuery:</p> <pre><code>$(document).ready(function () { $("#menu").hover(function () { $('#ar...
javascript jquery
[3, 5]
2,484,972
2,484,973
Javascript array with default values (equivalent of Python's defaultdict)?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/11503666/set-undefined-javascript-property-before-read">Set undefined javascript property before read</a> </p> </blockquote> <p>Is there an equivalent of <a href="http://docs.python.org/library/collections.html#...
javascript python
[3, 7]
3,981,282
3,981,283
retrieve all the hyperlinks from html file using jquery or javascript
<p>I need to retrieve all the hyperlinks present in current html page using jquery. How can i use regular expressions to do that? Also can i use collections in javascript to store all the hrefs in the list?</p>
javascript jquery
[3, 5]
3,693,673
3,693,674
Calculate largest width of a set of elements using jQuery
<p>I have made a quick Jsbin: <a href="http://jsbin.com/ujabew/edit#javascript,html,live" rel="nofollow">http://jsbin.com/ujabew/edit#javascript,html,live</a></p> <p>What i'm trying to achieve is to find out which is the largest <code>&lt;section&gt;</code> out of the 3 from the link. So what i'd like is to, after the...
javascript jquery
[3, 5]
797,703
797,704
Refresh a div without using jquery .load?
<p>I have been refreshing my divs by using .load but this is not the easiest thing for my site. Is there some sort of jquery function that will just reload a div's content. Because the div contains PHP, I simply want it to refresh to reflect a change that the user has made.</p> <p>I've been searching for a while but c...
javascript jquery
[3, 5]
5,775,950
5,775,951
Call Server Side function with Keyup Event in Asp.Net
<p>I have a TextBox and I want to capture the <code>Keyup</code> in the Textbox and get the TextBox value at the Code Behind File and Bind The GridView with the Input Received from the TextBox.</p> <p>I don't want to use <code>Text_Change</code> Event of Asp.net. i want that when ever user enter anything in the TextBo...
c# asp.net
[0, 9]
4,229,791
4,229,792
PHP to C#.NET/ASP.NET
<p>How to write this in C #? Can you use Dictionary to this?</p> <pre><code>$count = 0; if(count($_SESSION['goods']) &gt; 0) { $count = count($_SESSION['goods']) -1; // array start on zero. } $_SESSION['goods'][$count]["products_id"] = $_POST["products_id"]; $_SESSION['goods'][$count]["price"] = $_POST["price"]; $...
c# php
[0, 2]
2,157,878
2,157,879
Shared Preferences in Android using check box
<p>I have a preference file which uses checkboxes and i want to use it to determine when it been checked or not. However in the code itself, there is already a boolean statement. please check this:</p> <pre><code>String key = LocationManager.KEY_PROXIMITY_ENTERING; Boolean enteringRegion = intent.getBooleanExtr...
java android
[1, 4]
4,340,708
4,340,709
Is there a way to search for text inside rows of a table with Javascript?
<p>I have an input text box and an html table with rows of text.</p> <p><strong>Table:</strong></p> <ul> <li>This is the first row of my table. </li> <li>This is the second row of my table.</li> <li>This is the third row of my table.</li> </ul> <p>When I start typing in the input text box, I want the rows that do no...
javascript jquery
[3, 5]
427,449
427,450
C# object sender - getting the Method from which it was called
<p>I've got these Methods:</p> <pre><code> private void button_Click(object sender, EventArgs e) { //Changes the Text in the RichBox, EXAMPLE: richtTextBox.Text = "Now Changed and calling Method richTextBox_TextChanged"; } </code></pre> <p>And,</p> <pre><code> private void richTextBox_...
c# asp.net
[0, 9]
5,496,504
5,496,505
Executing JavaScript function in Code behind -- How to Get the Return Value in Code Behind
<p>I have following JavaScript function, Which call Jquery JSON function and get the DateTime with respect to timezone. This works fine.</p> <pre><code> &lt;script type="text/javascript"&gt; function JSFunctionName() { $(document).ready(function () { var timezone = "US/Central"; $....
c# javascript jquery asp.net
[0, 3, 5, 9]
1,401,582
1,401,583
How can I Execute a code in background?
<p>On a click event I have some codes that takes about 4 seconds before the user can be redirected.</p> <p>Is there a way that I can redirect the user, and the code will still be executed on the server? I </p>
c# asp.net
[0, 9]
3,737,287
3,737,288
Making the case for .net
<p>I work for a small company of about 10 developers. My boss considering dumping .net and moving over to java for new developments. His brother in law convinced him that windows server license cost is a waste of money and that linux based machines are more stable. Also the fact that java is open source, means that the...
java c#
[1, 0]
539,726
539,727
Unbinding inline onClick not working in jQuery?
<p>Okay so, I'm wondering how to unbind an inline onclick event in jQuery. You'd think <code>.unbind()</code> would work, however it doesn't. </p> <p>To test this for yourself, play around with the following HTML and JavaScript:</p> <pre><code>function UnbindTest() { $("#unbindTest").unbind('click'); } functio...
javascript jquery
[3, 5]
2,050,902
2,050,903
Drop-down navigation - menu flickering on mouseleave
<p><a href="http://jsfiddle.net/deswolf/D9X53/" rel="nofollow">http://jsfiddle.net/deswolf/D9X53/</a> If you play around with this menu for a little bit, you will notice that when your mouse leaves at the top, you get a lot of flickering, which is really annoying. How can I fix this?</p>
javascript jquery
[3, 5]
3,235,959
3,235,960
Easing the excution flow in JS/JQuery
<p>Easing the excution flow in JS/JQuery I've loop like this:</p> <pre><code>for (int i = 0; i &lt; 100; i++) { doSomething(...); // returns momentally } </code></pre> <p>I'm looking for a way to apply easing to the execution flow - by giving a total duration and an easing pattern (ex. 2 seconds &amp; easeback). ...
javascript jquery
[3, 5]
2,573,859
2,573,860
Android: Opening an email application on clicking the label
<pre><code>&lt;TextView android:id="@+id/TextView03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@+id/header" android:layout_alignLeft="@+id/button1" android:layout_marginBottom="127dp" android:text="@string/email" android:textColor="#00...
java android
[1, 4]
3,605,936
3,605,937
How to show User name after login when not present in DB?
<p>On my website master page there are 2 divs- div_login and div_welcome. By default login div is visible and welcome div is hidden. When user fills his/her login details then div_login gets hide and welcome div appears. I am fetching data from web-service. On welcome div I want to give first name and last name of the ...
c# asp.net
[0, 9]
2,737,443
2,737,444
Methods and practices of making an URL hash
<p>My application uses ajax and refreshes some parts of a template. Now I need to make an URL hash containing some variables that will be used for refreshing a page after a page is loaded that contains a hash.</p> <p>Now I need a javascript procedure for making a hash. </p> <ol> <li><p>How to serialize variables?</p>...
javascript jquery
[3, 5]
2,849,406
2,849,407
Client side image resize and save
<p>is there a way to resize and save an image to a temp file through a web browser client side?</p> <p>What I am trying to accomplish is resize an image to a max 1024px wide/high, save it locally and then upload the resized image to a server.</p> <p>The reason is that I am building an online app that allows users to ...
php javascript jquery
[2, 3, 5]
5,542,320
5,542,321
Local Storage using Javascript / Jquery (Without using HTML5)
<p>I want to replicate Local Storage concept (similar to HTML5) in javascript or jquery.</p> <p>But unfortunately I don't have idea, how to start this.</p> <p>Can any one suggest how to implement local storage using javascript or jquery (Without using HTML5)?</p>
javascript jquery
[3, 5]
857,821
857,822
Merge Merger header columns in gridview?
<p>How can I create below type of gridview with merge merged header columns? If anybody have example share with me.</p> <p><img src="http://i.stack.imgur.com/LqC9E.jpg" alt="alt text"></p> <p>Thanks in advance.</p>
c# asp.net
[0, 9]
1,815,623
1,815,624
create a game level
<p>I am looking to create a game like mega man or mario, I have been trying to find a good solution as to how to generate my levels. The only thing I can think of would be to create a level file and load coordinates as the player moves through the level. Which would suck because I would have to code the floor to load, ...
java android
[1, 4]
3,613,892
3,613,893
autocomplete with JsonConvert.SerializeObject
<p>Am just trying to display a autocomplete list in my asp page, am using JsonConvert.SerializeObject here, when I search for the items starts with <code>1</code>, after serializing the data, while debugging I can see the data like,</p> <pre><code>"[{\"PharmacyItemName\":\"100GM\",\"PharmacyItemId\":1} ,{\"Pharm...
jquery asp.net
[5, 9]
1,895,264
1,895,265
Android SMS Database Columns Variation HTC/AOSP
<p>I'm trying to read sms information such as sms and received phone number and i use this code </p> <p>`private void populateSMS(Context context, int max_count) { Cursor c = context.getContentResolver().query( Uri.parse("content://sms"), null, null, null, "date desc limit " + m...
java android
[1, 4]
4,246,933
4,246,934
How pass variable from jquery to php?
<p>i want way to pass variable from jquery to php how to do it? ihave this code </p> <pre><code>&lt;script&gt; $(document).ready(function(){ $('a').click(function(){ var title = $(this).attr('value'); $('.div').attr('value', title); }); }); &lt;/script&gt; </code></p...
php javascript jquery
[2, 3, 5]
5,961,548
5,961,549
How can I execute js function calls when my .js file is loaded?
<p>I have the following function calls:</p> <pre><code>Layout.Controls.sidebar(Button.Add); Layout.Controls.sidebar(Button.Init); Layout.Controls.printScreen(Button.Add); Layout.Controls.theme(Button.Add); Layout.Controls.theme(Button.Init); </code></pre> <p>I put the calls inside of a .js file. But how can I make i...
javascript jquery
[3, 5]
839,980
839,981
Get Javascript tag content
<p>Hi I want to save a website's source code into a file using java. From the source code i want to get only <code>&lt;script&gt; &lt;/script&gt;</code> tag contents how can i do that?</p>
java javascript
[1, 3]
197,938
197,939
javascript replace newlines in textareas
<p>I have a <code>textarea</code> in a contact form, when it is submitted to the page that sends the mail, it passes through another page.</p> <p>in the second page, when I <code>echo $_POST['textarea']</code> I get all the text in one line.</p> <p>Is there a javascript or PHP code that fix this?</p>
php javascript
[2, 3]
5,140,246
5,140,247
In jQuery Isotope or Masonry, can I ignore an item?
<p>I have this list of items I want to filter through:</p> <pre><code>&lt;ul id="container"&gt; &lt;li class="item filter"&gt;This is where I'd put my filters&lt;/li&gt; &lt;li class="item"&gt;Item 1&lt;/li&gt; &lt;li class="item"&gt;Item 2&lt;/li&gt; &lt;li class="item"&gt;Item 3&lt;/li&gt; &lt;/ul&gt...
javascript jquery
[3, 5]
3,708,183
3,708,184
Cannot select the ComboBox item
<p>I have two Comboboxes where the second one is dependent upon the first one.</p> <p>When the SelectedIndexChanged event of the first Combobox fires then the second Combobox will be enabled.</p> <p>After the event, the second Combobox is enabled but I cannot select the ComboBox item.</p> <p><strong>EDIT</strong></p...
c# asp.net
[0, 9]
1,798,087
1,798,088
How to limit character in jquery tags input?
<p>i have used the following code to limit the character but it is not working.. pls help me. thanks in advance.</p> <pre><code> &lt;td nowrap="nowrap"&gt; &lt;asp:TextBox MaxLength="60" runat="server" ID="Keyword" CssClass="TaskTitle" Width="270px" TextMode="SingleLine" /&gt; &lt;/td...
jquery asp.net
[5, 9]
3,085,632
3,085,633
The “backspace” character '\b' in the Android Edittext does not work?
<p>I'm trying to look at someone else's code on developing android virtual keyboards.</p> <p>I have a gesture[swipeLeft] hooked to one of the backspace gesture and I use the following to implement that:</p> <pre><code>playSound(backspacePlayer); // background sound InputConnection connection = getCurrentInputConnecti...
java android
[1, 4]
3,866,799
3,866,800
How to retrieve dynamically created label control from Gridview
<p>I have the buttons and label boxes that are dynamically created in Grid view Template page, this is done in C#. On page load, only the buttons are visible. When a button is clicked, I want the respective label to change its visibility to true.</p> <p>I am unable to retrieve the control in the Gridview OnRowCommand...
c# asp.net
[0, 9]
4,320,264
4,320,265
jQuery .data() Selector
<p>This question has been asked before, but I can't find any answers that have been given since May 2010. If one or more of these answers are still relavent, I'd be happy to delete this question.</p> <p>Does jQuery have a selector that will allow me to filter by values added by <code>.data()</code>?</p> <p><strong>Ex...
javascript jquery
[3, 5]
4,903,437
4,903,438
Finish threads in the order in wich they were started
<p>I am downloading simultaneously several images in separate threads.I need to set these images to adapter. I need to finish these threads in the order in which they were started because I am using callbacks to inform adapter and.... How can I do this(finish threads in the order in which they were started)?</p>
java android
[1, 4]
5,488,331
5,488,332
Adding extra button to FullCalendar
<p>Can we modify or change the view of <strong><a href="http://arshaw.com/fullcalendar/" rel="nofollow">FullCalendar</a></strong> as per our need ?</p> <p>I want to add an extra button to it and write the event on it. Please Suggest me for the same asap.. Any help will be appreciated.</p>
javascript jquery
[3, 5]
3,631,440
3,631,441
how do I make the floating header not show when the page gets smaller without scrolling?
<p>I have a floating header and it shows with the following code:</p> <pre><code>$(window).scroll(function () { if ($(this).scrollTop() &gt; 200) { $('#floatingHeader').show(); } else { $('#floatingHeader').hide(); } }); </code></pre> <p>In this floating header I ha...
javascript jquery
[3, 5]
2,536,887
2,536,888
How to upload table data from Excel to SQL Server 2008 in C# ASP.Net
<pre><code>protected void btnup_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { if (System.IO.Path.GetExtension(FileUpload1.FileName) == ".xls" || System.IO.Path.GetExtension(FileUpload1.FileName) == ".xlsx") { FileUpload1.SaveAs(Server.MapPath("~/Excal/sample.xlsx"));...
c# asp.net
[0, 9]
2,565,920
2,565,921
Execute jquery animate only one time
<p>I've the following function:</p> <pre><code>$('.link1').click(function(){ $("#div2").slideUp(function(){$("#div1").slideToggle();}); $('html, body').animate({scrollTop: '600px'}, 800); }); </code></pre> <p>It toggles a div and scroll the page down. The problem is that everytime the user toggles the page sc...
javascript jquery
[3, 5]
2,066,569
2,066,570
Trying to extend 3rd party Jquery plugin for sliders
<p>I am working with a third party scrolling plugin from <a href="http://www.dynamicdrive.com/dynamicindex11/scrollc.htm" rel="nofollow">http://www.dynamicdrive.com/dynamicindex11/scrollc.htm</a>, and they give you two javascript files one is the slickcustomscroll.js and the other jquery.mousewheel.min.js. I am writing...
javascript jquery
[3, 5]
2,553,898
2,553,899
Check is textarea empty (treating only 'enter' like empty)?
<p>Welcome,</p> <p>I have textarea and i have small function what allow me to submit message on enter keypress.</p> <pre><code>$(function(){ $('input').keydown(function(e){ if (e.keyCode == 13) { $(".sender").click(); return false; } }); }); </code></pre> <p>That's work...
javascript jquery
[3, 5]
400,949
400,950
help designing a method, should I use out or ref or return the type?
<p>I have a method that I will use in the following contexts:</p> <p>1.</p> <p>User user = null;</p> <pre><code>if(...) { user = defaultUser; SetUser(a,b,user); } else { SetUser(a,b,user); } SaveUser(user); </code></pre> <p>So some cases are where user may be null, while in other cases it will al...
c# asp.net
[0, 9]
1,096,370
1,096,371
Make a DropdownList visible on click of a RadioButton
<p>When I perform a <code>radiobuttonclick</code>, I want to set a <code>dropdownlist</code> to become visible. The <code>radiobutton</code> and <code>dropdownlist</code> are within the same <code>datagrid</code>. I am not sure how to do this.</p> <pre><code>&lt;asp:UpdatePanel ID="updatepanel" UpdateMode="conditional...
c# asp.net
[0, 9]
242,171
242,172
How to make toggle in 2 parts?
<p>Super simple concept. See here <a href="http://jquerytest.thepeoplesmarketing.us/jquerydev/index2.html" rel="nofollow">http://jquerytest.thepeoplesmarketing.us/jquerydev/index2.html</a> . The gray div is a "slide". I want 5 left to right(not a problem), and on hover, each "animates" the red div which is currently vi...
javascript jquery
[3, 5]
5,243,951
5,243,952
DatePicker on a textbox
<p>i am trying to implement a <code>datepicker</code> control using Jquery,</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&g...
jquery asp.net
[5, 9]
5,726,831
5,726,832
getAction() gives only ACTION_DOWN
<p>For an application I am writing, I want to invoke a certain action once the user lifted his finger off the screen. I understood I need to check if event.getAction() is ACTION_UP, but all I get from getAction() is ACTION_DOWN. My code looks like this:</p> <pre><code>menu = new MenuView(this); menu.setBackgro...
java android
[1, 4]
1,622,150
1,622,151
how to add 2 values of textbox in asp.net using javascript
<p>I have 2 textbox in my asp.net page and also have one hiddenfield in my asp.net page , my hiddenfield will always have numeric value like 123.00 , and in my one textbox also I will always have numeric value like 20.00 now I want to add this hiddenfield value and textbox value and display it into second textbox thru...
asp.net javascript
[9, 3]
4,823,109
4,823,110
Detecting touch screen devices with Javascript
<p>In Javascript/jQuery, how can I detect if the client device has a mouse? </p> <p>I've got a site that slides up a little info panel when the user hovers their mouse over an item. I'm using jQuery.hoverIntent to detect the hover, but this obviously doesn't work on touchscreen devices like iPhone/iPad/Android. So o...
javascript jquery iphone android
[3, 5, 8, 4]
3,728,462
3,728,463
jquery $(td) exclude colspan?
<p>Hi. I have the following that adds a class to all <code>&lt;td&gt;</code> elements, however I have a particular <code>&lt;td colspan="3"&gt;</code> and I want to exclude it. How do I do this in jquery? Thanks for any help.</p> <pre><code>$('td', table).addClass('ui-widget-content'); // exclude a &lt;td colspan="3"&...
javascript jquery
[3, 5]
1,041,779
1,041,780
How to .hide() a single div from a class
<p>I have a set of divs which are specified under the same class name, and which have no ids. Given this scenario, how can I use Jquery's <code>.hide()</code> method to hide only the div that was clicked, and not the entire class without having to specify an id for each div? </p> <pre><code>&lt;div class="div"&gt;&lt;...
javascript jquery
[3, 5]
3,305,879
3,305,880
Append text into a div with Jquery
<p>I've tried the following code in my sample page and it doesn't work.All I'm trying to do is just append some text into a div on the page when the button is clicked.</p> <pre><code>&lt;asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"&gt; &lt;script type="text/jscript"&gt; $(...
c# asp.net jquery
[0, 9, 5]
4,959,946
4,959,947
How to prevent OnSelectedIndexChanged to cause postback unless the user uses the mouse or the enter key?
<p>here's a dropdownlist that posts back on selected index changed. </p> <pre><code>&lt;asp:DropDownList ID="_ddlClientType" runat="server" AutoPostBack = "true" OnSelectedIndexChanged="ClientType_SelectedIndexChanged" &gt; &lt;asp:ListItem Value="-1" Text="CANCEL.."&gt;&lt;/as...
jquery asp.net
[5, 9]
1,580,070
1,580,071
How do I load Javascript within jQuery based tabs?
<p>I have Jquery and CSS tab like <a href="http://www.sohtanaka.com/web-design/examples/tabs/" rel="nofollow">this one</a> and in the each tab I have <a href="https://developers.facebook.com/docs/reference/plugins/activity/" rel="nofollow">facebook feed box</a>, <a href="http://twitter.com/about/resources/widgets" rel=...
javascript jquery
[3, 5]
175,899
175,900
How to save mouse coordinates onbeforeunload?
<p>I can track mouse coordinates dynamically with this</p> <pre><code>$(document).ready(function() { $().mousemove(function(e) { $('p').html("X Axis : " + e.pageX + " | Y Axis " + e.pageY); }); }); </code></pre> <p>With this, the numbers change on each mouse move dynamically. What I want to do is to save all c...
php javascript jquery
[2, 3, 5]
5,750,480
5,750,481
Way to include a .js inside a .js?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/950087/include-javascript-file-inside-javascript-file">Include javascript file inside javascript file?</a> </p> </blockquote> <p>Is this possible? Including a reference to another .js that your current .js file...
asp.net javascript
[9, 3]
5,729,830
5,729,831
Response.WriteFile stopping previous request
<p>I have a button that calls a click event to download a picture. In my click event I have some code to change my display as the Save dialog pops up. The issue I am having is that when the dialog comes up it stops the previous line of code from executing. How can I check to see that my code has executed before calling...
c# asp.net
[0, 9]
3,286,228
3,286,229
Show the div with the number that was indexed in the navigation
<p>I have a setup like this:</p> <pre><code>Link ------------------------------ Link | | Link | | Link | DIV | | | | | ...
javascript jquery
[3, 5]
3,711,398
3,711,399
Date comparison in Jquery
<p>I want to compare the selected date and current date. Iam using jquery date picker. While using the following code only the date field comparison is takes place... How can i compare with month and year also... Advance thanks..</p> <pre><code>$(document).ready(function() { var objDate = new Date(); ...
javascript jquery
[3, 5]
5,887,962
5,887,963
how to send a variable from jquery to a template?
<p>how to send a variable from jquery to a template?</p>
javascript jquery
[3, 5]
1,004,407
1,004,408
How can I unbind JQZOOM in my JQuery Script?
<p>I have this script at the moment, which changes an image when a thumbnail has been changed. I then want JQZOOM to be added to that new image. However, if I put it inside the Onclick event, it gets slower and slower the more times you click on it... I guess because its running multiple instances.</p> <p>Is there any...
php jquery
[2, 5]
4,021,666
4,021,667
how to put a fixed number of 0's infront of a long in java?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/473282/left-padding-integers-with-zeros-in-java">Left padding integers with zeros in Java</a> </p> </blockquote> <p>I have a problem. i am working on a android app</p> <p>I have a long timestap and a string tha...
java android
[1, 4]
1,235,642
1,235,643
How to hide a div if user clicks anywhere but a link and the div itself using jQuery?
<p>Ok, so simple question. I have a link which when clicked shows a div. If the user blurs off that link the div is hidden. This is good, but I don't want the div to be hidden if the user clicks on it. So if the user clicks anywhere other than the link or div itself only then should the div be hidden. Right now my code...
javascript jquery
[3, 5]
693,877
693,878
What can be the reason for the following error
<p>Using jQuery Ajax to fetch data from local server: it works well with IE8 but with Firefox4 it goes wrong: (entering error function with just "error" message). Firebug shows the data is getting correct.</p> <p>The running URL is: <a href="http://localhost:47092/testajax" rel="nofollow">http://localhost:47092/testaj...
javascript jquery
[3, 5]
5,488,937
5,488,938
What does IsPostBack actually mean?
<p>I am interested to know what specifically Page.IsPostBack means. I am fully aware of it's day to day use in a standard ASP.NET page, that it indicates that the user is submitting data back to the server side. See <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.ispostback.aspx" rel="nofollow">Pag...
c# asp.net
[0, 9]
2,947,879
2,947,880
Button used for redirecting, with a php function
<p>I would like to be able to redirect to a page with a button. I do not want to use the headers function. I want to be able to call some function inside a php file. My function for redirecting looks something like this. Basicly the first part set what page to load in a static variable and then executes a reload of pa...
php javascript jquery
[2, 3, 5]
5,278,201
5,278,202
c# control names
<p>Is there a way to control how .Net sets the <code>Name</code> and <code>ID</code> property of my controls? I have some radio buttons for which I need the name to be the same. However if I set the <code>ID</code> property of the radio button control it sets the <code>Name</code> and the <code>ID</code>. I see no w...
c# asp.net
[0, 9]
3,314,216
3,314,217
hide div if clicked outside of it
<p>I’m having a little trouble with this JQuery function.</p> <p>Basically, I have a div, that when clicked, shows another Div. It’s set to a toggle, actually, so it toggles on/off when you click.</p> <p>I want to have it where if you click on anywhere outside of the opened div (that appears after you click on the fi...
javascript jquery
[3, 5]
4,359,195
4,359,196
Android Ldap with Sasl Security
<p>I am making application on android in which my server is windows server 2008.I am using LDAP Protocol for accessing detail from my app.For it I am using unboundid.jar for making connections.I am using various security mechanism like ssl Tls Sasl Digest MD5,Genric sasl.SSL Tls working fine on Android but Sasl is not ...
java android
[1, 4]
5,061,744
5,061,745
C++ and Java objects communication
<p>I need to establish a communication model between C++ layer and Java layer in my application. Initially, I planned to use SOAP with XML, but my clients are interested in setting up a database communication channel.</p> <p>I am new to DB and not sure how to proceed. I would like to take your sincere suggestions on t...
java c++
[1, 6]
2,146,409
2,146,410
ASP.NET Generate a table from list with dynamic number of rows and columns
<p>I have a list of items which I want the user to be able to tick which are appropriate to them.</p> <p>Currently I have a <code>&lt;ul&gt;</code> generated by a <code>Repeater</code> with checkbox and label controls placed in side, all working fine.</p> <p>However, the <code>&lt;ul&gt;</code> is taking up too much ...
c# asp.net
[0, 9]
4,005,464
4,005,465
Doctype issue using jquery plugin
<p>i am using jquery chart it works fine when i remove DocType on the page but it shows give error if i add doc type in the page Any help please Doctype is as follow</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; </code></p...
jquery asp.net
[5, 9]
64,280
64,281
Have Client-Server App, need to create a Client Simulator - ideas needed
<p>We've got a client app which connects using TCP to a server. Additionally, the client app makes use of .NET remoting to talk to another piece of locally running code.</p> <p>I'm tasked with creating a "Client Simulator" to do some testing, where we'd need to have 100's of clients connected simultaneously to the ser...
c# asp.net
[0, 9]
4,247,189
4,247,190
Call Javascript from GridView TemplateField
<p>I have a GridView, I have coded like the below</p> <pre><code>&lt;asp:TemplateField HeaderText="Item"&gt; &lt;ItemTemplate&gt; &lt;asp:Button ID="btnItem" OnClientClick="javascript:SearchReqsult(&lt;%#Eval("Id") %&gt;);" CssClass="Save" runat="server" /&gt; &lt;/Ite...
c# javascript asp.net
[0, 3, 9]
2,122,111
2,122,112
How to filter the user installed camera application from predefined camera application
<p>This is my piece of code </p> <pre><code>Intent cameraintent= new Intent(); cameraintent.setAction(Intent.ACTION_CAMERA_BUTTON); cameraintent.putExtra(Intent.EXTRA_KEY_EVENT, new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_CAMERA)); sendOrderedBroadcast(cameraintent, null); </code></pre> <p>But it list out all...
java android
[1, 4]
2,379,707
2,379,708
How can I get the android device id which I get on dialing " *#*#8255#*#* "
<p>How can I get the android device id which I get on dialing <kbd>*</kbd><kbd>#</kbd><kbd>*</kbd><kbd>#</kbd><kbd>8</kbd><kbd>2</kbd><kbd>5</kbd><kbd>5</kbd><kbd>#</kbd><kbd>*</kbd><kbd>#</kbd><kbd>*</kbd></p> <p>I am using the following code but it does not return the same...what I want</p> <pre><code>String androi...
java android
[1, 4]
1,736,059
1,736,060
changing some parts of location.href using js without redirecting the browser?
<p>hi here is the problem: my url is like this <code>http://somesite.com?theSearch=someword&amp;a=b&amp;c=d</code></p> <p>on this page search results are displayed and on this page i have put the functionality of ajax search i.e. the results are updated without the page reload but the problem is if the user clicks on ...
javascript jquery
[3, 5]
3,125,734
3,125,735
Javascript validation for radio button
<p>I am doing newsletter subscription.I have 2radio buttons-subscribe and unsubscibe and a submit button.But when I click on submit button,ajax function gets called for subscription.Now i want to do validation.I have written a javascript validation for radio buttons as below:</p> <pre><code>function validate_radio() ...
php javascript
[2, 3]
877,384
877,385
How to show the non-selected options in a select form, after a previous form is submitted
<p>I have a form where im asking for name, surname, phone cellphone and at the end user has to check one or more options in a checkbox and then clicks submit.</p> <p>After that in the "thank you page" i want to show the exact form but this time to show only the non-checked checkboxes. Reason for this is that i want to...
php jquery
[2, 5]
5,296,046
5,296,047
content appended with jquery is not part of the DOM
<p>I have an empty div <code>&lt;div id="content"&gt;&lt;/div&gt;</code> to which I add content via jquery append.</p> <pre><code>$('#content').append('&lt;div class="sub"&gt;sub1&lt;/div&gt;'); $('#content').append('&lt;div class="sub"&gt;sub2&lt;/div&gt;'); $('#content').append('&lt;div class="sub"&gt;sub3&lt;/div&g...
javascript jquery
[3, 5]
4,395,488
4,395,489
How to change background-image css property w/jquery
<p>How can I set the <code>background-image</code> css property of say a div using jquery? will something like this work?</p> <pre><code>$("#div").css("backgroundImage", "url('test.jpg')"); </code></pre>
javascript jquery
[3, 5]
2,302,627
2,302,628
show/hide loading message for html table
<p>How can I show a "loading" message when clicked/checked to expand table column(s), and hide the message as soon as its expended. <a href="http://jsfiddle.net/xamsw/" rel="nofollow">Here</a> is demo of what I've got so far. I can make the message appear, but can't hide it once the job is done. It seems useful when I'...
javascript jquery
[3, 5]
836,458
836,459
Javascript or Python? beginner getting up to speed
<p>Which language will allow a beginner to get up to speed quicker? </p> <p>Basically which language of the two is easier to learn</p>
javascript python
[3, 7]
66,539
66,540
How to determine if we're at the bottom of a page using Javascript/jQuery
<p>There is nothing called <code>scrollBottom()</code> in jQuery, so I can't do <code>$(window).scrollBottom()==0</code></p> <p>Hope the question is clear from the title itself. Any help would be greatly appreciated. I'm mostly interested in IE7+, FF3.5+ (Chrome etc are bonus!)</p> <p>Thanks, Raj</p>
javascript jquery
[3, 5]
1,925,092
1,925,093
How to convert WAV files to the frequency domain for use FFT libraries
<p><a href="http://stackoverflow.com/questions/4935691/compare-voice-wav-in-android-or-voice-tag-voice-commands-api">Compare voice wav in android or voice tag ( voice commands ) API</a> in answer number 2 I don't know how to convert the time-domain data of the original WAV file into frequency-domain data.</p>
java android
[1, 4]