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,289,413
5,289,414
Jquery - Accessing nested child elements
<p>Assume I have the following HTML - </p> <pre><code>&lt;DIV id="ParentDiv"&gt; &lt;DIV id="SubDiv1"&gt;&lt;/DIV&gt; &lt;DIV id="SubDiv2"&gt; &lt;INPUT id="input"&gt; &lt;/DIV&gt; &lt;/DIV&gt; </code></pre> <p>To access the input element using jquery, it would be simply $("#input"). What I'm tryi...
javascript jquery
[3, 5]
5,760,587
5,760,588
Open 2 URLs on click from option select
<p>In my form there is a drop down list, and on button click I need to open 2 URLs, if user select option 1 then after button click a thank you page appear and another URL should be open.</p> <p>I am able to open only one URL at current time. Please have a look at my fiddle.</p> <p><a href="http://jsfiddle.net/ty65E/...
javascript jquery
[3, 5]
2,726,983
2,726,984
Add spans to characters in a string (in an HTML element)
<p>I want to loop through the characters of a text in an element and add <code>span</code>s to the characters. This is pretty easy using <a href="http://api.jquery.com/jQuery.map/" rel="nofollow"><code>jQuery.map()</code></a>:</p> <pre><code>$elem = $('h1'); var chars = jQuery.map($elem.text().split(''), function(c) {...
javascript jquery
[3, 5]
3,948,559
3,948,560
read cookies in jquery from other page
<p>I have called one php page inside the iframe</p> <p>I have stored some values in cookies.I want to read that cookies values from that page to other page.</p> <p>I used jQuery to read cookie.</p> <pre><code>var value = $.cookie('artname'); </code></pre> <p>'artname' is the cookie name.</p> <p>But it displaying n...
javascript jquery
[3, 5]
901,488
901,489
Adding a function to one jQuery/DOM element
<p>I am authoring a plugin which instantiates a map. The map would then provide a function to move to another place on the earth.</p> <p>The script makes the map just fine. However I can't "tack" the function on the element, to be used by another plugin in a callback.</p> <p>Here's the approach I tried; in plugin:</p...
javascript jquery
[3, 5]
2,492,643
2,492,644
E.O. Datepicker Duration between two datepicker
<p>in my Reservation.aspx webpage i have a E.O. datepicker .How can i get the duration of two datepicker and show it on a textbox .. using c# codes, im using visual studio 2008.. thanks for any reply .. Need reply now.. </p>
c# asp.net
[0, 9]
251,511
251,512
Android app causes SIGSEV, how do I debug this?
<p>As I understood it, we're not supposed to be seeing these unless working with native code, which I am definitely not. I'm simply calling a bunch of AsyncTasks that fetch web data and populate a listview.</p> <p>How do I debug it? There is absolutely no indication on what causes it and it's pretty consistent, 1 out ...
java android
[1, 4]
2,092,649
2,092,650
jQuery : click event on child element on the list
<p>I have a script in jQuery/PHP, which receives other levels on the UL list. For example:</p> <pre><code>&lt;ul class="obj"&gt; &lt;li&gt;Object A&lt;/li&gt; &lt;li&gt;Object B&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>After click on the LI element, jQuery appends another list to this element received by POST:</p> <p...
php jquery
[2, 5]
2,124,321
2,124,322
transfer data between activites
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android">How do I pass data between activities in Android?</a> </p> </blockquote> <p>how would i go about transferring some data between two activities? </p> <p>...
java android
[1, 4]
4,134,225
4,134,226
Best way to refer to javascript in UserControl(ascx)
<p>I usually create usercontrol which is referring javascript file/block. For example, I have a cascading Nation/City selection which is based on AJAX in my Register.ascx(a usercontrol), certainly I need add the javascript file into page. I have 3 ways at present:</p> <p>1.Writing <code>&lt;Script&gt;</code> element i...
javascript asp.net
[3, 9]
2,655,926
2,655,927
How to pass values from MapOverlay
<p>I want to pass the values from <em>MapOverlay</em> class to another class. I tried to use an Intent </p> <pre><code>Intent i = new Intent(getApplicationContext(), AnotherClass.class); i.putExtra("value1", x1); i.putExtra("value2", y1); startActivity(i); </code></pre> <p>but Eclipse alerts me "The method getApplica...
java android
[1, 4]
2,467,871
2,467,872
OOP javascript and jquery books
<p>I am looking for any good JavaScript and jquery books. Anybody have any suggestion?</p> <p>I have a heavy development in object oriented JavaScript.</p> <p>Thanks</p>
javascript jquery
[3, 5]
1,155,841
1,155,842
transfer data in functions ? Javascript
<p>how can i transfer certain data in function like <code>test()</code>;</p> <p>I saw some people did this like putting the data in the brackets like test(data);</p> <p>When the function executes it will use the data for example:</p> <pre><code>$('#element').click(function(){ test(somedata); }); function text();...
javascript jquery
[3, 5]
558,914
558,915
JS/PHP: Wont alert error
<pre><code> &lt;script type="text/javascript"&gt; $(function() { $("#continue").click(function () { $.ajax({ type: "POST", url: "dbc.php?check=First", data: {full_name : $('#full_name').val(), usr_email : $('#usr_email').val()}, success: function(msg){ if(msg=...
php javascript jquery
[2, 3, 5]
2,334,976
2,334,977
JavaScript before jQuery
<h3>Duplicate:</h3> <blockquote> <ul> <li><a href="http://stackoverflow.com/questions/122902/what-are-some-of-the-pros-and-cons-of-using-jquery">What are some of the pros and cons of using jQuery?</a></li> <li><a href="http://stackoverflow.com/questions/215589/should-i-avoid-using-a-javascript-library-while-lear...
javascript jquery
[3, 5]
3,551,825
3,551,826
how to get selection inside a div using jquery/javascript
<p>there are lots of code to get selection in a page, but i want a code to get selection inside a div, if the selection is outside of my div, the function must return empty string;</p> <p>there is a jquery plugin that works only for textarea but not div. <a href="http://plugins.jquery.com/project/fieldselection" rel="...
javascript jquery
[3, 5]
41,937
41,938
OnClientClick event doesn't register javascript alert from code-behind
<p>Alright, I have an embarrassingly simple question that hopefully has an embarrassingly simple answer. I am trying to get an asp:ImageButton to display an alert message that contains variables from my codebehind. Here's the overly simplified version of the code:</p> <pre><code>public string AlertMe { get { ...
c# javascript asp.net
[0, 3, 9]
5,488,050
5,488,051
JavaScript into Asp Page
<p>i am learning javascript client side scripting language and i am using js in ASP.. i dont know when i compile the code, it shows </p> <blockquote> <p>COMPILATION ERROR:Compiler Error Message: CS1061: 'ASP.default_aspx' does not contain a definition for 'popup' and no extension method 'popup' accepting a f...
javascript asp.net
[3, 9]
1,926,375
1,926,376
When android device goes to sleep mode?
<p>I was searching SO and web but i couldn't find sufficient answer for my particular question. Ok here we go:</p> <p>Every user can modify screen timeout on android. (when screen turns off when its idle for __ seconds/minutes - users choice ). But user can modify ONLY screen timeout and not when device goes actually ...
java android
[1, 4]
2,211,641
2,211,642
Script doesn't always fully execute when ajaxed in with jQuery
<p>I've got this clause to execute a script under certain condition;</p> <pre><code>//if artist page clicked run profile script if (id == 'artist_link') { $.getScript("AJAX/get_profile.js"); } </code></pre> <p>The problem i'm having is that the script will often not fully execute. Sometimes nothing will be ex...
javascript jquery
[3, 5]
5,181,132
5,181,133
Good javascript-graph library
<p>I need do create a pretty complicated graph in Javascript. It's a line-graph with dots that are click-able. I've looked at the google-api, and it just won't do. Also, it needs to be able to rendre several graphs in one window.</p> <p>Would be really nice if it was powered by jQuery, since the rest of the project is...
javascript jquery
[3, 5]
5,908,063
5,908,064
Thread in Android
<p>I have an example like this: </p> <pre><code>package android.uiexample; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.widget.Button; import android.widget.CheckBox; import android.widget.ProgressBar; import android.widget.RadioGroup; im...
java android
[1, 4]
3,819,674
3,819,675
jQuery imple form submission without reload
<p>Could someone provide me with the most simple code for form submission with jquery. On the web is with all sorts of gizmo coding.</p> <p>Thanks in advance Dave</p>
php jquery
[2, 5]
2,754,607
2,754,608
Triggering javascript setTimeOut events prematurely
<p>I'm using setTimeOut to control an automatic slideshow.</p> <p>(You can see it here: <a href="http://thingist.com/labs/ipad.shtml" rel="nofollow">http://thingist.com/labs/ipad.shtml</a> -- basically something pretty to look at while I'm working. Images are coming from reddit's API)</p> <p>The code looks approxima...
javascript jquery
[3, 5]
5,699,896
5,699,897
How do I from a JSON object convert to form of elements?
<p>I have a JSON object as <code>{a: 1, b: 2, c: [4, 5, 6], d: {x: 7, y: 8, z: [9, 0]}}</code>, how do I convert it to a form of elements?</p> <p>I want to convert to this:</p> <pre><code>&lt;input type="hidden" name="obj[a]" value="1"/&gt; &lt;input type="hidden" name="obj[b]" value="2"/&gt; &lt;input type="hidden" ...
javascript jquery
[3, 5]
4,567,354
4,567,355
Getting random urls from google and storing them into array
<p>I need to check the connection time to some url, i do it using <em>curl</em> (i only know how to do it for 1 url at the time tho, my problem is that i need to check it for many urls, not just 1)</p> <p>Here is an example of how i calculate the connection time:</p> <pre><code>$url1 = 'stackoverflow.com'; $curl1 = c...
php javascript
[2, 3]
3,796,268
3,796,269
Access iPhone from Windows
<p>I've seen a couple programs running in Windows that could access the iPhone and iTouch with access to the photo library and music. What APIs are used for this kind of development?</p>
iphone c++
[8, 6]
1,627,427
1,627,428
Using hardware components in Android (Java)
<p>Hey, Sorry to bother you with such a silly question, but I can't find the answer myself.</p> <p>I'd like to use hardware components in my applications (or: sensors), but it seems that I don't have the necessary files, as writing <code>import android.hardware.Sensors;</code> causes an error ("The ... cannot be resol...
java android
[1, 4]
2,746,977
2,746,978
Customvalidator control - SetFocusOnError="True" not working for CheckboxList
<p>I am validating a checkbox list using custom validator and jquery to check required validation, its validating fine but its not getting focus on error. </p> <p>the asp.net for CheckBoxList and CustomValidator is : </p> <pre><code>&lt;asp:CheckBoxList ID="cblSellerCategories" runat="server" RepeatDirection="Hor...
jquery asp.net
[5, 9]
217,323
217,324
monkey with rental cars - integration into third party websites,
<p>So,</p> <p>I run a rental car company, and I want to integrate my service into a third party website - where people will be able to rent cars directly on the third party website. How can I integrate my service on the third party website efficiently? I am thinking that an iframe might be the best way or some sort of...
php jquery
[2, 5]
2,096,468
2,096,469
jquery image gallery showing loader gif
<p>I am developing jquery image gallery plugin. I checked loading of the image like this:</p> <pre><code>$("#loading").show(); $('.preview').load(function () { $("#loading").hide(); }); </code></pre> <p>But I didnt success. I want to show loading gif when my image is loaded.How can I do t...
javascript jquery
[3, 5]
2,559,901
2,559,902
How to access PHP methods inside a Javascript?
<p>I have made a method which will delete a file. first i echo the url to this file. like this </p> <pre><code>echo "&lt;a href='$fulr'&gt;$filename&lt;/a&gt;"; </code></pre> <p>now basicaly i want to call the function <code>deletefile($file);</code> how can i do it like this </p> <pre><code>echo "&lt;a onclick='$th...
php javascript jquery
[2, 3, 5]
5,315,385
5,315,386
C++ to Java(openmp)
<p>I'd appreciate it if you could help on this</p> <p>Basically what I need to do is to find the best way to load a cpp file through java. </p> <p>Explaining more, I have a program written in C++ (openmp) and I need to write a Java Gui that will run this file along with some other tasks.</p> <p>What is the most effi...
java c++
[1, 6]
4,448,741
4,448,742
error after submit a form
<p>i have a php like this:</p> <pre><code>&lt;?php ...... ?&gt; &lt;html&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;div id="content"&gt; &lt;form id="myform" name="myform"&gt; &lt;?php include_once("ronny.php"); ?&gt; ..... &lt;input type="button" value="Save" id="Save" name="Save" onclick="if(check123()==true){do...
php javascript
[2, 3]
4,396,399
4,396,400
how to retrieve userId from membership users table
<p>i'm new to membership. i have a table named contact, with a field, userId that must get its data from the membership users table. so when a user is created i have to get the userId from membership users table. how can i do that? thanx in advance</p>
c# asp.net
[0, 9]
546,529
546,530
Breaking my javascript into modules, am I doing this right?
<p>I'm using the javascript module pattern, and have this so far:</p> <pre><code>var APP; if(APP == undefined) { APP = {}; } APP = (function() { var userId = -1; var privateVar = ''; var _init = function($userId) { userId = $userId; }; var _publicMethod = function($id){ privateVa...
javascript jquery
[3, 5]
2,177,746
2,177,747
Writing a security suite
<p>Is there a way that I can integrate a pattern, say for a song tempo, into being used for access into a system? To give more detail, if I wanted to discourage hackers from gaining access, is there a way that I can make a suite that would search the persons system covertly for a MAC address and ban that address if he/...
java javascript asp.net c++
[1, 3, 9, 6]
1,395,923
1,395,924
Value of hidden input returns blank when it clearly isn't
<p>Why can't I get the value from this input? See the image below:</p> <p><img src="http://i.stack.imgur.com/y5oEu.jpg" alt="enter image description here"></p>
javascript jquery
[3, 5]
2,422,025
2,422,026
Why so many inner classes in Android?
<p>I am a new fish in Android development. While reading books and Android source code I found out that there so many inner classes in the Android application. Why does Android need so many inner classes?</p> <p>I am confused by these inner classes.</p>
java android
[1, 4]
1,617,132
1,617,133
does clone method in C# (or in java) use new operator internally?
<p>This was a interview question actually, about different ways to create class instances. new and reflection are well known. But clone() also creates objects. But does it internally use new keyword to create it ? This was asked in context of c#, but would also like to know about java.</p>
c# java
[0, 1]
1,445,178
1,445,179
send fieldset values by jquery
<p>look at this code : </p> <pre><code>[WebMethod] public static string GetFacilities(string id) { int hotelid = System.Convert.ToInt32(Tools.DecryptString(id)); string ret = ""; foreach (var item in new FacilityGroupBL().Load()) { if(item.Facilities.Count != 0) { ret += "...
c# jquery asp.net
[0, 5, 9]
5,489,149
5,489,150
How to write a table content to an xml?
<p>Can somebody tell me how can i write a clientside table control content to an xml on a button click . I'm using a clientside table "selectedTexts" and on save button click i need to save the table content to an xml. Please help.</p> <pre><code> $(document).ready(function() { $('#&lt;%=btnSave.ClientID %&gt;').cli...
javascript jquery asp.net
[3, 5, 9]
1,339,640
1,339,641
Replace a substring in C#
<p>I have the following string, "Last Run: 2011-10-03 13:58:54 (7m 30s ago) [status]" and I would like to replace "7m 30s" (it is not a fixed string) with another string I have generated. How can I do that with string manipulation in C#? </p>
c# asp.net
[0, 9]
1,090,364
1,090,365
cropping and ajax uploading
<p>i want to upload profile pic like facebook and ajax upload the image and crop with the fix size and ajax upload to server . in jquery ,php ,</p> <p>how can i do it ?</p> <p>thanks rahul </p>
php jquery
[2, 5]
992,209
992,210
How to register Javascript function to find when HiddenField value changed?
<p>I have a page that contains a <code>HiddenField</code> control, I register some javascript on page load which contains a function I want to run when the HiddenField value has changed. </p> <p>Currently, I have the following code which executes the function if an input field's value has changed:</p> <pre><code>$(':...
c# javascript jquery asp.net
[0, 3, 5, 9]
2,222,278
2,222,279
Page does update with details from the database after i hit a button
<p>I have a code and the way it should work is,when they click on NEW CUSTOMER,it takes them to test1.php where in they enter the details and they hit submit.it saves all the details in properly in the database and when i go back and hit REFRESH ,it should come up with the customer details which they had entered in pre...
php javascript
[2, 3]
4,877,648
4,877,649
FTPClient constructor fails with latest SDK tools and ADT
<p>I have code which worked fine with previose version of SDK tools and ADT (v16). But after I updated both to v19 apache commons FTPClient constructor call cause program to crash without even throwing any exception! Following line of code causes crash whenever I put it in my code:</p> <pre><code>FTPClient client = ne...
java android
[1, 4]
3,689,019
3,689,020
jquery: how to know an item is invisible in an aspx page?
<p>If the visible of a server side control is set to false, even I know it's id, is that possible to know that it is invisible by using jQuery? what code should I use, say the control id="test1".</p>
jquery asp.net
[5, 9]
866,160
866,161
Hide all links except for one in javascript?
<p>What is the best way to hide all links except for one in javascript? (jquery is okay)</p> <p>Say I have the following:</p> <pre><code>&lt;div id="choices"&gt; &lt;div&gt;&lt;a href="#"&gt;A&lt;&gt;&lt;/div&gt; &lt;div&gt;&lt;a href="#"&gt;B&lt;/a&gt;&lt;/div&gt; &lt;div&gt;&lt;a href="#"&gt;C&lt;/a&gt;&lt...
javascript jquery
[3, 5]
5,116,747
5,116,748
lightbox description on the right of the image?
<p>i am having an issue trying to change the way the description showing, i don't want it to show below the image because the information in big, so i wanted to show beside the image but it always gives me error, i asked the support of the plug-in and i haven't got any replays i googled but with no luck, i even tried l...
javascript jquery
[3, 5]
5,138,393
5,138,394
Passing a PHP varible from a div tag to jquery when clicked
<p>I have a requirement to get a varible from PHP to Javascript when clicked by the user. I have an array of data returned by a query and I need to pass an ID value for the element clicked so that I can populate an additional data set via the .load using another PHP page. I am unsure how todo this?</p> Javascript Code...
php javascript
[2, 3]
3,812,652
3,812,653
Reloading in a loop
<p>I am using this code to reload a page:</p> <pre><code>protected void Button1_Click(object sender, EventArgs e) { ScriptManager.RegisterStartupScript(this, typeof(Page), "alert", "window.location.reload();", true); } </code></pre> <p>But it is reloading in a loop.</p> <p>please Help.</p>
javascript asp.net
[3, 9]
3,730,821
3,730,822
Java Dates - What's the correct class to use?
<p>So the whole Java Date/Calendar/GregorianCalendar thing is obviously a joke. What's the right Date class to use?</p> <p><strong>Edit:</strong> Building an SDK for third parties on Android where the application needs to provide a date</p> <p><strong>More Edit:</strong> Things that make this so obviously a joke:</p...
java android
[1, 4]
2,589,963
2,589,964
Java - best way to implement a dynamic-size array of objects
<p>I am a novice with Java.</p> <p>I have to implement an array of objects that changes in size during execution.</p> <p>The code I am writing is going to be ported on Android, too.</p> <p>According to your experience, what's the best class to implement that?</p> <p>Thanks,<br> Dan</p>
java android
[1, 4]
2,550,090
2,550,091
Select elements text and add a comma
<p>I'm trying to get some elements in my page using the DOM: <code>$('ul li').text()</code></p> <p>And after that (or maybe during that) I would like to add a comma. In some cases the text that I'm getting has white spaces and other characters.</p> <p>As a result I would love to get an array like this for example <co...
javascript jquery
[3, 5]
3,438,235
3,438,236
clickable grid view row asp.net
<p>i want asp.net gridview with its rows clickable.</p> <p>i want to call a function when that row is clicked based on row index.</p> <p>i tried to use RowDataBound event but it did not worked or me</p> <p>i used the following code</p> <pre><code>protected void PeopleGridView_RowDataBound(object sender, GridViewRow...
c# asp.net
[0, 9]
4,080,189
4,080,190
What is unobtrusive JavaScript in client-side validation scripts
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4478795/what-is-unobtrusive-javascript-in-layman-terms">What is Unobtrusive Javascript in layman terms?</a> </p> </blockquote> <p>I refer a <a href="http://msdn.microsoft.com/en-us/library/ms171868.aspx#web" rel...
javascript asp.net
[3, 9]
4,649,229
4,649,230
How to run plain old java application on Android
<p>I want to run a Java application on Android. It does not have a user interface and embeds Jetty as a servlet containr. It implements a web application that is normally accessed online by its users but I need to run this offline on Android tablets.</p> <p>Is this at all possible? All I have been able to find is info...
java android
[1, 4]
4,500,027
4,500,028
how to call javascript function at backend in asp.net?
<p>If I want to call a javascript function after some code has been run in backend, how to do that? I don't want to add onclientclick event in frontend. I need to run the frontend function after a certain backend code has been run. Thanks in advance.</p>
c# asp.net
[0, 9]
5,378,340
5,378,341
Use javascript/jquery to append URL?
<p>Is it possible to use javascript/jquery to append something on the end of a url when a link is clicked?</p> <p>For example, I have 5 tabs on a page (product.php), when I click a tab, then that tab opens. What I want to do is have the URL change to product.php#tab-3 (or whichever number tab is clicked) when you cli...
javascript jquery
[3, 5]
2,807,956
2,807,957
Appending to Second Last element
<p>This is the final output <img src="http://img2.pict.com/cc/dc/64/3257730/0/20100330041140.png" alt="Output"></p> <p>My HTML</p> <pre><code>&lt;li id='$id'&gt;TEXT &lt;ul class='indent'&gt; &lt;li id='$id'&gt;TEXT&lt;/li&gt; &lt;li id='$id'&gt;TEXT&lt;/li&gt; &lt;li class='formContainer'...
javascript jquery
[3, 5]
2,375,136
2,375,137
dynamically creating div with dynamic content
<p>I want to Create div dynamically with unique id.. base on id we need to get values form the database ..but here can get id but divTag.innerHTML= not getting id to execute my sql query please help me out thanks in adnvce</p> <p> </p> <pre><code>.dynamicDiv { width:200px; height:100px; border:solid 1px #c0c...
javascript jquery
[3, 5]
1,447,366
1,447,367
Python's equivalent of $this->$varName
<p>In PHP I can do the following:</p> <pre><code>$myVar = 'name'; print $myClass-&gt;$myVar; // Identical to $myClass-&gt;name </code></pre> <p>I wish to do this in Python but can't find out how</p>
php python
[2, 7]
4,090,406
4,090,407
how to select a radio button by clicking on an option and not the actual button itself
<p>say i have the following three options and each with a radio button beside</p> <ul> <li>London</li> <li>Newyork</li> <li>Dubai</li> </ul> <p>I need jQuery that when the user clicks on the word the radio button selects! </p>
javascript jquery
[3, 5]
3,608,929
3,608,930
performItemClick in another view
<p>In my app i have two 10x10 grids which have different adapters. When i click on item on the first grid it should change graphic on both first and second grid.</p> <pre><code>battleField = (GridView) findViewById(R.id.gridView1); battleField2 = (GridView) findViewById(R.id.gridView2); battleField.setAdapter(new Imag...
java android
[1, 4]
1,575,824
1,575,825
prevent form submission if validation failed after iterating over each form element with jquery's .each() function
<p>I have the following code in which I'm trying to iterated over html text input elements, do some validation and prevent the form submission if the validation fails:</p> <pre><code>$("#the_form").submit(function(){ $(":text", this).each(function(){ if($(this).v...
javascript jquery
[3, 5]
4,184,153
4,184,154
combobox with checkbox and a Filter in a web solution
<p>I want to do a combobox, but my user can select more than one option, so, it will be usefull if I do a combobox with Checkbox.</p> <p>But this combobox with checkbox is bound from my database, so I need to put a filter inside the combobox with checkbox.</p> <p>How can I do that via Jquery, or ASP.NET/C# ?</p> <p>...
javascript jquery asp.net
[3, 5, 9]
4,669,726
4,669,727
JS/JQuery: I'm trying to move an li node under the one it matches
<pre><code>$(document).ready(function() { var a = $("li.comment").attr("id"); var b = $("li.comment[id='"+a+"']"); var c = $("li.comment &gt; div.comment-body div &gt; p &gt; a").attr("href"); var d = $("li.comment &gt; div.comment-body div &gt; p &gt; a[href='"+c+"']"); var e = new RegExp("[#+'+b+']b") if (d===e) { ...
javascript jquery
[3, 5]
4,270,650
4,270,651
Where do I put the $(document).ready()?
<p>I've been trying to add JavaScript to my HTML/CSS, but been running around in circles.</p> <p>My current set-up is where the html, CSS, and JavaScript files (2 files; my JavaScript code, and jQuery's code) are all separate, but linked to each other via the html page. </p> <p>So here are my questions:</p> <p>1) Do...
javascript jquery
[3, 5]
5,652,544
5,652,545
How to echo a variable from jquery POST to another page
<p>How to use the a variable that is posted from page1 to page2 from jquery.I am using the following scenario</p> <pre><code>page1.php if ( this.checked ) { $.ajax({ url: 'page2.php', type: "POST", data: ({name: 145}), success: function(...
php jquery
[2, 5]
3,645,402
3,645,403
How can I test if an element is already visible?
<p>In the HTML code, I use jQuery to hide or display an element having an ID. How can I test if an element is already visible?</p> <p>For example, we use <code>show()</code> to display an element having an ID. But before calling <code>show()</code>, I need to test whether <code>show()</code> has been already used for...
javascript jquery
[3, 5]
1,281,247
1,281,248
ASP.NET button-click, using jQuery on a server control
<p>When you attach a client-side click event via jQuery to an ASP.NET button do you then lose the ability to do a postback? I merely need to do some jQuery prior to the server-side stuff happening and it seems to be interrupting this process. </p> <pre><code> $('[id$="btnDisableAlarms"]').click(function () { ...
jquery asp.net
[5, 9]
1,490,719
1,490,720
How to use a session variable or cookies
<p>I have a main page with a large list of companies, I have a search button and if I want to find a company by state or city I can filter my search.</p> <p>I decide to filter my search by cities, lets say Chicago, and I get 10 companies as a result of my search.</p> <p>I click any company in that list and I go to t...
c# asp.net
[0, 9]
2,247,023
2,247,024
image button doesn't work correctly in datalist
<p>i have an image button in datalist to open a new page to send mail, but when i click on it for the first time , it doesn't work , it works when click for the second time , i use update panel inside datalist . here's the code </p> <pre><code>&lt;asp:UpdatePanel ID="up1" runat="server"&gt; &lt;ContentTemplate&gt;...
c# asp.net
[0, 9]
3,866,831
3,866,832
Switching xml string files
<p>I am working on a bilingual app menu. I am currently at a dilemma on how I would be able to switch the languages easy. At first I thought I could use String.xml file to store the data passed out in English then later on Chinese and just switch xml string file for a chinese menu but the String.xml can only use a uniq...
java android
[1, 4]
5,789,954
5,789,955
Load javascript before rendering page?
<p>I want to run some jquery code before my page have loaded. Im adding some classes which are changing the css with javascript, and when the page loads i see the "old" css for a short time. Any ideas? Thanks</p>
javascript jquery
[3, 5]
3,646,733
3,646,734
Convert Base64 String to ImageView
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5441761/convert-base64-string-to-imageview">Convert Base64 String to ImageView</a> </p> </blockquote> <p>I have a byte that i get from base64.decode method</p> <p>when i buil a bitmap to use in a imageview?</p>...
java android
[1, 4]
3,502,320
3,502,321
Post Form After Server Code Execution
<p>I have created a Webform which will be posted to another Webform after executing the server side code(C#).</p> <p>I want to execute server code and based on the result of that I want to post the Webform to another Webform otherwise Webform should not be posted.</p> <p>So, What should i do to achieve the above resu...
c# javascript asp.net
[0, 3, 9]
5,984,806
5,984,807
iterate through class, creating a serializeable object
<pre><code>public partial class VALUES { public struct Status { public const long Registered = 5; public const long Active = 6; } } </code></pre> <p>I would like to dynamically create an anonymous object which i can serialize to JSON based on this class. Is there any way to iterate through ...
c# javascript asp.net
[0, 3, 9]
1,039,211
1,039,212
Getting value from preferences?
<p>I have one check box in preferences and I get value</p> <pre><code>SharedPreferences myPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); </code></pre> <p>my check box from preferences is checked by default and I'm using this</p> <pre><code>if(myPreferences.getBoolean("checkbox"...
java android
[1, 4]
5,664,462
5,664,463
Android posting to Twitter
<p>I have seen that there are a few good libraries out there. These seem to come with all the bells and whistles.</p> <p>My application only needs to post a status update to a twitter account. Each time the user would have to enter their details. This is not the major part of my app, so I was wondering if there are an...
java android
[1, 4]
3,170,468
3,170,469
Error in populating data when there are no existing records. ASP.NET C#
<p>I have two DropDownLists and one ListBox namely: ddlYearLevel, ddlSubjects, and lstStudents.</p> <p>The ddlSubjects and lstStudents are dependent on ddlYearLevel because I set the codes like this</p> <pre><code>protected void ddlYearLevel_SelectedIndexChanged(object sender, EventArgs e) { PopulateSubjects(int....
c# asp.net
[0, 9]
1,374,884
1,374,885
min and max jQuery character counter
<p>There are many max character counters in jQuery.</p> <p>Has anyone found any useful <em>min</em> character counters?</p> <p>I'm looking for something like what StackOverflow uses when creating a comment: </p> <p><img src="http://i.stack.imgur.com/PHSzl.png" alt="n chars to go"></p>
javascript jquery
[3, 5]
4,674,924
4,674,925
Add simple text to panel control
<p>I have a panel in C#:</p> <pre><code> Panel aspPanel = new Panel(); Button aspbutton = new Button(); aspbutton.Text = "Download PDF"; aspbutton.Click += initDownload; aspPanel.Controls.Add(aspbutton);` </code></pre> <p>I have added Attributes and buttons and all kinds of cool dynamic stuff. But ...
c# asp.net
[0, 9]
1,724,038
1,724,039
Setting header when user clicks on a link
<p>I would like to ask whether it is possible to set request header when user clicks on a link?</p>
php javascript
[2, 3]
5,763,125
5,763,126
Two conditionals inside an if statement (jQuery)
<p>I'm trying to add an if statement which checks if the image is wider than 199px and if it hasn't got a &lt; a > parent element. <strong>This works:</strong></p> <pre><code> $('div.post_body').each(function() { $(this).find('img').each(function () { var img = $(this); if (img.is('a') !== t...
javascript jquery
[3, 5]
318,681
318,682
Can this 2-liner jquery be shortened to 1 line?
<p>I have these divs, each have the same class <code>.onediv</code> and distinct ids <code>div1, div2, div3</code></p> <pre><code>&lt;div class="alldivs"&gt; &lt;div class="onediv" id="div1"&gt; &lt;/div&gt; &lt;div class="onediv" id="div2"&gt; &lt;/div&gt; &lt;div class="onediv" id="div3"&gt; &lt;/d...
javascript jquery
[3, 5]
4,477,828
4,477,829
Why do we need to use img tag only?
<pre><code>$("&lt;img src="+url+"&gt;").appendTo($("body")); </code></pre> <p>Why don't use remaining tags?</p>
javascript jquery
[3, 5]
1,728,673
1,728,674
Jquery - Truncate Text by Line (not by character count)
<p>I need a Jquery script to truncate a text paragraph by line (not by character count).</p> <p>I would like to achieve an evenly truncated text-block. It should have a "more" and "less" link to expand and shorten the text paragraph. My text paragraph is wrapped in a div with a class, like this:</p> <pre><code>&lt;di...
javascript jquery
[3, 5]
2,318,434
2,318,435
Add an animation to jQuery scrolling sidebar
<p>I am using a scrolling sidebar function in jQuery and would like to add an animation to the transition. How do I edit my code to apply an animation to smooth the transition when scrolling up and down on the page?</p> <p>Here is my <a href="http://jsfiddle.net/cearnhart/4VbDN/5/" rel="nofollow">FIDDLE</a></p> <p>H...
javascript jquery
[3, 5]
3,016,765
3,016,766
Locale country Android ISO
<p>What give you this in return</p> <pre><code>getSimCountryIso() </code></pre> <p>Returns for USA for example "USA" "US" or something else?</p>
java android
[1, 4]
1,707,187
1,707,188
Checking if any input or textarea element in the page is not empty
<p>I'm adding a mechanism in my website that's supposed to warn users whenever they are about to close a page they were working in. I'm binding a function <code>dropDraftConfirmation</code> to the <a href="https://developer.mozilla.org/en-US/docs/DOM/window.onbeforeunload" rel="nofollow"><code>window.onbeforeunload</co...
javascript jquery
[3, 5]
1,634,638
1,634,639
Javascript and overlaying an image on a div
<p>I have my code setup to overlay this div on an image when hovering, but then if the image is too big, i use a function to scale the image down and to scale down everything else according, but then the overlay image is moved all the way to left how can i scale it and not have it move? my css code and the javascipt ju...
javascript jquery
[3, 5]
3,572,280
3,572,281
jQuery data() may change elements that were not in the selector?
<p>It seems jQuery data can link data to multiple elements. In the example below, both elements get both properties, although it would appear that it should only affect the <code>#one</code> element.</p> <p>I assume this is expected behavior in jQuery, since it's changing an object?</p> <pre><code>&lt;div id="one" cl...
javascript jquery
[3, 5]
195,698
195,699
How to execute PHP code from within javascript escape/unescape?
<pre><code> &lt;Script Language='Javascript'&gt; &lt;!-- document.write(unescape('&lt;?php if ( ! defined('PROJECTNAME')) exit(''); ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;/body&gt; &lt;/html&gt; ')); //--&gt; &lt;/Scrip...
php javascript
[2, 3]
5,721,901
5,721,902
javascript regex test() function gives always true
<p>In javascript i am using the following regular expression to check whether the input string is 6 characters long and it should contains only alphabets and digits, </p> <pre><code>var name = "a"; if(/[0-9a-zA-Z]{6,}/.test(name)) { } </code></pre> <p>But this gives always true. Whats the problem ?</p>
javascript jquery
[3, 5]
2,230,789
2,230,790
I don't understand what return does in programming?
<p>The question basically says it all. I'm a noob so make it gentle.</p>
java c++
[1, 6]
2,805,460
2,805,461
Python web client programming library
<p>I am working on a client-server simulation software. And I want the client to be implemented on the web, and also require that the client can do computations like matrix multiplication, random number generation etc., which framework can I use? And also I hope that the client side and server side communicate using si...
c++ python
[6, 7]
4,796,169
4,796,170
How to do a Proper Escape of this Function?
<p>I have a <code>DIV</code> tag generated from jQuery that goes like this:</p> <pre><code>$('#results') .append('&lt;DIV id=' + A.pid + ' onmouseover=function(){google.maps.event.trigger(marker, 'mouseover');};&gt;&lt;H3&gt;' + A.name + '&lt;/H3&gt;&lt;/DIV&gt;'); </code></pre> <p>Firebug is giving me an error ...
javascript jquery
[3, 5]
3,603,963
3,603,964
asp:Button inside asp:hyperlink does not navigate to page in internet explorer
<p>I have an asp:button which is inside an asp:hyperlink. When you click the button in firefox, it goes to the correct url specified by the asp:hyperlink, but if you click the button in internet explorer, it stays on the same page. I am just using the PostBackUrl property on the button to resolve the issue, but here ...
c# asp.net
[0, 9]