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 |
|---|---|---|---|---|---|
2,549,070 | 2,549,071 | alert not being fired when I append a new div | <p>On this fiddle <a href="http://jsfiddle.net/adrianjsfiddlenetuser/zyUkd/46/" rel="nofollow">http://jsfiddle.net/adrianjsfiddlenetuser/zyUkd/46/</a> the divs 'Hello 01' & 'Hello 02' fire an alert when they are clicked. When i click 'Add New' a new div is added but when I click on this div the alert is not fired e... | javascript jquery | [3, 5] |
5,155,003 | 5,155,004 | c14n with Android | <p>Is there a way to make an xml in canonical form on android?</p>
<p>The canonicalizers from some apache projects don't work as they depend on some javax.xml.* packages which aren't available on android.</p>
| java android | [1, 4] |
5,835,060 | 5,835,061 | Why does BitmapFactory.decodeByteArray return null? | <p>It's the simple code and instead of getting result to set the Bitmap, I get null. Can anyone tell me where I am making a mistake?</p>
<pre><code>String test = "test";
byte[] byteA = test.getBytes();
Bitmap bmp = BitmapFactory.decodeByteArray(byteA, 0, byteA.length); //<- I get null here
ImageView image = (ImageV... | java android | [1, 4] |
2,405,539 | 2,405,540 | How to CLOSE not HIDE a div on click using jquery? | <p>I have a modal window with an embeded video, this video plays but then once the mask (outer window) is clicked, the sound etc is still playing in the background.</p>
<p>This is the code:</p>
<pre><code>//if mask is clicked
$('#mask').click(function () {
$(this).hide();
$('.window').hide();
});
</code></pre... | javascript jquery | [3, 5] |
2,975,166 | 2,975,167 | jQuery ordered actions | <p>Does anybody know how to make a jQery function that has more than one action and every action will be fired only after its precedent is complete like:</p>
<pre><code>$('#myelement').addClass('loading').load(loadUrl).removeClass('loading');
</code></pre>
<p>here the first action which is adding the class name is ok... | javascript jquery | [3, 5] |
1,978,318 | 1,978,319 | How do I prevent default tab switching functionality in JQuery? | <p>I have created the tabs below.</p>
<pre><code><ul class="idTabs">
<li><a href="#basic_info" id="basic_info_link" >Personal</a></li>
<li><a href="#add_info" id="add_info_link">Address</a></li>
<li style="width:194px;"><a href="#payment_info" id="payment_... | javascript jquery | [3, 5] |
2,935,274 | 2,935,275 | How to pass an object to this js function? | <p>Code:</p>
<pre><code>function setMaps() {
var geocoder = new google.maps.Geocoder();
var result = "";
$('.map_canvas').each(function(){
geocoder.geocode( {
'address': $(this).attr('address'),
'region': 'de'
}, function(results, status) {
if (status ... | javascript jquery | [3, 5] |
1,311,955 | 1,311,956 | i have problem in uploading files to specific folder it is permession not enough | <p>I'm having aproblem uploading files to a specific folder on my web server. How can I give permession to this folder and what is the vital user in that case ?</p>
<p>Please help me, thanks in advance.</p>
| c# asp.net | [0, 9] |
3,567,450 | 3,567,451 | jQuery Table to CSV export | <p>I'm using the jQuery Table to CSV Plugin. I've altered the popup so that it tells the browser to download a CSV file.</p>
<p>It was:</p>
<pre><code>function popup(data) {
var generator = window.open('', 'csv', 'height=400,width=600');
generator.document.write('<html><head><title>CSV</tit... | javascript jquery | [3, 5] |
2,132,994 | 2,132,995 | How do I check to see if a resource exists in Android | <p>Is there a built in way to check to see if a resource exists or am I left doing something like this.</p>
<pre><code> boolean result;
try {
int test = mContext.getResources().getIdentifier("my_resource_name", "drawable", mContext.getPackageName());
if (test != 0) result = true;
}
final... | java android | [1, 4] |
3,181,243 | 3,181,244 | SmtpMail.Send(_MailMessage); doesn't work | <p>I am using default smpt virtula server to send mail using c# but it doesn't send any mails and also it doesn't throw any exceptions
public static void SendEmail(string _FromEmail, string _ToEmail, string _Subject, string _EmailBody)
{</p>
<pre><code> // setup email header .
SmtpMail.SmtpServer = "local... | asp.net c# | [9, 0] |
3,777,447 | 3,777,448 | change Content in TabActivity | <p>I have a problem with a change Content in TabActivity.</p>
<pre><code>public class MbankActivity extends TabActivity {
Intent intentMap;
...
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
intentMap = new Intent().setClass(this,MapaActivity.class);
tabSpecMa... | java android | [1, 4] |
769,101 | 769,102 | The method getContentResolver() is undefined for the type Discoverer | <p>I am getting the error <code>getContentResolver() is undefined for the type Discoverer</code></p>
<p>Below is my code. Please help me out</p>
<p>i start by using</p>
<pre><code> new Discoverer((WifiManager) getSystemService(Context.WIFI_SERVICE))
.start();
</code></pre>
<p>and this follows in ... | java android | [1, 4] |
4,255,972 | 4,255,973 | Adding rows to a table with jQuery | <p>I am trying to develop a plugin for jQuery. This is my first plugin, and I am stuck in the initial phase. </p>
<p>I need to do following things: I need to find the "add row" link from the table and bind to the click event. When the link is clicked, it should add a new row by cloning the existing template row. Initi... | javascript jquery | [3, 5] |
1,531,782 | 1,531,783 | Is it possible to access an html document from a different PHP script than the one that generated it? | <p>Here is the scenario:
I have a page that is logging data to MYSQL. I have another page that reads that data and allows it to be viewed. When a new piece of data is logged I would like to have the first script check and see if the viewing page is open in the browser, and if so append the newest data to the end of t... | php javascript | [2, 3] |
1,944,164 | 1,944,165 | jQuery process groups of checkboxes | <p>So I have several groups of checkboxes that are all related. More specifically, it is a permission system. Each user group has their set of permissions, so Admin gets view/read/create, Member gets view/read/create, and so on. Each group will have checkboxes for each permission, so as to select which groups can do wh... | javascript jquery | [3, 5] |
1,588,551 | 1,588,552 | Use an array to query whether one of the strings exists in window.location.href | <p>I currently search the window.location.href individually:</p>
<p>window.location.href: <code>http://www.example.com/6CATA/folder/file.html</code></p>
<pre><code>var searchWinHref = window.location.href;
if(searchWinHref.indexOf("/6CATA/") > -1) {
alert('6CATA is in the window.location.href');
}
</code></pre>
... | javascript jquery | [3, 5] |
1,524,594 | 1,524,595 | LINQ / LAMBDA expression for the below code | <p>I am having a checked list box from which i extracted the checked items value and saved it to database. Now when i am returning back to form i am having only the value [id] as a List. Now i want to display those selected values from this list of int.</p>
<p>I think i am clear to you. </p>
<p><strong>[Update]</stro... | c# asp.net | [0, 9] |
5,659,140 | 5,659,141 | Passing $this in JavaScript | <p>How would I rewrite this to use a common function, pretending that the common function would eventually have more than the 1 line of code in it:</p>
<pre><code>$('.insert').hover(function() {
$(this).css('cursor','pointer');
});
$('.delete').hover(function() {
$(this).css('cursor','pointer');
});
</code></p... | javascript jquery | [3, 5] |
1,128,650 | 1,128,651 | message box show in asp.net problem | <p>I have an email compose page. When the user clicks on the "Send" button, if there is any error, the page is redirected to an error page. If the email is sent out successfully, it displays a javascript alert message. The way it's done now is using a label control, LblMessage.Text="alert('Your email has been sent succ... | c# asp.net | [0, 9] |
4,870,567 | 4,870,568 | How to disable certains items in listbox control when binding | <p>i have an datatable with valuees like this</p>
<pre><code>names
------
kumar
kiran
ram
bala
----
anu
sita
geetha
-----
asha
abc
tsdf
dsf
sdf
sdfrt
sdfsdfd
sdfdsfsdf
--------
</code></pre>
<p>i am binding my table to listview like this</p>
<pre><code>ListItem ddlItem;
foreach (DataRow dr in dt.Rows)
{
ddlItem = n... | asp.net javascript | [9, 3] |
3,508,882 | 3,508,883 | 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] |
4,297,278 | 4,297,279 | Pass C# Values To Javascript | <p>On loading the page I want to pass a value to my javascript function from a server side variable.</p>
<p>I cannot seem to get it to work this is what I have:</p>
<p>Asp.Net</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
string blah="ER432";
}
</code></pre>
<p>Javascript</p>
<pre><code... | c# javascript asp.net | [0, 3, 9] |
1,679,912 | 1,679,913 | jQuery click event on 1000 divs, optimize approach? | <p>I'm building a system for selling tickets to events. Right now there are about 1000 diffrent seats to choose from as a visitor. Maby one day it will be up to 5000.</p>
<p>Right now I have a div for each spot and then some jQuery to reserv the spot with ajax. So that meens that I have about 1000 divs and more alarmi... | javascript jquery | [3, 5] |
5,395,809 | 5,395,810 | $(window).load() works differently on IE and FF | <p>I was working with <code>$(window).load()</code> ...and found one issue.
Actually as per this function first window should load and then any implementation under this function should start working.
This works fine for IE but not for FF.
in FF its working like <code>$(document).ready()</code></p>
<p>can somebody sug... | javascript jquery | [3, 5] |
937,542 | 937,543 | Something like a Map<String, Object> I can use to store data in jquery? | <p>I have some JSON objects I'd like to store in a map for the lifetime of my app. For example, my app shows a listing of Farms. When a user clicks one of the Farm links, I download a Farm representation as JSON:</p>
<pre><code>Farm 1
Farm 2
...
Farm N
</code></pre>
<p>every time the user clicks one of those links, I... | javascript jquery | [3, 5] |
1,489,839 | 1,489,840 | Algorithm for computing a score for move and time based game | <p>I am creating a puzzle game that consists of moves and time.</p>
<p>Obviously the more moves you end the game with would mean you did better or a level than with a low amount of moves left upon completion. </p>
<p>The time counts from 0 and goes until the player completes the level. The less time it takes the play... | java android | [1, 4] |
2,275,482 | 2,275,483 | How to perform javascript inside C# event | <p>I am inside an event and inside this event I want to have a javascript alert display a message to a user. But I cannot seem to get this to work.</p>
<pre><code>protected void dgvStaff_Deleting(object sender, Infragistics.Web.UI.GridControls.RowDeletingEventArgs e)
{
// Code stub
obj... | c# asp.net | [0, 9] |
624,745 | 624,746 | Alert Dialog Icon Won't Set | <p>I have a 14x14 png file (icon_alert.png) in my drawable-hdpi folder. This is how I am setting the icon:</p>
<pre><code>alertDialog.setIcon(R.drawable.icon_alert);
</code></pre>
<p>The icon is not there when the dialog is shown.</p>
| java android | [1, 4] |
3,027,985 | 3,027,986 | Select td elements if checkbox is on | <p>I have this table, from which i'd like to select all the <code>td</code> elements value if the checkbox is <code>checked</code> and then put all the elements in some array or string, so that i can transfer it to server side.</p>
<pre><code><table id="tableDg">
<tbody>
<tr>
<td><in... | javascript jquery | [3, 5] |
664,860 | 664,861 | pass php variable via AJAX with jquery | <p>I want to send a variable <code>$stuff</code> frome <code>page.php</code> to <code>load.php</code> via POST</p>
<p>I have something like this in javascript</p>
<pre><code>$.post("load.php", {'start': count }, function(data){
$("#posts").append(data);
});
</code></pre>
<p>I know I need to modi... | php javascript jquery | [2, 3, 5] |
1,938,792 | 1,938,793 | ASP.NET Getting a blank page after submitting a form (beginner) | <p>I am trying to make some game, I'm not going to explain what is it because it's not really important, anyway, the problem is the following form: </p>
<p><a href="http://pastebin.com/8XwdDFWY" rel="nofollow">http://pastebin.com/8XwdDFWY</a></p>
<p>after submitting that form I'm getting a blank page.</p>
<p>Here's ... | c# asp.net | [0, 9] |
4,480,588 | 4,480,589 | Calendar with quick note | <p>Is there any JavaScript or jQuery widget calendar which allow to add some information to days? This "notes" will be added not by user - prepared against to page load.</p>
<p>For example: User pick date and read notes for these day.</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
2,560,832 | 2,560,833 | Popping a modal with Javascript | <p>I have the following in an html file:</p>
<pre><code><div id='confirm'>
<div class='header'><span>Stay Online</span></div>
<div class='message'></div>
<div class='buttons'>
<div class='no simplemodal-close'>No</div><div class='yes'>Yes</... | javascript jquery | [3, 5] |
1,344,839 | 1,344,840 | Is it possible to print a function as a string in Python? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1562759/can-python-print-a-function-definition">Can Python print a function definition?</a> </p>
</blockquote>
<p>In Javascript, it is possible to print a function's code as a string?</p>
<p>Example in Javascri... | javascript python | [3, 7] |
4,531,497 | 4,531,498 | Calling main thread in asp.net C# | <p>I am calling method in separate thread. After sometime or after some event occurs I want to call main threads method. I am using C# in asp.net website.</p>
<p>To call separate thread i am using below code</p>
<pre><code> Thread thread = new Thread(new ThreadStart(threadMethod));
thread.Start();
</code></pre... | c# asp.net | [0, 9] |
2,569,539 | 2,569,540 | is it possible to disable the submit behaviour of a server side button using Javascript | <p>is it possible to disable the submit behaviour of a server side button using Javascript?
Note: I dont want to disable the button, the user will click the button but it will not submit/get any value from server.</p>
<p>scenario:</p>
<pre><code> <asp:Button ID="Button1" runat="server" Text="Submit" onclick="Butt... | asp.net javascript | [9, 3] |
3,275,625 | 3,275,626 | Jquery dynamic dropdown event not firing | <p>Hi i am trying to create dropdownlists dynamically and populating the contents via an ajax call, this sort of works in the sense that the drop down is created and populated as required but its 'change' event does not fire. I am posting the code below, if anyone can spot something obvious, can you please let me know
... | javascript jquery | [3, 5] |
1,341,688 | 1,341,689 | Make an ajax request with elements attributes with jquery | <p>I want to make an ajax request where I want to give all my elements attributes. For exemple i select all my elements : </p>
<pre><code>var elements = $('.droppable')
</code></pre>
<p>and then i make my ajax :</p>
<pre><code> $.ajax({
url: "test.html",
data: {myelements : elements},
success: functi... | javascript jquery | [3, 5] |
3,443,017 | 3,443,018 | asp.net c# ÅÄÖ UTF-8 | <p>I have problem with special chars like ÅÄÖ they prints out like "Ã¥ ä ö Ã… Ä Ö"</p>
<p>FB.ui({method: 'apprequests',
title: 'We LOVE U!',
message: 'å ä ö Å Ä Ö',
filters: ['app_non_users'],
}, requestCallback);</p>
| c# asp.net | [0, 9] |
5,247,487 | 5,247,488 | How do I make a Generic Data Access Class? | <p>ASP.net C# 3.5 Framework, working in Visual Studio 2008 currently.</p>
<p>What I want is a Generic Data Access Class. I have seen several of them but what I want is to see one that I pass the Connection String and the SQL statement and it will return a List of Objects or when only one item an Object or when no res... | c# asp.net | [0, 9] |
2,633,584 | 2,633,585 | Smallest WYSIWG editor you can find? | <p>I am searching for the smallest WYSIWG editor i can find. </p>
<p>I have tried TinyMCE, CKEditor etc. but i can not find a small one, all has hundreds of kb js files to load.</p>
<p>I dont need image upload etc, even if i like the one Stackoverflow using so think i need some that more shows like Word but really ba... | javascript jquery | [3, 5] |
2,638,500 | 2,638,501 | form submits before onsubmit function has finished | <p>I'm calling the JavaScript function onsubmit of form but form has submit before finished the submit function.If I use the alert in the onsubmit function it finish the function first then submit the form.I used the settimeout function in place of alert but it didn't work.How can I submit the form after the onsubmit h... | javascript jquery | [3, 5] |
575,770 | 575,771 | jqTransform and ASP.NET does work, why? | <p>I get this message while pressing on ASP:Button in IE 8 in Compatibility Mode while my form has jqTransform applied to it.</p>
<p>"A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$ButtonRegister="register..."). " </p>
<p>Without it works fine, if i don't override C... | asp.net jquery | [9, 5] |
5,884,833 | 5,884,834 | jQuery won't update height | <p>I'm having problems with the jQuery .height() function.</p>
<p>Final result should be an div with an dynamic height as the text changes. Therefore I have an wrapper div and an content div inside that wrapper. The text is in hidden div's somwhere else in the DOM, and 'imported' with .html() function and an simulated... | javascript jquery | [3, 5] |
4,456,358 | 4,456,359 | ASP.net Get Path | <p>I have </p>
<pre><code>C:\Softwares\Test\ASPnetTest\Project11\Shared\Public\Images\
</code></pre>
<p>How to convert it to</p>
<pre><code>Shared\Public\Images\
</code></pre>
<p>Thank you.</p>
| c# asp.net | [0, 9] |
3,326,756 | 3,326,757 | Change part of name with Javascript and jQuery | <p>I have a few <code>select</code> elements on my page and i want to remove a part of the name.</p>
<p>Their name look something like this:</p>
<pre><code>ctl02$fieldname
</code></pre>
<p>The part that i want to remove is: <code>ctl02$</code>. So that it leaves me with <code>fieldname</code> only.</p>
<p>That part... | javascript jquery | [3, 5] |
3,160,678 | 3,160,679 | ASPX server code is being created in .aspx file | <p>just moment ago I discovered strange behaviour of my visual studio environment. I'm using ASP.net web application. When the webform is added, and i'm trying to place button on webform, instead of declaring button_Click event in code-behind file (WebForm.aspx.cs) this declaration is placed in aspx.file as follows:</p... | c# asp.net | [0, 9] |
5,694,399 | 5,694,400 | image preloader not working in IE | <p>I have the following code to preload images:</p>
<pre><code>preloader : function(images) {
var imgCount = images.length;
var counter = 0;
$.each(images, function(i, n) {
alert('hi');
// load each image
$("<img />").attr("src", n).load(function() {
... | javascript jquery | [3, 5] |
3,595,141 | 3,595,142 | How to make resolution free app | <p>I have set 320x480 size for canvas/widget of app. How can I make it resolution free.I have to draw some tips on particular location using AbsoluteLayout.If I change size of canvas/widget then the tips are displaying at wrong coordinates.</p>
| java android | [1, 4] |
1,400,051 | 1,400,052 | Append select data to URL using jQuery | <p>I am having problems trying to add a parameter to a URL using jQuery based off of the value of a Select element. Here is my code so far:</p>
<pre><code><script type="text/javascript">
$(document).ready(function () {
$("#sel-1").change(function() {
$(this).closest("form").submit();
});
var input = ... | javascript jquery | [3, 5] |
5,111,099 | 5,111,100 | PHP + jQuery - How to form submit, process and redirect on success? | <p>Stupid question (I seem to be leading all my questions with this phrase), but I was wondering if anyone out there had an elegant solution for processing forms via php and jquery and then redirects</p>
<blockquote>
<p><strong>[HTML FORM]</strong> --> <em>submits via jquery post to</em> --> <strong>[PHP FILE]</stro... | php jquery | [2, 5] |
2,170,871 | 2,170,872 | Getting values from different input fields with same class name | <p>I'm working on an image sharing site, and right now I'm working on rendering out a users albums on a page. Each of the albums contains of at least on image, and I want to show all the albums as boxes with four thumbnails (the first four images in the album) in each of the boxes.</p>
<p>The images file names is stor... | javascript jquery | [3, 5] |
1,237,023 | 1,237,024 | Creating a Game Server | <p>I'm interested in creating a server for an undetermined multiplayer game, either PC or mobile based. Any game server would obviously be event driven, asynchronous, and fast. I'm very experienced in web development, where it's common to use a framework such as Symfony for PHP or Django for Python. </p>
<p>Is there a... | android iphone | [4, 8] |
4,598,307 | 4,598,308 | How to show X number of divs at a time in Javascript? | <p>Assuming I have an array of names:</p>
<pre><code>var myarray = ["A", "B", "C", "D", ... "J"]
</code></pre>
<p>Say if I have 10 entries in my array and I only want to show 3 at any given time. How do I make it such that each entry, if shown, is shown in a div of red color with a "Back" link and a "Next" link? When... | javascript jquery | [3, 5] |
5,330,799 | 5,330,800 | How can I run Ajax functions syncrronously from Javascript? | <p>I have the following code:</p>
<pre><code>$('#DoButton').click(function (event) {
event.preventDefault();
$("input:checked").each(function () {
var id = $(this).attr("id");
$("#rdy_msg").text("Starting" + id);
doAction(id);
});
});
function doAction(id) {
var parms = { Id: id };
... | javascript jquery | [3, 5] |
3,270,633 | 3,270,634 | Efficiency with java strings | <p>When we extend DefaultHandler, we usually override the characters function.</p>
<p>I was wondering which would be a more efficient way to extract the String supplied... </p>
<hr>
<ol>
<li><p><strong>Would it be using a for loop and a StringBuilder?</strong></p>
<pre><code>@Override
public void characters(char[] ... | java android | [1, 4] |
3,985,092 | 3,985,093 | Jquery date difference | <p>I have this code for calculating date difference (without weekends) between two input fields, and printing the difference in days in a third text box. The date format is yy-mm-dd (because of mysql).</p>
<pre><code><script type="text/javascript">
$("#vazi_od, #vazi_do").change(function() {
var... | javascript jquery | [3, 5] |
2,383,402 | 2,383,403 | Iterating through viewgroup | <p>Given a new screen in android i would like to iterate through all the viewgroups and views in order to discover all buttons,text fields, spinner etc... is this possible ?</p>
| java android | [1, 4] |
1,789,350 | 1,789,351 | run function at ready and keyup event | <p>Is there another in jquery to run a function at page load and at a keyup event instead of the way I'm doing it?</p>
<pre><code>$(function() {
totalQty();
$("#main input").keyup(function() {
totalQty();
});
});
</code></pre>
| javascript jquery | [3, 5] |
66,196 | 66,197 | jQuery: Setting Functions Per Page | <p>I currently have a single jQuery script page that I include in my ScriptManager on my MasterPage (I use ASP.NET). All of my custom scripts for all my pages go in this page. I know some people like to break it up into multiple pages but I prefer having them all in one place. Anyways, I have one <code>$(document).read... | asp.net jquery | [9, 5] |
4,368,368 | 4,368,369 | Simulate :focus state on a div when key pressed | <p>I want previous and next navigation using left and right arrow keys. I want the state of the links to change to :focus upon pressing of the arrow keys as well for tactile feedback. Perhaps addClass could work too, but I can't figure it out.</p>
<p>Code is here:
<a href="http://jsfiddle.net/wBWTx/" rel="nofollow">... | javascript jquery | [3, 5] |
3,909,001 | 3,909,002 | Replacing old DLL with new DLL | <p>My client lost the source code of their web application and wanted to make few small changes to it. I used RedGate's .Net Reflector to extract the source code from the DLL. Using the class files generated I was able to make changes at the desired place and re-generate the DLL. The application pool used by the applic... | c# asp.net | [0, 9] |
2,876,221 | 2,876,222 | Control access on certain users | <p>My website is mainly divided into 3parts. One for administrator, mostly maintenance pages to update database. One for general users who browse the page with accounts logged in. One is for anonymous to browse and check out our products. How could I restrict the users/anonymous to get to my admin pages and how do I re... | c# asp.net | [0, 9] |
2,155,842 | 2,155,843 | On Click, knowing if the element clicked is a checkbox? | <p>I used to use the following to know if a clicked item was a checkbox:</p>
<pre><code>if ($(e.target).className === 'checkbox') {}
</code></pre>
<p>After upgrading to the latest version of jQuery this now returns undefined for Chrome, Safari and Firefox.</p>
<p>What is the best way to determine if a click happened... | javascript jquery | [3, 5] |
2,436,887 | 2,436,888 | JQuery Path location | <p>am using Asp.Net C# 2.0. My website is working fine in local. Website contains 2 js files included in master page. It works fine in local environment, but when i publish my website i get "Object expected" error on page load, and thus the js functions are not working in published website. </p>
<p>Currently I am wri... | asp.net jquery | [9, 5] |
2,845,006 | 2,845,007 | InProc Session or save to database (using EF4.1) | <p>While rebuilding a site I'm having a rethink on various aspects of my site.</p>
<p>One thing my current site does is store the shopping cart in session (InProc) through the various page requests of the buy process.</p>
<p>I'm thinking of moving away from using the session state and instead saving the cart to a dat... | c# asp.net | [0, 9] |
3,168,814 | 3,168,815 | loading js dynamically with jquery | <p>I'm conditionally loading a script if the browser is IE8. I'm using jquery's .getScript function because I need to run something after the script is loaded. The problem is in the format of the URL. I've got it working when downloading the script that's on my hard drive directory but I can't get it to work when loadi... | javascript jquery | [3, 5] |
2,668,875 | 2,668,876 | Bluetooth paired list in android using python | <p>Suppose I have paired 3 bluetooth devices(X, Y, Z) with my android phone. Now I want to get the names and other details of X, Y, Z using python script. For that I need to the list of all the paired devices and store them in a list variable inside the python script.</p>
<p>Can you help me with some sample python scr... | android python | [4, 7] |
5,223,178 | 5,223,179 | setInterval & the global scope: Running setInterval once on click | <p>When a user lands on my homepage, I use setInterval to cycle through some classes for a visual effect:</p>
<pre><code> var toggleSlide = setInterval( function() {
$('#cs-main nav li.cycle').removeClass("cycle" || " ").next().last().addClass("cycle");
},600);
</code></pre>
<p>I'd like this effect only to r... | javascript jquery | [3, 5] |
3,244,578 | 3,244,579 | Should I avoid using javascript and jquery in my website? | <p>I use some jquery and JS functions to validate forms and to check for example if that field is empty or password is less than 6 characters, and stuff like that, and I noticed that if someone disabled JS, then these functions would be useless, and no more protection of forms, which can be better made using PHP, so sh... | javascript jquery | [3, 5] |
3,088,401 | 3,088,402 | Operating System Detection by Java or JavaScript | <p>I need to detect OS name & version in Java. That I can do by </p>
<pre><code>String os_name = System.getProperty("os.name", "");
String os_version = System.getProperty("os.version", "");
</code></pre>
<p>but the problem is that this is not reliable. Sometimes it returns incorrect information, and I can't detec... | java javascript | [1, 3] |
1,410,138 | 1,410,139 | ASP.NET C# code behind | <p>I'm working on developing a solution for my website that will grab headlines and news articles from my database and display the 4 latest Headlines on my homepage with links to the full articles. I created a custom form that displays the information in a format that I would like. I tried creating a method in the code... | c# asp.net | [0, 9] |
5,624,584 | 5,624,585 | How to get Scroll position in Auto Complete | <p>I am using Jquery AutoComplete. <code>http://api.jqueryui.com/autocomplete/</code></p>
<p>The problem i am facing is when this jquery auto complete fetch me the result it shows me all in one line. i want that it should show 10 result and rest in scroll.</p>
<pre><code>$("#<%=txtProductName.ClientID %>").auto... | jquery asp.net | [5, 9] |
4,546,262 | 4,546,263 | How to add two or more variables in jQuery ( mirror of .= operator in PHP) | <p>Sorry i am so new to jQuery and not sure how to do that. </p>
<p>Basically in php i can do something like this:</p>
<pre><code>$result = '';
$result .= 'Hi';
$result .= ' there';
echo $result;
</code></pre>
<p>I am just asking if there's an exact copy or alternative in jQuery. instead of adding variables with plu... | javascript jquery | [3, 5] |
5,531,676 | 5,531,677 | Problem with sending Array of ArrayList to WebService as Parameter | <p>I have a array of <code>ArrayList</code> as shown below:</p>
<pre><code>ArrayList[] m;
</code></pre>
<p>My web service method takes this type as parameter.</p>
<p>How can I send it to web service?</p>
<p>When I do so the Web Service changes my array of <code>ArrayList</code> to <code>Object[][]</code>!</p>
| c# asp.net | [0, 9] |
1,120,726 | 1,120,727 | Android Random Number | <p>I m generating one random card from array. and assigning it.'
Below is the code..but its is showing an error.
What is the problem?</p>
<pre><code>public void rand() {
String rank[]= {"tclub1.png", "tclub2.png", "tclub3.png", "tclub4.png", "tclub5.png", "tclub6.png", "tclub7.png", "tclub8.png", "tclub9.png", "t... | java android | [1, 4] |
2,241,607 | 2,241,608 | Clone form and increment ID | <p>Consider the following form:</p>
<pre><code><form>
<input type="button" value="Input Button"/>
<input type="checkbox" />
<input type="file" id="file"/>
<input type="hidden" id="hidden"/>
<input type="image" id="image" />
<input type="password" id="pas... | javascript jquery | [3, 5] |
1,886,839 | 1,886,840 | What's the best way for the user to add multiple details to single area of input? | <p>In my project the user has to detail his management expenses in four different areas. At first we had a simple table (<a href="http://85.94.221.106/table.html" rel="nofollow">this one</a>) where he had to write all the data grouping all the expenses description in a textarea, now we want him to detail each area, so ... | php jquery | [2, 5] |
1,851,760 | 1,851,761 | Query regarding Switch Content Script | <p>First off, i'm a front end designer/developer with very very minimal javascript and PHP knowledge.</p>
<p>I'm using the 'Switch Content Script' which I found on Dynamic Drive - <a href="http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm" rel="nofollow">http://www.dynamicdrive.com/dynamicindex17/switchcon... | javascript jquery | [3, 5] |
1,571,369 | 1,571,370 | How to set the calendar in android for particular hour | <p>I dont want to add the year or month.Just the hour , minutes and seconds for each day.
How to use it the Calendar object to do it ?
This is my code</p>
<pre><code>// get a Calendar object with current time
Calendar cal = Calendar.getInstance();
// add 5 minutes to the calendar object
cal.add(Calendar.HOUR, 4);
cal... | java android | [1, 4] |
2,127,040 | 2,127,041 | Mystery blank space in aspx panel | <p>I have a simple for loop that adds items in an array to a Panel control.</p>
<p>Before the items are added to the panel I am outputting the information into a table via new Literal Control.</p>
<p>Anyhow whenever I add this line</p>
<pre><code>Panel1.Controls.Add(new LiteralControl("<table border='1' cellspaci... | c# asp.net | [0, 9] |
853,925 | 853,926 | How to run background coding by selecting data shown in the listview | <p>I am trying to use list view for dynamic display of data from database. I want that on clicking that data a background coding should run by getting the ID of the selected data and then it should navigate to another page. </p>
| c# asp.net | [0, 9] |
5,816,150 | 5,816,151 | How to conditionally load a jQuery plugin? | <p>I have an asp.net UserControl that can be added multiple times to a page. On this UserControl I am using a jQuery plugin that I would only like to load once. I am using the following piece of code to conditionally load jQuery itself:</p>
<pre><code>if (typeof jQuery == 'undefined') {
// load jquery
var s... | javascript jquery asp.net | [3, 5, 9] |
3,750,807 | 3,750,808 | Deletion on the ajax callback issue | <p>I have a dashboard in my website which contain some entries in table, each entry in the table have a <code>delete</code> button. When user click over the <code>delete</code> button a Ajax call happens and i am deleting that entry in the callback function. My code :</p>
<pre><code>$(".del").live({
click: functio... | javascript jquery | [3, 5] |
3,184,415 | 3,184,416 | gaming with c++ or c#? | <p>What is the best language for programming a game project and why?</p>
<p>Why is the game programing world dominated by c++?</p>
| c# c++ | [0, 6] |
1,880,829 | 1,880,830 | jQuery autocomplete special character (Norwegian) problems | <p>I'm using jQuery's autocomplete function on my Norwegian site. When typing in the Norwegian characters æ, ø and å, the autocomplete function suggests words with the respective character, but not words starting with the respective character. It seems like I've to manage to character encode Norwegian characters in the... | php javascript jquery | [2, 3, 5] |
2,616,301 | 2,616,302 | sorting an array based on time in javascript | <p>I have an array in the format </p>
<pre><code>["09-02-2010", " 05-08-2010", "11-11-2010", "27-09-2010", "10-12-2010", "09-09-2010", "03-09-2010", "13-08-2010", , "11-10-2010","09-06-2010", "08-06-2010", "07-06-2010" ]
</code></pre>
<p>I am trying to sort the array based on the decreasing order of dates.. </p>
<p... | javascript jquery | [3, 5] |
1,149,299 | 1,149,300 | Data empty in jQuery.get() callback | <pre><code>$.get("http://localhost/test.php", (function(data){
alert(data);
}))
</code></pre>
<p>The alert is empty. I'm new to this, and I can't see what I'm doing wrong. Help?</p>
| javascript jquery | [3, 5] |
1,710,722 | 1,710,723 | jQuery: Executing multiple actions on the same event on the same element but at two different points in time | <p>We know that multiple calls to $(document).ready(); in the same page is possible. I need something similar for click events.</p>
<p>Situation:
Another team implemented this somewhere in an external JS file:</p>
<pre><code>$('#element').live('click', function() { /* Do this */} );
</code></pre>
<p>It's a live()... | javascript jquery | [3, 5] |
2,716,404 | 2,716,405 | The literal of type long is out of range | <p>Hi I am trying to do some calculations for a unit converter im creating and have stumbled upon a problem.</p>
<pre><code>out10 = doubleInput / 94605284000000000000000L;
</code></pre>
<p>Eclipse says that "The literal of type long is out of range", I didn't even think this was possible, but maybe some f you know ho... | java android | [1, 4] |
3,032,845 | 3,032,846 | jQuery: Use live event to add tabindex attributes | <p>Would like all new elements with class <code>.link</code> to have a tabindex.</p>
<p>Delegate/Live does not seem to work:</p>
<pre><code>$('body').delegate('.link', 'load', function(event){
$(this).attr('tabindex',0);
});
</code></pre>
<p>Trying to apply this to AJAX loaded elements. And using what I found in ... | javascript jquery | [3, 5] |
514,495 | 514,496 | Uncaught ReferenceError when executing on different computer | <p>The below script works fine on one of my computers but when executing it on another I get <code>uncaught referenceerror $ is not defined</code>. It is the same error on another similar page. Also it says unable to load resource of the ajax.google... source.</p>
<pre><code><script src="http://ajax.googleapis.com/... | javascript jquery | [3, 5] |
1,828,747 | 1,828,748 | How to Json Parsing In asp .net | <pre><code>http://www.taxmann.com/TaxmannWhatsnewService/Services.aspx?service=gettopstoriestabnews
</code></pre>
<p>This is my web service I have to parse and store all value in <code>String</code> please help me how to parse. </p>
<p>using asp.net (C#) so that I can store :</p>
<pre><code>news_id as it variable
... | c# asp.net | [0, 9] |
2,307,094 | 2,307,095 | Android: How to Get 3G/UMTS Signal Strength Values | <p>I am a Cellular RF Engineer and have been trying to get some specific WCDMA/3G/UMTSsignal measurement values out of Android SDK environment. Using the public class <code>SignalStrength</code> I have been successful in getting meaningful GSM values (with the assistance of a Software Engineer) using <code>getGsmSigna... | java android | [1, 4] |
66,544 | 66,545 | Is this a jquery.live() side effect? | <p>I'm new to jquery. When I was using .live('click', handler) instead of .click(handler), I found the event handler can be triggered even though the object is disabled! Is this a bug of .live() all it is an anticipated behavior? And if do not want the side effect, what should I do? Thanks!</p>
| javascript jquery | [3, 5] |
3,936,210 | 3,936,211 | trigger Android application from Web Application | <p>Hello all my problem is :
We have to create a system in which we need to create both web(ASP.NET C#) and android application and we have to synchronize data on both interface.
So <strong>is there any method/Way to trigger Android application from Web Application(ASP.NET C#).</strong></p>
| android asp.net | [4, 9] |
4,422,054 | 4,422,055 | Why 'this' can be used as the argument here in Java? | <pre><code>public class Activity01 extends Activity implements OnClickListener,
ViewFactory {
...
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LinearLayout main_view = new LinearLayout(this);
m_Switch... | java android | [1, 4] |
4,365,557 | 4,365,558 | How to pass ID to a JavaScript function | <p>In HTML, I have:</p>
<pre><code><td>
<span id="change_naco"></span>
<span id="naco">Food</span>
</td>
<td>
<span id="change_naco"></span>
<span id="naco">apples</span>
</td>
</code></pre>
<p>The rows come from the M... | javascript jquery | [3, 5] |
3,418,690 | 3,418,691 | How to get machine account from which the user login to my application? | <p>How to get the user machine account from which he access the application in the case of <code>Form authentication</code> .</p>
<p>I use the following method but it doesn't get the required data:</p>
<pre><code>protected string[] TrackUser()
{
System.Web.HttpContext context = System.Web.HttpContext.Current;
... | 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.