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,825,936
4,825,937
Trying to use Jquery/javascript to calculate form fields
<p>Im having a terrible time trying to calculate the value of two form fields. I'm constantly getting "NAN" which would indicate non-numeric input, this is despite the fact that the form fields are only populated with numbers.</p> <p>In response I tried to use ParseInt to get a numeric value. This also fails to yiel...
javascript jquery
[3, 5]
600,528
600,529
Value of hidden input returns blank when it clearly isn't
<p>Why can't I get the value from this input? See the image below:</p> <p><img src="http://i.stack.imgur.com/y5oEu.jpg" alt="enter image description here"></p>
javascript jquery
[3, 5]
2,655,441
2,655,442
JavaScript opening new window instead of tab when command run too early
<p>I realize that you cannot control whether a browser opens a new <em>window</em> vs. a new <em>tab</em>, so this may have no solution.</p> <p>The problem is basically that I run something like:</p> <pre><code>function runCommand() { //... window.open(url); } </code></pre> <p>This runs from time to time if th...
javascript jquery
[3, 5]
2,052,460
2,052,461
Why does the jQuery website use version 1.4.2 of its library?
<p>I've looked through the jQuery forums and not found anything about this. So I was wondering, if the jQuery framework is improving all the time (and up to version 1.7.1 at time of writing), then why doesn't the jQuery website itself use the latest verison?</p> <p>I expect the answer may be something like "because it...
javascript jquery
[3, 5]
3,397,918
3,397,919
Append text to iFrame body where users mouse is "blinking"
<p>I need to append a face icon to the body of a iframe. The problem I am having is that it is put at the end of the body, not where the user has the insertion point.</p> <p>Here is the code I have so far,</p> <pre><code> &lt;iframe style=""name="content" id="content" width="758" height="200" onload="javascript:load(...
javascript jquery
[3, 5]
690,485
690,486
FileUpload in C# with PHP Server
<p>I am currently working on a fileUploader in the C# language for a image hosting site I develop for, I am currently wondering what the best approach is to uploading files to the server(all php/sql) with the client software being C#.</p> <p>Also, how would I process these uploads in a PHP script, would you say someth...
c# php
[0, 2]
2,606,687
2,606,688
Stop User Leaving Before Postback (Javascript/ASP.NET)
<p>I have several functions running on a postback that can take a little time to complete.</p> <p>When postback is initiated I show a loading image with this code:</p> <pre><code>function showLoader() { document.getElementById("&lt;%=loadingImage.ClientID%&gt;").style.visibility="visible"; } </code></pre> <p>I w...
javascript asp.net
[3, 9]
2,310,135
2,310,136
JavaScript innerchild?
<p>I have the following example HTML:</p> <pre><code>&lt;div id="target"&gt; &lt;div id="targetText"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>and I'm using the following code to get the inner div:</p> <pre><code>$('#targetText'); </code></pre> <p>instead, I was wondering if I could drop the id of the inner ele...
javascript jquery
[3, 5]
48,650
48,651
How to get the duration of call started from your app?
<p>In my app, when someone clicks on a button, a phone call is started. Can i detect when the phone call is finished, so i will be able to measure the duration of this call?</p> <p>Tnx.</p>
java android
[1, 4]
1,409,184
1,409,185
Sending SMS via Android Application without moving to Message Box Default Application
<p>I want to ask you: 1-How can I send SMS via my applicatin without moving the user to the Messages box i just want to allow user to insert the text then he/she clicks on the send button after that directly the text message should be sent to specific number that i write in the code?</p> <p>I used this Code as show...
java android
[1, 4]
4,433,401
4,433,402
Does Integer.valueOf() in java translate to int.Parse() in C#?
<p>I am trying to learn java from a C# background! I have found some nuances during my journey like C# doesn't have an Integer as reference type it only has int as a primitive type; this lead me to a doubt if this translation would be correct! </p> <pre><code> String line ="Numeric string";//Java string line = "Num...
c# java
[0, 1]
1,565,794
1,565,795
Using JavaScript to "Create" a Microsoft Word Document
<p>I would like to dynamically create a document using JavaScript and then open that document in Microsoft word. Is this possible? Here is my current code:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;script src="js/jquery-1.4.4.js" type="text/javascript"&gt;&lt;/script&gt...
javascript jquery
[3, 5]
5,029,294
5,029,295
getting a clicked elements id with jquery
<p>I have a series of Delete icons displays as such:</p> <pre><code>echo '&lt;img id="'.$items['id'].'" src="images/delete.png" /&gt;'; </code></pre> <p>Where <code>$items['id']</code> is a reference to the id of the DB item I would like that icon to delete.</p> <p>How can I access this id in jquery when the item is...
javascript jquery
[3, 5]
2,806,500
2,806,501
How does jQuery store xml used as a context parameter as it modifies it?
<p>I'm trying to reduce DOM manipulation during my javascript execution, and I thought about lazy-writing DOM elements, versus writing a large section of the DOM hidden and unhiding the needed parts later.</p> <p>To do this, I've separated out all my DOM content into a JSP which I load into a variable via ajax and man...
javascript jquery
[3, 5]
1,075,020
1,075,021
How do I tell IE to add the class 'Selected' to my LI on scroll?
<p>I was hoping to get a little help with my code. This works in moz/webkit but not in ie. I don't quite understand why :(</p> <pre><code>$(window).trigger('hashchange'); // Add .selected class to nav on page scroll var $sections = $('section'); var $navs = $('nav &gt; ul &gt; li'); var topsArray = $sections.map(fu...
javascript jquery
[3, 5]
4,840,927
4,840,928
Toggling checkbox only checks, doesn't uncheck
<p>I am trying to toggle some checkboxes using jQuery and I am using code that is recommended often when searching for toggling checkboxes, but it only seems to check them instead of toggling.</p> <p>Here's a jsfiddle for it:</p> <p><a href="http://jsfiddle.net/wgHpG/" rel="nofollow">http://jsfiddle.net/wgHpG/</a></p...
javascript jquery
[3, 5]
5,397,314
5,397,315
Best way to store a key=>value array in Javascript?
<p>What's the best way to store a key=>value array in javascript, and how can that be looped through?</p> <p>The key of each element should be a tag, such as <code>{id}</code> or just <code>id</code> and the value should be the numerical value of the id.</p> <p>It should either be the element of an existing javascrip...
javascript jquery
[3, 5]
1,165,909
1,165,910
Button Submit calls Onload first!
<p>I have a problem with a webform. </p> <p><strong>My Goal:</strong> Intially when a page is loading, it has to load every textbox empty. After filling the info and click submit, it has to get submitted(UpdatePaymentInfo())</p> <p><strong>Problem:</strong> Here, When the user fills the info and clicks Submit,it call...
c# asp.net
[0, 9]
2,940,522
2,940,523
Using jQuery to find push all links in html to an array?
<p>given a block of html that is a var, not on the actual document:</p> <pre><code>var html_cmt = "Check out this awesome link: https://github.com/jquery/jquery-ui Check out this awesome link: https://github.com/jquery/jquery-ui Check out this awesome link: https://github.com/jquery/jquery-ui Check out this awesome li...
javascript jquery
[3, 5]
1,166,748
1,166,749
jquery / javascript - listen for change in window orientation mode on mobile devices
<p>I'm wondering if there's some sort of cross-device method of listening for orientation mode changes on mobile devices with jquery / javascript?</p>
javascript jquery
[3, 5]
3,109,703
3,109,704
Android Screen Orientation
<p>I am using both landscape and portrait for an application. </p> <p>My problem is,whenever i rotate the screen,the TTS I am using in my application automatically </p> <p>starts from first.</p> <pre><code>How do I solve this problem? </code></pre>
java android
[1, 4]
5,448,708
5,448,709
JavaScript replace <br> with \n
<p>I have just stored a paragraph of text in a MySQL database using JavaScript and PHP and replaced <code>\n</code> with <code>&lt;br /&gt;</code>, the problem I'm now having is when I try and retrieve the text using PHP it prints it out as; <code>&lt;br /&gt;</code></p> <pre><code>Dear Sir/Maddam&lt;br /&gt;This is a...
php javascript jquery
[2, 3, 5]
3,840,273
3,840,274
How to show Image In GridView?
<p>I am working on a live project in which I have to prepare an Admin interface. In this Admin Interface the Admin of the website can manipulate data and user images. Problem is that I am unable to show the image because I have saved image path in database in respect to associate userid. I am also able to show data bu...
c# asp.net
[0, 9]
2,731,691
2,731,692
How to trigger a js function with Jquery
<p>I want to trigger this jquery function by using trigger method of JQuery. How can I do that ? Actually I dont even know the trigger method is suitable for user defined functions. </p> <pre><code>$('a.pop').click(function() {alert('testing'); } </code></pre> <p><strong>this is not working</strong></p> <pre><code> ...
javascript jquery
[3, 5]
1,894,331
1,894,332
Getting value from Object using Jquery
<p>I am new bee of Jquery. I am facing a problem while getting value from object.</p> <p>Here is snippet that set the values and return of object.</p> <pre><code>expItem1 = new sap.ui.core.ListItem( { text : "Hello", key : "World" }); </code></pre> <p>So, when i want to get values of key from <strong>expItem...
javascript jquery
[3, 5]
4,218,591
4,218,592
How to get html source code from external url
<p>How can I get html source code from an external web page? </p> <p>Something like: <code>getHtml('http://google.com');</code>.</p> <p>I've tried to get content of iframe using: <code>$("#frame").contents().find("html");</code>, but if in my case the webpage doesn't have html tags, just 1 line of text. I can't do it...
javascript jquery
[3, 5]
1,795,767
1,795,768
How to not check a checkbox when touch
<p>I have a checkbox that is switching state on touch. I am wanting to find out how to ignore the state switch on touch. I have an onClickListener attached to the checkbox and inside of that I am changing the state with "Yes" or "No" buttons.</p> <pre><code> if(sog.isChecked()){ sog.setChecked(f...
java android
[1, 4]
5,181,522
5,181,523
Is there a way to use Java and PHP on the same Apache server or at least, same port?
<p>I am pretty new to Java for Web and my question is if I can use Java and PHP together? I know I can use them together, let's rephrase the question, is there a way to access them at the same port?</p> <p>Java uses Tomcat, can PHP use tomcat also? </p>
java php
[1, 2]
561,914
561,915
Trigger email on specific date
<p>I have C# web application that I want it to send out an email on a certain date, such as if equipment isn't returned on the day it was due. Data is in MS SQL database.</p> <p>I've got all the email code already done, and I'm just curious how do I trigger this email, say after the COB on that particular day?</p> <p...
c# asp.net
[0, 9]
4,045,151
4,045,152
Is there a way to export the content in DIV to a image programmatically?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/60455/take-a-screenshot-of-a-webpage-with-javascript">Take a screenshot of a webpage with javascript?</a> </p> </blockquote> <p>I hope to export the content in DIV to a image programmatically? How can I do? whic...
javascript asp.net
[3, 9]
5,514,282
5,514,283
The simplest solution to hide calendar on blur or click
<p><a href="http://jsfiddle.net/SXrAb/" rel="nofollow">http://jsfiddle.net/SXrAb/</a></p> <p>Following the jsfiddle link there is a simplified sample of what I need. Currently it shows the calendar on button click, and hides it on input blur.</p> <p>What I cannot implement additionally is hiding calendar on button cl...
javascript jquery
[3, 5]
5,029,742
5,029,743
Question regarding execution of JS code
<p>I just encountered with this code:</p> <pre><code>foo = (function() { var div = document.createElement('div'); return function(html) { div.innerHTML = html; var item = div.firstChild; div.removeChild(item); return item; }; })(); </code></pre> <p>and it is being used like...
javascript jquery
[3, 5]
5,670,338
5,670,339
Jquery Selector specific elements of a parent
<p>I have a menu that I'm building that looks something like this:</p> <pre><code>&lt;ul id="myUl"&gt; &lt;li&gt;&lt;span&gt;li #1&lt;/span&gt; &lt;ul&gt; &lt;li&gt; &lt;div class="myContent"&gt; &lt;a href="" name="myLink"&gt;clickMe!&lt;/a&gt; ...
javascript jquery
[3, 5]
4,732,586
4,732,587
What's the equivalent of this in Javascript?
<pre><code>print dir(someOjbect) </code></pre> <p>How can I print that in console?</p>
javascript python
[3, 7]
3,551,608
3,551,609
Asp.net handle errors on certain pages differently
<p>I have an Application_Error handler in my Global.asax file. However, I load many pages using an XHR request and would rather these "sub pages" return javascript or a real 500 code for my main app to process, rather than an error page.</p> <p>Is it possible to handle errors on certain pages in a different way? Can...
c# asp.net
[0, 9]
5,350,159
5,350,160
i need a solution to view uploaded photo in a data list?
<p>how to view a photo in a datalist? help me to view the photos</p>
c# asp.net
[0, 9]
3,550,892
3,550,893
Tools to assist with continual Java to C# Conversion
<p>These days, many projects have started their life written in Java. Some of them are eventually converted to C# for incorporation in .NET. Examples that come to mind are log4net, nhibernate and db4o.</p> <p>Including sharpen (which is db4o's tool) have you seen and/or used any tools that make continual conversion ...
c# java
[0, 1]
5,145,828
5,145,829
How can I view the data attributes value live in the chrome developers tool?
<p>I want to see the values as I explore the DOM in the developers tool. And also if possible see what binded to the element javascript wise. Is this possible using some plug in or how would I go about doing this?</p>
javascript jquery
[3, 5]
3,453,656
3,453,657
Change styling of part of text
<pre><code>&lt;script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/5968383.js"&gt;&lt;/script&gt; &lt;noscript&gt; &lt;a href="http://polldaddy.com/poll/5968383/"&gt; This is a test question ? &lt;/a&gt; &lt;/noscript&gt; </code></pre> <p>The css class which styles the text...
javascript jquery
[3, 5]
1,344,588
1,344,589
jquery automatically scrolling table rows but with table header fixed?
<p>I know there are code sample/plugins out there to make the header fixed and the table scrollable. But I want to achieve is <strong>automatically</strong> scrolling table data rows once it's loaded, but keep the header fixed.</p> <p>Is there a plugin/jquery code to do just that?</p> <p>thanks</p>
javascript jquery
[3, 5]
4,147,934
4,147,935
How to close a print window in a browser using javascript
<p>I need to close print window of a browser using java script or any other method, java script is more preferable. If you possible close the print window for IE ,Chrome and Safari will be grateful. </p> <p>pls help..</p> <p>thanks guys.</p>
javascript jquery
[3, 5]
3,383,812
3,383,813
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]
1,280
1,281
Inserting Element Based on a Condition
<p>I want to insert different url's dynamically after checking a condition</p> <p>Here's the pseudocode</p> <pre><code>If div.id = "abc" then create url &lt;a href="www.zzz.html"'&gt;Cosmetics&lt;/a&gt;'); Append url to div else if div.id = "xyz" then create url &lt;a href="www.abc.html"'&gt;LEather goods&lt;/a&gt;'...
javascript jquery
[3, 5]
2,389,308
2,389,309
keep content stay on tab1 after filling in tab2
<p>Seen from the attached image, the page has a tab menu. After filling in the information on the tab 1, then going to fill in tab 2. After completing to fill tab2, the content is lost on the tab1, because page refreshed after fill in tab2</p> <p>My question is how to keep content stay on tab1 after filling in tab2?</...
php javascript jquery
[2, 3, 5]
620,372
620,373
Using Javascript to change a value in a textbox
<pre><code>&lt;input id="NameAjax" class="ac_input" type="text" value=""&gt; </code></pre> <p>And using jquery:</p> <pre><code>).click(function(e) { document.getElementById("NameAjax").value = 1; } </code></pre> <p>But after the click the value does not change:</p> <pre><code>&lt;input id="NameAjax" class="ac_inpu...
javascript jquery
[3, 5]
5,061,964
5,061,965
How to set focus for AutoCompleteText View if value entered is wrong
<pre><code>setOnFocusChangeListener(new OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { // TODO Auto-generated method stub if (currentfocus==false) { if (!v.hasFocus()) ...
java android
[1, 4]
2,901,418
2,901,419
Detecting form changes on beforeunload?
<p>This has already been asked, I know, but I don't understand why this isn't working for me.</p> <p><a href="http://jsfiddle.net/M9tnP/16/" rel="nofollow">http://jsfiddle.net/M9tnP/16/</a></p> <p>Trying to detect form changes, and if the user tries to navigate away, I want them to confirm that they will lose their c...
javascript jquery
[3, 5]
2,852,771
2,852,772
Download a file from save as window using Java and Javascript
<p>I'm generating a report in my application and saving it somewhere in my PC. Now when user clicks on download button a Save as window should open and the file should get written to the specified location with the specified name. I'm able to do writing of file to another file but I'm unable to get the Save as window.<...
java javascript
[1, 3]
3,835,392
3,835,393
Animate OnComplete firing too early
<p>I'm implementing a progress bar (for timing a background task, I already know the exact time it will take) - but I'm having trouble with the oncomplete event firing early.</p> <pre><code>$("#go").on("click", function(event){ event.preventDefault(); $('#report-loader .bar').animate({ width: 500 ...
javascript jquery
[3, 5]
820,879
820,880
jquery set input val() and return the parent html() get empty input?
<p>i make a function to input some field and return the html to show:</p> <pre><code>function get_goodinput(GoodsSn, InCount, SellCount, Barcode, SinglePrice, BatchNo) { var $c = $('#t_addgoods_table').clone(); $c.children("form").attr("id", "addgoods_form"); //id="t_addgoods_table" var $f = $...
javascript jquery
[3, 5]
4,302,618
4,302,619
Safest way to exchange data between java android app and PHP script?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2259438/how-to-implement-communication-between-java-client-application-android-and-php">How to implement communication between Java client application (Android) and PHP server application?</a> </p> </blockquote> ...
java php android
[1, 2, 4]
1,515,513
1,515,514
How can I run JavaScript code at server side Java code?
<p>I want to run JavaScript code at the server side. I want to manipulate result returned by JavaScript inside my Java code. How can it be done?</p>
java javascript
[1, 3]
1,365,338
1,365,339
jscript 'type' attribute
<p>Im trying to implement the following logic on javascript. </p> <p>If type is 'bankAccountTypeId' get all fields with the same className as field using $(field.className) then use .each to loop through each result compare field.value with $(this).val() and use alert to show an error message if they are different (br...
javascript jquery
[3, 5]
2,905,464
2,905,465
How can I keep the focus on an input field if the input is incorrect
<p>Given the following code:</p> <pre><code>sPosSelect="#fpJpos input[name=posnum" + iiPos + "]"; if (fIn&gt;fPosMaxWtUse[iiPos]) { alert(sprintf('%.0f is %.0f more than the position max of %.0f.',fIn,fIn-fPosMaxWtUse[iiPos],fPosMaxWtUse[iiPos])); $(sPosSelect).val(''); $(sPosSelect).focus(); return; } </code></pr...
javascript jquery
[3, 5]
3,189,313
3,189,314
How to show a hidden div if hash matches its ID
<p>I have a page with a bunch of hidden <code>&lt;div&gt;</code>’s. I want to be able to link directly to any of them and have them show if the hashtag matches the <code>id</code>. I already have </p> <pre><code>var thisHash = window.location.hash; if(window.location.hash) { $(thisHash).show(); } </code></pre> <p...
javascript jquery
[3, 5]
2,716,571
2,716,572
How to concat string to List C#
<p>I was trying to add the strings to the List and export the list as csv file but the result I got is not the way I want. Here is the code -</p> <pre><code>List&lt;string&gt; values = new List&lt;string&gt;(); using (StreamReader sr = new StreamReader(filePath)) { while (sr.Peek() != -1) { string line...
c# asp.net
[0, 9]
1,034,823
1,034,824
Disabling controls within a table - JQuery/Javascript
<p>I have a complex UI with several nested tables, a repeater control and several other HTML controls that have their disable attribute set based on business logic in JQuery.</p> <p>I need a way to disable the entire table (including nested controls, UI elements etc) and re-enable them when a user toggles a button. </...
javascript jquery
[3, 5]
4,587,046
4,587,047
Mathematical way of getting set of numbers from one number
<p>I am using javascript, but I think that the idea applies across all languages. The idea is if you have 1 of 4 numbers you can get the other numbers. Something like this:</p> <pre><code>1 = 234 2 = 134 3 = 124 4 = 123 </code></pre> <p>If you have 1 you output 234, and etc. whats the most efficient way to do this? D...
javascript jquery
[3, 5]
5,445,138
5,445,139
Remove space between buttons
<p>i have bunch of buttons within linear layout. But there is spaces buttons. I set padding as 0 but there no change. There is someone who already had the same problem at <a href="http://www.mail-archive.com/android-developers@googlegroups.com/msg51104.html" rel="nofollow">http://www.mail-archive.com/android-developers...
java android
[1, 4]
1,881,128
1,881,129
Open dialog from server side
<p>Basically on the client side i have this jquery function</p> <pre><code>function OpenDialog() { $('.jqmWindow').jqm(); $('#ConfirmEnquiry').jqmShow(); } </code></pre> <p>I want to call this function when an imageButton is clicked, but i want to call it from server side, from a Vb file.</p> <p>Vb code</p> ...
jquery asp.net
[5, 9]
5,881,688
5,881,689
Getting class name from div
<p>I want to retrieve the class name of the last child element (class last div <code>new3</code>) in <code>.find_class</code>, but my code gives me class <code>select3</code>. How can I fix it?</p> <p><strong>Demo:</strong> <a href="http://jsfiddle.net/gBxan/5/" rel="nofollow">http://jsfiddle.net/gBxan/5/</a></p> <pr...
javascript jquery
[3, 5]
2,578,731
2,578,732
In C#/ASP.NET What is this config error and how do I deal with it?
<p>I am getting an error: "The requested page cannot be accessed because the related configuration data for the page is invalid."</p> <p>In more detail, the config error is: "This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by defaul...
c# asp.net
[0, 9]
5,897,658
5,897,659
jQuery/Javascript custom email validation not working
<p>I didn't want to us a plugin for simple email validations so i tried to create my own but it doesn't work. Its always returning false. Here is my code:</p> <pre><code>var regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i; if(regex.test($("#email").val())) { //pass } </code></pre> <p>What am I doing wrong? Thank...
javascript jquery
[3, 5]
5,164,502
5,164,503
Jquery-Delete all the row if first td of row does not have the id with given value
<p>I have a table with many rows. from which i want to delete all the rows except the row, of which first td has a given id.</p> <p>i am in half way </p> <pre><code> &lt;tr&gt; &lt;td id="1" class="td_link" onclick="viewPointDetails(1)"&gt;Barrackpur&lt;/td&gt; &lt;td class="td_link" id="11" class="edit_client"...
javascript jquery
[3, 5]
4,330,909
4,330,910
Bundle additional apps (built by myself) in one app?
<p>I have built a launcher for people with bad eyesight, I have 3 additional apps made specifically for universal access: a calculator, a weather app and a music player.</p> <p>To include them in my launcher I could simly copy their codes inside my launcher package and use an intent to open them (they would basically ...
java android
[1, 4]
241,385
241,386
Moving Objects Help
<p>I want to know how is it possible,I could have an Object drawn at a certain point and move to the point that is touched on the screen. I am trying to use it for my game where when the user touches on the screen, the gun fires from the position of the player, but the player is stationary. </p> <p>Thanks in advance....
java android
[1, 4]
1,879,365
1,879,366
Calling Javascript function multiple times
<p>I have a Simple JavaScript Function:</p> <pre><code>function f1() { alert("HI"); } </code></pre> <p>I'm calling the same Javascript function from two places, say:</p> <pre><code>&lt;input type="submit" id="btn1" onclick="f1()"/&gt; &lt;input type="submit" id="btn2" onclick="f1()"/&gt; </code></pre> <p>How t...
javascript jquery
[3, 5]
1,783,869
1,783,870
Error when exporting data to PDF from C#
<p>I am writing a PDF file from C# like this:</p> <pre><code>Response.ContentType = "application/vnd.pdf"; Response.AddHeader("content-disposition", "attachment;filename=test.pdf"); Response.Write("&lt;table border='1px'&gt;"); /* Print Headers */ Response.Write("&lt;tr&gt;"); Response.Write("&lt;th colspan='" + cols...
c# asp.net
[0, 9]
5,180,175
5,180,176
enlarge image in new window - centered?
<p>enlarging an image in a new window when a user clicks on it. Here's the Javascript I used:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;SCRIPT language="JavaScript"&gt; &lt;!-- function PopUp(pPage) { window.open(pPage,'popWin','resizable=yes,scrollbars=yes,width=580,height=460,toolbar=no'); } //--&gt; &lt;/SCRIP...
javascript jquery
[3, 5]
1,807,757
1,807,758
the pre-init fucntion
<p>i am working in a specific task. I have three master pages with three different stylesheet,</p> <p>I have a javascript function that can detect what the user is using for example window,mobile or i pad...</p> <p>when the page size for example is less than 700 i want to set master page 1 foe example and when the p...
c# javascript
[0, 3]
3,019,173
3,019,174
jQuery: mouseover makes image visible that has the same last 4 numbers in their id as the trigger
<p>I am currently working on a website and got stuck with the following problem: </p> <p>On the website I have small dots (images) with the ids "dot0001", "dot0002", "dot0003", etc. . I also have hidden images (visibility:hidden) with the ids "info0001", "info00002", "info0003", etc. </p> <p>I am looking for a jQuery...
javascript jquery
[3, 5]
1,420,452
1,420,453
trying to replace all \n inside textarea to '\n (4 spaces) ' and viceversa but only one \n is found
<p>here's the link where I'm trying this:</p> <p><a href="http://jsbin.com/ajirim/2/edit#source" rel="nofollow">http://jsbin.com/ajirim/2/edit#source</a></p> <p>the js code:</p> <pre><code>$(function(){ $('button').click(dao); }); function dao() { var x = $('textarea').val(); if(x.subst...
javascript jquery
[3, 5]
5,444,489
5,444,490
Changing input element value in the fly
<p>I'm trying to create a voting system. So when the user clicks the "Vote" button, I want to display the vote count alongside which reflects the count in real time.</p> <p>I'm using a code something like</p> <p>HTML</p> <pre><code>&lt;div class='left'&gt; &lt;input id='vote' name='voteCount' type='button' value...
javascript jquery
[3, 5]
3,865,114
3,865,115
jQuery or JavaScript?
<p>Since jQuery has grown into a very large, and popular JavaScript library I was wondering what's used in the "industry", especially in web development?</p> <p>I know JavaScript, and it's probably a good idea for anyone wanting to use jQuery to have a firm grasp of it, but if you become reliant on using jQuery as opp...
javascript jquery
[3, 5]
5,581,345
5,581,346
What is the most convenient way to load/save property files in Android?
<p>I was thinking about using the functionality built in the <code>Properties</code> API then I found the <code>AssetManager</code>. Is there some very simplistic way for loading/saving property files in Android? One that doesn't involve messing with Input/Output streams.</p>
java android
[1, 4]
1,718,252
1,718,253
Difference between blur and fousout, focus and foucusin with example
<p>Can anyone tell me the difference between blur and fousout, focus and foucusin with simple example </p>
javascript jquery
[3, 5]
3,796,083
3,796,084
change list view
<p>I want to use custom <code>List adapter</code> in this example so that I can get the benefit of <code>getView()</code> and then get the <em>id</em> for the buttons in <em>list view</em>. </p> <p>So that I will be able to retrieve (name_id) <em>student</em> from database as list with <code>delete</code> buttons.</...
java android
[1, 4]
5,126,921
5,126,922
Ajax Long Poll ,PHP or Python which uses least Memory?
<p>Which Language would be better to implement long ajax poll, i heard php uses more memory in long ajax poll, is that correct?</p>
php python
[2, 7]
967,450
967,451
Advice about how to animate the background of a list item
<p>I was wondering if you can offer me a better way of achieving the effect Ive created in this fiddle: <a href="http://jsfiddle.net/YLuKh/1/" rel="nofollow">http://jsfiddle.net/YLuKh/1/</a></p> <p>Basically I would like to animate the background colour of the anchor tag revealing an image which I've done by positioni...
javascript jquery
[3, 5]
5,295,497
5,295,498
Prevent jQuery() from executing javascript
<p>I am working on some code that uses jQuery to parse data out of html documents from the web. This decision was made because jQuery, with its awesome ability to select objects on a page, makes it excellent for parsing.</p> <p>The code works like this (where 'html_string' is the html of a whole web page):</p> <pre>...
javascript jquery
[3, 5]
4,882,366
4,882,367
Jquery: increase the current form input value with 1
<p>I'm just trying to get a number from a hidden form input and plus 1 to that number and then put that value to the incremented number.</p> <p>Here is my code</p> <pre><code>jQuery('#add_slider_image').live('click', function() { var slideId = jQuery('#count-level').attr('value'); jQuery('#count-level').attr('va...
java jquery
[1, 5]
48,968
48,969
Read JavaScript variables from a file with Python
<p>I use some Python scripts on server-side to compile JavaScript files to one file and also add information about these files into database. For adding the information about the scripts I now have yaml file for each js file with some info inside it looking like this:</p> <pre><code>title: Script title alias: script_a...
javascript python
[3, 7]
1,509,900
1,509,901
jQuery onchange select option
<p>Let's say I have this HTML:</p> <pre><code>&lt;select id='list'&gt; &lt;option value='1'&gt;First&lt;/option&gt; &lt;option value='2'&gt;Second&lt;/option&gt; &lt;option value='3'&gt;Third &lt;/option&gt; &lt;/select&gt; &lt;input type ="text" id="text"/&gt; </code></pre> <p>and then this JavaScript</...
javascript jquery
[3, 5]
4,726,877
4,726,878
adding text between items on radio button control list
<p>I need to add some text between the list items, but I haven't seen a way to do this. I've looked at adding space between the items, but I can't figure out how to add text between the list items. </p> <pre><code> &lt;asp:RadioButtonList ID="RadioButtonList1" runat="server" &gt; need to add text here &lt;asp:...
c# asp.net
[0, 9]
4,432,839
4,432,840
Replacing characters with jquery
<p>thanks in advance for your help.</p> <p>I'm using this piece of code to replace a circumflex a that keeps appearing in a website I'm working on, however it only replaces the first occurance of the circumflex a in a given tag. </p> <p>Can anyone help me extend the code?</p> <pre><code> $(function() { $('h2,...
javascript jquery
[3, 5]
3,295,636
3,295,637
Hide DataPager if Pages = 1
<p>How do I hide the DataPager if there is only one page. I don't know how todo this but maybe in the DataPager Events I have a asp:Button when clicked it gets records of course but sometimes there will be only one record and I need to hide the pager if there is one record so it could be done on postback but I don't kn...
c# asp.net
[0, 9]
1,217,477
1,217,478
jQuery new option needs sorting
<p>I've got two dropdowns, as a result of changing the first one it triggers a jquery change() that does a post with the company id from the first dropdown. That then runs a sql query to get a list of people that work for that company and fills the select box with options. This is working fine and I've got the sql qu...
php jquery
[2, 5]
2,291,340
2,291,341
jquery and javascripts toghether
<p>I have this jquery..</p> <pre><code>&lt;script type='text/javascript'&gt; $(document).ready(function() { $('.colnews2').hide(); $("#colnews1 li").click(function() { //alert($(this).attr("id")); $('.colnews2').hide(); var value = $(this).attr("id"); var theDiv = $("#colnews2-" + value); theDiv.s...
javascript jquery
[3, 5]
5,024,538
5,024,539
How to make something like the spreadsheets of Excel
<p>I need to make something like the spreadsheets of Excel, where I can add and insert more columns and rows so that prestored information could be added with no problem.</p> <p>Thus, any type of numerical function or number could be inserted in between the empty boxes or spaces. So that, for example, I could add, sub...
c# asp.net
[0, 9]
1,139,020
1,139,021
How to get image width and height uploaded using ajaxfileupload asp.net
<p>I think ajaxcontroltoolkit:ajaxfileupload has too many bugs and wane. since I'm using this component frequently in my projects, I overcome to many serious disturbing bugs and functionality of this control. Now, I seriously need to get uploaded image width and height using ajaxfileupload before I save it to check eit...
c# asp.net
[0, 9]
2,994,187
2,994,188
'slideDown' effect with jquery doesnt seem to work
<p>I want to use <code>slideDown</code> effect with jquery effect, however it doesnt appear to work. I think it is because the element on which I am trying to implement the effect is already visible on the screen. I think it may be required to be hidden before it can show up a slideDown effect but I am unsure as to how...
javascript jquery
[3, 5]
563,326
563,327
Calendar.MINUTE giving minutes without leading zero
<p>Hi all I am using below code to get adnroid phone time,but it giving me minuts without zero if the minuts are in between 1 to 9. for example:right now I have time on my device 12:09 but its giving me as 12:9 </p> <pre><code>Calendar c = Calendar.getInstance(); int hrs = c.get(Calendar.HOUR); int mnts = c.get(Calen...
java android
[1, 4]
829,906
829,907
Associative array passing as empty string
<p>I am trying to pass an array to PHP via Ajax, but the array is being passed as an empty string. This is my code when creating the array:</p> <pre><code>var params = new Array(); var inputs = new Array(); inputs = $(":input"); $.each(inputs, function(key, value) { params[value.id] = value.value; }); alert(params)...
javascript jquery
[3, 5]
3,045,083
3,045,084
[Solved]Jquery click() function not working
<p>I have 2 anchor tags like this</p> <pre><code>&lt;a href="#" id="1"&gt;1&lt;/a&gt; &lt;a href="#" id="2" style="display:none;"&gt;2&lt;/a&gt; </code></pre> <p>and Jquery functions like this</p> <blockquote> <p>$(document).ready(function (){</p> <blockquote> <pre><code> $('#1').click(function(){ //cod...
javascript jquery
[3, 5]
881,010
881,011
URL decoding
<p>I want to decode string which is encoded using java.net.URLEncoder.encode() function.</p> <p>i tried using unescape() function in java script.</p> <p>but problem occure for blank space because java.net.URLEncoder.encode() converts blank space to '+' and unescape() function wont convert '+' to blank space.</p>
java javascript
[1, 3]
4,615,765
4,615,766
Android / Java - Figuring out what the date will be
<p>I'm creating an application that allows the person to select a day within the current week (Days 1/Sunday through 7/Saturday) and see whats on the agenda for that day.</p> <p>The functionality I'm looking for is to check what today's date is and what day of the week it is. With this information It will show the cur...
java android
[1, 4]
560,998
560,999
php cache function not working on jquery .load()
<p>I'm using a standard php cache script on page.php</p> <pre><code> $cache = 'the_location/'.$id.'.html'; $expire = time() -3600 ; if(file_exists($cache) &amp;&amp; filemtime($cache) &gt; $expire) { readfile($cache); } else { ob_start(); // some stuff $pages = ob_get_contents(); ...
php jquery
[2, 5]
602,759
602,760
Different content in Footer from the ItemTemplate result
<p>Can the DataList <code>FooterTemplate</code> have an altogether different query result in contrast to what we are using in ItemTemplate results, on data binding?</p> <p>For eg:</p> <pre><code>&lt;ItemTemplate&gt; &lt;tr&gt; &lt;td&gt;BookID: &lt;/td&gt; &lt;td&gt;&lt;%#Eval("bookid")%&lt;/td&gt; &lt;/tr&gt; &lt;/I...
c# asp.net
[0, 9]
408,174
408,175
scrolltop+clientY not working in Mozilla Firefox
<pre><code>var YPos12 = event.clientY + document.body.scrollTop; </code></pre> <p>is not working for Mozilla Firefox. Anyone can give me working example with code? Please help</p>
c# javascript asp.net
[0, 3, 9]
4,203,110
4,203,111
Convert url in asp?
<p>I have Web-App. Somewhere in my page I used following code to create a <code>Hyperlink</code>.</p> <pre><code>&lt;a href="&lt;%= Eval("NavigateUrl") %&gt;"&gt; &lt;%= Eval("text") %&gt; &lt;/a&gt; </code></pre> <p>as you see this code must be work but there is a little problem. content of <code>NavigateUrl</code> ...
c# asp.net
[0, 9]