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
1,493,725
1,493,726
How to iterate gridview or listview using jQuery?
<p>how do i know from the client side that how many rows are there for gridiview or listview except header row.</p>
jquery asp.net
[5, 9]
106,266
106,267
How can I manipulate this object in jQuery
<pre><code>jQuery(function () { $('#square a').click(function(e) { // How is the e object structured }); }) </code></pre> <p>I have a div with an id of square and links in that. When the links are clicked they trigger a game loop function. I need to know which id the click is coming from. There are five...
javascript jquery
[3, 5]
5,555,387
5,555,388
How to schedule function calls with JavaScript / jQuery
<p>I have a web application that scrapes data from a page on another domain. This data is updated at a specific time several times a week, lets say 2pm on a Wednesday and a Friday.</p> <p>I have a JS function which scrapes specific data from this page and stores it in a database. How do I go about scheduling this func...
javascript jquery
[3, 5]
2,089,728
2,089,729
find the divs which do not have style display none and insert a style for page break on every second div
<p>Initially all divs are having style display none property. I am enabling the divs by jquery show method if there is any content inside them, I want to find the divs which do not have style display:none, and after every second active div, I want to insert a css for page-break-after:always for print purpose. I want to...
javascript jquery
[3, 5]
3,307,773
3,307,774
Javascript knowledge as front end developer
<p>I was wondering how deep I have to go into learning Javascript to be a front end developer?</p> <p>Kyle</p>
javascript jquery
[3, 5]
73,995
73,996
Why is this POST variable sent via AJAX Null? (jquery/php)
<p>This javascript is for a "load more" functionality. That grabs a fixed number of elements from load.php when a button #moreg is clicked. </p> <pre><code>$(function(){ $("#moreg").click(load); var countg = -1; load(); function load() { var num = 1; countg += num; $.post( "l...
php javascript jquery
[2, 3, 5]
2,535,277
2,535,278
Find most upper parent window with javascript
<p>How to find the most parent body element of a document, if you're using a lot of frames. Inside a iframe that also is in a few iframes, I want to call a function for the most upper document body.</p> <p>The following works, except that you have to count for the parents each time.</p> <pre><code>$(parent.parent.par...
javascript jquery
[3, 5]
4,338,118
4,338,119
jQuery .css('right') not working
<p>I am making a simple game in jQuery. I am having trouble turning the spider image to north east. I have it working fine with north west but for some reason north east does not seem to be working. Here is my init code:</p> <pre><code>// JavaScript Document function init(){ angel = $('&lt;img class="spider"&gt;'...
javascript jquery
[3, 5]
1,948,642
1,948,643
convert a string to a date format
<p>I have a string like this "10/13/2009 12:00:00 AM"</p> <p>how can i convert it to YYYYMMDD format using c#</p>
c# asp.net
[0, 9]
513,256
513,257
Using the closure scope to keep the last value
<p>I have the following:</p> <pre><code>$('th').click(function() { var $th = $(this); ... }); </code></pre> <p>Using the closure scope, I want to say:</p> <pre><code>var $th; $('th').click(function() { if ($th !== $(this)) { $th = $(this); ... } }); </code></pre> <p>Note: This code is just p...
javascript jquery
[3, 5]
5,225,889
5,225,890
Why "this" argument in jQuery returns href with anchors
<p>I have this for exemple:</p> <pre><code>&lt;div id="example"&gt; &lt;a href="http://www.google.com/#1"&gt;Hello&lt;/a&gt; &lt;a href="http://www.google.com/#4"&gt;Hello&lt;/a&gt; &lt;/div&gt; </code></pre> <p>And this two line of jQuery:</p> <pre><code>jQuery("a").filter(function() { console.log(""+th...
javascript jquery
[3, 5]
2,850,864
2,850,865
how to convert milliseconds to date format in android?
<p>I have milliseconds. I need it to be converted to date format of </p> <p>example:</p> <blockquote> <p>23/10/2011</p> </blockquote> <p>How to achieve it?</p> <p>any help is really appreciated.</p>
java android
[1, 4]
5,389,360
5,389,361
Javascript : Alert box only once when the user lands
<p>Is there a way to display an alert box literally only once, i.e. when the user hits the website, then when they navigate through it does not appear any more?</p>
javascript jquery
[3, 5]
699,392
699,393
Can an ObjectDataSource have more than 1 sort expression?
<p>Can an <code>ObjectDataSource</code> have multiple <code>SortExpression's</code>?</p>
c# asp.net
[0, 9]
3,667,063
3,667,064
Show only 2 rows preview of div content
<p>How to show only two rows preview of div content?</p> <p>If I use like substring in C# would cause HTML tag error issue.</p> <p>so, I wonder if I could do this?</p>
javascript jquery
[3, 5]
899,129
899,130
How to find End date from the given date and days excluding sundays
<p>I have my start date as <code>05/03/2012</code> and duration is <code>200</code> days now I would like to get the end date excluding sundays. So that my end date should be <code>05/02/2013</code>.. Can some one help me</p>
c# asp.net
[0, 9]
3,272,303
3,272,304
How to check element visibility independent of parent visibility (jQuery or not)
<p>my first Question so please be patient. I have a container that holds a varying number of child elements like this:</p> <pre><code>&lt;div class="parent"&gt; &lt;div class="element"&gt;content&lt;/div&gt; &lt;div class="element"&gt;content&lt;/div&gt; &lt;div class="element"&gt;content&lt;/div&gt; &lt;/...
javascript jquery
[3, 5]
1,999,021
1,999,022
sending an arraylist back to the parent activity
<p>i am trying to pass an arraylist back to my parent activity</p> <p>Here is the simple code.</p> <pre><code>private ArrayList&lt;Receipt&gt; receipts = new ArrayList&lt;Receipt&gt;(); Intent data = new Intent(); data. // what to do here? setResult(RESULT_OK, data); //************************************ </cod...
java android
[1, 4]
1,560,416
1,560,417
Why doesn't the % operator work the same in Python and Java?
<h3>Python 2.7.1:</h3> <pre><code>print -34 % 4 # outputs 2 </code></pre> <h3>Java 1.5.0:</h3> <pre><code>System.out.println(-34 % 4); // outputs -2 </code></pre> <p>Which is correct? Why the difference?</p> <p>The <a href="http://en.wikipedia.org/wiki/Modulo_operator" rel="nofollow">wikipedia article on modulo</a...
java python
[1, 7]
2,014,049
2,014,050
simulate click when parent div is clicked
<p>I'm trying to use jquery to trigger a click on an <code>&lt;a&gt;</code> tag when it's parent div is clicked</p> <p>for this structure </p> <pre><code>&lt;div id="menu_container"&gt; &lt;ul id="header_links_container"&gt; &lt;li class="header_link header_link_large border_box...
javascript jquery
[3, 5]
2,477,231
2,477,232
Ack - why can't my .ASHX find this namespace?
<p>The file Mexico.Data.dll is at /bin/ and other pages references it without error, what's my problemo?</p> <p>CODE:</p> <pre><code>&lt;%@ WebHandler Language="C#" Class="AuthCheck" %&gt; using System; using System.Web; using Mexcio.Data; public class AuthCheck : IHttpHandler { public void ProcessRequest (Htt...
c# asp.net
[0, 9]
2,265,818
2,265,819
ltrim with jQuery?
<p>I am using jQuery to capture an encoded URL. </p> <p>I looks something like: #?var=asdasdasdasdasd</p> <p>I need to strip "#?" at the beginning of the string. In PHP I'd use ltrim. How can I do this with jQuery or plain JS?</p> <pre><code> $("#myLink").click(function(){ var myUrl = $(this).attr("href"); ...
javascript jquery
[3, 5]
5,884,743
5,884,744
Problem with $.getJSON in jquery
<p>My Jquery code</p> <pre><code>function nalozi() { var id_skupine = $('#skupina option:selected').val(); $('#artikel option').remove(); //$('#artikel').append('&lt;option value="'+id_skupine+'"&gt;'+id_skupine+'&lt;/option&gt;'); $.getJSON('artikli.php', {id_skupine:$('#skupina').val()}, function(data) { ...
php jquery
[2, 5]
4,417,235
4,417,236
How can I give selectors implicit scope
<p>I've written an event handler that detects a change in a select option list and then modifies a few sibling inputs based on the selected value.</p> <p>I now want to generalise this functionality so that I can use several groups of (driving-select-option-lists + siblings) concurrently. The new onChange handler might...
javascript jquery
[3, 5]
1,228,671
1,228,672
Allow user to select inside a textarea after it's been created by js
<p>I have a div named "What". If the user clicks on it, it changes from text into a textarea input.</p> <pre><code>$('.What').click(function() { $(this).empty().html('&lt;textarea name="X"&gt;' + $(this).text() + '&lt;/textarea&gt;'); $(this).find('textarea').select(); }); </code></pre> <p>You can see that I ...
javascript jquery
[3, 5]
3,644,788
3,644,789
Game Server Language Selection
<p>I am planning to make a online-multiplayer game with my friends. The game is a browser card game (so, players act in turns) and players could host rooms in a lobby. Flex + actionscript will be used to write for the client side. We are discussing what should be used for the server side.</p> <p>I suggested C#/Java an...
c# java php
[0, 1, 2]
141,635
141,636
Controls.OfType() generic method call not compiling
<p>Consider have this line of code:</p> <pre><code>List&lt;HtmlGenericControl&gt; listOfDivs = this.clientGrid.Controls.OfType&lt;HtmlGenericControl&gt;() .ToList&lt;HtmlGenericControl&gt;(); </code></pre> <p>The <code>OfType&lt;&gt;();</code> isn't recognised, assuming due to a mis...
c# asp.net
[0, 9]
381,138
381,139
Animate or scale from center
<p>Any ideas on how to animate the width and height of a div from the top center? Tried using effect('scale') but this is based on a show/hide so snaps back after completion.</p> <p>Then tried a normal animate:</p> <pre><code>$('.box').animate({'width':200px,'height':200px,margin-left:-100px}); </code></pre> <p>This...
javascript jquery
[3, 5]
5,439,031
5,439,032
HTML5/JavaScript/jQuery audio playlist
<p>I've got this JavaScript/jquery code:</p> <pre><code>$(document).ready(function() { var audioElement = document.createElement('audio'); var secondtrack = 'hangover.ogg'; audioElement.setAttribute('src', 'hangover.ogg'); audioElement.load() audioElement.addEventListener("load", function() { audioElement.play();...
javascript jquery
[3, 5]
5,160,366
5,160,367
Code Snippets: Where do I keep them?
<p>Is there a tool or process for keeping your functions, selectors and 'for loops' handy and search-able for future use? I use nothing and am re-learning occasionally for a similar problem I've already solved. </p> <p>background: I'm progressing into jQuery and Javascript and am starting to see some repeating pattern...
javascript jquery
[3, 5]
4,863,187
4,863,188
How to ignore exceptions which are caused by McAfee scan
<p>Every morning, we use McAfee to scan our web site. It will cause a lot of exceptions. ex.Invalid viewstate and Input string was not in a correct format. In our code, we collect all exceptions in global.asax. Is there a way to ignore those exceptions caused by Mcafee?</p> <p>Thanks</p>
c# asp.net
[0, 9]
4,357,668
4,357,669
Jquery is Ready wrapper
<p>is there any javascript code wrap that can be use to wait for Jquery to load and create a callback after loading jquery successfully?</p> <p>something like this</p> <pre><code>JqueryWait(function(){ //my magnificent jquery codes ^^ }); </code></pre> <p>I want a code wrap something like this...</p> <p>Explanat...
javascript jquery
[3, 5]
1,967,897
1,967,898
Building an array with indefinite dimensions
<p>I wish to build an array of arrays with indefinite number of dimensions.</p> <p>How could I:</p> <ul> <li>Get the number of dimensions of the parent array</li> <li>Cycle through the outermost dimension elements</li> </ul> <p>I know this might be a stupid question but I am a newbie in javascript so please guide me...
javascript jquery
[3, 5]
1,238,063
1,238,064
How to interpret JavaScript with Python
<p>It is possible to run JavaScript with Python? There are any library that makes this possible?</p> <p>I need to execute some JavaScript, I know that this is possible with some Java libraries, but I prefer Python.</p> <p>Can someone give me a clue on this?</p> <p>Best Regards,</p>
javascript python
[3, 7]
732,663
732,664
Remove string after last occurrence of character "/" - Android (JAVA)
<p>In my application, I am appending string to create path to generate URL. Now I want to remove that appended string on pressing back button.</p> <p>Suppose this is the string : </p> <pre><code>/String1/String2/String3/String4/String5 </code></pre> <p>Now I want a string like this: </p> <pre><code>/String1/String2...
java android
[1, 4]
449,217
449,218
Question about using vBulletin with an ASP.NET based website
<p>How to integrate the <a href="http://en.wikipedia.org/wiki/VBulletin" rel="nofollow">vBulletin</a> forums users with an existing ASP.NET site that has its own users and login, and to maintain the session between the two sites, so when a user logs in, he/she stays logged in when browsing the forum?</p>
php asp.net
[2, 9]
1,633,180
1,633,181
I want to supply some pdf documents with my application
<p>After certain research and lookup over the internet I found that I cannot place these files in the assets folders as those files will be private to my application, I want the native pdf application to be invoked on a button press which redirects the user to the particular document. What I am confused about is how do...
java android
[1, 4]
5,860,406
5,860,407
Using intent into non activity class
<p>After trying a lot i decided to ask question on stackoverflow, I create a class for using on button click and start an intent from this class.</p> <pre><code>import android.app.Activity; import android.content.Intent; import android.view.View; public class OnClickListener implements android.view.View.OnClickListen...
java android
[1, 4]
1,797,445
1,797,446
What language/classes do I need to make a simple card game?
<p>How should i go about making a simple card game? (e.g. solitaire) I am familiar w/ terminal programs in java and c/c++, but i am not familiar w/ the graphical side. Is openGL too complex for a simple card game? I guess ultimately I'm asking where do I start? What language &amp; functions do I need?</p>
java c++
[1, 6]
140,453
140,454
jQuery selector context question
<p>I'm trying to do make the following selection:</p> <pre><code>$(".program", row) </code></pre> <p>Where "row" is a jQuery object containing two table rows. One of the tr's has the class 'program". This selector doesn't seem to find it. However the following works: </p> <pre><code>$(".title", row) </code></pre> ...
javascript jquery
[3, 5]
3,627,998
3,627,999
XMLParsing error
<p>I am getting XML parsing error when trying to implement download function in web application in C#. The same code is working in another web form.</p> <pre><code>SqlConnection cn = new SqlConnection(); cn.ConnectionString =ConfigurationManager.ConnectionStrings["cn"].ConnectionString.ToString(); cn.Open(); String ...
c# asp.net
[0, 9]
5,735,360
5,735,361
lifetime of variable in java
<pre><code>private void func() { String str = "hi!"; } </code></pre> <p>this is my code.</p> <p>suppose I called func() in the onCreate event. I want to the near exact time, if thats possible to be determined, when GC will free the memory used by str.</p> <p>Actually str stores a password. and i want to free it as...
java android
[1, 4]
122,501
122,502
Rebuild ASP.NET Web Application via code
<p>Currently I force ASP.NET to rebuild a web application by changing the web.config. However, I would prefer to do it via C# code (including clearing cache etc). How could I go about doing this.</p>
c# asp.net
[0, 9]
3,368,594
3,368,595
load function after page_load
<p>How to load a function after page load is completed?<br> I mean after rendering is completed or after the aspx file loaded i need to call a function: </p> <pre><code>void create_doc() { create_word(); } </code></pre> <p>when loading the page Im assigning some values to lables.. After loading the page i need to...
c# asp.net
[0, 9]
3,726,297
3,726,298
Special characters in Android
<p>In EditText field I set values in Cyrillic alphabet, such as АБГ .. all shows fine. When I try to set some Greek or any other letter similar to that, such as <strong>'ʎ'</strong> (lambda), <strong>'ƃ'</strong> (not sure where this comes) or <strong>'ɟ'</strong> .. it shows squares like "□ □ □" this.</p> <p>The char...
java android
[1, 4]
4,913,944
4,913,945
How to handle the browser history while logout?
<p>I am using ASP.NET and C#.</p> <pre><code>if (!IsPostBack) { if (Session["un"] == null) { Response.Redirect("Default.aspx"); } else { Response.ClearHeaders(); Response.AddHeader("Cache-Control", "no-c...
c# asp.net
[0, 9]
9,379
9,380
jquery dropdownlist, onchange reload page using Get request with ID of dropdown value
<p>When someone selects an item in a dropdown, I want to reload the current page with the value of the ID in the selected item in the querystring like:</p> <pre><code>http://www.example.com/mypage?id=234 </code></pre> <p>How can I do this?</p>
javascript jquery
[3, 5]
1,905,558
1,905,559
Retrieving contents of re-directed url | curl vs. contexts
<p>I'm using file_get_contents as such</p> <pre><code>file_get_contents( $url1 ). </code></pre> <p>However the actual url's contents are coming from $url2.</p> <p>Here is a specific case:</p> <pre><code>$url1 = gmail.com $url2 = mail.google.com </code></pre> <p>I need a way to grab $url2 progrmatically in PHP or...
php javascript
[2, 3]
5,870,938
5,870,939
jquery & facebox image issue problem
<p>i am using facebox first time but the problem is facebox dialog is showing but images is not showing for loadingImage and closeImage.</p> <p>i specify the images path like</p> <pre><code>&lt;script language="Javascript" type="text/javascript"&gt; $(document).ready(function () { $.facebox.settings.loadingImage ...
jquery asp.net
[5, 9]
3,851,879
3,851,880
Controlling one page with another using jQuery
<p>Using two separate browsers or computers, or for the sake of experimentation, two tabs, is there any way to push a command from one page to another that has some sort of listener object?</p> <p>So for example: </p> <p>controller.html has a link, when clicked triggers an action on viewer.html. </p> <p>Is this po...
php jquery
[2, 5]
4,131,362
4,131,363
jquery form wizard and validation
<p>i am trying to use the jquery form wizard with asp.net to create a multi step form. I have already built the form, but i am having problems during validation of emails. I have two form fields email and confirm email which should match before going to the next step. The problem i am having is I am using master pages...
jquery asp.net
[5, 9]
4,973,017
4,973,018
How do I escape special characters in jquery
<p>I'm using the get element by class function <code>$(".classname")</code> but it doesn't work when the class name has a space, plus sign, slash in it (I can't change the class names)</p> <pre><code>var summaryLEVEL5 = $(".LEVEL 5"); var summaryLEVEL5Total = 0; for (i=0; i &lt; summaryLEVEL5.length; i++){ ...
javascript jquery
[3, 5]
2,694,539
2,694,540
Autofill a username and password
<p>I would like to be able to click a link in Website A that will autofill a username and password into Website B.</p> <p>Can anybody provide me some ideas how to do this with JavaScript or PHP? </p> <p>Many thanks!</p>
php javascript jquery
[2, 3, 5]
4,554,244
4,554,245
JS: var self = this?
<p>Using instance methods as callbacks for event handlers changes the scope of <code>this</code> from <em>"My instance"</em> to <em>"Whatever just called the callback"</em>. So my code looks like this</p> <pre><code>function MyObject() { this.doSomething = function() { ... } var self = this $('#foobar').b...
javascript jquery
[3, 5]
5,378,357
5,378,358
How can I make my variable used throughout my application?
<p>How can I get the returned <code>memberID</code> variable inserted back in the other SQL stored proc?</p> <pre><code> protected void imgBtnActivate_onClick(object sender, EventArgs e) { // Inserts Member record try { Database db = DatabaseFactory.CreateDatabase(ConfigManager.AppSettings["Conne...
c# asp.net
[0, 9]
2,578,891
2,578,892
Java to C# Conversion
<p>I have below Java code. I need to convert this code to C#.</p> <pre><code>public void updateZeroPointLast(BigDecimal bdID) { if (!qdsErosionElSave.isOpen()) { qdsErosionElSave.open(); } // Locate the row to update DataRow dr = new DataRow(qdsErosionElSave, "EL_ID"); dr.setBigD...
c# java
[0, 1]
3,608,986
3,608,987
How do i get middle tab selected on click on a linkbutton in asp.net
<p>I am working in an application in which there is a linkbutton inbox, when user clicks on it "default.aspx" page opens with 1st tab selected but i required that in case of inbox clicked middle tab must be selected and shows opened.when user not clicks on inbox "default.aspx" 's page 1st tab must be selected.Click eve...
c# asp.net
[0, 9]
1,304,099
1,304,100
FireFox warning "Unknown pseudo-class or pseudo-element 'hidden' " keeps running over and over
<p>I recently have discovered a warning happening in Firefox that says</p> <blockquote> <p><strong>Warning:</strong> Unknown pseudo-class or pseudo-element 'hidden'</p> </blockquote> <p>Here is page <a href="http://eleven23.net/eleven23/beta/work/web/lounge22.php" rel="nofollow">http://eleven23.net/eleven23/beta/wo...
javascript jquery
[3, 5]
5,779,996
5,779,997
how to access to javaBean attribus from javaScript functions?
<p>Is it possible to get java object attributes from javascript function.</p> <p>Example by using EL language :</p> <pre><code>function jsFunction(){ var name = #{myBean.name}; } </code></pre>
java javascript
[1, 3]
803,095
803,096
Javascript reload the page with hash value
<p>I am trying to refresh the page with this statement in external javascript file after some processes.</p> <pre><code>window.location.href = window.location.href </code></pre> <p>It perfectly reload the page but I want to scroll to the specific location after reload. So, I put this on the page.</p> <pre><code>&lt;...
javascript jquery
[3, 5]
5,440,115
5,440,116
Inflating a view throws Resources$NotFoundException on physical device
<p>The exact error:</p> <pre><code>07-16 18:34:41.729: ERROR/AndroidRuntime(28347): android.content.res.Resources$NotFoundException: Resource ID #0x7f030001 07-16 18:34:41.729: ERROR/AndroidRuntime(28347): at android.content.res.Resources.getValue(Resources.java:892) 07-16 18:34:41.729: ERROR/AndroidRuntime(28...
java android
[1, 4]
3,442,086
3,442,087
How to Run string value as a function?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/53844/how-can-i-evaluate-a-c-sharp-expression-dynamically">How can I evaluate a C# expression dynamically?</a> </p> </blockquote> <p>I have one string in csharp</p> <pre><code>string li_id = "Frm_menu_purchase_...
c# asp.net
[0, 9]
1,918,140
1,918,141
c# asp .net Add column with static text on gridview
<p>I am working on an asp .net project.How can i add a static column with static text to a GridView which is loaded with a dataset?. For ex i want a column Check which has values in every row Checked. </p>
c# asp.net
[0, 9]
5,249,340
5,249,341
Selecting an element whose parent element does not have a particular class
<p>Assuming, I have the following HTML:</p> <pre><code>&lt;ul class="topnav"&gt; &lt;li class=""&gt;&lt;a href="/"&gt;Page 1&lt;/a&gt;&lt;/li&gt; &lt;li class=""&gt;&lt;a href="/Page2/"&gt;Page 2&lt;/a&gt;&lt;/li&gt; &lt;li class=""&gt;&lt;a href="/Page3/"&gt;Page 3&lt;/a&gt;&lt;/li&gt; &lt;li class=""...
javascript jquery
[3, 5]
497,351
497,352
Change and Keyup Event Handler in JQuery
<p>I m using JQuery in my application .Also i am using Cakephp and Mysql. I m having a code like below in which instructions is a Textbox that when i type on it ,it will be shown in the Display panel ...</p> <pre><code> $(".TextFieldSettings #instructions").keyup(function (){ instr=$(".TextFieldSettings #instructio...
javascript jquery
[3, 5]
1,302,122
1,302,123
Jquery passing string to function
<p>I want to pass the name of my list into my function, but it's not working correctly. I am trying to pass an array and a string to my function. I want to replace "#myGallery_2" to be dynamic. How would I do this correctly? This is what i'm currently trying.</p> <pre><code>var src = $('#'+id+ li:nth-child('+index+')'...
javascript jquery
[3, 5]
3,777,676
3,777,677
jQuery autocomplete turn off
<h2>1st question</h2> <p>I have a dropdownlist, filled with countries (from xml file).</p> <p>When you choose a country, you can use the autocomplete for a textbox. This autocomplete has postal codes from the choosen country.</p> <p>Now I want to set the autocomplete off right after the dropdownlist.change event for...
c# asp.net jquery
[0, 9, 5]
585,544
585,545
onclick div colour should change
<p>Am having several boxes(more than 100) that will create dynamically with</p> <pre><code>&lt;div id="window5"&gt;&lt;/div&gt; &lt;div id="window18"&gt;&lt;/div&gt; &lt;div id="window190"&gt;&lt;/div&gt; </code></pre> <p>Now If i click on one box the colour should be red,then if i click on the other box the colour s...
c# javascript asp.net
[0, 3, 9]
4,618,960
4,618,961
How to open a new tab/window on clicking on ItemTemplate asp:Image Button with Query String?
<p>I have a ImageButton inside the DataList ItemTemplate, I am trying to open a new page (new tab) on clicking on ImageButton, but its opening in same tab. </p> <pre><code>&lt;ItemTemplate&gt; &lt;asp:ImageButton ID="ibtmImage" runat="server" ImageUrl='&lt;%# Eval("Image") %&gt;'OnCommand="ibtmImage_Command" Comman...
c# asp.net
[0, 9]
170,970
170,971
How to round an answer to a mathematical equation
<p>All- I have an app in which the users inputs data such as the cost of a dinner bill and the tip percentage and the number of people. The app than takes the numbers and outputs the total bill cost and the amount each person has to pay. I am almost there but when the user inputs numbers that don't work well I get outp...
java android
[1, 4]
4,971,079
4,971,080
Isolate code from other scripts (namespace)
<p>I'm doing it like this:</p> <pre><code>;(function($, window, document, undefined){ var MyNamespace= MyNamespace || {}; $.MyNamespace.someMethod = function(){ // code }; $.MyNamespace.someOtherMethod = function(){ // code }; $.MyNamespace.someProperty = {}; // etc. }(jQuery)); </code></p...
javascript jquery
[3, 5]
679,623
679,624
Building a data dictionary in web
<p>Not a dictionary for language, but data. I.e Car1[Make="Honda",Model="Accord",Colour="Red"]</p> <p>That's how I'd do it in Python, but by the look of things, it's harder to do on the web. I'm using PHP (not ASP).</p> <p>Has anyone had any experience with writing this kind of thing on web? I'm open to JS etc if ...
php javascript
[2, 3]
3,631,958
3,631,959
PHP Equivalent of Master page in ASP.NET
<p>Is there any way to achieve the master page concept of ASP.NET in PHP?</p>
php asp.net
[2, 9]
5,664,260
5,664,261
How to fix this error which is stating something is not a function?
<p>I am trying to append this: <code>'&lt;div&gt;' + htmlEncode(imagefilename) + '&lt;/div&gt;'</code> when the user clicks on the cancel button (.imageCancel). But it is giving me this error: <code>$('&lt;div/&gt;').text(value).html();</code> is not a function. How can this error be fixed? Is it because </p> <...
javascript jquery
[3, 5]
3,035,515
3,035,516
eclipse is not recognizing id or file
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error">R cannot be resolved - Android error</a> </p> </blockquote> <p>The errors I have are on line 18 and 19. It does not recognize the id iv1 but that id is in my main.xml f...
java android
[1, 4]
3,080,542
3,080,543
Dropdown Menu is not working properly
<p>I used dropdown menu in our site its worked in all browser but in IE6 it's not working properly. so tell me solution. this site is in wordpress.</p> <p>Thanks Abhay</p>
php javascript
[2, 3]
4,177,240
4,177,241
Add query string to script tag link in asp.net to break Cache
<p>Hope someone can help me on this. I manage an ASP.Net website and usually update script files and css files very often. I add current time appended into a single string as a query string parameter (eg: profileImage.jpg?123021) which makes the browser to look for the file without getting it from cache. </p> <p>How c...
javascript asp.net
[3, 9]
567,199
567,200
OutofMemory Exception (when cropping an Image)
<p>I am trying to crop an Image that coming from a byte array. Unlucky, I get the OutofMemory Exception in my cropImage function. this part show how I write it on a file.</p> <pre><code>System.IO.MemoryStream ms = new System.IO.MemoryStream(strArr); System.Drawing.Rectangle oRectangle = new System.Drawing.Rectangle()...
c# asp.net
[0, 9]
5,962,962
5,962,963
How to get unreaded sms/missed calls from my Android device?
<p>I have been developing Android application and I need to get unreaded sms/missed calls from my Android device. Are there any ways that I can do it? I hope there are some content provider that can do it. Thank you. </p>
java android
[1, 4]
1,133,545
1,133,546
Javascript chain switch script
<p>I'm new to JS.</p> <p>I'm trying to make a simple button, which will switch numbers from 0 to 11. So if current number is 11 next one(after button click) should be 0. Some kind of numbers chain.</p> <p>Need help!</p>
javascript jquery
[3, 5]
492,628
492,629
create a delay between the running of functions
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/951528/jquery-delay-between-animations">jQuery delay between animations</a> </p> </blockquote> <p>I have created two functions: One that animates an object from Point A to Point B, and the second, that animates...
javascript jquery
[3, 5]
313,046
313,047
JQuery: $(this).text('some_text'); is causing my link to have a border
<p>I have the following code:</p> <pre><code>$('a.btn-slide').toggle(function() { $("#SliderDIV").slideDown("fast"); $(this).text('Hide/Show'); }); </code></pre> <p>Only in Firefox, when I click the a href link to hide/show the DIV, Firefox display a dotted border around the href link (which I don't understan...
javascript jquery
[3, 5]
4,091,889
4,091,890
use variable for object name in Jquery
<p>I found another similar question about this with a solution but it didn't work for me. I am new to jquery so thanks in advance for helping me solve my noobie question.</p> <p>I am trying to use a variable for the class name. So that I can loop through the right fields based on this variable. My variable returns <co...
javascript jquery
[3, 5]
1,623,091
1,623,092
can not .getJSON request to work
<p>My state legislature website offers a restful api.</p> <p>What is the correct javascript / jquery code to fetch the value of kslegislature.org/li/api/v5/rev-1/bill_listing/ into a variable? </p> <p>I can not seem to construct a working .getJSON request to pull the data.</p> <p>Ultimately I want to be able to work...
javascript jquery
[3, 5]
2,593,227
2,593,228
Sending parameters to jquery callback
<p>I am making a jquery call from a javascript method. I want a parameter to be sent to my call back method. I am using a handler(ashx) to make jquery call, the handler is getting invoked but the callback is not getting fired. Below is the code</p> <pre><code>function MyButtonClick(){ var myDiv = "divname"; $.post("My...
c# asp.net jquery
[0, 9, 5]
1,770,650
1,770,651
Endless loop in jQuery and PHP. What should I change to make it work?
<pre><code>&lt;? if($_POST['begin']) { while(1) { echo "1"; sleep(2); } die(); } ?&gt; &lt;span class="answer"&gt;&lt;/span&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $.ajax({ type: "POST", url: "exp.php", data: ...
php javascript jquery
[2, 3, 5]
1,994,433
1,994,434
Determining target TD when TR is clicked
<p>Given some click event for a table row:</p> <pre><code>$("tr.somerow").click(function(){ //do some stuff //can I determine the TD under the cursor at the time of clicking? }) </code></pre> <p>Can I determine which TD (or any child elements) was under the cursor at the time of clicking?</p>
javascript jquery
[3, 5]
587,239
587,240
Find . (periods) before and after the insertion
<p>I would like to find the second . (periods) before and after a insertion in a div with contentEditable attribute set to TRUE. </p> <p>For example, if I got that string into a div</p> <pre><code>&lt;div contentEditable&gt; Lorem ipsum dolor. Sit amet, consectetur adipiscing elit. Duis semper nisl eget ...
javascript jquery
[3, 5]
4,905,080
4,905,081
Link to different parts/tabs of a page
<p>Have a look at <a href="http://keithloutit.com/#news" rel="nofollow">http://keithloutit.com/#news</a></p> <p>I have a similar site, with all the content on the same page. </p> <p>I would like to know how to fetch the correct part of the url. In this case it would be "news". I suppose its some regexp used on <code>...
javascript jquery
[3, 5]
5,033,047
5,033,048
jQuery hide li elements, then fade in on button hover
<p>I have a standard <code>ul</code> list which contains five <code>li</code> elements. After the third element, I've placed a button in the list with the CSS class <code>.morecats</code>. </p> <pre><code>&lt;ul&gt; &lt;li&gt;1&lt;/li&gt; &lt;li&gt;2&lt;/li&gt; &lt;li&gt;3&lt;/li&gt; &lt;button class="...
javascript jquery
[3, 5]
3,942,606
3,942,607
what's a proper way to check for null/empty string in js before including to params?
<p>I am building a querystring and want to exclude keys if vals are empty, what's a proper way?</p> <pre><code> setQueryString: function () { var keyword = $('#keyword').val(); //how to exclude it if keyword is empty? var params = { "keyword": $.trim(keyword) }; return params; }...
javascript jquery
[3, 5]
2,116,527
2,116,528
Replacing the content of a <td> with <tr> id and <tr> index
<p>I have a table structure like this</p> <pre><code>&lt;table&gt; &lt;tr id="tr_1"&gt; &lt;td&gt;Content1&lt;/td&gt; &lt;td&gt;Content2&lt;/td&gt; &lt;td&gt;Content3&lt;/td&gt; &lt;td&gt;Content4&lt;/td&gt; &lt;/tr&gt; &lt;tr id="tr_2"&gt; &lt;td&gt;Content5&lt;/td&...
javascript jquery
[3, 5]
4,705,552
4,705,553
did javascript or jquery has method as Server.UrlEncode() in asp.net
<p>did javascript or jquery has method as Server.UrlEncode() in asp.net</p> <p>eg:when using </p> <pre><code> $.get("a.aspx?pk=1&amp;k="+kvale, function(data) { dosth(data); }); </code></pre> <p>url must encode </p>
javascript jquery asp.net
[3, 5, 9]
5,467,346
5,467,347
Is there a Java/PHP bridge?
<p>I have created a program but i need to get a java program to run a php script with some arguments and then get the php script to send some arguments to the Java program. I know this question has been asked a lot of times but it seems like the only answer i can get is that php can do this but java cant but there must...
java php
[1, 2]
5,354,157
5,354,158
How can I get dynamically generated html in txt file in jQuery?
<p>I have an empty div in my aspx page and I am generating dynamic content in that div. </p> <pre><code>&lt;div id="book"&gt; &lt;/div&gt; </code></pre> <p>After loading content of my div</p> <pre><code>&lt;div id="book"&gt; &lt;div class=’a’ style=”left: 0px ; width:469px;"&gt; … &lt;/div&gt; &lt;div class=...
javascript jquery
[3, 5]
2,280,299
2,280,300
Re-bind a jquery on click after I have ajaxed the page
<p>So I have three images that when you click on them brings up a larger image. A really basic gallery I made. Any way when im changing content on the page with the .load(), it doesnt register the click any more for the div.</p> <p>How to I reload the jquery or reload the event handlers?</p> <p>Here is what I was try...
javascript jquery
[3, 5]
2,709,607
2,709,608
Element ID can't be found after beind appended to DIV
<p>I'm using this bit of jQuery to append a text input field to a div after a checkbox is checked:</p> <pre><code>$('.sharewithfriends').on("click", ".manual-invite", function () { if ($('input[name=manual-invite]').is(':checked')) { $('&lt;li style="margin-top:0;display:none"&gt;&lt;input type="text...
javascript jquery
[3, 5]
4,162,021
4,162,022
make parent menu item bold when visiting child page
<p>I have the following code which gives the menu item a class of 'current'. I then style that with <code>font-weight:Bold;</code></p> <pre><code>$(document).ready(function () { var loc = window.location.href; $("ul a").each(function() { if (loc.indexOf($(this).attr("href")) != -1) { $(this...
javascript jquery
[3, 5]
686,758
686,759
jQuery .not() method not working correctly
<p>I'm trying to make all textareas remove default text on focus, <strong>except</strong> those of class "pre-fill". But the problem is the textareas of class "pre-fill" are still being selected and included.</p> <p>Suggestions on how to fix this? Thanks.</p> <pre><code>jQuery(document).ready(function inputHide(){ ...
javascript jquery
[3, 5]
4,826,274
4,826,275
How to add images one on another image using javascript
<p>I have small requirement: I need add image over(up) the another image through javascript. Please give me the suggestion!</p> <p><img src="http://i.stack.imgur.com/jgdsd.png" alt="A chicken"></p> <pre><code>function sampleImage() { document.getElementById('img1').innerHTML='&lt;img src="C:\Users\rajasekh...
javascript jquery
[3, 5]