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,333,316 | 1,333,317 | using single quote or double quote | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/242813/when-to-use-double-or-single-quotes-in-javascript">When to Use Double or Single Quotes in JavaScript</a><br>
<a href="http://stackoverflow.com/questions/3149192/difference-between-single-quotes-and-double-q... | javascript jquery | [3, 5] |
1,830,730 | 1,830,731 | mysql_real_escape_string() -> stripslashes() -> jquery.append() | <p>im letting my users type in texts, then take them to server side php and process them, and if everything goes as it should, i just append the text with jquery without the page having to load all over again.</p>
<p>This is the procedure:</p>
<pre><code>$post_text = htmlspecialchars(mysql_real_escape_string($_POST['... | php jquery | [2, 5] |
4,460,275 | 4,460,276 | $ undefined error | <p>I'm developing a Chrome extension and I've got the following...</p>
<pre><code> $(document).keypress(function(event){ resizeDialogIFrame(overlaydiv, iFrame.contentWindow); });
</code></pre>
<p>But when executed I'm getting the following error...</p>
<p><code>Uncaught ReferenceError: $ is not defined</code></p>
<... | javascript jquery | [3, 5] |
1,611,365 | 1,611,366 | 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] |
992,721 | 992,722 | to get a list of bools, .contain() | <p>how do i do a list for bools in javascript. im doing a validation so i can have a list of bools and at the end i want to check that list if it contains any errors. im not sure how to add to the varable <code>validations_errors</code> (like a list). Plus i dont know how i can check if that list contains any true valu... | javascript jquery | [3, 5] |
1,710,733 | 1,710,734 | Background Won't Turn Black with jQuery | <p>The code that I have is as follows:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<script src="javascript/jquery.js" type="text/Javascript"> </script>
</head>
<body>
<div id="demo"></div>
<script type="text/javascript">... | javascript jquery | [3, 5] |
3,581,725 | 3,581,726 | Loading Value of Input into Slider Options | <p>I need the variable "value" in my slider plugin to be the integer value of a input in the form:</p>
<pre><code>$(function () {
$("#calcSlider").slider({
min: 0,
max: 90,
step: 5,
value: /* ACCESS HERE!!!!!! */,
slide: function (event, ui) {
$("#calcSup").val(ui.value);
}
});
});
<... | javascript jquery | [3, 5] |
3,878,553 | 3,878,554 | How to toggle checkbox selection rather than only selecting? | <p>I currently am using this JavaScript code snippet to select 3 checkboxes at a time</p>
<pre><code>$(document).ready(function() {
var $cbs = $('input:checkbox[name="select[]"]'),
$links = $('a[name="check"]');
$links.click(function() {
var start = $links.index(this) * 3,
end = start + 3... | javascript jquery | [3, 5] |
2,257,715 | 2,257,716 | Gradually change colour of a bitmap? | <p>I've got several bitmaps on the screen that gradually need to change colours depending on values they are set. I've looked into LightingColorFilter, PorterDuffColorFilter and ColorMatrix but the problem is the colours change constantly (tens of times a second and many objects). The problem with the 2 above is they c... | java android | [1, 4] |
3,334,748 | 3,334,749 | How to show some progress animation in my textbox | <p>I want to show some progress animation in my textbox. Becoz when i click on save button .Records added to the gridview are inserted in the database which return a unique id. This id i want to display in the textbox. But this process takes some time meanwhile i want to show some progress animation inside the textbox.... | javascript asp.net | [3, 9] |
5,117,308 | 5,117,309 | How to extend list of objects to automatically update property based on position in list | <p>Let's say I have a class Car like this: </p>
<pre><code>class car
{
string model;
int position;
}
</code></pre>
<p>Position is a number from 1 to n, which basically reflects position in the list.
if I have two cars in list they will have positions 1 2.
Now, I'd like to reorder those cars in list in the UI a... | c# asp.net | [0, 9] |
3,302,480 | 3,302,481 | Asp.net detailsview - get data after update | <p>I have a web page with an editable DetailsView. After it is (successfully) edited, I need to use some of the edited fields to update some other tables in the database (in the code behind). I tried to use the DetailsView.DetailItem in the DetailsView_ItemUpdated event code, but the DetailItem isn't available any mo... | c# asp.net | [0, 9] |
750,416 | 750,417 | How to find a parent's child with jQuery? | <p>I have a menu that looks like this:</p>
<pre><code><ul class="menu">
<li><a href="#">zing</a></li>
<li>
<a href="#">page</a>
<ul>
<li>foo</li>
<li>bar</li>
</ul>
</li>
</ul>
</code></pre>
<... | javascript jquery | [3, 5] |
3,171,926 | 3,171,927 | how to set background color of title bar of popup window in jquery | <p>Can any one please tel me that how to set background color of title bar of popup window in jquery. </p>
<p>Title text is "Email Options".</p>
<pre><code> function showEmailDlg() {
var dlg = $('#dlgEmail').dialog(
{
draggable: true,
position: 'center',
mo... | jquery asp.net | [5, 9] |
3,608,357 | 3,608,358 | ASP:label and javascript getElementById | <p>I'm trying to get the value of the <code>Text</code> property of an <code>asp:label</code> with Javascript's <code>document.getElementById</code> method, using the following code</p>
<pre><code><asp:Label ID="lblThis" runat="server" Visible="False" Text="this is a label" />
<script type="text/javascript" l... | javascript asp.net | [3, 9] |
3,438,820 | 3,438,821 | jQuery toggle element style but pausing briefly inbetween | <p>I have an element which I am toggling the style of (like an on/off button). If it's currently 'on', change the style to 'off' and vice versa.</p>
<p>However, in some scenarios, I want to perform the above, but then revert to it's original state (cancelling out the toggle), but I want this to be reflected to the use... | javascript jquery | [3, 5] |
5,752,184 | 5,752,185 | Using javascript APIs in Java | <p>I am writing a standalone application in Java that needs to be able to call custom Javascript APIs? Is there a way to call custom Javascript APIs in Java?</p>
| java javascript | [1, 3] |
5,950,807 | 5,950,808 | Vertically centering child div in parent container with JavaScript on page load is not setting position? | <p>I am using JavaScript to vertically center a child div within a fluid container. I essentially accomplish this by calculating the height of the parent container and the height of the child div. I then absolutely positon the child div in the center of the parent div based on the height. The issue I am experiencing is... | javascript jquery | [3, 5] |
2,399,611 | 2,399,612 | What is the proper use of Jquery's $get to retrieve a control | <p>How might I reference a control in JQuery so that it wont throw an error if the control doesnt exist?</p>
<p>ie: this at the moment throws server error in asp.net</p>
<pre><code>if ($get('<%= Panel1.ClientID %>') != null) { <-- Fails with "The name 'Panel1' does not exist in the current context"
$get(... | c# jquery asp.net | [0, 5, 9] |
2,599,417 | 2,599,418 | page method question | <p>I'm building an asp.net page that uses a page method call from jquery. This is a simple test page but I can't get it to work and I can't see why.</p>
<p>I added a script manager to the aspx. Here's the javascript function:</p>
<pre><code><script type="text/javascript">
function CallGetLoaded() {
... | c# asp.net | [0, 9] |
1,164,219 | 1,164,220 | Calling a PHP function from a JS function, using parameters | <p>I would like to use a JS function to call a PHP function using a parameter.<br><br>
So the JS function ipOpts() will call the PHP function getColumns() using the myField as a parameter.<br><br>
I have tried to do something but it's not working.<br><br>
<hr><br></p>
<p>JS file:</p>
<pre><code>var ipOptsArray= new A... | php javascript | [2, 3] |
2,366,978 | 2,366,979 | Setting a SELECT element by text, not value | <p>I'm sure this is relatively easy and straightforward, but I'm having no success figuring it out.</p>
<p>I am trying to set the selected option of a drop down list element using the following code:</p>
<pre><code> if ($(this).attr("tagName") == "SELECT") {
oldValue = $(this).parent().parent().fi... | javascript jquery | [3, 5] |
5,586,611 | 5,586,612 | finding wrong characters in javascript | <p>Since I am about to write a small php-script I like to call to get all the javascript for my page, this leads to strange error on client side. The script does actually use an configuration xml-file and some xsl-stylesheets to generate an large Javascript string. Sometimes it happens that I get an 'unterminated Strin... | php javascript | [2, 3] |
123,940 | 123,941 | ASP.Net Maintain a list of objects for a button click event | <p>I am creating an asp.net page which loads data from a (SQL) visual studio database file (.mdf). </p>
<p>The data is loaded into a list of User objects (List) which contain the user data obtained from the database. This data is then displayed in a ASP.net table with a check box in column one. This allows the person ... | c# asp.net | [0, 9] |
2,317,030 | 2,317,031 | How to send data to another Android Aplication and receive the processed data back? | <p>I want to create two separate Android applications to behave like this:</p>
<p>MainAplication will call Aplication2 when a buttom is clicked, then the MainAplication will send some data to Aplication2, Aplication2 will open in front of the MainAplication(top of the screen), will process the information sent and the... | java android | [1, 4] |
3,560,065 | 3,560,066 | getting error while replacing the single quotes from text | <p>I have a text box with tinyMCE editor, i am giving some text from that text box with single quotes, but in query it is showing syntax error</p>
<p>I am trying to remove the single quotes by this </p>
<pre><code>txbCaption.Text = txbCaption.Text.Replace("'", "''");
</code></pre>
<p>and my query</p>
<pre><code>pub... | c# asp.net | [0, 9] |
5,537,437 | 5,537,438 | how can i show string one activity to another activity on a 9*9 sudoku grid? | <p>i want to show string one activity to another activity another activity is the sudoku game class and want to show the string like a sudoku puzzle on the sudoku screen board on the sudoku game class.sudoku grid is 9*9.</p>
| java android | [1, 4] |
3,366,070 | 3,366,071 | Java and C# pass by value differences | <p>I think the code below will make my question clear. If they both pass by value, why are they different. </p>
<p>C# below:</p>
<pre><code>static void Main(string[] args)
{
var list = new List<int> {1, 2, 3,};
ChangeVars(list);
foreach (var i in list)
{
Console.W... | c# java | [0, 1] |
1,952,541 | 1,952,542 | strange Report VIewer Error: Could not load file or assembly 'App_WebReferences.e8ik1wuc | <p>I'm connecting to a MS NAV 2009 web service in my asp.net 4.0 web application...every other communication with the web service works fine but when i try to create a report with the report wizard i get the error below:</p>
<blockquote>
<p>"Could not load file or assembly 'App_WebReferences.e2c6mdeb,
Version=0.0.... | c# asp.net | [0, 9] |
1,006,849 | 1,006,850 | Using of custom typeface for drawing on canvas Java Android | <p>I have a custom typeface which I have loaded in Typeface object with Typeface.createFromAsset(...). I need to drawing 1 symbom from this typeface with char-code 37 on canvas. I use this code:</p>
<pre><code>String s=String.valueOf(((char)37));
Paint paint=new Paint();
paint.setTypeface(mNoteTypeface);
paint.setTex... | java android | [1, 4] |
3,216,226 | 3,216,227 | C# equivalent to Java resource | <p>Is there an online resource or database that allows looking up the C# equivalent to a Java class and vice versa?</p>
<p>I have been porting code and have been Googling individual classes one at a time; it gets a little tedious. 8^j</p>
<p>Cheers</p>
| c# java | [0, 1] |
5,983,444 | 5,983,445 | The correct sytax for IF THEN with variables | <p>How does one code for a choice between two options?</p>
<pre><code>if ((one_spinner.getSelectedItem().toString()
.equals("one"))) {
double one_thing = new Double(one.getText()
.toString());
double two_thing = one_thing * 5;
} e... | java android | [1, 4] |
2,942,989 | 2,942,990 | Align the texts center with the given position | <p>I need to draw a text using </p>
<p>canvas.drawText("1",x,y, paint);</p>
<p>But the problem is that the "text's center" doesn't match with the position I have given,Is there any way I can do the latter.I have done quite a lot of search on the topic,culdn't find any answer.Please help.</p>
<p>Thank You in advance<... | java android | [1, 4] |
3,624,979 | 3,624,980 | Prevent to navigate back in browser | <p>I want to prevent navigate back (prevent backspace key and back button in browser) using JavaScript or Jqurey. my language is coldfusion 8. </p>
| javascript jquery | [3, 5] |
626,200 | 626,201 | jQuery select change event | <p>I am trying to fire an alert depending on which value is selected from a <code><select></code> element using jQuery:</p>
<pre><code>$("#optiontype").change( function () {
var option = $("#optiontype").val();
if(option.Contains("Forward")){
alert("forward selected");
}
}... | javascript jquery | [3, 5] |
5,502,520 | 5,502,521 | How to combine two Javascripts | <p>These are the two javascripts that i am trying to combine in the header of my website, the first script is for my tab menu and the second is for my content slider. Any help would be appreciated.</p>
<pre><code> <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type=... | javascript jquery | [3, 5] |
1,726,390 | 1,726,391 | appending selected tree view node to another div | <p>I have an ASP.Net tree view control with checkboxes. my requirement is if any node(parent or child) is checked that node should be copied to another div. if the parent node is checked, that parent node with child nodes should be copied to the div.
anyone plz help me for this task.</p>
<p>Thanks.</p>
| javascript jquery asp.net | [3, 5, 9] |
2,838,033 | 2,838,034 | Checking when an XML File is uploaded with C# | <p>I manage a website that pulls data in from an XML file, the file is updated every night around midnight. I am trying to write a simple piece of code that says on the website, File Last Updated: something something. After poking around and trying several different solutions, (I tried several variations using FileInfo... | c# asp.net | [0, 9] |
1,073,152 | 1,073,153 | how to paint on an image and save the image to phone gallery in android | <p>** my intent is to save the painted image along with my background view to gallery** //</p>
<pre><code>public boolean onTouch(View view, MotionEvent event) {
// draw the new Points to our internal canvas / bitmap
System.out.println("onTouch(View vc) { IS CALLING11111111111");
... | java android | [1, 4] |
4,796,236 | 4,796,237 | Method Undefined for the Type in Android | <p>I have an error stating something like:</p>
<blockquote>
<p>The method foo() is undefined for the type bar(){}</p>
</blockquote>
<p>Eclipse tells me that after entering this code:</p>
<pre><code>((application_variables) this.getApplication()).setSomeVariable("foo");
</code></pre>
<p>I'm not sure if this is the... | java android | [1, 4] |
2,823,852 | 2,823,853 | Click event ignoring if/else in Jquery | <p>I thought this would be simple: all I want is for JS to detect if the child img of the clicked link has a certain src attribute. If yes, do one thing. If no, do this other thing. But for some reason the click event is ignoring the if/else condition entirely. I can put any nonsense I want if the <code>.children()</co... | javascript jquery | [3, 5] |
276,040 | 276,041 | Override DataBind() | <p>I have a page.</p>
<p>In the C#:</p>
<pre><code>public class myClass
{
protected void Page_Load(object sender, EventArgs e)
{
mydropdown1.DataSource = location_of_data;
mydropdown1.DataBind();
mydropdown2.DataSource = location_of_data;
mydropdown2.DataBind();
}
}
</code... | c# asp.net | [0, 9] |
3,504,891 | 3,504,892 | Fastest way to read file as a byte array | <p>What is the fastest way to read a file as a byte array (on Android)? The file is about 4 MB. It's inside the assets directory, which means that it's probably compressed.</p>
<p>Currently, I'm doing something like this:</p>
<pre><code>byte[] buffer = new byte[4 * 1024 * 1024];
context.getAssets().open(FILE_NAME).re... | java android | [1, 4] |
1,325,676 | 1,325,677 | Sending parameter to jQuery function | <p>In a PHP page i have several rows of one table like this</p>
<pre><code>echo '<tr><td><a href="#" onclick="myFunction('.$id.')">Click</a></td></tr>';
</code></pre>
<p>The <code>$id</code> is dynamically generated from a database</p>
<p>So I want to define the function in jQuery... | php javascript jquery | [2, 3, 5] |
2,398,039 | 2,398,040 | add client script to asp.net page dynamically | <p>I want to add javascript to asp.net page dynamically.
can anybody point me towards working example?
i know it can be done by using <code>Page.ClientScript.RegisterClientScriptBlock</code>
but i have no idea to use it.</p>
| asp.net javascript | [9, 3] |
500,097 | 500,098 | SellectCommad.connection Property not initialized | <p>When i debug my application, it gives an error that SelectCommand.Connection Property is not been initialized. i dont know what am i doing here wrong :s. I actually want to add a filter over my search on the textchanged event of a textbox.</p>
<pre><code>public class ConnectionClass
{
static SqlConnection cn;
... | c# asp.net | [0, 9] |
4,169,605 | 4,169,606 | Tracking mouse movements | <p>This should be typically easy, I want to perform tracking of mouse movements. I'm capable of capturing the XY co-ords. </p>
<p>However, as far as I'm aware, this will vary according to the browser size, right ? </p>
<p>If so, can anyone recommend other things to track to ensure my results are accurate? </p>
<p>P.... | javascript jquery | [3, 5] |
4,176,846 | 4,176,847 | Colorbox problems in IE | <p>Here are the codes i used:
<a href="http://jsfiddle.net/6bmte/" rel="nofollow">http://jsfiddle.net/6bmte/</a></p>
<p>The colorbox works well in all browsers except IE. The js codes i used are just the same as the colorbox demo i downloaded except that i changed the url of the images. Then i also added position abso... | javascript jquery | [3, 5] |
2,501,586 | 2,501,587 | Using ASP.NET in browsers that not support javascript | <p>Is there a way to use ASP.NET in browsers that javascript is not enabled?</p>
<p>Whereas all buttons/actions do a postback using javascript by default, i guess that isn't possible, but using ASP.NET MVC could be a solution?</p>
<p><strong>What do you think is the best way to deal if the user's browser is with java... | asp.net javascript | [9, 3] |
5,347,597 | 5,347,598 | jQuery response is text string. How do I make this a PHP variable? | <p>I am using a file upload utility that renames files on the backend, then I use a jQuery script to append the file path to a div. </p>
<pre><code>'onComplete': function(event, queueID, fileObj, response, data) {
$('#filesUploaded').append(''+response+'');
}
</code></pre>
<p>I want to take this response and turn it... | php jquery | [2, 5] |
1,132,968 | 1,132,969 | javascript syntax error: uncaught expression | <p>I'm creating a web application, where I got a simple problem which I can't solve. I've put the code which creates the problem here: <a href="http://jsfiddle.net/rkumarnirmal/5w3FG/" rel="nofollow">http://jsfiddle.net/rkumarnirmal/5w3FG/</a></p>
<p>What's problem with the second alert() which should display this ans... | javascript jquery | [3, 5] |
910,059 | 910,060 | using jquery for Calculate total images in <id> | <p>I have one div and inside it I have some images for example <code><img src= etc</code></p>
<p>I want to calculate total number of images in that div. Also I want to save these images ID into mysql using PHP...</p>
<p>Thanks</p>
| php jquery | [2, 5] |
4,975,287 | 4,975,288 | Calling Javascript Function in C# not working properly | <p>I wanna call a javascript function in c sharp code.
i wanna hide the specific Li tag whose id is c sharp variable"li_name".
For this i am calling a javascript function. </p>
<p>Cs Code:</p>
<pre><code> li_name = DSRolePermission.Tables[0].Rows[k]["MENUNAME"].ToString();
StringBuilder script = new StringBuilder... | c# javascript asp.net | [0, 3, 9] |
5,082,540 | 5,082,541 | How can i know which class was selected via jQuery & JS | <p>I have a list with links:</p>
<pre><code><li class="link-1"><a href="#">One</a></li>
<li class="link-2"><a href="#">Two</a></li>
<li class="link-3"><a href="#">Three</a></li>
..
</code></pre>
<p>user clicks on any link, then with jQuery I want... | javascript jquery | [3, 5] |
4,373,658 | 4,373,659 | Android java NullPointerException | <pre><code>public class Database extends Activity {
private TextView tvInfo = (TextView)findViewById(R.id.tvInfo);
private Button btnInfo = (Button)findViewById(R.id.btnInfo);
</code></pre>
<p>Hello guys, probably this is just an newbie error in java, but why is this throwing me a NPE? I'm just declaring those variab... | java android | [1, 4] |
5,231,962 | 5,231,963 | Storing data Object coming from a response of jQuery ajax call | <p>I am calling a web method from <strong>asp.net 1.1</strong> site and getting a response.</p>
<p>I use this object to populate some data, Now I want to store this object so that I can also save this data in database while saving click event.</p>
<p>How can I achieve this.</p>
<pre><code> $(document).ready(function... | c# asp.net | [0, 9] |
3,532,972 | 3,532,973 | Robust way to save/load objects with dependencies? | <p>I'm writing an Android game in Java and I need a robust way to save and load application state quickly. The question seems to apply to most OO languages.</p>
<p>To understand what I need to save: I'm using a Strategy pattern to control my game entities. The idea is I have a very general Entity class which e.g. stor... | java android | [1, 4] |
3,275,536 | 3,275,537 | Get DataTable values from code behind to client side using javascript | <p>I need help on getting a particular datatable values from the server to the client using javascript. </p>
<p>Ex.
In my class which is Countries.aspx.cs I have this somewhere on my code say on the page load.</p>
<pre><code>DataTable dtbCountries = Repository.GetAllCountries;
</code></pre>
<p>my dtbCountries now c... | c# javascript asp.net | [0, 3, 9] |
4,993,660 | 4,993,661 | Verify password contains letter | <pre><code>$('#password').val().indexOf(/[a-z]/) != -1)
</code></pre>
<p>Does this work? if so is there something wrong with it because its not working.</p>
| javascript jquery | [3, 5] |
2,095,378 | 2,095,379 | Parse string value pair in javascript | <p>I have an attribute of a list object in html like this:</p>
<pre><code><ul>
<li id="myID" add-param="{"type1":"myType1","type2":"myType2"}">Test</li>
</ul>
</code></pre>
<p>Having the list item with specified ID, how could I get the value myType1,myType2 by the key type, type2 ?</p>
<p>Tha... | javascript jquery | [3, 5] |
2,086,191 | 2,086,192 | Want to create a multilingual javascript object, how to handle if lots of labels? | <p>I want to create a javascript file for multilingual functionality</p>
<p>i.e. display the error message in the correct language.</p>
<p>If I have allot of labels for a page, error messages, etc., what is a smart way of making this so the actual output on the page isn't huge?</p>
<p><strong>i guess the best way is... | javascript jquery | [3, 5] |
1,933,189 | 1,933,190 | Convert ASP.net source code to PHP | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1291985/how-to-convert-php-source-code-to-asp-net-code">How to convert Php source code to Asp.net code</a> </p>
</blockquote>
<p>Can we convert ASP.net source code into PHP .</p>
<p>Any helpful answered much ap... | php asp.net | [2, 9] |
2,585,229 | 2,585,230 | Using a C++ class in C# | <p>How can I use a C++ class in C#? I know you can use DllImport and have the class as IntPtr, but then how would I call the functions inside the class? And I don't want to create a new method for each method in the class and export that, then there is not point for me to use a class then...</p>
<p><strong>Without cre... | c# c++ | [0, 6] |
3,816,740 | 3,816,741 | Spherical Geometry library for Java/Python | <p>Is there a good Spherical Geometry library for Java/Python? I'm looking for something similar to this <a href="http://googlegeodevelopers.blogspot.com/2011/01/little-help-with-spherical-geometry.html" rel="nofollow">http://googlegeodevelopers.blogspot.com/2011/01/little-help-with-spherical-geometry.html</a>. I need ... | java python | [1, 7] |
3,964,791 | 3,964,792 | Hiding divs when clicking outside an image | <p>I have a webpage with several hidden divs. I have them set up so that when an image is clicked, they will display and if the image is clicked again, they hide. The problem is, I need to hide them if they're visible and any part of the page is clicked. I've searched high and low and have found some suggestions but... | javascript jquery | [3, 5] |
2,959,045 | 2,959,046 | javascript draggable slider that snaps back to middle position on mouseUp | <p>I would like to implement a jog-dial like behavior in a scrollbar/slider like so:</p>
<p>in the beginning the handle is positioned in the middle of the "scrollbar/slider" area. When you click on the handle and drag it to the left or right (while keeping clicked) some other actions (updating of another area on the p... | javascript jquery | [3, 5] |
3,133,785 | 3,133,786 | Show "loading" while a new image is loading | <p>I have </p>
<pre><code><img src="..." class="myImage">
<a href="..." class="changeImage">
$(function(){
$('a.changeImage').click(function(){
$('img.myImage').attr('src',NEWVALUE);
});
});
</code></pre>
<p>When I click the link, i inject a new src to <code>.myImage</code>. Is it possibile ... | javascript jquery | [3, 5] |
3,023,163 | 3,023,164 | jQuery: How to select all radio buttons with a name? | <p>I am trying to select all radio buttons with a name, but I can only select the checked ones. For example this works:</p>
<pre><code>$("input[@name='id']:checked").each(function() { // });
</code></pre>
<p>It selects all inputs with name id, which are checked (in this case one radio button). But I need all of them,... | javascript jquery | [3, 5] |
3,426,923 | 3,426,924 | How to load the colored text dynamically and fade out in jquery | <p>I want to display some text with red background color and white font color in top center of screen. and That should fade away after 6 seconds. any idea how to do it in jquery</p>
| javascript jquery | [3, 5] |
99,828 | 99,829 | How to fix dynamic added elements aren't dragging or sorting jquery | <p>I have one button, and when i click it it adds elements that are with same class, for example my class is <strong>image_class</strong>, the default added elements are being dragged, but when i add new element with the class i can't drag it or sort it.How can i fix that ?I want when dynamically added element shows up... | javascript jquery | [3, 5] |
2,290,825 | 2,290,826 | embed jquery themes in asp.net | <p>I have a DLL and I'm trying to wrap the jquery progress bar inside an asp.net server control with the jquery lightness theme.
I was able to embed the jquery into the control but the css isn't showing up. Do I have to embed each image into the assembly? Here's what I have right now</p>
<pre><code>[assembly: WebReso... | jquery asp.net | [5, 9] |
5,694,091 | 5,694,092 | How can I set the background color in CSS by receiving the color value dynamically? | <p>I'm using the following code: </p>
<pre><code><style>
.color-3 {
background-color: <%= this.BckColor %>;
}
</style>
</code></pre>
<p>to receive a value from a C# page. My C# code receives a background image color from a page called 'settings' page, and the C# code is:</p>
<pre><code>... | c# asp.net | [0, 9] |
2,694,815 | 2,694,816 | Is there a JavaScript or jQuery equivalent to Python's "sum" built-in function? | <p>Say I have an array-ish container of decimal numbers. I want the sum. In Python I would do this:</p>
<pre><code>x = [1.2, 3.4, 5.6]
sum(x)
</code></pre>
<p>Is there a similarly concise way to do this in JavaScript?</p>
| javascript jquery python | [3, 5, 7] |
4,870,380 | 4,870,381 | Get SelectedValue of dropdownlist which is created with javascript | <p>I am filling dropdownlist with javascript.</p>
<pre><code>for (var i = 1; i < array.length; i++) {
var optn = document.createElement("OPTION");
optn.text = array[i];
optn.value = array[i];
document.getElementById('<%=ddlProductMod... | javascript asp.net | [3, 9] |
3,191,581 | 3,191,582 | What is the most efficient way to access DOM elements in jQuery? | <p>I am writing a jQuery plugin and I am at the optimization stage.</p>
<p>I wonder which of these leads to a quicker script in general, and what sort of mitigating factors are important:</p>
<ol>
<li>Have the script generate lots of classes and ids at the start so finding elements in the dom is easier (quicker too?)... | javascript jquery | [3, 5] |
546,007 | 546,008 | ASP.NET - Setting CssClass of a CheckBox | <p>The following code</p>
<pre><code>((CheckBox)e.Row.FindControl("exportCb")).CssClass = "enabledExport";
</code></pre>
<p>Creates html</p>
<pre><code><span class="enabledExport"><input id="_ctl0_ContentPlaceHolder1_gridviewName__ctl2_exportCb" type="checkbox" name="_ctl0:ContentPlaceHolder1:gridviewName:_... | jquery asp.net | [5, 9] |
5,750,218 | 5,750,219 | Javascript JQuery Script click link by code (Sliding Form Script) | <p>I am using Fancy Sliding Form .. Demo <a href="http://tympanus.net/Tutorials/FancySlidingForm/" rel="nofollow">Click here</a>:</p>
<p>There are some tabs/buttons for navigation at the bottom.</p>
<p>I need to be able to tigger the different steps (auto clicking) when I click on a link not directly on the tab with ... | javascript jquery | [3, 5] |
1,312,436 | 1,312,437 | How to reenable event.preventDefault? | <p>I have a web page which I have prevented the default action on all submit buttons, however I would like to re-enable default submit action on a button how can I do this?</p>
<p>I am currently preventing the default action using the following:</p>
<pre><code>$("form").bind("submit", function(e){
e.preventDefault();... | javascript jquery | [3, 5] |
6,024,631 | 6,024,632 | Using jquery to determine if any elements within a div was clicked | <p>How can I tell using jQuery if an any element within a div (panel1) was clicked? I have this piece of code that I use to show/hide a popup:</p>
<pre><code>$('body').click(function (e) {
if ($(e.target).attr('id') == 'link1') {
$('#panel1').show();
} else {
$('#panel1').hide(... | javascript jquery | [3, 5] |
2,914,003 | 2,914,004 | Is there a rule of thumb for how many placeholders can be put on a web page? | <p>Using aspx and c# 3.5, vs2008. </p>
<p>Is there a rule of thumb for how many placeholders can be put on a web page before performance starts to deteriorate? </p>
<p>Any other concerns for using a lot of placeholders?</p>
<p>I am dynamically inserting controls (textboxes, checkboxes, expression validators, and but... | c# asp.net | [0, 9] |
5,942,889 | 5,942,890 | Javascript/jQuery "Gotchas" | <p>What are some of the common Javascript and/or jQuery "gotchas" that you have seen or been tripped up by?</p>
<p>As an example, it was pointed out to me this morning that you have to be careful with the radix when doing <code>parseInt()</code>, because if your string starts with a 0, the radix will default to 8.</p>... | javascript jquery | [3, 5] |
3,670,560 | 3,670,561 | why other web project show me logged in? | <p>I'm working on two separated web projects, but use same authentication scenario for both of them.
Here is a part of my login code:</p>
<pre><code>public void Login(string username, string password, bool staySignedIn)
{
if (this.IsLockedOut(username))
{
this._view.ShowMessage("Your account has been ... | c# asp.net | [0, 9] |
4,790,443 | 4,790,444 | Arrays in Javascript | <p>I always had this silly doubt in mind but never had come up with the solution.</p>
<p>I have seen several kind of arrays but I don't know the difference between them. I don't know how to explain exactly but it's most when passing parameters with jQuery.</p>
<p>See:</p>
<p><code>{ 'choices[]': ["Jon", "Susan"] }</... | javascript jquery | [3, 5] |
1,627,425 | 1,627,426 | How to Display a keyboard in an Android Application? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2209131/how-to-trigger-the-soft-keyboard">How to Trigger the soft keyboard?</a> </p>
</blockquote>
<p>Any one please help me to display a keyboard in my app. I want to show my keyboard when i click on the textfi... | java android | [1, 4] |
174,309 | 174,310 | ASP.net C# SQL count(*) | <p>I have a query that I'm running in C# .cs file:</p>
<pre><code>DataSet ds = db.ExecuteDataSet(System.Data.CommandType.Text, "SELECT count(*) as counter FROM [Table] where [Table].[Field] = 'test'");
</code></pre>
<p>I want to do is retrieve the value of "counter" in this query and "return" it as my functions retur... | c# asp.net | [0, 9] |
4,739,384 | 4,739,385 | Sound Processing - Beat Matching Music Player on Android | <p>So I want to make a new music player for Android, it's going to be open source and if you think this idea is any good feel free to let me know and maybe we can work on it.</p>
<p>I know it's possible to speed up and slow down a song and normalize the sound so that the voices and instruments still hit the same pitch... | java c++ android | [1, 6, 4] |
3,120,007 | 3,120,008 | Using jQuery for alternating png transition | <p>Very basic question. I have a very simple web design utilizing a png with transparency, overlaying another base image. The idea here is that it cycles visibility continously, fading in quickly, displaying for a longer interval, fading out quickly, and remaining invisible for an equal longer interval, basically repli... | javascript jquery | [3, 5] |
4,158,394 | 4,158,395 | how to use Thick box to asp.net web site | <p>Hello friends I m new for this thick box so some one can help me ...........</p>
| c# asp.net javascript | [0, 9, 3] |
2,598,741 | 2,598,742 | To Print page content dynamically which includes multiline text box | <p>Can you please help me in implementing following functionality in Asp.net.</p>
<p>I have a page where the data is displayed dynamically.
In this data generation, i have multiline text box with many other controls in the page.
I want to implement print functionality where i can print entire page content including mu... | javascript asp.net | [3, 9] |
3,699,070 | 3,699,071 | Use jquery to show only the current option selected in the form | <p>I am very new to jquery.</p>
<p>Here is my code </p>
<pre><code><script>
$(document).ready(function(){
$('#bashing_title').change(function(){
if($(this).val() == 1)
$('#1').show();
else if($(this).val() == 2)
$('#2').show();
else if($(this).val() == 3)
$('#... | javascript jquery | [3, 5] |
253,983 | 253,984 | How to add saved images to mediastore and generate thumbnails? | <p>I am writing an Android app which can take pictures and save them on the SD card. Later, I need to display the pictures in a GridView and the user can select one. This is my code to save pictures:</p>
<pre><code>Camera.PictureCallback mPictureCallback = new Camera.PictureCallback() {
@Override
publi... | java android | [1, 4] |
2,667,456 | 2,667,457 | jquery check variable values | <p>In jQuery I have the following 4 variables. </p>
<pre><code>var add
var city
var state
var zip
</code></pre>
<p>I need to check to see that any one of the above have a value.
If none have a value that is OK. If all of them have a value that is OK.</p>
<p>Just need to check that at least one of them do not have a... | javascript jquery | [3, 5] |
2,282,045 | 2,282,046 | Index was outside the bounds of the array (500th?) | <p>Calling the function on load and the error is pointing to that. I don't get the index out of range error on debug only on publish.</p>
<pre><code> {
string strLogonUser = Request.ServerVariables["LOGON_USER"];
var credential = strLogonUser.Split(@"\".ToCharArray())[1];
cnn.Open();
... | c# asp.net | [0, 9] |
44,657 | 44,658 | Javascript not affecting content that is loaded by another script | <p>I am using jQuery to load a php form and bootstrap.js for a datepicker element on that form; this code is in a file script.js:</p>
<pre><code>$(document).ready(function() {
// load form via ajax when button is clicked is submitted
$('.add-opportunity .open').on('click', function() {
// get form
... | php javascript | [2, 3] |
1,296,612 | 1,296,613 | Validating Schema of pipe separated Csv file in c# | <p>I have a page where users can upload there <strong>pipe separated</strong> "|" csv file. I want to validate the schema & check whether that uploaded file is according to the schema or not ?</p>
<p>Currently I am checking <strong>using conditional operators</strong> whether it has columns name matching in the cs... | c# asp.net | [0, 9] |
3,093,981 | 3,093,982 | trigger jquery with php? | <p>my php code will check after a condition. if the condition is true i want it to trigger a jquery code that displays a box.</p>
<p>i wonder how i can trigger a jquery code with php?</p>
| php jquery | [2, 5] |
5,403,812 | 5,403,813 | Find string in Haystack and display that particular paragraph where the string was found | <p>I have an sql resultset which is retrieved after searching through the database using the LIKE keyword. I want to display the result on a page but without showing the whole text. Just the paragraph where the result was found. Maybe even put that particular word in bold. Anyone with an idea of how best I can implemen... | c# asp.net | [0, 9] |
4,213,757 | 4,213,758 | Schedule a call to a method? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3072173/how-to-call-a-method-after-a-delay">How to call a method after a delay</a> </p>
</blockquote>
<p>When a user clicks a button, I want to doThis(myVar1);. 1 second later I want to doThis(myVar2);. How can ... | java android | [1, 4] |
369,011 | 369,012 | dynamic tag count on keyup | <p>I have a div that contains many spans and each of those spans contains a single href.</p>
<p>Basically it's a tag cloud. I have a textbox with a keyup event that filters the tag cloud div (It actually just hides the tags if not in filter condition).</p>
<p>Is there a way to get a count of the tags shown as the key... | javascript jquery | [3, 5] |
935,558 | 935,559 | changing some parts of location.href using js without redirecting the browser? | <p>hi here is the problem: my url is like this
<code>http://somesite.com?theSearch=someword&a=b&c=d</code></p>
<p>on this page search results are displayed and on this page i have put the functionality of ajax search i.e. the results are updated without the page reload but the problem is if the user clicks on ... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.