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,928,343 | 1,928,344 | How can I check if a value is inside a object list? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5181493/how-to-find-a-value-in-a-multidimensional-object-array-in-javascript">How to find a value in a multidimensional object/array in Javascript?</a> </p>
</blockquote>
<p>I've these JavaScript objects in an arr... | javascript jquery | [3, 5] |
5,064,018 | 5,064,019 | R.layout.menu cannot be resolved | <p>Everything was working fine earlier. I then happened to add a new xml file to my layouts. now, one of my classes is giving an error when setContentView points to (R.layout.menu). Eclipse is telling me that R.layout.menu cannot be resolved. I can't figure out why; I have a layout called menu defined in my layout fold... | java android | [1, 4] |
5,448,213 | 5,448,214 | Post serialized form data and extra variables using JQuery | <p>I am trying to use this piece of code to serialize a form AND send an extra variable not found in the form, at the same time. The following line of code is what I expected, but sadly does not work.</p>
<pre><code>var thePage = theFilename();
$.post("pagedetail.php", { $("#PageDetailForm").serialize(), thePage: theP... | php javascript jquery | [2, 3, 5] |
5,341,060 | 5,341,061 | Making a simple Image Switcher | <p>I know that there are many jQuery scripts ready to implement something like this here that I'm trying to pull together, but I want to make it as simple as possible. Basically when each image thumb of the list is clicked the main image shows the respective image just only bigger. </p>
<p>So, here is my question. Doe... | javascript jquery | [3, 5] |
5,974,755 | 5,974,756 | Using jQuery, how can I grab value from href? | <p>I have a bunch of links on my page, in the format:</p>
<pre><code><a href="/q/10/Title">Title</a>
</code></pre>
<p>How can I grab the "10" from this link and use it as a variable?</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
5,737,291 | 5,737,292 | Load a new value into an input from PHP with jQuery? | <p>I have some input like:</p>
<pre><code>'<input type="text" name="display-count" class="display-count" value="23" autocomplete="off" readonly="readonly" />';
</code></pre>
<p>And I'm using this jQuery code to remove the value it has and replace it with another one:</p>
<pre><code>var count = $('form.user-cou... | php jquery | [2, 5] |
4,590,766 | 4,590,767 | How do I return an array of elements NOT in a Javascript map? | <p>I have a Javascript object:</p>
<pre><code>var errorMap = {
100: 'You must enter a name.',
200: 'You must enter an address.',
300: 'You must enter a DOB.'
}
</code></pre>
<p>In another part of my code, I am receiving an array of error codes:</p>
<pre><code>var errorCodes = [100, 200, 500, 600];
</code... | javascript jquery | [3, 5] |
5,539,840 | 5,539,841 | Java's "public static final Object" in C++ | <p>What would be the equivalent of this in C++ of the following snippet. I am in the process converting parts of an java application to C++.</p>
<p>Here is that java class snippet:</p>
<pre><code>
class container {
Public static final Object CONTAINER_FULL = new Object {
public boolean equals(Object other) {
... | java c++ | [1, 6] |
1,316,623 | 1,316,624 | When browser close.How to run sqlk query when browser close in php | <p>I have some query regarding browser close issue.</p>
<p>I am using xcart.When user have logged in website and Any situation browser will be closed any so session will be destroyed..and also run the sql query for user status will be offline.</p>
<p>Regards,
Manish Patel</p>
| php jquery | [2, 5] |
4,490,643 | 4,490,644 | How to add elements into one div until it's width almost equal to another div? | <p>I have 2 containers, one inside the other, and I'm trying to fill the inner container with elements on document.ready so it's width is almost equal to the outer's div width.</p>
<p>It works perfectly with "if" statement on window.resize, but since I need to fill the div on document.ready I'm trying to use "while" a... | javascript jquery | [3, 5] |
5,512,757 | 5,512,758 | jquery dialog popup window problem | <p>I have this code</p>
<pre><code> $("#window").dialog({
resizable: true,
height: 180,
title: titles,
width: 500,
modal: false,
buttons: {
"OK": function () {
$(this).dialog("close");
}
}
});
</co... | javascript jquery | [3, 5] |
1,825,754 | 1,825,755 | Reusing java source in multiple projects | <p>I'm currently developing for Android using Eclipse. I have a lexicon viewer application (with package name "com.mycompany.myviewer") that I want to reuse multiple times, just changing specific resources such as app name and icons.<br>
For example, I have a certain publisher "Publisher1", who publishes the lexicons "... | java android | [1, 4] |
1,456,809 | 1,456,810 | How to get the height of an image from a url in android? | <p>I would like to get the height of an image from a url in android, I have been able to find many examples of this in java but unfortunately it requires importing java classes such as awt and swing which I am finding out I cannot use with an android project, does anyone know a way by which this can be done in android?... | java android | [1, 4] |
5,170,277 | 5,170,278 | Switching from C# to C++. Any must-reads? | <p>I'm trying to find a least-resistance path from C# to C++, and while I feel I handle C# pretty well after two solid years, I'm still not sure I've gotten the "groove" of C++, despite numerous attempts.</p>
<p>Are there any particular books or websites that might be suitable for this transition?</p>
| c# c++ | [0, 6] |
1,102,510 | 1,102,511 | Can we add xml output to outputstream or buffer instead of saving it to particular destination | <p>Here is the code to place xml file to particular destination .</p>
<pre><code>[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Xml)]
public XmlDataDocument GetList(string keyword1, string streetname, string lat, string lng, string radius)
{
XmlDataDocument xmlDoc= CreateXML( keyword1,streetname,lat,lng... | c# asp.net | [0, 9] |
2,006,957 | 2,006,958 | Why doesn't this activiy finish? | <p>I have following code:</p>
<pre><code> mQuestions=DictionaryDbWrapper.getInstance().getQuestionsSequence(
this.getIntent().getStringExtra(ApplicationUtilities.TEST_CATEGORY_PARAMETER), 50);
mQuestionsCount=mQuestions.size();
Log.e("count", String.valueOf(mQuestionsCount));
if (mQuestionsC... | java android | [1, 4] |
5,247,556 | 5,247,557 | Display changing without AJAX | <p>I have 2 drop down lists , and value of the second drop down list should change according to the value selected in first drop down list. The current drop down lists are.</p>
<pre><code><select name="first">
<option name="a" value="a">a</option>
<option name="b" value="b">b<... | php javascript | [2, 3] |
3,178,814 | 3,178,815 | Convert Document Object to XML Document JQuery? | <p>So I use a:</p>
<pre><code> $.ajax({
type: "GET",
url: someurl,
success: function(data) {
}
});
</code></pre>
<p>If someurl is appropriate, the it returns an XML, if not, it returns a String, which is why I dont specify the dataType parameter. </p>
<p>However, when I get... | javascript jquery | [3, 5] |
183,902 | 183,903 | Resetting variables when loading a cached page | <p>I have a page which sets the a value of a js variable for customer authentication to false inside
"jQuery(document).ready(function()" when it is loaded for the first time.</p>
<p>but after customer authenticates himself and then comes back to that same page, that page is loaded from cache and the value still remai... | javascript jquery | [3, 5] |
4,950,033 | 4,950,034 | exception of type 'system.outofmemoryexception' was thrown | <p>My page throws error exception of type 'system.outofmemoryexception' was thrown .</p>
<p>This happens when i press submit button in submit button there are sqlconnections with stored procedure as im populating grid with data .</p>
<p>It gives error when i put code in submit button. But when i put tht on page load ... | c# asp.net | [0, 9] |
124,616 | 124,617 | Re-using a variable inside jquery.ajax | <p>I have the following function. This function is called with a setTimeout upon a form submit. </p>
<pre><code>function get_progress( fileID, filename) {
$.ajax({
url: filename,
type: 'HEAD',
success: function() {
$.ajax({
type: 'POST',
url: 'read_file.php',
dat... | javascript jquery | [3, 5] |
3,670,010 | 3,670,011 | jqtransform onclick events not firing | <p>I have a form using the jqtransform jQuery plugin that gives forms an aesthetic makeover. However, I can't get my onclick events to fire.</p>
<p>I have a form setup similar to this:</p>
<pre><code><select name="person">
<option value="1">Yes</option>
<option value="2">No</option>
<... | javascript jquery | [3, 5] |
2,538,078 | 2,538,079 | Substrings in Javascript with substr() | <p>I need to use Substring in Javascript. But despite my searches, i have an error : substr seems to be unknown...</p>
<pre><code>function confirm_ticket(idAgir,TempsEstime) {
var str = TempsEstime;
var strConcatenate = TempsEstime.substr(0, 2) + ":" + TempsEstime.substr(2, 2);
alert("confirmer le temps ... | javascript asp.net | [3, 9] |
4,173,339 | 4,173,340 | How can I create a variable with project-wide scope in ASP .NET? | <p>I want to declare a variable in such a way that I can access that particular variable and its value in all the asp pages in the project. Can anyone tell me how to declare a variable in C# such that it has project-wide scope?</p>
| c# asp.net | [0, 9] |
4,153,966 | 4,153,967 | Drawing an image in android | <p>I'm trying to just draw a simple image from the drawable-mdpi folder in android but I keep getting an error saying droid_1 cannot be resolved or is not a field, droid_1 is the name of the image, this is my code, </p>
<p>thanks for any help.</p>
<pre><code>import android.R;
import android.content.Context;
import an... | java android | [1, 4] |
1,702,500 | 1,702,501 | php variable in javascript | <p>I have the following code in php:</p>
<pre><code>$test = 'abc';
echo '<script type="text/javascript">\n';
echo 'movtitle = ' . $test . ';\n';
echo '</script>';
</code></pre>
<p>and I tried to do an <code>alert(movtitle)</code>, but it doesn't print out anything. What am I doing wrong?</p>
| php javascript | [2, 3] |
4,878,448 | 4,878,449 | Check Active Internet Connection | <p>Obviously this is a Javascript problem. As javascript are already loaded to the server, I was wondering if there is way to check whether there is active internet connection or not.</p>
| javascript jquery | [3, 5] |
5,071,001 | 5,071,002 | c# ASP.NET newb redirect question | <p>Hey I'm trying to get this working but I am not a c# programmer. i got this code to display you what i would like to do. but of cause its not working. Error: CS1519: Invalid Token...</p>
<pre><code><%@ Page Language="c#" AutoEventWireup="true" %>
<script language="C#" runat="server">
if(Request.Serv... | c# asp.net | [0, 9] |
5,905,427 | 5,905,428 | Including console.info | <p>I work with a contractor developer who insisted on modifying one of the existing files by placing the following two lines of code into a file (#1 below), included at the beginning of my code:</p>
<pre><code>function _info($Object){echo '<script type="text/javascript">console.info("'.$Object.'");</script>... | php javascript | [2, 3] |
1,688,163 | 1,688,164 | Can scripts in iframe interact with scripts in the main page | <p>I have an editor with an SWF multi-image uploader. Since not everyone will need to upload pictures in their article, i need to dynamically load this image uploader when necessary. I have to load it in an iframe because the uploader needs some external scripts to be loaded ahead. And since i need it's callback variab... | javascript jquery | [3, 5] |
1,429,276 | 1,429,277 | ASP.NET: ICollection Constructor Not Found? | <p>I have a ASP.NET application running on a remote web server and I just started getting this error. I can't seem to reproduce it in my development environment:</p>
<pre><code>Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'.
</code></pre>
<p>Could this be due to some misconfiguration of .N... | c# asp.net | [0, 9] |
4,430,758 | 4,430,759 | Why is this displaying Hello World when I run it? | <pre><code>package com.FlickrView;
import android.app.Activity;
import android.os.Bundle;
import java.net.*;
import java.io.*;
public class FlickrView extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(s... | java android | [1, 4] |
3,400,968 | 3,400,969 | What's the method to access whatever child item is displayed in an Android spinner, instead of just waiting for an onItemSelected() event? | <p>As the title says, what is the method to access which item is displayed in an Android spinner, so I can have multiple spinners, then wait on a button click?</p>
<p>Thanks!</p>
| java android | [1, 4] |
3,616,721 | 3,616,722 | primitive vs managed types on android - which one should i use in my app | <p>im trying to port an iphone app to android. i am completely new to java and android environment</p>
<p>i see different code samples on the internet, some use int and boolean where as some use Integer and Boolean</p>
<p>i wanted to know the pros and cons of both and which is the best way forward?</p>
<p>since prim... | java android | [1, 4] |
187,153 | 187,154 | Firing Server Side Event from jQuery - __EVENTARGUMENT Does not Exist | <p>I am trying to fire a form submit via jQuery and have a particular server side event fire.</p>
<p>Client Side Code:</p>
<pre><code>$("input[name=__EVENTARGUMENT]").val("SomeArg");
form = $("body form");
form.submit();
</code></pre>
<p>Server Side Code:</p>
<pre><code>protected void Page_Load(object sender, Event... | asp.net jquery | [9, 5] |
4,728,332 | 4,728,333 | jquery submit form on link click | <p>i have a big form that is split over 3 pages (each page is self contained i.e. only contain part of the form wrapped around form tags). I have page buttons so the user can navigate between pages e.g. page 1, page 2, page 3 and each page is loaded depending on a page variable in the url querystring i.e. <code>www.myu... | javascript jquery | [3, 5] |
5,670,125 | 5,670,126 | a tag toUpperCase comparison | <p>Given:</p>
<pre><code><div>
<span><a href="#">abc</a></span>
<span><a href="#">def</a></span>
</div>
</code></pre>
<p>Is there a way to do a string comparison with toUpperCase() between a given string value and the link text (as shown above in the spa... | javascript jquery | [3, 5] |
2,265,716 | 2,265,717 | About good practices for creating and appending elements with JS | <p><strong>Example code</strong> </p>
<pre><code>var jqxhr=$.getJSON("http://search.twitter.com/search.json?callback=?",{q:query},
function(data) {
... question.
});
</code></pre>
<p><strong>Question</strong></p>
<p>Now i need to create for each twe... | javascript jquery | [3, 5] |
434,151 | 434,152 | Pure java video endcoding/decoding libraries | <p>Does anyone know of any video encoding/decoding libraries written entirely in java?
Bonus points if it works on Android.</p>
<p>I'm trying to write a video decoding application for android, where I have access to the frame level decoding functions (which is absent in the android API MediaPlayer class)</p>
| java android | [1, 4] |
2,894,636 | 2,894,637 | How can i use a function from a Activity Class in a non-Activity Class | <p>i have two class in my project.the first one is" public class Schtimetable extends Activity" in which there is a method i need to call in Class B :"public class ClassMode" .The method is </p>
<pre><code>public int calculateWeeks() {
SharedPreferences preferences = getSharedPreferences("currentWeek",
... | java android | [1, 4] |
2,241,187 | 2,241,188 | HOw to remove child div tag with runat=server? | <p>I have a div tag with runat="server".<br>
with another div tag which is added dynamically.
eg:</p>
<blockquote>
<p><code><div id="div1" runat="server"></code><br>
<code><div></div></code>--this div tag is addded dynamically</div></p>
</blockquote>
<p>what i observed is that i am not abl... | javascript jquery | [3, 5] |
5,003,041 | 5,003,042 | how to download file using interruptiblechannel? (NIO) | <p>When I got an incoming call then I have to <strong>immediately</strong> interrupt my long running thread. I want to use Thread.interrupt() method to do that.</p>
<p>Reference says:</p>
<pre><code>Threads blocked in an I/O operation of an InterruptibleChannel will
have their interrupt status set and receive an Clo... | java android | [1, 4] |
4,050,841 | 4,050,842 | Get class of a clicked image and modify corresponding form field | <p>I'm stuck with this task:</p>
<p>I have a function attached with onclick="myFunction(this);" to tens of images of my page.
Inside the function I retrieve the class name of the clicked image.
Lastly I would like to look inside a html form and modify an input field with the same id as the retrieved class.</p>
<p>Her... | javascript jquery | [3, 5] |
4,649,055 | 4,649,056 | JQuery and find on the TD Element for removing BR | <p>I'm trying to figure out how to remove BR tags underneath a particular TD element with a specific ID. So far I've had no success. Here is some example code via jfiddle:</p>
<p>HTML:</p>
<pre><code><br>
<table border='1'>
<tr>
<td id="attachmentsOnClient">
<span dir="ltr">
... | javascript jquery | [3, 5] |
824,136 | 824,137 | HTML select change event not called when selecting value of html select using jquery | <p>In the below code I am binding the change event to a HTML select and then trying to set its selected value. However, my change event is not called when I select the value of the HTML select via jQuery with the following code:</p>
<pre><code>row.find(".js-sAttribute").change(function ()
{
alert('1');
});
//**th... | javascript jquery | [3, 5] |
3,446,778 | 3,446,779 | set the loading progress bar in my application | <p>how to set progress bar this is my code plz send me the code.....</p>
<pre><code> Button b1= (Button) findViewById(R.id.button1);
b1.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
loadFeed(statutory);
}
});
</code></pre>
| java android | [1, 4] |
4,053,621 | 4,053,622 | How do I load a variable number of scripts with jQuery.getScript() before running javascript code? | <p>I need to load a variable number of javascript source files before running javascript code that depends on them. Sometimes 1 script needs to be loaded, other times 2. The getScript() method allows one script to be loaded - how could I use it to load x number of scripts before running its inner code?</p>
<pre>$.getS... | javascript jquery | [3, 5] |
3,646,618 | 3,646,619 | problem with sending array with jquery ajax | <pre><code>var myNames= ["Chris","Kate","Steve"];
$.ajax
({
cache:false,
type: "POST",
url: "check.php?timestamp="+new Date().getTime(),
data: "myCars[]="+myCars,
success: function(msg)
{
...
}
});
</code></pre>
<p>with <code>var_dump($myNames)</code> in php page i see</p>
<pre><cod... | php jquery | [2, 5] |
3,331,524 | 3,331,525 | Convert Hexadecimal number to decimal | <p>As in the title. I take the hex number from the edit text</p>
<pre><code>number = (EditText) findViewById (R.id.etDisplay);
Editable stringEditable = number.getText();
String nuovo = stringEditable.toString();
</code></pre>
<p>I want to convert nuovo to a decimal number.</p>
| java android | [1, 4] |
5,609,098 | 5,609,099 | Why does this code give an error? | <pre><code>$("#main").animate({
display: "block",
width: "70%",
opacity: 0.4,
marginLeft: "0.6in",
fontSize: "3em",
borderWidth: "10px"
} 1500);
</code></pre>
<p>This is jQuery. I get a "missing ) after arguement list" message. What's wrong?</p>
| javascript jquery | [3, 5] |
4,060,325 | 4,060,326 | Extending existing singleton | <p>I like the idea of using Singleton mentioned here <a href="http://www.adobe.com/devnet/html5/articles/javascript-design-patterns-pt1-singleton-composite-facade.html" rel="nofollow">http://www.adobe.com/devnet/html5/articles/javascript-design-patterns-pt1-singleton-composite-facade.html</a>:</p>
<pre><code> var N... | javascript jquery | [3, 5] |
436,083 | 436,084 | php jquery count down timer script | <p>i have one count down timer using <a href="http://keith-wood.name/countdown.html" rel="nofollow">http://keith-wood.name/countdown.html</a></p>
<pre><code>var austDay = new Date();
austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
$('#defaultCountdown').countdown({until: austDay,format: 'HMS'});
</code></... | php jquery | [2, 5] |
4,767,116 | 4,767,117 | Getting Javascript function to run on ASP.Net repeater DataBind | <p>I have an ASP.net repeater on my page which creates a load of listitems. I'm also using the JQuery UI Slider plugin to generate a slider from a div thats contained in some of the list items. So I have a javascript function called initSliders() that runs when the page has loaded which creates the sliders. This wor... | asp.net jquery | [9, 5] |
3,650,742 | 3,650,743 | How to call a function placed in another function with jQuery, without modifying the original code? | <p>This is basically the framework of my code:</p>
<pre><code>var firstfunction = function () {
function innerfunction () {
// Do stuff here
}
}
</code></pre>
<p>How do I reference <code>innerfunction()</code>, without changing the code mentioned supra?</p>
| javascript jquery | [3, 5] |
3,770,747 | 3,770,748 | Detecting when user scrolls to bottom of div with jQuery | <p>I have a div box (called flux) with a variable amount of content inside.
This divbox has overflow set to auto.</p>
<p>Now, what I am trying to do, is, when the use scroll to the bottom of this DIV-box, load more content into the page, I know how to do this (load the content) but I don't know how to detect when the ... | javascript jquery | [3, 5] |
2,127,961 | 2,127,962 | submitting database information only after second click | <p>Good morning
I have a rather strange occurance in that information that I want to insert into a database is only submitted when I click a button control the second time. I disable the button after the info has been inserted into the access database and it is thus clear to me that the info is only submitted on the ... | c# asp.net | [0, 9] |
4,777,454 | 4,777,455 | How much of the Java 6 API is implemented by Android? | <p>I want to port an small open source AES encryption class to Android, and it would cut my work down a lot if the API of Android is as close as possible to the Java 6 API. </p>
<p>How much is implemented (or referenceable), as I have tried searching about this on google, and i have not yet come up with anything usefu... | java android | [1, 4] |
4,138,832 | 4,138,833 | How to change the background color for layouts using configuration file in android | <p>I want to change the background color for layouts dynamically for the first time only, using configuration file in android that file should be in assets folder,it can be xml file or anything.
please help me.</p>
| java android | [1, 4] |
5,525,938 | 5,525,939 | extract value from spinner and use it to calculations -- NullPointerException | <p>I want to use the "value" from the spinner.</p>
<p>When the user makes the choice i want to use that value in order to do some calculations.</p>
<p>My problem is :</p>
<p>1) How to get properly the value (item).I am using sth like "item.MyOnItemSelectedListener ==0".</p>
<p>2) What the value should be?For examp... | java android | [1, 4] |
4,028,171 | 4,028,172 | Selecting rows in a table and replacing them with the new data | <p>I have a table with headers:</p>
<pre><code><table id="my-table">
<thead>
<th>header1</th>
<th>header2</th>
<th>header3</th>
</thead>
<tbody>
<tr>
<td>data1</td>
<td>da... | javascript jquery | [3, 5] |
1,125,782 | 1,125,783 | class initialization with getting json by ajax always fails | <p>I am newbie of JavaScript. I want to make a class which communicate to Flickr Web API with Ajax when initialized.</p>
<p><strong>Photo2.js</strong></p>
<pre><code> var Photo2;
Photo2 = (function() {
Photo2.prototype.json = null;
function Photo2() {
$.getJSON('http://www.flickr.com/services/rest... | javascript jquery | [3, 5] |
3,751,775 | 3,751,776 | jQuery live validation | <p>I'm trying to create a live validation script for a form. I've somewhat got it, I think anyway...but the error message comes up when there is text in the field as opposed to when there is no text. I'm sure I'm doing something stupid wrong, I'm pretty sure I have the if values right, <code>value == ''</code> is if va... | javascript jquery | [3, 5] |
1,387,034 | 1,387,035 | JavaScript show/hide <div> element | <p>Is there a quick, easy way to have a button which, when clicked, will show an element if it's hidden, and hide it if it's visible?</p>
| javascript jquery | [3, 5] |
493,734 | 493,735 | jQuery smooth scroll to specific part of the page? | <p>How can I smooth scroll down to a specific part of the page?</p>
<pre><code><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<a href="#" class="scrollToBottom"><img src="images/godown.png" alt="Down Arrow" width="116" /></a>... | javascript jquery | [3, 5] |
271,950 | 271,951 | javascript validation for dynamic element | <p>How can I validate dynamically created text inputs?</p>
<p>I have an "add more" link that creates new ones, and a link to remove them. Each one has a uniqe ID.</p>
<p>Also, at least two text boxes must be filled.</p>
| javascript jquery | [3, 5] |
358,682 | 358,683 | 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 < summaryLEVEL5.length; i++){
... | javascript jquery | [3, 5] |
5,089,941 | 5,089,942 | Inter-Thread Communication (and libraries?) | <p>If have I have a game engine that has multiple threads that all work with one scene graph, what are techniques to ensure everything is synchronized whenever that scene graph changes?</p>
<p>What kind of libraries are out there to help with that?</p>
<p>Thanks!</p>
| c# c++ | [0, 6] |
5,109,127 | 5,109,128 | PagedDataSource Count | <p>i am using <code>pageddatasource</code> to make paging for <code>datalist</code> control, but when binding <code>pageddatasource</code> to linq query, the count doesn't change although the result of query is different (<code>ResultQuery_Count = 13</code> AND <code>PagedDataSource</code> count always 10). and <code>I... | c# asp.net | [0, 9] |
4,919,288 | 4,919,289 | How can I make a submit button issue a post of the form but have the result coming back placed into an element HTML? | <p>I am working on a single page web application. I added the following code for login:</p>
<pre><code>$('#loginLink, #registerLink')
.click(function () {
var $link = $(this);
var href = $link.attr('data-href');
$('#article').load(href);
}
return false;
});
</code></pre>
<p>This works and p... | javascript jquery | [3, 5] |
585,151 | 585,152 | Php or jQuery, To Draw Shapes on Image by Users? | <p>I am trying to create a web app which enable user to draw shapes (Arrow, Box and Line) on presented Maps in Image format on the webpage and this must be a Mouse event trigger. Can you please let me know which solution, rendering the best result, is better to start?</p>
<p>Thanks</p>
| php jquery | [2, 5] |
3,676,350 | 3,676,351 | Jquery KeyPress Doesn't work | <p>Any idea why this doesn't work whatsoever on any browser?</p>
<p>If i try it in jsfiddle it works.</p>
<pre><code>$('#input_area').keypress(function(e) {
if(e.which == 13) {
alert('You pressed enter!');
}
});
</code></pre>
<p>HTML </p>
<pre><code><script type="text/javascript" src="counts.js"&... | javascript jquery | [3, 5] |
4,410,031 | 4,410,032 | Calling onserverclick from input type:file fails in Internet Explorer | <p>below are the code in my aspx files, i am trying to call onserverclick of hdnBtn from hdnBtn.click()</p>
<p>the code belows work in Firefox and Chrome but not working in IE, any idea why? thx for helping</p>
<pre><code> protected void Page_Load(object sender, EventArgs e)
{
btnBrowse.Attributes.Add("oncli... | c# asp.net | [0, 9] |
350,809 | 350,810 | Move text display area from one place to another | <p>Imagine I have a html page which has a 2x2 matrix (4 quadrants) and in each quadrant I can have a text display listing. People can just click on + button on any quadrant and add text there. Once text has been added, it will be displayed in those quadrants. </p>
<p>My question is:</p>
<p>How do I enable that a text... | php javascript | [2, 3] |
3,828,110 | 3,828,111 | Selector only knowing tbody and iterating | <p>This is driving me nuts...I am trying to iterate through rows in a table. I know the classname for the tbody. Can I just specify the class for the tbody and iterate through the rows? For example...</p>
<pre><code><div class="dclass1" ...>
<table summary="" style="margin-top: 0pt;">
<thead ... | javascript jquery | [3, 5] |
3,110,192 | 3,110,193 | android set webpage to fit webview content when Action_View | <p>I am opening a webpage using <code>Intent.ACTION_VIEW</code> and is opened properly but content does not fit webview size, how to fit it using this method? Thank you.</p>
<pre><code> Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.myWeb.com"));
startActivity(browserIntent);
</code></pre... | java android | [1, 4] |
5,999,964 | 5,999,965 | create a game level | <p>I am looking to create a game like mega man or mario, I have been trying to find a good solution as to how to generate my levels. The only thing I can think of would be to create a level file and load
coordinates as the player moves through the level. Which would suck because I would have to code the floor to load, ... | java android | [1, 4] |
1,023,368 | 1,023,369 | Adding controls dynamically on user selection in c#.net | <p>I have a dropdown which consists of all the controls names like textbox , label , combobox , dropdown list...etc.
if in the starting one label control is placed on form,on user selection of control name in dropdown list ,that label control should be replaced with the user selected control dynamically...like this,wha... | c# asp.net | [0, 9] |
1,732,774 | 1,732,775 | HtmlControl changing class | <pre><code><div ID="btnWebL" runat="server" class="left_selected"></div>
<asp:LinkButton ID="btnWeb" runat="server" CssClass="center_selected" OnClick="btnWeb_Click"
Text="<%$ Resources:ViaMura.Web.Default, WebSearchButtonText %>"></asp:LinkButton>
... | c# asp.net | [0, 9] |
1,011,872 | 1,011,873 | Javascript Add Div on the fly which ul list link is clicked | <p>I am trying to replace having to create a sub list and instead I want to add the div's via javascript / jquery.</p>
<p>Here is what I have:</p>
<pre><code><script>
function makepage() {
var myvariable1="myTitle";
var newPage = $("<div>'+myvariable1+'</div");
//appendTo here?
</script>
...
</c... | javascript jquery | [3, 5] |
2,628,941 | 2,628,942 | Execute function by pressing "return" using jQuery? | <p>i have two text inputs like the following, i don't want to use <code><form></code> , so i want when people press "return" BUTTON after filling the inputs, a function called "doit()" should be executed.</p>
<pre><code><script>
function doit(){
alert("you submitted the info");
..........ajax code........
... | javascript jquery | [3, 5] |
355,205 | 355,206 | conditional if for many values, better way | <p>Is there a better way to deal with checking multiple values. It starts to get really busy when I have more than 3 choices. </p>
<pre><code>if (myval=='something' || myval=='other' || myval=='third') {
}
</code></pre>
<p>PHP has a function called <code>in_array()</code> that's used like this: </p>
<pre><code>in_a... | javascript jquery | [3, 5] |
1,313,204 | 1,313,205 | FormsAuthantication sign out | <p>I have an asp.net application, and I am using FormsAuthantication. When the user closes the page, the code located in Global.asax Session_End is executed : FormsAuthantication.SignOut();
But the problem is, session is not ending, if the user tries to open a page with cookie, the page shouldn’t be opened. User must ... | c# asp.net | [0, 9] |
740,525 | 740,526 | Which of these selectors is faster? | <p>In jQuery, which is faster.</p>
<pre><code>//option 1
var foo = $("#myForm .myOptionList option:selected").val();
//option 2
var foo = $("#myForm").find(".myOptionList option:selected").val();
</code></pre>
| javascript jquery | [3, 5] |
1,686,272 | 1,686,273 | Output variable from void method so that a javascript function can read it | <p>Hi I am trying to authenticate a user through this method</p>
<pre><code>protected void btnLogin_Click(object sender, EventArgs e)
{
string email = txtEmail.Text;
string password = txtPassword.Text;
try
{
bool loginResult = SingletonManager.Instance.FrontendFactories... | c# asp.net | [0, 9] |
5,421,860 | 5,421,861 | Javascript, callback when object's attributes change? | <p>Functions in javascript are objects:</p>
<pre><code>var x = function(){};
x.y = 1;
console.log(x.y); //Prints 1
</code></pre>
<p>Is there any way to call a function when y changes?</p>
<p>My reason for doing this is that I'm trying to override jquery's "$" function so that I can benchmark performance. It works fi... | javascript jquery | [3, 5] |
2,983,203 | 2,983,204 | How can I set a percentage width for my box that will be constant across devices? | <p>I have become confuddled, I'm trying to set a minimum width of a box, for all devices I want it to have a minimum width of say 20% of the screen width. how can I achieve this?</p>
<p>I've gotten the dpWidth of two screens from a tablet and my XHDPI Galaxy S3. The S3 has a dpWidth of 300 and the tablet 800. In which... | java android | [1, 4] |
3,785,893 | 3,785,894 | jQuery - DOM elements not being identified as equal | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2436966/how-would-you-compare-jquery-objects">How would you compare jQuery objects?</a> </p>
</blockquote>
<p>I'm using jQuery to store the actively clicked item in a list of items. I want to detect if the newly... | javascript jquery | [3, 5] |
3,847,916 | 3,847,917 | Stop page scroll after the page reaches certain point | <p>How can scroll be prevented after scrollTop reaches certain value say 150.</p>
<pre><code>$(window).scroll(function() {
if($(window).scrollTop() >=50)) {
return false; // basically don't scroll
}
});
</code></pre>
| javascript jquery | [3, 5] |
1,446,340 | 1,446,341 | jQuery Ajax call not working in Chrome Browser | <p>jQuery Ajax call not working in Chrome Browser.</p>
<p>my code :-</p>
<pre><code>function memories(pageName)
{
$.ajax({
type: "POST",
url: pageName,
success: function(html){
$("#page").load(pageName);
}
});
}
</code></pre>
| javascript jquery | [3, 5] |
942,706 | 942,707 | PHP Code to generate event to repeat in a random shuffle of intervals between 1-20 seconds | <p>This program sends an email every 20 sec. </p>
<p>How can I amend the code to have it send an email, then pause for a random number of seconds between 1 and 20, then repeat till the end ?
Any help on this is much appreciate. Thanks in advance! </p>
<p>Here is the code that is associated with the Delay section of t... | php javascript | [2, 3] |
29,186 | 29,187 | "Input type file.files" selector not works in jquery | <p>this is html:</p>
<pre><code> <form>
<input id="my_file" type="file" name="my_name" />
<input id="btn" type="button" />
</form>
</code></pre>
<p>this js:</p>
<pre><code> $(document).ready( function () {
$('#btn').on('click', functio... | javascript jquery | [3, 5] |
3,108,881 | 3,108,882 | javascript jquery carrying html form POST data | <p>SO I have a form that look similar to</p>
<pre><code><form action="test.php" id="checksub" method="post">
<div>
<select name="mydropdown">
<option value="buy">buy</option>
<option value="sell">sell</option>
</select>
</div>
autocomplete text input that trigge... | javascript jquery | [3, 5] |
1,425,450 | 1,425,451 | How to create re-authentication in Twitter? | <p>I have a query that I want to set re-authentication in my website like this:</p>
<p>If i registered once in my website and link my account with twitter then next time I logged into the website I would not need to log in with twitter. It will be automatically connected with twitter.</p>
| php javascript | [2, 3] |
4,307,173 | 4,307,174 | jQuery Event Handler created in loop | <p>So I have a group of events like this:</p>
<pre><code>$('#slider-1').click(function(event){
switchBanners(1, true);
});
$('#slider-2').click(function(event){
switchBanners(2, true);
});
$('#slider-3').click(function(event){
switchBanners(3, true);
});
$('#slider-4').click(function(e... | javascript jquery | [3, 5] |
328,529 | 328,530 | Generate dynamic hyperlink based on querystring | <p>I wanna generate Hyperlink based on query string .Let me explain it more</p>
<p>Topics clicked rite now:(here I want my hyperlinks)....,....</p>
<p>1.Cat1</p>
<p>2.Cat2</p>
<p>3.Cat3</p>
<p>when i click cat1 it generate querystring: ?Cat=Cat1</p>
<p>when I click on cat2 it will generate querystring ?Cat=Cat2</... | javascript jquery | [3, 5] |
2,959,278 | 2,959,279 | Access asp.net web application from lan computers | <p>I have a system(Server) with windows server 2008 and over 5 system as client systems.
Visual studio 2008 installed on every system (Server and Client).
And i have installed IIS-7 on server.I need to access my asp.net web project from server to client system using visual studio 2008.When i use file system to open tha... | c# asp.net | [0, 9] |
5,603,275 | 5,603,276 | What is this: $(function() {? | <p>Is this basically the same as <code>$(document).ready</code> or is this only run like this to ensure jQuery is there?</p>
<p>Maybe something else I'm not seeing?</p>
| javascript jquery | [3, 5] |
5,037,840 | 5,037,841 | How to do a USER NAME & PASSWORD protection in a web site before it is loading | <p>How can we able to protect a site using USERNAME and PASSWORD after we entering the URL and the site is before loading</p>
<p>For ex: <a href="http://www.buildyourownbouquet.com/" rel="nofollow">http://www.buildyourownbouquet.com/</a></p>
<p>I need exactly what it looks like...</p>
<p>Thanks in Advance</p>
<p>Fe... | php javascript | [2, 3] |
701,438 | 701,439 | How to register data for validation using RegisterForEventValidation in asp.net | <p>I would like to know the method of using RegisterForEventValidation in asp.net</p>
<p>My problem is this. </p>
<p>If I enable eventvalidation, then changing the controls using javascript and then posting the information back to the server later on throws up an error.</p>
<p>But If I disable event validation, the ... | asp.net javascript | [9, 3] |
2,669,147 | 2,669,148 | Is there any possibility to update facebook and twitter details from user application | <p>I have developed one web application which will export and import profile details to other application.Let me know the possibilities available in facebook and twitter for profile importing.</p>
<p>Thanks in advance,
Ruthra V</p>
| c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.