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
172,050
172,051
if empty between tag <ul> give alert.?
<p>I want if empty between tag <code>ul</code> alert <code>hello</code>. how is it?</p> <pre><code>&lt;button class="click"&gt;Click&lt;/button&gt;&lt;p&gt; &lt;span&gt; &lt;ul&gt;&lt;/ul&gt; &lt;/span&gt; </code></pre> <p>js:</p> <pre><code>$('.click').click(function() { if('span ul' == ''){alert('hello')}...
javascript jquery
[3, 5]
395,456
395,457
Android mapview load data from php while zooming to location
<p>I have 16000 records on server and i need to display around 200 records aprrox. based on user location. then i need to show remaining while user does mapview panning. if i populate 200 records while loading app then it takes long time to show map.how to overcome this? for mapview i have android and for backened i h...
php android
[2, 4]
2,460,358
2,460,359
Unresponsive Fade-In Fade-Out in Jquery
<p>I am implementing a twitter-style follow/unfollow functionality with the following jquery.</p> <pre><code>$(function() { $(".follow").click(function(){ var element = $(this); var I = element.attr("id"); var info = 'id=' + I; $("#loading").html('&lt;img src="loader.gif" &gt;'); ...
php javascript jquery
[2, 3, 5]
2,834,349
2,834,350
event attach with on is not unbinding
<p>I am loading <code>.html</code> file using jquery <code>load()</code> function. The html file which i am loading </p> <p>contains some script, in that script there is <code>keydown event</code> binded with the document, </p> <p>like : <code>$(document).on("keydown", handler);</code>. Now in the callback o...
javascript jquery
[3, 5]
643,651
643,652
Using core jQuery, how do you remove all the options of a select box, then add one option and select it?
<p>Using core jQuery, how do you remove all the options of a select box, then add one option and select it?</p> <p>My select box is the following.</p> <pre><code>&lt;Select id="mySelect" size="9" &lt;/Select&gt; </code></pre> <p>EDIT: The following code was helpful with chaining. However, (in Internet&nbsp;Explorer)...
javascript jquery
[3, 5]
2,240,496
2,240,497
Javascript & ASP .NET problem
<p>I'm having some problems with implementing javascript controls in my asp.net page. I would like to have a set of variables get their values based on some asp button controls. Then I manipulate those buttons based on how they are clicked. I'm having some issues though:</p> <ol> <li>Any global variables I define a...
javascript asp.net
[3, 9]
2,163,930
2,163,931
Programmatically Setting Text of Validation Control
<p>I have following validator control. How can we set the <code>color</code> of <code>Text</code> of this control from code behind?</p> <p>Note: Text of the control is <code>*</code> as shown in the code below.</p> <p><strong>CODE</strong></p> <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPl...
c# asp.net
[0, 9]
2,674,589
2,674,590
pause jQuery function for 5 seconds before script returns true and posts
<p>Im using jQuery to post a form to a database, before posting the HTML form to a remote server via the form action method.</p> <p>All works fine, but I am trying to build in a message pre-the server POST , so is there a way that just before my jQuery function returns true to get it to pause for 5 seconds and display...
php jquery
[2, 5]
5,689,069
5,689,070
Refresh table after using jQuery .append()
<p>The following code gets a JSON object and then spits its contents out into a <code>&lt;table&gt;</code>. The first time I do it I get my JSON content just fine. However, when I refresh, the refreshed data is stuck onto the bottom of my table. How do I refresh the data to show the new data only? I tried using <co...
javascript jquery
[3, 5]
2,123,730
2,123,731
How to set a text for dropdown list in Action Bar?
<p>I've made a dropdown list with the following code:</p> <pre><code>ActionBar actionBar=getActionBar(); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST); SpinnerAdapter adapter=new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_spinner_dropdown_item, new String[]{"1", "2"}); actionBar.setListNav...
java android
[1, 4]
2,556,165
2,556,166
Meaning of wrap in jQuery
<p>What does the meaning of wrap here?</p> <pre><code>// wrap this with jQuery var $foo = $(foo); </code></pre>
javascript jquery
[3, 5]
1,555,453
1,555,454
JQUERY: Hide Dropdownlist1 when Dropdownlist2 = "certain value"
<p>Basically I'm trying to hide dropdownlist1 when dropdownlist2's selected value is "example".</p> <p>Is this possible with jquery?</p>
javascript jquery asp.net
[3, 5, 9]
2,040,066
2,040,067
jQuery - dynamic table calculations break when adding .toFixed(1)
<p>In my efforts to solve a rounding problem I've broken the dynamic updating of totals that was previously working fine.</p> <p>If you look at this JSFiddle:</p> <p><a href="http://jsfiddle.net/fmdataweb/73Jzc/1/" rel="nofollow">http://jsfiddle.net/fmdataweb/73Jzc/1/</a></p> <p>you will see as you change the select...
javascript jquery
[3, 5]
1,532,963
1,532,964
Dismissing an Android popupwindow
<p>I use a popupwindow in my activity that i would like to dimiss, but i see the following documentation about the dimiss() method for popup windows:</p> <p>public void dismiss () Since: API Level 1</p> <p>Dispose of the popup window. This method can be invoked only after showAsDropDown(android.view.View) has been ex...
java android
[1, 4]
959,667
959,668
jquery form submitting
<p>index.php</p> <pre><code>&lt;form method="post" action="read.php"&gt; &lt;p&gt;Name: &lt;input type="text" name="name" value="" /&gt;&lt;/p&gt; &lt;p&gt;&lt;button type="submit"&gt;Okay&lt;/button&gt;&lt;/p&gt; &lt;/form&gt; </code></pre> <p>i'd like to send name value to read.php without refreshing the pa...
php jquery
[2, 5]
224,279
224,280
Convert client time to utc time to save into sql
<p>How could I go about having a client in various time zones select a date and time in their web browser and save it as utc time in my sql database? This date is a date in the future, so whether or not the date is in daylight savings time could change so I'll need to account for that.</p> <p>The site is a asp.net c#...
c# asp.net javascript
[0, 9, 3]
1,045,868
1,045,869
how to get a variable from a link using jquery and php?
<p>i have this script on <a href="http://jsfiddle.net/patrioticcow/HysJ6/7/" rel="nofollow">jsfiddle</a></p> <p>basically this links:</p> <pre><code> | &lt;a id="mine_click" href="#?test=123"&gt;test&lt;/a&gt; | | &lt;a id="mine_click" href="#?test=123"&gt;test1&lt;/a&gt; | | &lt;a id="mine_click" href="#?test=12...
php javascript jquery
[2, 3, 5]
3,985,355
3,985,356
Pop up window in asp.net?
<p>How can i bring up my messages in a pop up window with asp.net-C#? im cool with javascript ! Is there any idea related with c#?</p>
c# asp.net
[0, 9]
267,561
267,562
Java Support For C# Indexers
<p>How can Java support C# indexers?</p>
c# java
[0, 1]
1,392,109
1,392,110
Jquery change event
<p>Can somebody help me to solve this problem?</p> <p>I have form. The form contains these fields.</p> <ul> <li>Principal - textfield1</li> <li>Interest - textfield2</li> <li>Service Charge - textfield3</li> <li>and Total. - textfield4</li> </ul> <p>Scenario is this:</p> <p>I will input an amount of (2000.00) in Pr...
javascript jquery
[3, 5]
1,839,748
1,839,749
How to achieve this zooming and unzooming functionlaity
<p>I'm hoping someone can point me in the right direction with regards to achieving this effect from Mozilla Firefox, when clicking on a video thumbnail as I would also like to achieve this with photos as well, i.e, See:></p> <p><a href="http://en-gb.www.mozilla.com/en-GB/firefox/3.5.1/whatsnew/" rel="nofollow">http:/...
javascript jquery
[3, 5]
3,188,943
3,188,944
does android sdk give any convenience methods for converting Shape to Path?
<p>the Canvas class does not take Shape as a parameter for any of its methods. There is no drawShape or clipShape, etc... So, I need to use Path instead. Does android sdk expose any way to convert Shape to Path or Path to shape? I haven't been able to find relationship any between the 2 classes...?</p> <p>Thank yo...
java android
[1, 4]
12,756
12,757
make my browser blink as indicator
<p>My coworker wrote a quick mvc chat application so we can chat about work stuff without leaving our desks. </p> <p>What are some ways to indicate to each other a new message has been posted? My first thought was make the browser title bar flash. Anyone know how?</p>
javascript jquery
[3, 5]
3,736,454
3,736,455
Remove Complete Li with Specific Javascript
<p>Hello I want to remove a complete li with input only if you clicked on the [x] how i can do this ?</p> <p><strong>UPDATE</strong> Here is a demo for my problem.. <a href="http://jsfiddle.net/vPU9z/3/" rel="nofollow">http://jsfiddle.net/vPU9z/3/</a></p>
javascript jquery
[3, 5]
3,257,249
3,257,250
Hide / show on condition in javascript
<p>I want to hide and show a button on a particular condition in JavaScript.</p> <p>Code:</p> <pre><code>$(function(){ // hide the div initially $("#a").hide(); // Check to see if there is 250 in the url var bal_amount = document.getElementById('balance_amount'); if (bal_amount.value &gt; 0) { ...
javascript jquery
[3, 5]
3,371,227
3,371,228
I Need Try Catch Use, Exception Handling and Refactoring Advice
<p>Should I frequently use try catch blocks and how do I determine when and where I need them the most? Also what should do with the exception when it gets caught as a normal practice on small to medium scale departmental business applications? Also is there a free tool to help me locate duplicate code or code that w...
c# asp.net
[0, 9]
2,162,642
2,162,643
sort gridview with dynamic linq
<p>I have a gridview with several columns, 3 of which I'd like to sort. The source for the data is held in the session.</p> <pre><code>protected void MyGridHistorySort(object sender, GridViewSortEventArgs e) { var TheColumn = (e.SortExpression).ToString(); TheDataHistory = (List&lt;ViewDataHistoryModel&gt;)Se...
c# asp.net
[0, 9]
2,238,822
2,238,823
Banner Fade In Jquery not working
<p>My banner works in most of the browsers except in IE 7,8 and I think 9. At the bottom of the banner, when fadein is in effect, shadows under the banner go black:</p> <p><img src="http://i.stack.imgur.com/J1ZSk.png" alt="Black shadows under the banner"></p> <p>Can anyone help me? </p> <p>Website: <a href="http://w...
javascript jquery
[3, 5]
871,307
871,308
How can I call a specific page everytime than a event occurs?
<p>I have this follow code in my javascript.</p> <p>I call this function when the user click in a specific checkbox and then I just change the image of this checkbox.</p> <p>the problem is that my ExportaZap are accessed just one time, for example, if a click now in my checkbox, I call ExportaZap.ashx and then change...
javascript jquery
[3, 5]
5,153,464
5,153,465
make div text disappear after 5 seconds using jquery?
<p>i need to make a div text disappear after x seconds of displaying it using an ajax call</p> <p>can you help me on this please ?</p> <p>thanks</p>
javascript jquery
[3, 5]
107,654
107,655
How do I change dynamic page title while .load()
<p>How to change my page title <code>&lt;title&gt;&lt;/title&gt;</code> after content is loaded in <code>#container</code> div?</p> <pre><code>$(document).ready(function () { $("a.view").live('click', function () { var id = $(this).data("id"); $('#container').load("view.php?" + id); }); }); </c...
php jquery
[2, 5]
4,317,830
4,317,831
JQuery: How to loop through all child elements of a div
<p>I am trying to loop through all elements in a given div and output the results (C# code i will use later) to the screen for testing.</p> <p>so if i have html like this:</p> <pre><code> &lt;div id="testDiv"&gt; &lt;test&gt; &lt;a&gt;aVal&lt;/a&gt; &lt;c&gt; &lt;cc&...
javascript jquery
[3, 5]
4,436,106
4,436,107
How to set height for the listview that created dynamically through java code?
<p>I 'm trying to set the height of the listview which has been created through java code dynamically. I'm using 3 listviews(one below another) in a scrollview(to avoid hiding of lists). If i use scroll view, i cannot see all the list items of the listviews.Is there any idea to set height for those 3 list views through...
java android
[1, 4]
1,978,736
1,978,737
How to check location.href is completed?
<p>I want open a window and then does something after it finishes loading, is there an easy way to do this?</p> <p>my current code is something like:</p> <pre><code>cur_window = window.open( 'http://www.google.com' ) // does something when cur_window finishes loading </code></pre> <p>thanks</p>
javascript jquery
[3, 5]
4,088,219
4,088,220
jquery ctrl+enter as enter in text area
<p>I am trying to reproduce standard instant messenger behavior on TEXT area control: enter works as send button. ctrl+enter as real enter. </p> <pre><code> $("#txtChatMessage").keydown(MessageTextOnKeyEnter); function MessageTextOnKeyEnter(e) { if (!e.ctrlKey &amp;&amp; e.keyCode == 13) { SendMessage...
javascript jquery
[3, 5]
5,789,093
5,789,094
Upload files to a remote server
<p>I need to upload files from my asp.net (C#) page residing in the web server to a remote server. </p> <p>I managed to upload files to remote server from localhost using this code:</p> <pre><code> string serverPath = "\\\\xx.xxx.xx.xx\\Folder\\" + FileUpload1.FileName; FileUpload1.PostedFile.SaveAs(server...
c# asp.net
[0, 9]
2,791,643
2,791,644
for a newbie,what is the best web app to develop firstly?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/987057/small-projects-ideas-to-teach-beginners-web-developent-using-asp-net">Small projects ideas to teach beginners web developent using ASP.Net</a> </p> </blockquote> <p>I am learning about technical skills to...
c# asp.net
[0, 9]
2,234,876
2,234,877
Finding max/min date in multidimensional JavaScript object
<p>What's the easiest way to find the earliest start date and latest end date from the object below?</p> <p>(Sorry - I realize there are a lot of similar questions already out there, but my JS skills are poor and I haven't been able to apply any of the solutions to my own data. So with that said, a code example would ...
javascript jquery
[3, 5]
3,676,834
3,676,835
How do I toggle a table row display?
<p>I would like to toggle my table row on an .change function in jquery. The desired row is being displayed in this code, how do I hide the other rows at the same time?</p> <pre><code>$(document).ready(function() { $('#ddlSelect').change(function() { var ddlId = $('#ddlSelect').val(); alert(ddlId); ...
c# jquery
[0, 5]
2,618,368
2,618,369
Jquery - is it possible to bind css hover/focus behaviours to keydown?
<p>I hope I can be succinct with my question.</p> <p>Lets say I have some css defined.</p> <pre><code>.someCSS-name:hover &gt; .list-item, .someCSS-name:active &gt; .list-item, .someCSS-name:focus &gt; .list-item { display:block; } </code></pre> <p>Now, in my jquery code how can I create or possible bind a tab press...
javascript jquery
[3, 5]
4,055,812
4,055,813
download images dynamically with jquery in any container
<p>after searching google i got a code which works but this code download all the images at a time</p> <h2>code is</h2> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function () { $("table[id*=dgImages] img").each(function () { $(this).attr("src", $(this).attr("original")); ...
jquery asp.net
[5, 9]
726,703
726,704
Use of weak password to protect Android keystore
<p>Are there any drawback in using weak password to protect Android keystore?</p> <p>Seems even someone stole my keystore file, they can't login into my Android developer console. they can't anything with it, </p> <p>e.g. provide an update for my app</p> <p>Right?</p>
java android
[1, 4]
1,852,387
1,852,388
Convert Document Object to XML Document JQuery?
<p>So I use a:</p> <pre><code> $.ajax({ type: "GET", url: someurl, success: function(data) { } }); </code></pre> <p>If someurl is appropriate, the it returns an XML, if not, it returns a String, which is why I dont specify the dataType parameter. </p> <p>However, when I get...
javascript jquery
[3, 5]
2,831,867
2,831,868
Anchor element in javascript
<p>Where does the value go when an event handler assigned to an onclick event of anchor element returns any value .for example:</p> <pre><code>&lt;a href="some.htm" id="maiz"&gt; &lt;script&gt; function test(){return x=5;} document.getElementById("maiz").onclick=test; &lt;script&gt; </code></pre> <p>will the elemen...
javascript jquery
[3, 5]
2,601,007
2,601,008
Accessing an element in a frame using a jQuery reference to the frame
<p>I have a frame that's nested in an iFrame. <code>&lt;iframe&gt;..&lt;frameset..&gt;&lt;frame id="report"&gt;</code>. I have a jQuery reference, myFrame, to the report frame. I don't have control to the html. I am trying to modify an element in the frame. contents() doesn't work with frames. I tried using a context ...
javascript jquery
[3, 5]
3,970,719
3,970,720
How get current URL from browser
<p>I am writing a system app. I need to know what URLs are currently opened in browser. My application contains <code>Service</code> which determines what app is active in the front. Also my application contains <code>IME</code> (SoftKeyboard) which has access to editable views of the activity of the browser (if my IME...
java android
[1, 4]
5,344,971
5,344,972
jQuery looping command
<p>How can I make this animation repeat continuously from the beginning? <a href="http://jsfiddle.net/philoman/RuX5d/8/" rel="nofollow">http://jsfiddle.net/philoman/RuX5d/8/</a></p> <pre><code>$(document).ready(function() { var i = 1, dir = 1, curFx = 'fadeIn'; var interval = setInterval(function () { if (i == 2 &...
javascript jquery
[3, 5]
5,114,329
5,114,330
jQuery 'if' statement not working
<p>This should be a simple <code>if</code> statement, but it's not working for me. Essentially, when you click an element, I want that element to be highlighted and the ID to be put into a the variable <code>value</code>. However, if in the situation the same element is clicked twice, I want to <code>value = NULL</code...
javascript jquery
[3, 5]
2,452,652
2,452,653
Retain session when calling from a different website
<p>I have two website consider it as <strong>website1</strong> and <strong>website2</strong>.</p> <p>In website2 there is a login page .When a user click on the login button it will call a HTTPhandler in website1 to authenticate user.On successful authentication user information will be stored in a Session variable fr...
c# asp.net
[0, 9]
4,399,952
4,399,953
Passing session to another sub-domain
<p>In C# how can I pass a Session from one sub domain to another sub domain? For instance I am using IIS localhost and I tried to send value from</p> <p><code>http:\\localhost\site1</code> to <code>http:\\localhost\site2</code></p> <p>using the below way</p> <pre><code>In site1 Session["test"] = "My value"; In sit...
c# asp.net
[0, 9]
4,698,564
4,698,565
Calling JavaScript within Php block and vice-versa
<pre><code>echo "&lt;a href=#&gt; Delete &lt;/a&gt;"; </code></pre> <p>Whenever a user hits Delete, a javascript function should be called for confirmation. Somewhere in the Javascript function, php code should be used for delete operation. How do I do that? Use something like "some php code goes here" and "some javas...
php javascript
[2, 3]
3,429,962
3,429,963
find a specific word in a website using asp.net C#
<p>How can I find a specific word in a website using asp.net C#. example, if I in browse cnn.com website and I want to browse a word such as sport in the website, how can i find it using the asp.net C#.</p> <p>thanks</p>
c# asp.net
[0, 9]
909,815
909,816
How to focus first field and select its content, when user clicked on the link?
<p>HTML:</p> <pre><code>&lt;div class="control-group"&gt; &lt;label class="control-label" for="some-id-1"&gt;&lt;a href="http://example.com/some-id-1" target="_blank"&gt;Text1&lt;/a&gt;&lt;/label&gt; &lt;div class="controls"&gt; &lt;input type="text" id="some-id-1" name="some-id-1"&gt;&lt;br&gt; ...
javascript jquery
[3, 5]
4,856,267
4,856,268
By including jQuery and jQuery UI, Am I loading jQuery twice?
<p>I have been playing around with PHP and JavaScript and jQuery and installed a couple of jQuery plugins. Now in my header I have:</p> <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://ajax....
javascript jquery
[3, 5]
3,279,382
3,279,383
get the second tds tag text in this html string
<p>How do I get the text in the second td tag in this html string, can I pass a html string into the JQUERY object and filter through it like this?</p> <pre><code>var t = '&lt;td&gt;a&lt;/td&gt;&lt;td&gt;b&lt;/td&gt;&lt;td&gt;c&lt;/td&gt;&lt;td&gt;f&lt;/td&gt;g&lt;td&gt;h&lt;/td&gt;'; $(t).find("td:eq(1)").html(); <...
javascript jquery
[3, 5]
5,478,664
5,478,665
live search jquery (searching in li title)
<p>I try to search with an input field a list of items,</p> <pre><code>&lt;ul class="display"&gt; &lt;li title="Pizza Otto"&gt;some divs&lt;/li&gt; &lt;li title="Pizza Prono"&gt;some divs&lt;/li&gt; &lt;li title="Pizza David"&gt;some divs&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>The code below works fine for words ...
javascript jquery
[3, 5]
3,544,659
3,544,660
How to get friends Email id from facebook using asp.net code
<p>How to get friends Email id from facebook using asp.net code</p>
c# asp.net
[0, 9]
5,906,408
5,906,409
Android java how to make a edit text transparent but the text still visible?
<p>How can i make a EditText box invisiable but the text still visiable</p> <pre><code>&lt;EditText android:layout_height="wrap_content" android:visibility="invisible" android:text="TestttttttttttttttttTTTTTTTTTTTTTTTTTTTTTTTT" android:layout_width="wrap_content" android:id="@+id/editText1" android:layout_above="@+id/...
java android
[1, 4]
5,224,173
5,224,174
session value lost in asp.net in c#
<p>Am doing wepsite for show images from local drive using asp.net.am using session object for Transfer image path from first page to second page its running nice in vs 2003 .but i converted this website to vs 2005.but session value does't pass to next page.i got null value in session object. am using inproc session mo...
c# asp.net
[0, 9]
5,772,149
5,772,150
Can access a object after postback - ASP.NET
<p>I am really confused with this behavior. Can someone explain this to me?</p> <p>I have the following class structure:</p> <pre><code>public abstract BaseUserControl : System.Web.UI.UserControl { public List&lt;string&gt; listFieldMapper = new List&lt;string&gt;(); } public partial class Property : BaseUserCon...
c# asp.net
[0, 9]
2,223,363
2,223,364
Javascript acting different in two different versions
<p>Let me display the code first and then try to explain the problem.</p> <pre><code>function toggleButton(filter, button) { var buttonOn = false; if ( button.value === "ON" ) { buttonOn = true; } if ( buttonOn ) { button.value = "OFF"; button.className = "btn_tgl btn_tgl_off"; ...
javascript jquery
[3, 5]
1,591,161
1,591,162
Ajax on keyup OR paste
<p>I'm doing an Ajax request on keyup or paste. The problem is that when users use Control-V to paste, two ajax requests occur- one for paste, one for keyup.</p> <pre><code>$("#my-form").bind('keyup paste', function(e) {...} </code></pre> <p>What's a good way to bind on either keyup OR paste?</p>
javascript jquery
[3, 5]
3,292,793
3,292,794
div hides onmouseover event on a link
<p>I have a div and a simple jQuery code that calls the div on an 'onlclick' event and properly hides on 'onmouseout' event. The problem is when I put a text or a link inside this div and move a cursor over the text / link in this div - it triggers out() function effect and dissappears - even if the cursor is still in...
javascript jquery
[3, 5]
4,156,273
4,156,274
Java FileNotFoundException though the file exists.
<pre><code>package com.test.methods; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import android.R; import android.app.Activity; import android.app...
java android
[1, 4]
3,648,118
3,648,119
How to stop/ignore AJAX request (server side)
<p>Please suggest me a best solution: </p> <pre><code>&lt;script language='javascript'&gt; function fst(){ $.ajax({url:"1.php", success:function(result){ //do something }}); } function scnd(){ $.ajax({url:"2.php", success:function(result){ //do something }})...
php javascript jquery
[2, 3, 5]
1,882,334
1,882,335
jQuery - :nth-child() or eq() pattern possible?
<p>I need to select 1st, 4th, 7th, 10th, 13th, 16th etc</p> <p><a href="http://jsfiddle.net/caRxA/" rel="nofollow">http://jsfiddle.net/caRxA/</a></p>
javascript jquery
[3, 5]
4,963,521
4,963,522
how class works in jquery
<p>javascript</p> <pre><code>var name_of_inchatting_class="ch"+inchatting_sub.toString(); var prev_name_of_inchatting_class="ch"+prev_inchatting_sub.toString(); $(prev_name_of_inchatting_class).css({'background-color' : '', 'opacity' : ''}) ; $(name_of_inchatting_class).css({ 'back...
javascript jquery
[3, 5]
3,857,602
3,857,603
Javascript function similar to Python range()
<p>Is there a function in Javascript similar to Python's <code>range()</code>?</p> <p>I think there should be a better way than to write the following lines every time:</p> <pre><code>array = new Array(); for (i = 0; i &lt; specified_len; i++) { array[i] = i; } </code></pre>
javascript python
[3, 7]
350,682
350,683
In jquery, how can I detect if a paragraph contains one link and only one link, nothing else
<p>I want to apply a class 'solo' to a link in a paragraph where that link is the ONLY element in the paragraph. </p> <p>So this would get the 'solo' class:</p> <pre><code>&lt;p&gt;&lt;a&gt;I am alone&lt;/a&gt;&lt;/p&gt; </code></pre> <p>But this would not:</p> <pre><code>&lt;p&gt;&lt;a&gt;I am not alone&lt;/a&gt...
javascript jquery
[3, 5]
5,008,551
5,008,552
Parse array of values - jQuery
<p>Am calling a webservice from my jQuery to fetch both <code>Staff</code> and <code>Student</code> details. In my web service I have values for Staff as well as Students, and am returning these as array of strings. While returning values am just serializing these two as </p> <pre><code>[WebMethod(EnableSession = true...
jquery asp.net
[5, 9]
4,373,778
4,373,779
Invoke the browser back button in PHP/Javascript
<p>I have a form which sends the user to a different form incase they don't complete it to go back to the form and complete anything that was missed. Now unless the user presses the browser back button the page is loaded fresh which mean any data gets lost.</p> <p>Pretty much when they come back to the previous page, ...
php javascript
[2, 3]
516,304
516,305
How can I pass error and other messages up from the DAL / Business layers to the UI layer?
<p>Lots of resources say to let the errors "bubble up" from the lower layers, but I am not sure how to achieve that in my application. Do I need to create a separate utility class for validation or other errors and listen for it at each layer? </p> <p>For example, if user enters a email address and only unique email ...
c# asp.net
[0, 9]
4,823,738
4,823,739
Passing a php variable to javascript and javascript if statements
<p>I have a form that submits on itself with edit, delete add parts.</p> <p>I used a jquery slider to set salary range (It's a job board).</p> <p>The slider sets SalaryR (the range out put for the screen), SalaryMin and SalaryMax to hidden fields for saving to db.</p> <p>What I would like to do is have the range set...
php javascript
[2, 3]
3,421,628
3,421,629
Each div must increments its counter upon clicking
<p>I've three divs. Each div must increment its counter val upon clicking them.</p> <p>HTML:</p> <pre><code>&lt;body&gt; &lt;content&gt; &lt;div id="box1" class="v1" onclick="counter('box1')";&gt;A : &lt;span class="num"&gt;0&lt;/span&gt;&lt;/div&gt; &lt;div id="box2" class="v2" onclick="counter('...
javascript jquery
[3, 5]
4,185,971
4,185,972
each returns "undefined"
<p>Hy guys,</p> <p>I have a table like</p> <pre><code> &lt;table id="table4"&gt; &lt;tr&gt; &lt;td&gt;Id:&lt;/td&gt; &lt;td&gt;Nome:&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;1515&lt;/td&gt; &lt;td&gt;Thiago&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;2...
javascript jquery
[3, 5]
1,725,545
1,725,546
How to change/ get new Session value in a click?
<p>I have a session value and stored it in a text box. and i want to change/get new value on that by a click on a link of any button. { </p> <p>&nbsp;</p> <pre><code> &lt;td valign="top"&gt; &lt;input type="button" id="msg" name="msg"style="background:url(images/bg7.jpg) no-repeat; border: none; color:#FF...
php javascript
[2, 3]
535,656
535,657
How to delay execution in between the following in my javascript
<p>I want to delay execution in betwen the follwoing codes:</p> <pre><code>$("#myName").val("Tom"); ///delay by 3s $("#YourName").val("Jerry"); //delay by 3s $("#hisName").val("Kids"); </code></pre>
javascript jquery
[3, 5]
1,370,174
1,370,175
Android: keep alert in front, so that the user must respond
<p>My application shows an alert that the user must respond to before continuing to do other things. I'm trying to figure out the best way to implement this. Using an Activity for the alert isn't quite working.</p> <p>In my current implementation, the alert is activity (A). When another activity from the same package ...
java android
[1, 4]
4,373,530
4,373,531
Pass variable between functions
<p>I have the following line of code that is executed inside the <code>$(document).ready</code>:</p> <pre><code>$('#sliding_menu_area').toggle(effect, reAlign); </code></pre> <p><code>reAlign</code> is a function that is declared outside of the <code>$(document).ready</code> main function in my <code>.js</code> file....
javascript jquery
[3, 5]
3,167,346
3,167,347
Removing mark-up from unorderded list with jquery
<p>In the follow content I need to remove the mark-up tags <code>&lt;div class="sub"&gt;</code> and <code>&lt;/div</code>> but not it's content with jquery. This is to adapt the menu to a responsive layout.</p> <pre><code>&lt;nav id="top"&gt; &lt;ul&gt; &lt;li class="ti" id="snw"&gt; &lt;a class="mm" href="/snow...
javascript jquery
[3, 5]
2,750,294
2,750,295
Is there a way in javascript to detect when the user scrolls up or down rather then when the user scrolls?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1222915/can-one-use-window-onscroll-method-to-include-detection-of-scroll-direction">Can one use Window.Onscroll method to include detection of scroll direction?</a> </p> </blockquote> <p>I am experimenting with...
javascript jquery
[3, 5]
1,292,314
1,292,315
delaying a statment in jquery?
<p>i have two lines of javascript here, when the toggle function executes i want to delay before the find function happens.</p> <pre><code>$activeToggle.toggle("fast"); // i want this to run and then after 1250 millisec $activeToggle.find(".anime").each(function (i,e){ // this code runs alert(e.id); }); ...
javascript jquery
[3, 5]
4,025,741
4,025,742
How to get Textarea InnerHTML in Code Behind ASP.net
<p>I am using <a href="http://jqueryte.com/" rel="nofollow">jQuery Text Editor</a>, which renders a <code>TextArea</code> tag. I am using <code>runat="server"</code>. </p> <p>But when i am trying to access it through Code behind like <code>txtArea1.Value</code>, i am getting blank string (""). Is there any way to g...
c# asp.net
[0, 9]
1,970,530
1,970,531
How to call inner function in jQuery?
<p>I'm learning jQuery and saw this chunk of code.</p> <p>myJqueryFile.js</p> <pre><code>(function($, undefined) { function Calendar(element, options, eventSources) { var t = this; t.incrementDate = incrementDate; ....some code here function incrementDate(years) { if...
javascript jquery
[3, 5]
2,370,542
2,370,543
Target a link if that link links to the current page?
<p>this may be a stupid question as I can't seem to find an answer :P</p> <p>Is there a way with javascript/jQuery to Target all links on a page ONLY if they link to the current page?</p> <p>Say i've got a static sidebar on ALL pages, for intents and purposes:</p> <pre><code>&lt;ul id="sidebar"&gt; &lt;li&gt;&lt...
javascript jquery
[3, 5]
3,326,956
3,326,957
Difference between HttpContext.Current.Response/Request And Page.Request/Response
<p>Please, can you explain me what is the difference between HttpContext.Current.Response/Request And Page.Request/Response. </p> <p>Thank you</p>
c# asp.net
[0, 9]
3,165,362
3,165,363
Concerned with datalist
<p>I have a datalist. My designer code is like this.</p> <pre><code>&lt;asp:DataList ID="dlView" runat="server" CssClass="basix" RepeatColumns="4" &gt; &lt;ItemTemplate&gt; &lt;tr&gt; &lt;td&gt; &lt;asp:Image ID="imgPlan" runat="server" ImageUrl='&lt;%#GetImage(Eval("ImageName")) %&gt;' /&gt; &lt;/td&gt; &lt;td&gt; ...
javascript asp.net
[3, 9]
565,246
565,247
Create new cookie to edit its value
<p>I know that you can't edit incoming cookies. I have a cookie that I just need to read..nothing more but I have a need to remove some characters from its value so that I can parse it. How can I do this? I don't need to send the modified new cookie back in the response, it's just for my server-side consumption and ...
c# asp.net
[0, 9]
157,216
157,217
Getting the function arguments in javascript like in PHP
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/676721/calling-dynamic-function-with-dynamic-parameters-in-javascript">Calling dynamic function with dynamic parameters in Javascript</a><br> <a href="http://stackoverflow.com/questions/3917243/javascript-array-pa...
php javascript
[2, 3]
974,216
974,217
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]
5,451,288
5,451,289
jquery adding decimal numbers
<p>I'm trying to add together decimal numbers but when i alert the variable <code>finalnumber</code> i get zero. The variable <code>number</code> is a decimal number. How do i solve this so that variable <code>finalnumber</code> is the sum of all <code>number</code>?</p> <pre><code>var finalnumber = 0; $('#chosen-ke...
javascript jquery
[3, 5]
2,720,746
2,720,747
how to hide dive on mouse click $(document).click will hide when I show the index page
<p>I have index page it should show my div with id myajaxdiv how to hide it when a user click n every where in the page? this code will hide it even in index page without any click.</p> <pre><code>$(document).click(function() { $("#myajaxdiv").css({'display':'none'}); }); </code></pre> <p>my div is empty and with ...
javascript jquery
[3, 5]
2,804,417
2,804,418
How can i focus last append value in a textview/ scrollview
<p>I trying to focus the last append value in the text box. But unfortunately i cant able to bring it up. Can you please help me to solve this.</p> <pre><code>&lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="115dp" android:orientation="vertical" &gt; &lt;ScrollView android:id="@+id/ScrollVi...
java android
[1, 4]
3,620,556
3,620,557
How to append image using jQuery .append()?
<p>I could append a string to my table to show the status as such</p> <pre><code>$('#test').empty().append("on") </code></pre> <p>but it would be better if i can display an image instead of a string. i tried this:</p> <pre><code>$('#test').empty().append(&lt;img src="/static/on.png" height="64px" width="64px"&gt;) <...
javascript jquery
[3, 5]
1,992,300
1,992,301
jquery resources for a completely javascript ignorant
<p>I would like to start learning jquery, but I'm definitely a newbie even in plain javascript: any suggestion to get started the proper way ? </p>
javascript jquery
[3, 5]
1,728,192
1,728,193
Difference between assigning function to variable or not
<p>I have a worked a couple different projects and I have seen two different ways of creating jquery/javascript functions. </p> <p>The first:</p> <pre><code>function testFunction(){ }; </code></pre> <p>The second:</p> <pre><code>var testFunction = function (){ }; </code></pre> <p>Is there a difference between th...
javascript jquery
[3, 5]
3,599,727
3,599,728
9 patch image not working
<p>Here is the image: <img src="http://i.stack.imgur.com/zujDz.png" alt="Here is the image"></p> <p>It seem to be working fine in Eclipse, i.e. button is resized as expected and black bars are not shown. However in the emulator it shows up with black bars and stretched. </p> <p>Image is saved as <code>&lt;name&gt;.9....
java android
[1, 4]
5,633,280
5,633,281
How to remove selection from a listbox in html by javascript and jQuery?
<p>After I click an item on a listbox, I'll do this processing then I need to remove this selection as it was at the first time so that I can click the same item again and fire the event of selected index change.</p>
javascript jquery
[3, 5]
4,785,536
4,785,537
Javascript to Jquery, add text in input onclick
<p>How can I change this javascript code to JQuery.</p> <pre><code>&lt;script type="text/javascript"&gt; function addTextTag(text){ document.getElementById('text_tag_input').value += text; } &lt;/script&gt; </code></pre> <p>When a user click the link text automaticaly is added in input.</p> <p>This...
javascript jquery
[3, 5]
3,403,292
3,403,293
Jquery javascript library
<p>I have created some hover popup menus and I need that specific menu to close when I remove the mouse from the popped up menu area.</p> <p>Here is a link with the site: <a href="http://uscc.dreamscapesdesigners.net/" rel="nofollow">http://uscc.dreamscapesdesigners.net/</a></p> <p>At the bottom there's 3 of them: Ma...
javascript jquery
[3, 5]