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
4,863,711
4,863,712
Datatable Filter in c#
<p>I am loading some data into datatable in a page load event from DB. Immediately i am setting that datatable into some session. In some part i am Retreiving it into datatable by taking a new instance of Datatable and performing some filter action to a new datatable instance(But i am not performing any filtering actio...
c# asp.net
[0, 9]
1,459,811
1,459,812
How to test whether an element already has an assigned color?
<p>In JavaScript using jQuery during assigning the color to an element having <code>id</code> as <code>'ID'</code> we assign as follows:</p> <pre><code>$('#ID').css({'background-color':'#FF0000'}); </code></pre> <p>But how to know whether the element has already been assigned a color?</p> <p>I need to check whether ...
javascript jquery
[3, 5]
1,154,483
1,154,484
Jquery, add buttons under elements, and remember which element the button belongs to
<p>Please check out my code here</p> <p><a href="http://jsfiddle.net/bYDPr/20/" rel="nofollow">http://jsfiddle.net/bYDPr/20/</a></p> <p>So I have some HTML textarea elements</p> <pre><code>&lt;textarea id="area11ba" class="showEditor"&gt;1&lt;/textarea&gt;&lt;br/&gt; &lt;textarea id="area22ab" class="showEditor"&gt;...
javascript jquery
[3, 5]
3,408,581
3,408,582
why string is not compare using double equal sign
<p>Why string is not comparable using <code>==</code>. Why we must use <code>isEqualToString</code> for compare two strings.</p> <p>Thanks in advance</p>
java android
[1, 4]
5,734,505
5,734,506
Javascript Array in for loop returns undefined
<p>When I loop this array with a for loop it somehow gives me undefined in </p> <pre><code>updateField(this.value, vehicles[i]+"_brand" </code></pre> <p>While </p> <pre><code>$("#"+vehicles[i]+"_year").change(function(){ </code></pre> <p>Does get the right values of the array. How can this be and how can I solve th...
javascript jquery
[3, 5]
4,666,694
4,666,695
How to detect right mouse click + paste using JavaScript?
<p>Is there a way to detect a right click followed by paste with JavaScript on IE and Firefox ?</p> <p>Update:</p> <p>I decided to use Jquery to do it:</p> <pre><code>$('#controlId').bind('paste', null, function() { // code }); </code></pre> <p>It's not exactly what I was looking (because it gets fired on 'ctrl...
javascript jquery
[3, 5]
2,885,632
2,885,633
direct user to another page
<p>how do i code it as javascript when user leave the field empty, they will direct the user to another page?</p> <p>i'm using asp.net..</p>
asp.net javascript
[9, 3]
401,710
401,711
Hiding radio button list items based on selection of a item in other radiobutton list using jquery
<p>In my scenario I have 2 radio button lists(asp.net server controls). If I select an item in my 1st radio button list then two items in the 2nd radio button list should not be visible.</p>
jquery asp.net
[5, 9]
2,083,812
2,083,813
Send commands between two computers over the internet
<p>I wish to control my computer (and usb devices attached to the computer) at home with any computer that is connected to the internet. The computer at home must have a program installed that receives commands from any other computer that is connected to the internet. I thought it would be best if I do this with a web...
php java python javascript
[2, 1, 7, 3]
1,530,737
1,530,738
Banking applications in php
<blockquote> <p>There is an unacknowledged war that goes on every day in the world of programming. It is a war between the humans and the computer scientists. It is a war between those who want simple, sloppy, flexible, human ways to write code and those who want clean, crisp, clear, correct ways to write cod...
java php c++
[1, 2, 6]
4,756,644
4,756,645
jQuery: Radio .change function, strange bug
<p>I am trying to get the value of a selected radio after the .change event is triggered. I need to use an external function to do so but I cannot seem to get the correct value.</p> <p>HTML:</p> <pre><code>&lt;input type="radio" name="myradio" value="1.0"&gt; 1.0 &lt;input type="radio" name="myradio" value="2.0"&gt; ...
javascript jquery
[3, 5]
5,483,802
5,483,803
Event binding for keyboard input or change through javascript
<p>I have an input field with id <code>myinput</code> , and have <code>change</code> event bind to this field through,</p> <pre><code>$("input#myinput").change(function(){ alert("the value is changed"); } </code></pre> <p>But the handler is not getting called, if I change the value through javascript</p> <pre><co...
javascript jquery
[3, 5]
3,321,477
3,321,478
With JQuery, how do I select all elements with no class
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1962247/jquery-get-all-divs-which-do-not-have-class-attribute">jQuery get all divs which do not have class attribute</a> </p> </blockquote> <p>I need to select all elements that have no class defined. How do I d...
javascript jquery
[3, 5]
4,961,788
4,961,789
How to let JavaScript know where I am on the site?
<p>I have a single template file which renders pages that look very similar, but behave a bit different. I have a header and a few text boxes, which are filled by the template language, and there is a canvas, whose content actually differentiates the pages. It basically comes down to calling a different JavaScript func...
javascript jquery
[3, 5]
956,230
956,231
Request types on iPhone || Android?
<p>Is it possible to send GET, POST, PUT and DELETE requests from iPhone || Android applications to a third party server?</p> <p>I want to build a web service to reuse on all 3 platforms (3rd being the web app itself).</p>
iphone android
[8, 4]
1,865,670
1,865,671
add hyperlink to an image(background image)
<p>I'm a bit lost as to how to add a hyperlink to an image(background image) that is being called into the page with this HTML below:</p> <pre><code>&lt;div style="background-color: #fff; background: #fff url(/affiliate/uploads/images/subs_bg_4e1a7912cf9a79.22853644.jpg) no-repeat right top" class="bigshadow" id="wrap...
javascript jquery
[3, 5]
3,814,210
3,814,211
Using global resource in JavaScript
<p>I want to use global resource in my javascript code. Normally, when the code is inside the ASP code, I use <code>&lt;%=GetGlobalResourceObject("Resource", "MONTHS_SHORT1") %&gt;</code> and it works. But, when the javascript code is not inside the ASP code, for example in a folder as calendar.js, it does not work. ...
javascript asp.net
[3, 9]
2,510,703
2,510,704
PHP variable not passing correctly to Javascript
<p>I am trying to validate input login via javascript by passing PHP variables. I cannot execute it properly for some reason. I'd appreciate your comments. Here's the code:</p> <p>PHP:</p> <pre><code>$personal = mysqli_query($connect,"SELECT * FROM basic ORDER BY user_id DESC "); while($row = mysqli_fetch_array($pers...
php javascript jquery
[2, 3, 5]
5,255,653
5,255,654
Currency Math in JavaScript
<p>Can someone please help me out with a JavaScript/jQuery solution for this arithmetic problem:</p> <p>I need to subtract one number from the other. </p> <p>The problem is that the numbers have a dollar sign (because its money), therefore jQuery is treating them as strings instead of numbers.</p> <p>I have created...
javascript jquery
[3, 5]
3,062,143
3,062,144
How to change clickable image in HTML table row dynamically?
<p>I have two records on an HTML table. In the last column of each row I have an image which is clickable. Upon click, I am calling a JavaScript function.</p> <p>What I need know is that if the image can be changed once clicked? The changed image should not be clickable and it should not trigger that javascript functi...
javascript jquery
[3, 5]
5,192,869
5,192,870
jquery popout of details on mouseover
<p>On <a href="http://news.google.com/" rel="nofollow">Google News</a>. there is a carousel with a popout on mouseover on an item. I've also found a video with a tutorial of how to make one: <a href="http://www.youtube.com/watch?v=Iy78nJgRiUM" rel="nofollow">http://www.youtube.com/watch?v=Iy78nJgRiUM</a></p> <p>Can a...
javascript jquery
[3, 5]
3,005,173
3,005,174
How can I write this jQuery statement shorter?
<p>I have this code. This works perfect but I just wanna know if it's possible to write it shorter or not? I looked at jQuery <a href="http://api.jquery.com/hasClass/" rel="nofollow">hasClass()</a> docs but didn't find anything useful.</p> <pre><code>$(this).hasClass('nw') ?'nw' :$(this).hasClass('ne') ...
javascript jquery
[3, 5]
2,628,621
2,628,622
asp Jquery Validators
<p>Is it possible to validate textboxes before calling a jquery function and if yes how can this be done? Some validators include RequiredFieldValidator and CustomValidator.</p> <p>Thanks</p>
jquery asp.net
[5, 9]
2,869,909
2,869,910
How can I show url of current page inside a text input for user to copy?
<p>I'm trying to achieve something similar to what youtube has where when you press share button you can actually see url of current page inside some sort of text input and actually copy it etc. How can this be done with jQuery?</p>
javascript jquery
[3, 5]
1,986,155
1,986,156
__doPostBack is not working in firefox
<p>The __doPostBack is not working in firefox 3 (have not checked 2). Everything is working great in IE 6&amp;7 and it even works in Chrome??</p> <p>It's a simple asp:LinkButton with an OnClick event</p> <pre><code>&lt;asp:LinkButton ID="DeleteAllPicturesLinkButton" Enabled="False" OnClientClick="javascript:return c...
c# asp.net
[0, 9]
1,378,216
1,378,217
Call a method when class name not known at compile time
<p>I have a number of sub-games, SubGame1, SubGame2 etc. Each is derived from a SubGame class and implements a static String getDescription() function.</p> <p>I want to access these descriptions, e.g. SubGame1.getDescription(), SubGame2.getDescription() etc.</p> <p>However I want to use a code loop and not all the su...
java android
[1, 4]
108,185
108,186
Compiler error with @override when overriding an interface method on JDK 7u2
<p>I know, this sounds like an old question, which has been asked before(<em>*</em>). But it is a little bit different. I installed a clean system with the newest versions of JDK (7u2) and eclipse (and also AndroidSDK). When I import old projects, I get an error "The method methodName(Parameter) of type Class must over...
java android
[1, 4]
4,945,494
4,945,495
Is there any way to get the image of the first page of pdf file in c#?
<p>Am looking for a way to get image of the first page in pdf file using c# Any solution ?? </p>
c# asp.net
[0, 9]
890,819
890,820
jQuery to fadeIn and fadeOut based upon scroll
<p>I'm using the following to change an element's opacity from 0 to 1 based upon the number of pixels they have scrolled and it works perfectly.</p> <pre><code>$(window).scroll(function() { if ($(this).scrollTop() &gt; 200) { $("#hook").stop().animate({ opacity: 1 }, 300); } else { $("#...
javascript jquery
[3, 5]
1,380,323
1,380,324
Open link on click with jquery after att id append
<p>Hi guys i have a situation like this</p> <pre><code>&lt;div class="todos-pedidos" title="/pedidos"&gt;See More&lt;/div&gt; </code></pre> <p>When click this div its expand my UL / LI with this jquery</p> <pre><code>$('.todos-pedidos').click(function() { $('#bloco-pedidos-andamento ul li:hidden:lt(2)').slideToggle(...
javascript jquery
[3, 5]
1,745,130
1,745,131
how to grab the Ctl from a linkbutton
<p>I have a gridview which is pulling it data from a stored procedure. In the column title, I have used a Linkbutton. I would like to grab the Ctl ID and store it in a variable when it is clicked. I am not sure what is happening, but I get a few strings going through. Below is my code and this is similar to my previous...
c# asp.net
[0, 9]
1,933,410
1,933,411
In search of JavaScript Month Picker
<p>I'm in search of a JavaScript month selection tool. I'm already using jQuery on the website, so if it were a jQuery plugin, that would fit nicely. I'm open to other options, as well.</p> <p>Basically, I'm after a simplified version of the <a href="http://docs.jquery.com/UI/Datepicker" rel="nofollow">jQuery UI Date ...
javascript jquery
[3, 5]
5,790,156
5,790,157
How to split an audio file into frames ??? in C#
<p>i want to split a wave file(.wav) into frames of 1 second or for a fixed time period. How can i do it using C# or Java. Can any one help me out for this with some code examples or some related links regarding this.</p>
c# java
[0, 1]
4,379,251
4,379,252
Playing a sound from a dynamic generated list
<p>I am new to C# and ASP.NET and I currently have a page that is dynamically displaying a list of .wav files from a directory using a checkbox list and displaying the date of the file when it was created. However since that is a .wav file I am trying to allow the end user to be able to play it but I am not sure where ...
c# asp.net
[0, 9]
5,435,226
5,435,227
Finding CheckBox control in Gridview
<p>I have two template fields in my data gridview. One template field is a CheckBox with ID="AttendanceCheckBox" and the other template field is a Label which is bind to the StudentID field in the Student Table.</p> <p>What is the C# code for finding the CheckBox in the Gridview? Also I need to add the value (StudentI...
c# asp.net
[0, 9]
2,078,352
2,078,353
jQuery plugin scope issue
<p>I'm overlooking something here with scope resolution in this jQuery plugin. Here is a simplified example of what I'm trying to achieve:</p> <pre><code>(function($) { $.fn.dashboard = function(options) { this.onClick = function(e) { alert("do something"); return false; }; ...
javascript jquery
[3, 5]
312,786
312,787
get number of hours between start and end time(HH:MM) 24Hr
<p>Hai am new to javascript, I have two textboxes with start and end time How to calculate the number of hours between two times which are in 24 hr format (HH:MM)</p>
javascript jquery
[3, 5]
776,548
776,549
How to send multiple emails in the background?
<p>I am using ASP.NET. I am implementing a forum and I have a comment submission form. When the user submits the comment, the system sends an email to all registered users that a comment has been added to the website. The system is sending multiple emails using a loop and I am connecting with the Gmail server and sendi...
c# asp.net
[0, 9]
5,615,029
5,615,030
How to set white background for checkbox tick in Android?
<p>I'm developing Android app for 4.0 version, and all checkboxes have got a black background for tick, but I need white. If I use "background" xml attribute as "white" then all checkbox (with text) is white; I need only white place for tick. </p>
java android
[1, 4]
2,824,166
2,824,167
ASP.NET - Can I handle the "ASP.NET client-side validation has succeeded" event in javascript?
<p>I have a product page with an add to cart button</p> <p>When the <strong>add to cart</strong> button is clicked, a couple of input fields are validated using ASP.NET validation controls (which use client-side validation to prevent the postback from occurring upon invalid input). </p> <p>In order to prevent double...
javascript asp.net
[3, 9]
469,428
469,429
Asp.net 2.0 and c# 3.0?
<p>We use asp.net where I work and we are using c# as the language. Will c# 3.0 work with asp.net 2.0? Ive been trying to pick up some books on c#, but not sure which I should be buying, any help would be greatly appreciated!</p>
c# asp.net
[0, 9]
602,322
602,323
reference a file in a java package with javascript
<p>I want to use the following js function to insert an image on a webpage, but I am not referencing the icon file correctly. </p> <pre><code>function insertWarningIcon(value){ return "&lt;img src='/icons/Warning-icon.png' width='25%' height='25%' /&gt;"; } </code></pre> <p>The image is contained in a java pac...
java javascript
[1, 3]
2,063,816
2,063,817
checking for variable changes within a specified amount of time?
<p>I'm trying to check for variable changes within a specified amount of time. For example I got a variable: int downloadProgress = 0;</p> <p>and I got some code which downloads a file and the var downloadProgress is being update to 1..2.3....5.6..7. until ..100 (download finishes).</p> <p>Now I want to have a thread...
java android
[1, 4]
121,808
121,809
Very weird behaviour for jQuery getJson() not changing values in a loop
<p>OK, this problem is very odd. I am receiving a list of items using getJSON(). For each of the returned items, I perform a lookup using getJSON() again. Upon return of the second lookup, I try to append a variable from the scope of the for-loop to the DOM but the output is the SAME. The weird thing is that when I iss...
javascript jquery
[3, 5]
3,222,806
3,222,807
Is there a way of storing Jquery fx in a array, using JavaScript?
<p>I was wondering if there was a way of storing Jquery fx(e.g. <code>fadeIn()</code> and <code>fadeOut()</code>) in a JavaScript array?</p> <p>here's what I'm attempting on jsfiddle : <a href="http://jsfiddle.net/c3FQh/" rel="nofollow">http://jsfiddle.net/c3FQh/</a></p> <p>Any help would be appreciated greatly, Than...
javascript jquery
[3, 5]
4,160,649
4,160,650
setting asp hyperlink values JS
<p>i have an asp hyperlink. and i want to set the innerHTML and outerText of this hyperlink in javascript. how can i achieve this?<br> i have the following code:</p> <pre><code>var path='c:\folder\file.gif' var HyperlinkObj = GetElementById('hl'); HyperlinkObj.innerHTML ='&lt;a href='+path+'&gt;&lt;/a&gt;'; //causes: ...
javascript asp.net
[3, 9]
3,429,747
3,429,748
access is denied IIS server problem
<p>i have no problem compiling and viewing my asp.net application using visual studio 2008</p> <p>but when i try to see it the IIS server (asp.net 4.0...)</p> <p>i get this message:</p> <pre><code>Server Error in '/' Application. Access is denied. Description: An error occurred while accessing the resources requir...
c# asp.net
[0, 9]
4,370,003
4,370,004
jQuery 1.6 Browser detection
<p>With all these api changes in jquery, what is the 'latest' best practice to detect browser name and version in jQuery?</p> <p>Also, is jquery the recommended language to detect browsers or should I use server-side?</p>
javascript jquery
[3, 5]
1,687,561
1,687,562
hebrew keyboard changes edittext gravity
<p>I have a edittext in which I am supposed to input text in hebrew language which goes RTL so the gravity is set to right but this works fine with english keyboard but for hebrew keyboard the gravity is again changed to left how to solve this problem </p> <p>I want gravity to be right all the time</p> <p>I did confi...
java android
[1, 4]
1,515,620
1,515,621
How to append an element into a existing array in javascript/jquery
<p>I have an array in javascript</p> <pre><code>var myArr = { 'textId':'123', 'type':'animal', 'content':'hi dog', 'expires':'27/10/2012' }; $.each(myArr, function(myArrArrKey, myArrArrValue){ console.log( myArrArrValue ); }); </code></pre> <p>The above console prints following values</p> <p...
javascript jquery
[3, 5]
6,019,779
6,019,780
Unable to give focus to specific fields with jQuery
<p>I'm validating a simple form with jQuery:</p> <pre><code>$('input:text').blur(function(){ if ($(this).val() == "") { $("#" + $(this).attr("name") + "_error").show(); $(this).css("border", "2px solid red"); $(this).focus(); return false; } }); </code></pre> <p>The <code>$(this).focus();</c...
javascript jquery
[3, 5]
803,462
803,463
render multiplication and division signs in textarea using JavaScript / jQuery
<p>I'm developing a very simple math editor, and I want users to be able to input [÷] and [×] by clicking on buttons. I have put these characters directly in the code. They are rendering as errors. When I try to use <strong>&amp;divide;</strong> or <strong>&amp;times;</strong> the textarea shows <em>&amp;divide;</em...
javascript jquery
[3, 5]
2,215,371
2,215,372
Script files returning 404 Error
<p>I'm using ASP.Net and whenever I create a script file or try to include a script file like jQuery they aren't working. I am doing just a regular localhost server and none of the scripts are working. Upon further examination using firebug I look at whats being referenced in those scripts and it shows html code for a ...
asp.net javascript
[9, 3]
5,234,083
5,234,084
Show/hide table row based on value of a cell
<p>I am using the range slider from JQuery-UI (http://jqueryui.com/slider/#range) which a user uses to pick a price range, and I want to show/hide table rows depending on whether or not they fall inside the range selected by the user.</p> <p>This is what I have found from other answers: the following code hides the ta...
javascript jquery
[3, 5]
687,731
687,732
How to read/write file on client side in ASP.NET
<p>How to read file form local file system(client side) in asp.net , is there any activeX require to do this or it can be done with out it</p>
c# asp.net
[0, 9]
1,884,176
1,884,177
PHP/Javascript: Restart Form Button Isn't Working, Code Insde
<p>Basically I want a confirmation box to pop up when they click the button asking if they sure they want to restart, if yes, then it destroys session and takes them to the first page. Heres what i got...</p> <pre><code>echo "&lt;form id=\"form\" name=\"form\" method=\"post\" action=\"nextpage.php\"&gt;\n"; echo " &l...
php javascript
[2, 3]
5,073,461
5,073,462
How do I fade in a div by id if cookie=1?
<p>I have a page with few tabs. I am looking for a way that if you select tab 5 and cookie = 1 then show tab6 otherwise show tab5.</p> <p>The code for the tabs is:</p> <pre><code>jQuery(".tabs a").click(function () { stringref = jQuery(this).attr("href").split('#')[1]; jQuery('.tab_content:not(#' + stringref ...
javascript jquery
[3, 5]
1,064,191
1,064,192
iphone apns sending push notification in different languages with voice
<p>i have studied and implemented Ray wenderlich's awesome tutorials on apns, and i am using this php script on server side</p> <p><a href="https://github.com/sebastianborggrewe/PHP-Apple-Push-Notification-Server" rel="nofollow">https://github.com/sebastianborggrewe/PHP-Apple-Push-Notification-Server</a></p> <p>every...
php iphone
[2, 8]
3,082,857
3,082,858
opening new window in ie7 opens same target as base window but shows proper url in firefox
<p>i have a simple little form</p> <pre><code>&lt;form id="loginform"&gt; &lt;input id="myinput" type="text" /&gt; &lt;input name="submit" value="go" type="submit" /&gt;&lt;/form&gt; </code></pre> <p>in a very not secure way i want it to go to different urls depending on the input value.</p> <p>here is my simple lit...
javascript jquery
[3, 5]
1,420,392
1,420,393
How to detect is argument jQuery object
<p>I want to create function that can be used either with Id or by passing jQuery object.</p> <pre><code>var $myVar = $('#myId'); myFunc($myVar); myFunc('myId'); function myFunc(value) { // check if value is jQuery or string } </code></pre> <p>How can I detect what kind of argument was passed to the function?</...
javascript jquery
[3, 5]
2,763,481
2,763,482
Serializing form in jquery and passing it into php
<p>I have been trying for the last couple of days to serialize a form in jquery and pass it to php. For some reason it just doesn't work... Question, What steps do you take to serialize a form in Jquery... I get the id of the form pass it into $('#fomrID').serialize()...</p> <p>And it still doesn't work. When I de...
php jquery
[2, 5]
2,686,191
2,686,192
ContentFlow: load AddOn on creation?
<p>I'm using ContentFlow (<a href="http://www.jacksasylum.eu/ContentFlow/index.php" rel="nofollow">http://www.jacksasylum.eu/ContentFlow/index.php</a>) to create an image carousel on my page. The images are loaded via a jQuery AJAX-call. This works fine. The ContentFlow is included with this code:</p> <pre><code>&lt;s...
javascript jquery
[3, 5]
394,575
394,576
jQuery: Get the first cell in the first row that has a specific class?
<p>I was using this:</p> <pre><code>$('#' + tableID + "tr:first td:first") </code></pre> <p>To get my first cell, but there is potential the first cell isn't what I want. The cell I'm looking for is the first cell in the first row that has the class 'canEdit'. Any idea how to go about doing that? </p>
javascript jquery
[3, 5]
3,735,895
3,735,896
C# ASP.NET Foreign Characters(ü) Ampersand Confusion
<p>I am developing a simple website and I need to use Turkish characters (ç,ş,ğ,ı,ü) in username and other fields. When executing the following statement,</p> <pre><code>Response.Redirect("View2.aspx?ApplicantName=" + applicantname); </code></pre> <p>it cannot get applicantname when applicant name contains "ü". I sus...
c# asp.net
[0, 9]
1,059,422
1,059,423
Second occurrence of checkbox
<p>How to get the second occurrence of checkbox ? Here is what I have tried:</p> <pre><code>&lt;div id="form"&gt; &lt;label for="first"&gt;First&lt;/label&gt; &lt;input type="checkbox" name="first" value="1" &gt; &lt;br /&gt; &lt;label for="second"&gt;Second&lt;/label&gt; &lt;input type="checkbox" ...
javascript jquery
[3, 5]
1,197,498
1,197,499
Creating a desginer in WebApplication
<p>I am planning to develop a small web application, which enable users to create small application according to their needs. The layout of the web page should be like visual-studio, where:</p> <ul> <li>The left pane contains all the controls(I only provide few basic controls like txt box, lbl etc)</li> <li>The right ...
javascript asp.net
[3, 9]
3,311,477
3,311,478
Is this a bad practice for droppable?
<p>Whenever a user presses a div button I want to register a droppable. I'm setting a the closure<br> <code>add.droppable({})</code> to the <code>var toDrop</code> and then invoking methods on <code>toDrop</code> as below, is this a bad practice ?</p> <p>For example instead of <code>toDrop.addClass("newColors");</code...
javascript jquery
[3, 5]
1,025,028
1,025,029
Getting error on 2nd line in code below..What could be wrong?
<pre><code>for (I = 0; I &lt; ds.Tables[0].Rows.Count; I++) { if (Convert.ToBoolean(ds.Tables[0].Rows[I]["IsDefault"].ToString()) == true &amp;&amp; Convert.ToBoolean(ds.Tables[0].Rows[I]["IsBill"].ToString()) == true) . . . . </code></pre> <p>Error: System.FormatException: String was not recognized as a valid Boolea...
c# asp.net
[0, 9]
4,063,868
4,063,869
C#, ASP.NET 3.5 - Load code at run-time
<p>A friend of mine is building a Content Management System in PHP.</p> <p>PHP is a scripting language where code is evaluated at run-time, and therefore it is fairly simple to add code.. at run-time (think: a forum, a contact form, etc.)</p> <p>Doing the same in ASP.NET (which is compiled).. not as simple.</p> <p>H...
c# asp.net
[0, 9]
2,892,447
2,892,448
How to get <td> value in textbox
<p>I've done some code in html and in JavaScript ... My query is when I click on <code>&lt;td&gt;</code>, whatever the value associated with it, has to be displayed in the corresponding text box ... In front of <code>&lt;td&gt;</code> I've taken the textbox ... for an example I've taken 3 <code>&lt;td&gt;</code> and 3...
javascript jquery
[3, 5]
51,258
51,259
How to do autoplay(image) in jquery?
<p>I have 3 images. I want to show one by one through auto play with various time delay(first one 3 seconds,second one 5 seconds,third one 7 seconds). Finally i want to loop it.</p> <p>I have no idea to do it. Please share ideas with me for it.</p>
javascript jquery
[3, 5]
2,100,542
2,100,543
Why aren't my Strings showing as equal when they are?
<p>I am currently working in Eclipse making a Android App. At the moment I have two Strings and I need to check if they are equal or not, the problem is the Strings are equal but it is showing them not to be which is really frustrating me. </p> <pre><code> if (newSource.equals(source)) { Log.d("Equal:", "St...
java android
[1, 4]
753,018
753,019
How to pass ID to a JavaScript function
<p>In HTML, I have:</p> <pre><code>&lt;td&gt; &lt;span id="change_naco"&gt;&lt;/span&gt; &lt;span id="naco"&gt;Food&lt;/span&gt; &lt;/td&gt; &lt;td&gt; &lt;span id="change_naco"&gt;&lt;/span&gt; &lt;span id="naco"&gt;apples&lt;/span&gt; &lt;/td&gt; </code></pre> <p>The rows come from the M...
javascript jquery
[3, 5]
3,012,040
3,012,041
how to get the javascript function value in textbox?
<p>i am write the javascript function like this, my problem is i can pass the values (quantity and price ) retrive amount, print the amount in lable and textbox(same values), but label is working and textbox value after select another operation first value will come , what is the problem in the code or any modification...
javascript asp.net
[3, 9]
411,160
411,161
How can I parse this home-made string-based data format?
<p>I need to iterate through a dataset of IDs and labels. I got some part of the code right, but I need some assistance. </p> <pre><code>// 1. String var string = '1:answer1,2:answer2,3:answer3,4:answer4,5:answer5,' // 2. Split to array var string = string.split(","); // 3. EACH $.each(string, function(key, val) {...
javascript jquery
[3, 5]
4,728,518
4,728,519
How to do something everytime a certain element is in view using jQuery?
<p>Right now every time the user reaches the bottom of my page I update the url hash using this code:</p> <pre><code>var new_page_value = 1; $(window).scroll(function() { if($(window).scrollTop() == $(document).height() - $(window).height()) { new_page_value += 1; window.location.hash = 'page-' + n...
javascript jquery
[3, 5]
2,927,636
2,927,637
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]
4,025,867
4,025,868
How to run through each checked checkbox with a classname using JavaScript without jQuery
<p>Is there an immediate equivalent in javascript for the below jquery code?</p> <pre><code>$('.checkbox').each(function() { if ($(this).is(':checked')) { //logic here } }); </code></pre> <p>I'm trying to run through all the checkboxes on a page with <code>class = 'checkbox'</code> - the client doesn'...
javascript jquery
[3, 5]
4,525,439
4,525,440
jQuery toggleClass animation issue
<p>I have this page:</p> <p><a href="http://beta.amitai-clinic.com/" rel="nofollow">http://beta.amitai-clinic.com/</a></p> <p>If you hover the top left logo, it should 'fade' the same logo with some text underneath it.</p> <p>Problem is, the logo part is being faded in naturally, but the text beneath it looks like i...
javascript jquery
[3, 5]
1,663,400
1,663,401
Is it possible to have the menu link color change on the table hover for an asp.net menu control?
<p>I'm using an ASP.net menu and when i hover inside my menu item's table, i change the background color on the table column, but unless i hover over the link text itself, the link text color will not change.</p> <p>Is it possible to have the link text color changed on the table hover?</p> <p>Example below shows what...
c# asp.net
[0, 9]
5,636,411
5,636,412
JQUERY/ASP.NET : Accordion and SQL
<p>I have a Jquery UI Accordion.</p> <p>The first slide, the user selects a Make and Model, and clicks the "Continue" button".</p> <p>Once the user clicks the continue button,the second slide comes up and SHOULD display a price. The price is calculated by simply preforming a select command WHERE Model=SelectedModel a...
jquery asp.net
[5, 9]
4,995,938
4,995,939
Execute a javascript function only if session["x"]="ok"; if it is not, not execute!
<p>Well i have 2 aspx page1 you are going to have amm two buttons or it dontmind but the goal is...</p> <p>when user press button1 in page1.aspx, session["x"] will be equals to "ok" if users press button2 in page1.aspx, session["x"] will be eauls to null;</p> <p>so after press any button user will be redirected to pa...
javascript asp.net
[3, 9]
5,678,200
5,678,201
Javascript changing source of an image
<p>I have some javascript which runs a timer that animates something on the website.</p> <p>It all works perfectly but I want to get an image to change when the animation is run, It uses jquery: </p> <pre><code>if(options.auto &amp;&amp; dir=="next" &amp;&amp; !clicked) { timeout = setTimeout(function(){ if (docu...
javascript jquery
[3, 5]
1,505,972
1,505,973
Why does my Android program crash when I access the Orientation sensor (HTC Desire)?
<p>So I am playing around with the Android api, and am trying to figure out how to get the heading the phone is pointing towards.</p> <p>I have the following code:</p> <pre><code>private SensorManager mSensorManager; private Sensor mAcceller; /** Called when the activity is first created. */ @Override public void on...
java android
[1, 4]
3,943,878
3,943,879
jQuery objects are internally converted to JavaScript arrays, how do I copy that behavior?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7261670/what-makes-a-jquery-object-show-up-as-an-array-in-chromes-developer-tools">What makes a jQuery object show up as an array in Chrome&#39;s Developer Tools?</a> </p> </blockquote> <p>I am writing a very sm...
javascript jquery
[3, 5]
4,569,022
4,569,023
View.getId and R.id.viewLabel return different values
<p>Let's say I have a method like this into my activity, and set it as <code>onClick</code> field of different buttons into xml:</p> <pre><code>public void onButtonPressedFromView(View button) { switch(button.getId()) { case (R.id.button1) : //do something break; case (R.id.button2) : //do s...
java android
[1, 4]
5,854,506
5,854,507
Javascript: fake a touchdown event?
<p>If I have a x,y coordinate onscreen is there a way to 'fake' a touchdown event?</p>
javascript iphone
[3, 8]
4,921,758
4,921,759
How to get full URL on the address bar using PHP
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/967649/get-entire-url-including-query-string-and-anchor">Get entire URL, including query string and anchor</a> </p> </blockquote> <p>I have my url like <em>www.domain.com/#!/username</em> (just like in twitter)....
php javascript
[2, 3]
165,786
165,787
MasterPage issues with anchor tags and fancyBox
<p>I've got some ASP:Hyperlink controls on the master page for a set of global links. I'm using the 'permissions' property so I'm hoping to keep these.</p> <p>If I setup the control like this:</p> <pre><code>&lt;asp:HyperLink ID="inlineMileageCalc" runat="server" NavigateUrl="~/#mileageCalc"&gt;Mileage Calculator&lt;...
c# asp.net
[0, 9]
4,433,074
4,433,075
jquery removeClass()
<p>Is it possible to remove all classes of an element that are not equal to a certain string, </p> <p>for example, if I have the following HTML</p> <pre> <code> &lt;a href="" class="status pending">&lt;/a&gt; &lt;a href="" class="status successful">&lt;/a&gt; &lt;a href="" class="status unsuccessful">&lt;/a&gt; </cod...
javascript jquery
[3, 5]
2,168,082
2,168,083
Detect scroll on bottom on iphone
<p>I want to detect if i'm at the bottom of a page. This works fine on any browser - but not on iPhone.</p> <pre><code>if ($(window).scrollTop() == ($(document).height() - $(window).height())){ alert('on bottom'); } </code></pre> <p>What i'm doing wrong?</p>
javascript jquery
[3, 5]
3,619,211
3,619,212
Javascript and Required field validator
<p>I have a RequiredFieldValidator on a TextBox. This works fine when nothing is enterd in the TextBox. Now, one more validation I do is when the user enters some junk data, I throw an error-message saying "invalid entry". This is on the Label.</p> <p>Now the scenario is after the error-message is thrown, if the user ...
c# javascript asp.net
[0, 3, 9]
2,508,147
2,508,148
hide option select value based on option value selected on first options
<p>I have two select option field.</p> <pre><code>&lt;div style="float:left; width:7%"&gt; &lt;label&gt;Type&lt;/label&gt; &lt;select name="ostatus" id="ostatus" class="input-small"&gt; &lt;option value="Actual"&gt;Actual&lt;/option&gt; &lt;option value="Ghost"&gt;Ghost&lt;/option&gt; &lt;/select&gt; &l...
php javascript
[2, 3]
128,029
128,030
Alert message in Javascript
<p>I am using simple JavaScript code in my PHP code to display an alert message:</p> <pre><code>&lt;script type="text/javascript"&gt; window.alert("Can not Send Messages ") &lt;/script&gt; </code></pre> <p>When the alert message is displayed, the original page disappears, when I press "OK" button in the message b...
php javascript
[2, 3]
598,923
598,924
.sortable() adding 50px height, dispurts scrollbar
<p>I have a draggable list of elements. The only jQuery I am using is:</p> <pre><code>$('.section_rows').sortable(); </code></pre> <p>This works fine. However, when I am at the bottom of the page (vertical scroll all the way at the bottom), and click a row to drag and sort it, the page 'jumps' up by <code>55px</code>...
javascript jquery
[3, 5]
3,610,373
3,610,374
how to delete all sms of a specific contact number in android
<p>I have the following code which delete all the sms conversation ,</p> <pre><code>Uri inboxUri = Uri.parse("content://sms/conversations"); int count = 0; Cursor c = context.getContentResolver().query(inboxUri , null, null, null, null); while (c.moveToNext()) { try { // Delete the SMS String pid =...
java android
[1, 4]
1,584,755
1,584,756
javascript vs server event conundrum- iOS
<p>Ok here is my problem, I've inherited an old ASP.NET 2 website which I've been asked to make iOS capable. My biggest headache so far is that because of the way you have to log into the system right now I need to pass the UserName to the iphone and also run the server Click event. I can do one or the other but not bo...
javascript iphone asp.net
[3, 8, 9]
3,248,521
3,248,522
What is the best way to load/choose "controller" classes
<p>I'm not sure if i'm using the correct terminology but I have several Controller classes that return objects using different data sources in my ASP.NET web app. ie </p> <pre><code>Product p = ProductController.GetByID(string id); </code></pre> <p>What I want to be able to do is use a controller factory that can sel...
c# asp.net
[0, 9]
4,634,753
4,634,754
How to redirect to a specific page from a JS dispalyed page in asp.net
<p>I have an asp.net application with master page. In one of the pages I have a button click event which opens another page using javascript as shown below. </p> <pre><code>string urlVerify = "VerifyEnrollmentEntries.aspx"; string fullURLVerify = "var newVerifyDataWindow = window.open('" + urlVerify + "'...
javascript asp.net
[3, 9]
995,366
995,367
Onclick event for image tag inside PHP echo, is not working
<p>In my image.php file i have code</p> <pre><code>$id=abs($_GET['id']); $query = mysql_query("SELECT image FROM table1 WHERE id=$id"); $data=mysql_fetch_array($query); header('Content-type: image/jpg'); echo $data['image']; </code></pre> <p>And while retrieving i am using query</p> <pre><code>$query = mysql_query(...
php javascript
[2, 3]