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,165,402 | 5,165,403 | Remove Anchor tag from grid while exporting Gridview to Excel in Asp 2.0 | <p>I need some help. How can we remove anchor tags() from gridview when exporting to Excel.</p>
<p>below is my code to prepare grid but I am still showing anchor tags on text in Excel page.</p>
<pre><code>private void PrepareGridViewForExport(Control gv)
{
LinkButton lb = new LinkButton();
Litera... | c# asp.net | [0, 9] |
3,529,158 | 3,529,159 | asp.net c# using next button to display successive query results text fields | <p>I am trying to query database and display successive results on text fields. the code i have shows the current record and the next; it does not go beyond two query results: </p>
<pre><code>protected void next_Click(object sender, EventArgs e)
{
try
{
string conStr = ConfigurationMana... | c# asp.net | [0, 9] |
1,130,797 | 1,130,798 | Coda slider does not increse height in run time | <p>I used coda slider version 2.0. It automatically resizes the height for each tab. The problem is, the main panel height is varied at run time. But it does not take the new height. The standard height is reflected. Here is the code in coda slider for assigning a height. </p>
<pre><code>if (settings.autoHeight) {
... | javascript jquery | [3, 5] |
3,069,189 | 3,069,190 | Different ways of saying document ready in jQuery? | <p>Are these both the same thing, i.e. ways of saying document ready:</p>
<pre><code>$(function() {
//
});
</code></pre>
<p>and </p>
<pre><code>$(function($) {
//
})(jQuery);
</code></pre>
<p>or is there a difference between the two, if so then when should I use which?</p>
| javascript jquery | [3, 5] |
2,241,035 | 2,241,036 | Simple jQuery .each problem | <p>I have a UL with 9 anchor tags, each with the class 'highlight'.</p>
<p>Here is a bit of Javascript with jQuery:</p>
<pre><code> var titles = $('a.highlight');
jQuery.each(titles, alert(titles.length));
</code></pre>
<p>What I expect this bit of code to do:
Alert 9 times, the number 9.</p>
<p>What this bit of... | javascript jquery | [3, 5] |
4,663,527 | 4,663,528 | Android: Extract Values from a *.txt file | <p>I have the following *.txt file</p>
<p><a href="https://docs.google.com/file/d/0B2Ld8NlyYo3HUHBxdHozY2NhWWc/edit?usp=sharing" rel="nofollow">Here for txt File</a></p>
<p>How I can extract the Times in a Array or something else with its associated values in extra Array. Like</p>
<pre><code>ArrayTime[..., 16:52, 17... | java android | [1, 4] |
5,785,876 | 5,785,877 | jquery attr("onClick") - ie and ff | <p>Using jquery, I'd like to get the javascript from an A tag's onClick attribute.</p>
<pre><code><a href='#' onClick='alert("boo");' />
</code></pre>
<p>In Firefox: <code>alert($('a').attr("onClick"))</code> shows: <code>alert("boo")</code></p>
<p>In IE 6/7: <code>alert($('a').attr("onClick"))</code> shows: <... | javascript jquery | [3, 5] |
3,741,707 | 3,741,708 | How to cast the result of sql command to the int variable? | <p>I am developing a web application and in the code-behind, I need to get the ID column from specific table in the database and convert it to int. The query is:</p>
<pre><code>string quizID = SELECT MIN(column_name) FROM table_name
</code></pre>
<p>and I want to put the value of it in </p>
<pre><code>int quizid
</c... | c# asp.net | [0, 9] |
2,026,764 | 2,026,765 | Space in keywords via GET are cut off | <p>I am making a call via jquery to load a piece of HTML from the Django server.</p>
<pre><code>$('#search_result').load(url, function(){
...
});
</code></pre>
<p>The url is created like this:</p>
<pre><code>url = url + '&' + keyword + '=' + value;
</code></pre>
<p>As long as the keywords... | javascript jquery | [3, 5] |
200,381 | 200,382 | Javascript behaving weirdly | <p>the following function does not work as I thought it should have. For some reason, the loop breaks whenever one the the validate function returns false. Why is that?</p>
<p>Here is my code :</p>
<pre><code>function validateGroup(input) {
if (!input.value.match(/^[0-9]{0,2}$/)) {
$(input).addClass("inva... | javascript jquery | [3, 5] |
4,234,345 | 4,234,346 | asking about execute of a line | <p>I wish to write a program in C# that executes line to line.</p>
<p>By which I mean the equivalent of C++</p>
<pre><code>#include <stdio.h>
int main ()
{
char c;
puts ("Enter q to exit:");
do {
c = getchar();
putchar(c);
} while (c != 'q');
return 0;
}
</code></pre>
<p>What would the equiv... | c# c++ | [0, 6] |
4,833,102 | 4,833,103 | jQuery selector question | <p>I have a span and an anchor inside a table cell. I have the anchor set up to show a tooltip. I would like the text inside the span to be used for the tooltip. How can I select this text in jQuery?</p>
<pre><code> <td class="row-head" colspan="5"><span class="tip-text">Complete Coverage</span><... | javascript jquery | [3, 5] |
5,117,222 | 5,117,223 | Repeater's Item command event is not firing on linkbutton click | <p>I am having problem with my repeater's OnItemCommand event.
When I click the Link Button, its not firing.
Am I missing any environment variable</p>
<p>ASPX code</p>
<pre><code><table>
<!-- repResearchers begin, 0=display name, 1=url -->
<asp:Repeater ID="repExtResearchers" Runat="server" OnI... | c# asp.net | [0, 9] |
5,546,492 | 5,546,493 | How to fire button click event from user contol in asp.net | <p>I have a time on user control, and button on the web page. On perticular time I want to fire button click event. Please tell me how do this.</p>
| javascript asp.net | [3, 9] |
1,232,472 | 1,232,473 | Code to convert work hours wraps to 24 hours? | <p>I have some code which takes for example, 27:30 (27 hours 30 minutes) and converts it to a decimal like 27.5. I have another function that does the opposite.</p>
<pre><code> public class Time
{
public static string Hours(decimal d)
{
return TimeSpan.FromHours((double)(d + 0.005M)).To... | c# asp.net | [0, 9] |
2,675,156 | 2,675,157 | Call Client Side Event And Server Side Event Of Text Box | <p>I have a java script function </p>
<pre><code>function here()
{
if ( confirm('You Want to Change date And Data Both') ) {
return true;
} else {
return false;
}
}
</code></pre>
<p>I am Calling This Function <code>onChange</code> Event Of Text Box..</p>
<p>When it returns true my server si... | javascript asp.net | [3, 9] |
5,024,313 | 5,024,314 | Android is device power connected without broadcast receiver | <p>Is there a way to know, is power connected to device or not without broadcast?</p>
<p>In my application I want to get it only on start, so, broadcast receiver is too complicated for my app.</p>
| java android | [1, 4] |
2,582,137 | 2,582,138 | Transfer data from JavaScript client to C# server | <p>In my virtual shop site I need to send product data (single or array) to server. In a case when I work with ASPX and runat="server", I'm organizing OnClick event and delegate. Is it possible in JavaScript? Is there any working example?</p>
| c# javascript asp.net | [0, 3, 9] |
2,353,563 | 2,353,564 | jQuery - Function - setInterval | <p>I cannot understand what is incorrect in my jQuery code:</p>
<pre><code>function BTTS(){
$('#banner-title span').fadeOut('fast',function() {
$('#banner-title span').replaceWith('Rental Program');
};
}
$(document).ready(function(){
// RUN BTTS FUNCTION
setInterval('BTTS()', 7500);
}
</code>... | javascript jquery | [3, 5] |
5,842,978 | 5,842,979 | Installing JCC Ubuntu asking for path varaiable | <p>I am trying to install JCC.</p>
<p>Steps:</p>
<ul>
<li><code>svn co http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc</code></li>
<li><code>sudo python setup.build</code></li>
</ul>
<p>I am getting this error:</p>
<blockquote>
<p>Java JDK directory '/usr/lib/jvm/java-7-openjdk-amd64' does not exist. P... | java python | [1, 7] |
2,114,917 | 2,114,918 | How to get value to array in javascript | <pre><code>$array = array("1" => "box of chocolates", "2" => "mylar balloons", "3" => "stuffed animals");
<?php
$productWithItem = $array;
foreach ($productWithItem as $pwi) {
?>
<a href="#" id="product_name"><?php echo $pw... | php javascript | [2, 3] |
1,477,282 | 1,477,283 | Create variables with a For each loop - jquery | <p>I have the following</p>
<pre><code>var invest401_2 = $("input[type=hidden][name=invest401_2]").val();
var invest401_3 = $("input[type=hidden][name=invest401_3]").val();
var invest401_4 = $("input[type=hidden][name=invest401_4]").val();
var invest401_5 = $("input[type=hidden][name=invest401_5]").val();
var... | javascript jquery | [3, 5] |
5,216,937 | 5,216,938 | jquery reference this from parent | <p>Google is not being helpful trying to find the answer to this question! :(</p>
<p>How do I properly reference <code>this.colour</code> from the parent object from within a jQuery function like this:</p>
<pre><code>var obj = {
colour: 'blue',
do: function() {
$.getJSON('getcolour.php', function(resp) {
if (... | javascript jquery | [3, 5] |
4,614,636 | 4,614,637 | 3rd Party Script Breaking my JS | <p>I have a 3rd party script that displays some data on my site. When the script loads it breaks all of the JS on any page the script is in. I remove the script and my page works without issue. </p>
<p>Are there ways to prevent 3rd party scripts from interacting with my page in a way the breaks the page?</p>
<p><str... | javascript jquery | [3, 5] |
5,443,528 | 5,443,529 | How should I format jQuery for multiple lines of html insertion? | <p>I am getting an error, unless I put all the html on one line, which I don't want to do.</p>
<pre><code>$(this).closest('tr').after(
'<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>... | javascript jquery | [3, 5] |
2,486,331 | 2,486,332 | Infragistic grid ( Row select ) | <p>I am using Infragistic Webdatagrid to display data.
I want to select first row by default.
I tried following code for the same but not workin</p>
<pre><code> SelectedRowCollection selectedRows = gvHospital.Behaviors.Selection.SelectedRows;
selectedRows.Add(this.gvHospital.Rows[1]);
</code></pre>
<p>any suggestion... | c# asp.net | [0, 9] |
3,390,413 | 3,390,414 | Data attribute not rendering in the desired format when added dynamically ,not escaping double quotes | <p>Im trying to add a div tag dynamically with some data attributes but the data attributes are not rendering in the right format.Please find the code below</p>
<pre><code>$('<a href="#" id="opendialog2" data-role="button">Open Dialog2</a><div id="inlinecontent2" style="display:none" data-options="{"mod... | javascript jquery | [3, 5] |
2,433,173 | 2,433,174 | Could not get the updated value of textbox once the page is redirected | <p>I am building a web application in c# and asp.net.I am trying to access the value of textbox and generate a preview in next page with the content of textbox in the page1.When I am generating the preview for first time it works well,but the next time when I change the content of the textbox the value of textbox.Text ... | c# asp.net | [0, 9] |
2,883,810 | 2,883,811 | how to parse dict in javascript | <pre><code>$.post("http://10.0.1.101:9000/search/", {q: ""+inputString+""}, function(data){
if(data.length >0) {
alert(data);
$('#suggestions').show();
$('#autoSuggestionsList').html(data);
}
});
alert(data) gives me :
{"result": ["taxo", "tere", "tuy"], "success": "True"}
</code></... | javascript jquery | [3, 5] |
2,560,927 | 2,560,928 | Append querystring to Parent page when we close the popup window using javascript | <p>I want to append querystring to parent page when we close the popup window using javascript.
I am using below code but its not working :</p>
<pre><code>parent.location.href =parent.location.href+"?PostComments=true";
</code></pre>
| javascript asp.net | [3, 9] |
193,114 | 193,115 | Prevent WebView from displaying "web page not available" | <p>I have an app that makes extensive use of a WebView. When the user of this app does not have Internet connection, a page saying "web page not available" and various other text appears. Is there a way to not show this generic text in my WebView? I would like to provide my own error handling. </p>
<pre><code>private ... | java android | [1, 4] |
3,899,595 | 3,899,596 | How to restrict paste values in form? | <p>I have a form that contains a phone number field</p>
<pre><code><input name="phNumber" type="text" class="numbersonly"/>
</code></pre>
<p>using js i can allow only number but,i wanna to restrick paste value from mouse...</p>
<p>{NOTE: No Validation is required in this field}</p>
| php jquery | [2, 5] |
5,946,778 | 5,946,779 | asp.net : Get the value from textarea | <p>i am creating one form for image upload drag and drop through jquery.</p>
<p>when i dragged one image to aspx form, that time that image
preview and title ( textarea ) and desc ( textarea ) created to aspx page.</p>
<p>after entered the title and desc,
it is saved to database when i click save button.</p>
<p>i c... | c# jquery asp.net | [0, 5, 9] |
1,716,356 | 1,716,357 | Javascript alternative to jquery html() | <p>How would you write this jQuery method</p>
<pre><code>$('body').html(node);
</code></pre>
<p>for setting html to node in Javascript?</p>
<p>thank you</p>
| javascript jquery | [3, 5] |
678,930 | 678,931 | KeyDown event is not firing second time | <p>In my masterpage, i'm having one textbox for searching purpose. if we press enterkey it is redirecting to some otherpage. But it is happening only one time. next time when i enter some text and press enter key, it is not going to the Keydown event handler.</p>
<p>Code: </p>
<p>javascript Code:</p>
<pre><code> fun... | asp.net javascript | [9, 3] |
566,896 | 566,897 | jQuery DatePicker, how to show value in input field from database | <p>can't find solution to this issue. So i have datepicker input field, it works fine, i can choose date and save it to database. But when i want to edit this saved value in edit_profile.php this field is empty, i need to see the user specified date. How to do it?</p>
<p>Datepicker function:</p>
<pre><code>$(function... | php jquery | [2, 5] |
3,154,630 | 3,154,631 | Should the NPC class have its own move function, or does the move function belong in the game class? | <p>I'm working on an android game and have been considering my main game loop. Should the NPC class in my android java game have it's own move function, or should the move function be moved into the game class? Is there any advantage between option one and option two, CPU load, size of compiled apk, maintainability etc... | java android | [1, 4] |
3,102,613 | 3,102,614 | Dot Net Charting - Stack two series, leave the other as normal bar chart | <p>I have a dotnetcharting graph with 3 series. I can change the style of the whole graph to stacked.</p>
<pre><code>ChartIn.YAxis.Scale = Scale.Stacked;
</code></pre>
<p>But I want to just stack two out of the three series. So that for each there are two bars combined into one stack with another whole bar next to it... | c# asp.net | [0, 9] |
846,076 | 846,077 | jQuery and the this object | <p>jQuery is too overpowering :(</p>
<pre><code>String.prototype.trim = function () {
return this.replace(/^(\s|&nbsp;|\u00A0)+|(\s|&nbsp;|\u00A0)+$/g, "");
}
</code></pre>
<p>when I try to add the above code, I get <em>"this.replace is not a function"</em>.</p>
<p>I realise that jQuery references itself... | javascript jquery | [3, 5] |
4,436,247 | 4,436,248 | What is the Major Difference between Entity Framework of ASP.Net 4.0 and Entity Classes which is written by developer? | <p>Before entity Framework, Developer was writing the code Entity Classes which is contains the getter & Setters Method for Data Table Fields (Columns). </p>
<p>what is the purpose of introduce Entity Framework, and what's different between Entity Framework and Older traditional way to write down Entity Classes?</... | c# asp.net | [0, 9] |
4,818,105 | 4,818,106 | How to increase the timeout interval for long time communication to server | <p>i have developed the ASP.net project with C#.i have execute the script on button click event. in this script i have accessed the information from the mysql server . if database contains lots of information then script required 2 to 5 min to execute this function.when i have accessed the data from server side to clie... | c# asp.net | [0, 9] |
5,545,359 | 5,545,360 | Is it bad to add jQuery multiple times on a page? | <p>I am in a situation where I have multiple ASCX files that are being added to an aspx page. Some of these files include the jQuery library. Depending on which ones are added the jQuery library may be included more than once.</p>
<p>I cannot add jQuery at the masterpage or some other level, it must be from the ASCX... | jquery asp.net | [5, 9] |
4,593,973 | 4,593,974 | jquery delete table row on click on check box | <p>I have a table which is dynamically created , there is a checkbox in each row of the table, when user click that checkbox the whole row of the dynamically created table needs to deleted.</p>
| javascript jquery | [3, 5] |
1,511,450 | 1,511,451 | Android random object | <p>I m developing a card game in android.
i need to show three cards out of 52 cards by button click through animation which should be random cards.</p>
<p>so how can i do that?</p>
| java android | [1, 4] |
2,610,374 | 2,610,375 | Run loop every second java | <pre><code>int delay = 1000; // delay for 1 sec.
int period = 10000; // repeat every 10 sec.
Timer timer = new Timer();
timer.scheduleAtFixedRate(new TimerTask()
{
public void run()
{
displayData(); // display the data
}
}, delay, period);
</code></pre>
<p>And oth... | java android | [1, 4] |
1,134,631 | 1,134,632 | carousel exception | <p><strong>Following is my page</strong></p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestForm.aspx.cs" Inherits="Dish.TestForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagName=... | jquery asp.net | [5, 9] |
2,598,970 | 2,598,971 | I want the php page to load first with other information & then do an operation | <p>I am looking for a solution so that the php page will load all other information in it say the contents/images if any and then do an operation which will take some time to complete and show its results.</p>
<p>As the operation is taking long time the php page loads too slow. I want my client to saw the page first a... | php javascript | [2, 3] |
5,197,298 | 5,197,299 | jQuery reset validation on a form in a dialog | <p>I've been struggling to reset a form within a dialog window upon close. My form is using jQuery validate and I've tried to use the documented resetForm() function, but no luck.</p>
<p>Below are two attempts on how I am trying to achieve clearing the form upon the user hitting "Close". Neither are working.</p>
<p>H... | javascript jquery | [3, 5] |
5,479,903 | 5,479,904 | Python & C#: Is IronPython absolutely necessary? | <p>I'm primarily a C# programmer, but have been left with a project that leaves me with 2 options:</p>
<ol>
<li>Call out to a python script (saved as a .py file) and process the return value, OR...</li>
<li>Rewrite the whole python script (involving 6 .py files in total) in C#.</li>
</ol>
<p>Naturally, Option 2 is a ... | c# python | [0, 7] |
934,084 | 934,085 | High memory usage on Android Application | <p>I have a little application, this application has seven activities, basically 6 are layouts with images and one is a MapActivity, among of 5 layouts one has a ArrayList of a internal class and each time that I use my application the memory grows to 50mb, 70mb, 111mb... I tried to call Garbage Collector but I didn't ... | java android | [1, 4] |
922,922 | 922,923 | Retrieving iframe contents after a form submitted to it | <p>I have a form with an iframe as its target, and I want to retrieve its contents after the form has been submitted.</p>
<p>The problem is if I do something like: </p>
<pre><code>$('form').submit(function (e) {
e.preventDefault();
var content = $('iframe').contents();
});
</code></pre>
<p>I get nothing beca... | javascript jquery | [3, 5] |
5,791,773 | 5,791,774 | Adding an achor to a aspx page and getting the domainname | <p>Hi i am trying to add an anchor that pulls in the domain name and then i can just have whatever after that for example</p>
<pre><code><a href="GET_THE_DOMAIN+/admin/pages/customers/add.aspx">ADD CUSTOMERS</a>
</code></pre>
<p>how can I get the domain without hardcoding it since we will be using the sam... | c# asp.net | [0, 9] |
1,866,818 | 1,866,819 | namespace conflict | <p>I got:</p>
<pre><code>using System.Diagnostics;
using System.Reflection;
namespace Site
{
public abstract class General
{
private static string _version;
public static string Version { get { return _version; } }
static General()
{
Assembly assembly = Assembly.... | c# asp.net | [0, 9] |
1,303,614 | 1,303,615 | Select Box and jquery | <p>How do I change a message when I select different values from a select box using jquery.</p>
<pre><code><select name="myname">
<option value="rahul" selected>Rahul</option>
<option value="aisha">aisha</option>
</select>
</code></pre>
<p>If <code>rahul</code> is selected s... | javascript jquery | [3, 5] |
1,283,402 | 1,283,403 | How can we do overloading in php? | <p>In java we call it overloading when we define two methods with different numbers of arguments.How do we do it in php or javascript where number of parameters passed need not be equal to arguments defined.</p>
| php javascript | [2, 3] |
705,280 | 705,281 | Identifying a usercontrol in tha same page in ASP.net | <p>Am using a user control say C in a page say A. So also while doing a submit / or action in the user control ( It contains a grid with edit delete functionality) , control goes to parent page A then only enters to the edit or delete function.</p>
<p>How can i identify that the control has been directed from the user... | c# asp.net | [0, 9] |
5,429,112 | 5,429,113 | java.lang.outofmemoryerror on create bitmap | <p>I receive big image (png, >30Mb) and create bitmap for it. And get java.lang.OutOfMemoryError. I try to catch such exception:</p>
<pre><code>try {
Bitmap bmp = BitmapFactory.decodeStream(someStream);
} catch (OutOfMemoryError e) {
;
}
</code></pre>
<p>With 2.2 SDK it works well. But with 2.3 app fails with... | java android | [1, 4] |
5,665,945 | 5,665,946 | setting asp hyperlink values JS | <p>i have an asp hyperlink. and i want to set the innerHTML and outerText of this hyperlink in javascript. how can i achieve this?<br>
i have the following code:</p>
<pre><code>var path='c:\folder\file.gif'
var HyperlinkObj = GetElementById('hl');
HyperlinkObj.innerHTML ='<a href='+path+'></a>'; //causes: ... | javascript asp.net | [3, 9] |
2,120,067 | 2,120,068 | How to take the value of two EditText fields and perform simple mathematics | <p>I am new to Android development and am working on a simple practice project where the user enters a number into two EditText fields and presses a Button labeled "Calculate" and the sum of the two numbers is displayed. Here is the code I have so far, but I don't know how to add the two string values and output it to ... | java android | [1, 4] |
5,869,000 | 5,869,001 | JavaScript enabled/disabled in browser | <p>How to find whether a user has enabled or disabled JavaScript in the browser or the browser does not support JavaScript?</p>
| javascript asp.net | [3, 9] |
3,647,472 | 3,647,473 | Why is my jQuery keydown feature only working on the first input element | <p>I've built a small jQuery script that adds a class to witch ever input field I'm writing in. However it only works on all input fields after something is written in the first input field, see <a href="http://dev.resihop.nu/" rel="nofollow">dev.resihop.nu</a> for example.</p>
<p>The code:</p>
<pre><code>$('.field')... | javascript jquery | [3, 5] |
3,006,711 | 3,006,712 | Page.IsValid always return false | <p>I have cause validation true on button. And I am checking the <code>Page.IsValid</code> in c# code. But its always returning false value?</p>
| c# asp.net | [0, 9] |
2,299,537 | 2,299,538 | Make a 1 columns per row table into 2 columns per row table using jquery | <p>I have a strange issue.</p>
<p>I have a table that will show the output as</p>
<pre><code>User1
User2
User3
User4
......
</code></pre>
<p>That will have lot of rows.</p>
<p>Now this is the output of some control</p>
<p>I want to show the data as</p>
<pre><code>User1 User3
User2 User4
</code></pre>
<p><st... | javascript jquery | [3, 5] |
2,968,140 | 2,968,141 | jQuery $.removeAttr("selected") changes selected option | <p>Please take a look at the example: <a href="http://jsfiddle.net/HHDpK/1/">http://jsfiddle.net/HHDpK/1/</a></p>
<p>As you see the difference between two choosers is only the line</p>
<pre><code>$("#chooser-1 .y").removeAttr("selected");
</code></pre>
<p>But as a result their states are different (especially in Chr... | javascript jquery | [3, 5] |
3,016,502 | 3,016,503 | jQuery Validator : Validate AlphaNumeric + Space and Dash | <p>I have jQuery validation plugins (http://docs.jquery.com/Plugins/Validation) installed on my website.</p>
<p>I'm using this code to validate alpha-numeric from text field, and it works. but it doesn't allow space and dash (-).</p>
<pre><code>$.validator.addMethod("titleAlphaNum", function(value, element, param)
{... | php jquery | [2, 5] |
5,703,661 | 5,703,662 | Use jQuery to select a specific element with arbitrary data | <p>Hi I'm new to jQuery and I am trying to figure out how I can select a particular element with class <code>organizer_listing_checkbox_container</code> and whose parent <code>.organizer_listing</code> has arbitrary data <code>data-listing_id=1234</code>. There are many elements with class <code>organizer_listing_check... | javascript jquery | [3, 5] |
5,436,831 | 5,436,832 | Dynamically create key in JavaScript object | <p>I am trying to dynamically create a key in a <code>JavaScript</code> object with a <code>jQuery</code> selector:</p>
<pre><code>{
$("form").children("input[type=hidden]").attr("name"): $("form").children("input[type=hidden]").val()
}
</code></pre>
<p>This is breaking though. Is it possible to dynamically create ... | javascript jquery | [3, 5] |
2,757,055 | 2,757,056 | How to make event click event fire only once when element is clicked multiple times | <p>I have a link that the user clicks on to delete a record (<code>class="delMail"</code>). When they click this link, a new div shows up with 2 more links [Y and N]. clicking on Y will delete their email, clicking on N will cancel the request. </p>
<p>The problem is that if the user clicks 10 times on the delMail li... | javascript jquery | [3, 5] |
5,615,802 | 5,615,803 | jQuery BlockUI. Do a function after BlockUI fades out | <p>I use jQuery BlockUI plugin.</p>
<p><a href="http://www.malsup.com/jquery/block/" rel="nofollow">http://www.malsup.com/jquery/block/</a></p>
<p>I want to chage some text after jQuery BlockUI fades out.</p>
<p>Here is my code;</p>
<pre><code>$('#cls').click(function() {
setTimeout($.unblockUI, 0);
... | javascript jquery | [3, 5] |
35,448 | 35,449 | increment php variable in javascript function | <p>Can anyone tell me how to increment a php variable inside a javascript function.I have a javascript function which is called for every 3 seconds inside this function i need to increment the php variable.</p>
<pre><code><? php $k =0?>
function slide()
{
//increment $k
var j =<? php echo $k++; ?>//when ... | php javascript | [2, 3] |
5,189,347 | 5,189,348 | Whats a good argument for/against using inline javascript within the html body tag? | <p>One of my co-workers is thinking that it is simpler to just include the document.ready() calls (MULTIPLE) for jquery anywhere in an html document, rather than trying to have them all in the head, foot or in an external js file. Can you give me your thoughts about this?</p>
<p>The document.ready stuff is loaded by m... | javascript jquery | [3, 5] |
5,024,202 | 5,024,203 | jQuery token input | <p>How can I allow users to select input from a jQuery input while they can still type in their input that does not match the suggestion from jquery token input? Like when you add tags for questions here.</p>
| javascript jquery | [3, 5] |
4,499,361 | 4,499,362 | Search engine logic with pagination, working with large result set | <p>i've got a website with internal search engine that searches for users with specific parameters like age, height.... There are thousands of users so i've decided to use advanced CTE in order to retrieve 10 records each time to reduce load on MSSQL server.</p>
<p>In this CTE i get results by pages (ie. 10 records pe... | c# asp.net | [0, 9] |
199,459 | 199,460 | how to add a variable into a selector | <p>i wanna turn this </p>
<pre><code>document.getElementById('group_'+group).value = attribute;
</code></pre>
<p>into jquery format so that it looks cleaner.
i tried this and it doesnt work</p>
<pre><code>$("#group_" +group).val() = attribute;
</code></pre>
| javascript jquery | [3, 5] |
3,925,631 | 3,925,632 | Can't use dynamic variable into JQuery function | <p>I want to disable TableSorter plugin on some th.
These th have class="disableSorter", so I do:</p>
<pre><code>$('.disableSorter').each(function(index) {
$('.tablesorter').tablesorter({ headers: { index: { sorter: false} } });
});
</code></pre>
<p>where index: is the index variable passed in the function.
Th... | javascript jquery | [3, 5] |
2,528,614 | 2,528,615 | Filtering by class attribute using JQuery | <p>I'm a bit confused on how filtering works in jQuery. Apparently, these two lines are different:</p>
<pre><code>$('svg').filter('.woah')
$('svg[class=woah]')
</code></pre>
<p>Why is this so?
Here's a simple jsFiddle I cooked up:
<a href="http://jsfiddle.net/8MLRE/4/" rel="nofollow">http://jsfiddle.net/8MLRE/4/</a><... | javascript jquery | [3, 5] |
3,324,848 | 3,324,849 | execute javascript when a usercontrol become visible | <p>I have a usercontrol wich is visible=false when the page is loaded.
Then, it becomes visible=true.
I want some javascript to be executed when this usercontrol is set to visible=true in the code-behind.
the only solution i found is to use ScriptManager.RegisterStartupScript in the </p>
<p>usercontrol's code behind.
... | asp.net jquery | [9, 5] |
1,830,623 | 1,830,624 | new line in javascript passed to get argument | <p>Im using .net multiline control. The I use jQuery to get data from that control:</p>
<pre><code>$('.detailsCommentContent').val()
</code></pre>
<p>in this moment when I alert that value new lines are visible.</p>
<p>Then I make request <code>www.example.com?commentContent= + "$('.detailsCommentContent').val()"</c... | javascript jquery asp.net | [3, 5, 9] |
3,499,357 | 3,499,358 | echo five times a input with jQuery | <p>How is repeated code HTML for five times?</p>
<p>like repeated(<code>echo</code>) a input <code><input type="text" name="ok"></code> with a js code five times.</p>
<p>I mean this is that, a input by a js code echo five times</p>
<p>I want after run jQuery code output is this (5 input):</p>
<pre><code><i... | javascript jquery | [3, 5] |
1,714,797 | 1,714,798 | expand/collpase not all working within created div | <p>I have this code to create div and collapse/expand element within each created div.</p>
<pre><code> var i=1;
$('#addDiv').click(function() {
var divId="addedDiv"+i;
$(".content_body").slideUp(500);
$('<div></div>').attr({
'id' : divId,
'cl... | javascript jquery | [3, 5] |
5,083,411 | 5,083,412 | How to access master page control in child .aspx page (in javascript) | <p>In my masterpage.cs i am assigning a value to a hidden field (<code>hfSession="abc";</code>)</p>
<p>In my content page (default.aspx) i need to access this value in my javascript:</p>
<pre><code><script type="text/javascript" language="javascript">
function(sender, e)
{
var Sessioninfo= $... | javascript asp.net | [3, 9] |
711,072 | 711,073 | resuming my application from background | <p>i have created an application its a music player with just a simple layout one button for play and stop. when i press the play button the music start to play and the play button change to stop button.. then when i press the back button the application goes in to background so i have to go to the menu and launch the ... | java android | [1, 4] |
4,599,041 | 4,599,042 | how to add a loading "spinner" | <p>i have some very simple js (i'm still learning) that basically reads the elements of a form and creates a url string that is passed to an imaging server, that in turn renders the image. </p>
<pre><code>var imgURL = "http://testvipd7.scene7.com/is/agm/papermusepress/";
var product = "BirthdayCard_End" + "?&";
v... | javascript jquery | [3, 5] |
2,227,791 | 2,227,792 | How to handle Android portrait and landscape in code? | <p>I'm developing an application in two languages (Arabic and English), When the user press on a Button in the first activity it views another activity contains (Timer, array of strings and many different values)<br>
When the user change between portrait and landscape the values lost, How to handle this problem (Keepin... | java android | [1, 4] |
5,957,778 | 5,957,779 | dynamic jquery question | <p>I am doing the following to toggle the display of an element:</p>
<pre><code>$("*[id^=" + id + "_]").toggle(); // id is the element to toggle
</code></pre>
<p>This then toggles everything of the form id_* where * is any string.</p>
<p>I now realized, that I don't want to simply toggle each element, but show or hi... | javascript jquery | [3, 5] |
212,391 | 212,392 | close Browser from code behind - aspx | <p>I have this aspx page and it works all fine.</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
string clientID = Request.QueryString["ID"];
string clientName = Request.QueryString["NAME"];
folderSearch(clientID, clientName);
}
public void folderSearch(string clientID, string clientName)... | c# asp.net | [0, 9] |
2,802,867 | 2,802,868 | jQuery looking for scroll height code to determine when to add new items to lazy loading scrollable div [jsFiddle attached] | <p>I have a large array of items that I render with jQuery templates. I want to render 50 or so at a time, and show more when the user scrolls down. I'm trying to find the correct logic on working with the scroll bar. I am doing something like this, but the scrolling is still a bit wonky:</p>
<pre><code>var listItems ... | javascript jquery | [3, 5] |
347,879 | 347,880 | android reading from a file | <p>I'm new to android and while reading a book can't understand the reason for new allocation in the loop. Isn't it enough to make it once before the loop?</p>
<pre><code> FileInputStream fIn =
openFileInput("textfile.txt");
InputStreamReader isr = new
InputStreamReader(f... | java android | [1, 4] |
1,322,818 | 1,322,819 | How do you add HTML dynamically with JS (In Strings?) | <p>I read before that HTML thats used only for JS should not be in the HTML? So how do you store markup to be used for JS added content. eg. Markup for jQuery Dialogs, controls, buttons etc.</p>
<p>Some possibilities I see are: </p>
<p><strong>As a string</strong> <a href="http://jsfiddle.net/g7g7t/" rel="nofollow">h... | javascript jquery | [3, 5] |
5,981,512 | 5,981,513 | Why can't JQuery load my resource? | <p>I have the following script in an page called ajax.aspx page:</p>
<pre><code> <script type="text/javascript">
$(document).ready(function () {
var nameFoundMessage = $('#nameFoundMessage');
var nameInput = $('#name');
nameFoundMessage.hide();
nameInput.blur(function () {
... | c# jquery asp.net | [0, 5, 9] |
598,153 | 598,154 | in asp.net how can I dynamically hide one field based off anothers value? | <p>I have 4 asp:Textbox fields on a form. IDs being A1, A2 and B1, B2 for simplicity.
If any one of the As or Bs is populated, I need to hide the other one. So I enter something in A1, hide A2, enter something in B2, hide B1.</p>
<p>I thought I could use a javascript OnBlur event to do this but it doesn't do anythin... | javascript asp.net | [3, 9] |
3,634,088 | 3,634,089 | Retain the page update by Javascript and run the PHP code? | <p>In a php project I need to add items to database, list them & allow the user to edit & update items using a single page.</p>
<p>This is my code to edit item link in HTML table</p>
<pre><code>echo '<a href=" '.$_SERVER['PHP_SELF'].'?name=edit&id=' .$rowCountry->CountryId .' " id="edit" onClick... | php javascript | [2, 3] |
1,037,776 | 1,037,777 | Load javascript function after other function | <p>I have two functions. I'd like <code>moduleList()</code> to load AFTER <code>reloadModules()</code>:</p>
<pre><code>reloadModules();
moduleList();
function reloadModules() {
$.get(v2_settings_url + 'v2_nav/', null, function(responseText) {
$('#dock ul').html(responseText).parent().fadeIn();
});
... | javascript jquery | [3, 5] |
1,302,462 | 1,302,463 | Mobile technology products using PHP/Javascript/jquery | <p>I wanted to know the mobile technology products which are developed using PHP/Javascript/jquery.</p>
<p>Which are latest mobile products are available in market developed using above mentioned langauges.</p>
<p>Are iphone,blackberry,nokia and etc uses these above technologies to develop product and which are those... | php javascript jquery | [2, 3, 5] |
774,159 | 774,160 | how to reset elements affected by a jquery function | <p>I have a jQuery function that runs when a box is clicked that affects multiple other elements on the page (creates a slideshow from a group of divs). There are multiple boxes on the page and I need to reset the elements affected by the function back to normal whenever the box is clicked again. Is there an easier way... | javascript jquery | [3, 5] |
4,845,486 | 4,845,487 | jquery each for all text boxes | <p>I am using following script to bind a keypress event on each textbox so that on reaching the maxlength, focus will switch to next input field. Passing classname as the prarameters to the function.</p>
<pre><code>function autoFocusPhoneFields(txtbox1ID,txtbox2ID) {
$('input.'+txtbox1ID+', input.'+txtbox2ID+'').e... | javascript jquery | [3, 5] |
5,685,841 | 5,685,842 | Error in passing the hidden values to JavaScript in asp.net | <p>Problem with passing values to Javascript, am I going wrong in passing the value pls help.</p>
<pre><code>var percentage= parseInt(document.getElementById("<%=hid_Percentage.ClientID%>").value);
var color = document.getElementById("<%=hid_Color.ClientID%>").value;
var progress1 = new RGr... | javascript asp.net | [3, 9] |
5,945,831 | 5,945,832 | jquery with index based radio button selected value help | <p>I have following generated code and tried to retrive the radio button value or checked from below html generated code </p>
<p>HTML code generated ::: </p>
<pre><code> <input type="radio" name="mergedServiceSets[0].cdaQuestionnaireresponses[0].questionnaire.value" id="SetUpTest_mergedServiceSets_0__cdaQ... | javascript jquery | [3, 5] |
2,602,547 | 2,602,548 | jQuery: Get DIV By Number (ex: document.getElementsByTagName("p")[1]) | <p>How would I go about getting a "div" based on its' position in HTML.</p>
<p>For example, in default Javascript, you do:</p>
<pre><code>document.getElementsByTagName("div")[5]
</code></pre>
<p>However, I can't find a way to do it in jQuery. I'd imagine it to be something like:</p>
<pre><code>$("div")[5]
</code></... | javascript jquery | [3, 5] |
3,730,006 | 3,730,007 | Does Validator.SetFocusOnError work without a postback? | <p>I have an ASP.net page with a RegexValidator. The RegexValidator successfully displays my validation error text when a user types a value out of range and navigates (tabs) off of the control. At that point, it doesn't set the focus to that control, even though I have SetFocusOnError="true".</p>
<p>The focus does ... | asp.net javascript | [9, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.