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,521,955
4,521,956
Split value into percentage with a slider
<p>im new to jQuery and searching a way for doing smthing like this:</p> <p>I have a value [100] and 5 categorys [apple, banana, kiwi, lemon, orange]</p> <p>What I want is to have for each category a slider (a line with a point on it you can move)</p> <p>So every category starts with a value of 20 (100 / 5).</p> <p...
javascript jquery
[3, 5]
2,953,072
2,953,073
Slider sliding back to the first image
<p>I am using jQuery to slide through some images.</p> <p>The slide animation is achieved using:</p> <pre><code>$('#slideInner').animate({ 'marginLeft' : slideWidth*(-currentPosition)}); </code></pre> <p>This works fine, however when I reach the final image, and it loops back to the start, this animation will quickl...
javascript jquery
[3, 5]
1,773,420
1,773,421
Capture Click on Android Tablet Javascipt Submit to File
<p>I am new to JavaScript and am in need of some help. I would like to bring it up with a picture in the background. Then I would like to click points and have cross hairs put over them, as well as connecting them with a line as it goes. When I am done clicking, I need a submit button. I would like a text file to be ex...
javascript android
[3, 4]
2,067,432
2,067,433
Java - find next file in sequence
<p>I have a directory with a number of images. Each image is in the format image-xxx.png, where xxx is a random integer (between 0 and 1million). Not all numbers are taken, so for instance it is possible to have image-1.png followed by image-27.png, etc (they're not 0 padded). Let's say I have the following files in my...
java android
[1, 4]
3,405,335
3,405,336
how to access javascript variable in global.asax?
<p>I have a javascript variable in a page default.aspx</p> <pre><code>var name="user1" window.location="test.aspx" </code></pre> <p>this page will submit to test.aspx and in global.asax while firing Application_BeginRequest event ,i need to access the variable "name". i need to do this without cookies. Anyone can h...
javascript asp.net
[3, 9]
5,628,642
5,628,643
How to cancel TimerTask safely?
<p>I have been developing the Android application and I use <code>Timer</code> and <code>TimerTask</code> objects for executing one task after particular time. But there is one problem - sometimes I need to cancel timertask, but if I do it that Android will cause an <code>IllegalStateException</code>. How can I cancel ...
java android
[1, 4]
3,387,829
3,387,830
jQuery Plugin Check Version
<p>When writing a new jQuery plugin is there a straightforward way of checking that the current version of jQuery is above a certain number? Displaying a warning or logging an error otherwise.</p> <p>It would be nice to do something like:</p> <pre><code>jQuery.version &gt;= 1.2.6 </code></pre> <p>in some form or ano...
javascript jquery
[3, 5]
1,254,335
1,254,336
jQuery > on checkbox change run code
<p>I have rows of "To Do" on a checklist, each row has a "Completed" checkbox. Upon clicking the box with the mouse, the following code runs and correctly posts the information (updates the database to track that the task has been completed):</p> <pre><code> $(function () { $('[id*="howto_step_complete"]').mo...
javascript jquery
[3, 5]
547,793
547,794
Locale country Android ISO
<p>What give you this in return</p> <pre><code>getSimCountryIso() </code></pre> <p>Returns for USA for example "USA" "US" or something else?</p>
java android
[1, 4]
5,855,224
5,855,225
How to determine the best "framerate" (setInterval delay) to use in a JavaScript animation loop?
<p>When writing a JavaScript animation, you of course make a loop using setInterval (or repeated setTimeout). But what is the best delay to use in the setInterval/setTimeout call(s)?</p> <p>In the <a href="http://api.jquery.com/animate/">jQuery API page for the .animate() function</a>, the user "fbogner" says:</p> <b...
javascript jquery
[3, 5]
1,181,550
1,181,551
JavaScript, transform object into array
<p>I've got an object:</p> <pre><code>var obj = { "Mike": 24, "Peter": 23, "Simon": 33, "Tom": 12, "Frank": 31 }; </code></pre> <p>I want to create an array that holds the values of the object. The keys (key names) can be disregarded:</p> <pre><code>[24, 23, 33, 12, 31] </code></pre> <p><strong>...
javascript jquery
[3, 5]
396,894
396,895
Add fade in effect on onload
<p>How can i add fade in for this specefic code? I want the pictures to fade in on onload. Have done some research on Stackoverflow, but couldn't find anything useful. Some help would be appreciated.</p> <pre><code>&lt;script type="text/javascript"&gt; window.onload = function(){ var img = document.getElementBy...
javascript jquery
[3, 5]
4,284,216
4,284,217
Php/Javascript to make a browser game?
<p>I've been on and off intrested in making a text based browser game. I have been turned off by the idea because of the daunting amount of things to learn.</p> <p>PHP (or another sever side scripting language) Javascript HTML MySql</p> <p>And the fact of severs and apache..</p> <p>Can I just pay for web hosting an...
php javascript
[2, 3]
1,716,347
1,716,348
php post data in if else statement
<p>I have a sign up form came with 3 pages. I use jquery $post to post error message back without refresh 2nd php page will check all data. if all data correct than it will send to 3rd page(agreement page). If user click agree in 3rd page, than all data will write into database.</p> <p>However I have problem to post d...
php jquery
[2, 5]
2,738,329
2,738,330
Want to add a value and remove on a single click using javascript or jquery
<p>I am using a onclick function and adding a value to by paasing a value to it. If the value already exists den i remove that value from the list.</p> <pre><code>function send_value(str) { //alert(str); var sub_id = document.getElementById('selected_sub_id').value; //alert(sub_id.indexOf(str)); if...
javascript jquery
[3, 5]
5,214,513
5,214,514
Calculation of per unit of Electricity
<p>I'm trying to build a electrical units calculator. I have developed one but I am not satisfied with my code. I am here to ask you guys is there any other way to develop this calculator. </p> <p>Following is my code :</p> <p><strong>HTML</strong></p> <pre><code>&lt;input name="" type="text" value="" onblur="check(...
javascript jquery
[3, 5]
1,345,558
1,345,559
Is there a better way to redirect and pass parameter
<p>I have this table</p> <pre><code>&lt;table id="tableDg" border=1&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td &gt;&lt;input type="hidden" id="path" readonly="true" value="{path}"&gt;{path}&lt;/input&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="checkbox" class = "chkbCsm" &gt;&lt;/input&gt;&lt;/td&gt; &lt;td &gt;&lt;input ...
javascript jquery
[3, 5]
2,620,175
2,620,176
how to send a value from a HTML dropdown box to a JQuery function
<p>I'm very new to JQuery and don't have much experience with javascript at all, and after hours of trying to figure this out i give up. I know how to do it in PHP, but there's something I'm missing when I try it in JQuery.</p> <p>I have a html-file that generates a dorpdown box that looks something like tihs:</p> <p...
javascript jquery
[3, 5]
3,524,505
3,524,506
java.io.IOException: Read-only file system
<pre><code>File mediaDir = new File("media"); if (!mediaDir.exists()){ mediaDir.createNewFile(); mediaDir.mkdir(); } File f = new File("/data/data/com.test.image/files/media/Voucher.jpg"); f.createNewFile(); FileOutputStream fos = new FileOutputStream(f); fos.write(b); fos.close(); </code></pre> <p>Try to wr...
java android
[1, 4]
4,236,295
4,236,296
Split causes "Object doesn't support this property or method" exception
<p>call to <code>split</code> on a variable causes a <em>"Object doesn't support this property or method"</em> exception and I don't know why. Here's my code:</p> <pre><code>function getKontaktPersonen(kontaktSelectBox) { var kontaktPersonen = []; var id_and_name = kontaktSelectBox.attr('id'); var id_part = g...
javascript jquery
[3, 5]
2,764,188
2,764,189
ASP.net attachment then refresh page
<p>I am working on a c# project using ASP .net.</p> <p>I have a list of reports with a hyperlink for each, which calls the web server, retrieves a PDF and then returns the PDF for the user to save or open:</p> <p>ASPX page:</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt; &lt;a href="#" onclick="SubmitFormToO...
c# asp.net
[0, 9]
1,104,360
1,104,361
Deleting Gridview rows using Javascript
<p>I have a javascript function to clear my form which includes a gridview, I previously tried another way to delete the rows without postback but somehow when I tried to add a new row, all the previous bounce back. Maybe I am using viewstate to maintain my gridview, not too sure but below is what I am doing which work...
javascript asp.net
[3, 9]
3,051,673
3,051,674
Unable To Access Label Text in Code Behind file when setting it through Javascript
<p>I have a label control in my Page</p> <pre><code>&lt;asp:Label ID="EmpType" runat="server" Text=" " &gt;&lt;/asp:Label&gt; </code></pre> <p>I am setting its value through Javascript using the following code</p> <pre><code>var lblEmpType = document.getElementById('&lt;%=EmpType.ClientID %&gt;'); lblEmpType.innerT...
javascript asp.net
[3, 9]
657,596
657,597
Having trouble reading string in if statement
<p>I am able to covert an integer array to a string.</p> <pre><code> if (tempArray1[6] == true) { num[0] = 1; } if (tempArray2[6] == true) { num[1] = 1; } if (tempArray3[6] == true) { num[2] = 1; } if (tempArray4[6] == true) { num[3] = 1; } Number = A...
java android
[1, 4]
1,227,245
1,227,246
javascript/jQuery Array concatenation?
<p>I have some simple jQuery code:</p> <pre><code>var response = Array() $('.task-list').each(function() { response.concat(response,$('#' + this.id).sortable('toArray')); } ); console.log(response); </code></pre> <p>The problem I'm having is that I think I'm using concat improperly- the result is an empty array. Wh...
javascript jquery
[3, 5]
2,455,535
2,455,536
DropDownList inaccessible
<p>I have a drop down list in my TopicTreeSearchControl, on my page, but from the actually page where the control sits, I get an error:</p> <pre><code>'TopicSearchTree.ddlDatasources' is inaccessible due to its protection level </code></pre> <p>I am trying to do this from my page:</p> <pre><code>protected override v...
c# asp.net
[0, 9]
5,695,367
5,695,368
Use next and prev() in jquery
<pre><code>&lt;label for="a1"&gt;First:&lt;/label&gt; &lt;input id="a1" class="first" type="text" name="a1" value="123"&gt; &lt;label for="b1"&gt;Second:&lt;/label&gt; &lt;input id="b1" class="second" type="text" name="b1"&gt; &lt;br /&gt; &lt;label for="a2"&gt;First:&lt;/label&gt; &lt;input id="a2" class="first" type=...
javascript jquery
[3, 5]
4,771,694
4,771,695
Why this works out of UpdatePanel but not inside UpdatePanel?
<p>I have copy and paste this Alert Class: <a href="http://madskristensen.net/post/JavaScript-AlertShow%28e2809dmessagee2809d%29-from-ASPNET-code-behind.aspx" rel="nofollow">http://madskristensen.net/post/JavaScript-AlertShow%28e2809dmessagee2809d%29-from-ASPNET-code-behind.aspx</a></p> <p>It works except with a butto...
c# asp.net
[0, 9]
6,032,489
6,032,490
How to find the position of the certain element inside a div?
<p>I am trying to find the image position inside my div</p> <p>my Html</p> <pre><code>&lt;div&gt; &lt;p&gt;test&lt;/p&gt; &lt;img src='test1.jpg'/&gt; &lt;p&gt;test&lt;/p&gt; &lt;p&gt;test&lt;/p&gt; &lt;img src='test2.jpg'/&gt; &lt;p&gt;test&lt;/p&gt; &lt;img src='test2.jpg'/&gt; --the user click...
javascript jquery
[3, 5]
2,401,718
2,401,719
php timer at server side
<p>I am using php any mysql. I would like to create a timer that operates in the server side, and when time reaches a certain value (e.g. 06:00:00), it can trigger the running of another file (such as, update data of a table).</p> <p>Actually, what kind of technique I shall use apart from php? </p> <p>Thankyou...</p>...
php javascript
[2, 3]
4,480,609
4,480,610
How to tweak the content in the drop down list in asp.net
<p>I have a drop down column and the drop down contain a value "accidents" .Now I want to make the value to read as upper case "Accidents" and there are many as such in the grid .One way is to update the current value to uppercase but as these values are being used in the application where they want the wording to b...
c# asp.net
[0, 9]
4,523,506
4,523,507
jquery table select and data retrieval
<p>I am using a html table that contains available times for scheduling. I want the user to be able to click on a time and from that be able to get the column header, which is the staff persons name, and the value of the cell - the time. I than want to change the contents of the cell to 'NA' and set the cell backgrou...
javascript jquery
[3, 5]
2,012,723
2,012,724
Jquery attr not working on IE 9?
<p>Am trying to add an attr for the id and onclick, its working on firefox and chrome but for some reason it isn't working on IE 9 . Any alternative or something is wrong with me code?</p> <pre><code>$(".extendedGridView tr td a").each(function (index) { if ($(this).html() == "Update") { $(this).attr('i...
javascript jquery
[3, 5]
3,118,639
3,118,640
Add item in order to a list
<p>What is the best way to add an item to an ordered list?</p> <p>I want that when an item changes the value the value of that control is placed on a list.</p> <p>Example</p> <p>-radiobutton value = radiobuttonvalue;<br> -checkbox value = checkboxvalue;<br> -textbox value = textboxvalue;<br></p> <p>clicks: first on...
javascript jquery asp.net
[3, 5, 9]
4,415,226
4,415,227
Beginner Button click event
<p>I am new to Android, i am writing a program where when a user clicks a button a <code>Alert Dialog</code> to appear. This alert dialog has 2 buttons, <code>Yes and No</code>. Upon clicking Yes/No, i need to <code>sysout</code> the response.</p> <p>The code i have so far; Can someone help me add the Alert Dialog;</p...
java android
[1, 4]
699,192
699,193
Is dynamic is same as Object
<p>In "CLR via C#" book it's mentioned that dynamic keyword corresponding FCL type is System.Object. please clarify this .</p>
c# asp.net
[0, 9]
2,306,294
2,306,295
Capture image with camera in android and save with a custom name
<p>i have create an android application that will capture picture and save in sdcard folder,now i want to save the image with a custom name.</p> <pre><code>import java.io.ByteArrayOutputStream; import android.view.Menu; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import ...
java android
[1, 4]
1,956,911
1,956,912
How to open a user control as popup using jQuery dialog
<p>I have Parts.aspx page,<br> UserControl1.ascx,[ it contains a textbox and one button1 ]<br> Add.ascx Controls [ it contains a textbox, button2, button 3 ]<br> I have added UserControl1.ascx in parts.aspx page.</p> <p>Now when I click button1 [usercontrol1.ascx] it should open like a popup Add.ascx on top of the pag...
jquery asp.net
[5, 9]
1,795,012
1,795,013
Gaining access to content inserted dynamically with ajax
<p>This is the fragment of code inserted with ajax:</p> <pre><code>&lt;form&gt; &lt;label for = "task-name"&gt;Name&lt;/label&gt; &lt;input type = "text" id = "task-name" /&gt; &lt;label for = "task-description"&gt;Description&lt;/label&gt; &lt;input type = "text" id = "task-description" /&gt; &l...
javascript jquery
[3, 5]
2,567,652
2,567,653
Javascript toggle using div id
<p>Hello people i have problem with jquery toggling script..</p> <pre><code>&lt;a class="clickMe"&gt;Text 1&lt;/a&gt; &lt;/br&gt; &lt;div class="sri"&gt; - This text will be toggled&lt;/div&gt; &lt;a class="clickMe"&gt;Text 2&lt;/a&gt; &lt;/br&gt; &lt;div class="sri"&gt; - This text will be toggled 2&lt;/div&gt; $...
javascript jquery
[3, 5]
1,726,551
1,726,552
window.location.replace vs scrollTop
<p>I am running on Chrome with the following snippets:</p> <pre><code>&lt;a name="example"&gt;&amp;nbsp;&lt;/a&gt; </code></pre> <p>The following code works correctly. It actually goes to #example as expected.</p> <pre><code>window.location.replace('#example'); </code></pre> <p>But the following does <strong>not</s...
javascript jquery
[3, 5]
2,772,422
2,772,423
~ 'MachineToApplication' beyond application level ~ What does this error means?
<p>What should i do when this error prompt my screen</p> <p>In VS2008 Express Edition</p> <ol> <li>C:\Users\ami\Desktop\MyAddressBookasd\MyAddressBook\UpdateTheRecord.aspx: ASP.NET runtime error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error...
c# asp.net
[0, 9]
5,430,717
5,430,718
Uncaught handler: thread main exiting due to uncaught exception
<p>I am using this tutorial <a href="http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/" rel="nofollow">here</a> and when I add this section of code directly into my OnCreate class I get the above error</p> <pre><code>DataBaseHelper myDbHelper = new DataBaseHelper(null); myDbHelper...
java android
[1, 4]
5,955,534
5,955,535
Could this be done any easier? Java beginner question
<p>I need to create a series of objects, and it just looks plain ugly right now:</p> <pre><code>CheckBox checkOne = (CheckBox) findViewById(R.id.checkOne); CheckBox checkTwo = (CheckBox) findViewById(R.id.checkTwo; CheckBox checkThree = (CheckBox) findViewById(R.id.checkThree); CheckBox checkFour = (CheckBox) findView...
java android
[1, 4]
640,094
640,095
On click of TAB the focus should be on the next textbox
<p>I have two textboxes and when TAB is pressed from one textbox it goes to another place instead of to the next textbox.</p> <p>My code is:</p> <pre><code> $(function () { $("input[id$=txt1]").bind('keydown', function (e) { if (e.which == 9) { // alert("hello"); ...
javascript jquery
[3, 5]
4,131,356
4,131,357
Similar to Jad file in J2ME & BlackBerry, exist in Android?
<p>Similar to jad entries in J2ME, is there any such provision in android?</p>
java android
[1, 4]
1,581,173
1,581,174
How to create a loop from a string based on a delimiter
<p>I have a string like this:</p> <pre><code>var string = ' [United States] [Canada] [India] '; </code></pre> <p>I want to do a for loop and add each of the countries into an array in Javascript or Jquery, something like this:</p> <pre><code>var countryArray = new Array(); for ( each country in string AS country) { ...
javascript jquery
[3, 5]
1,144,546
1,144,547
Getting mouse events to function on dynamically loaded elements
<p>I have a simple mouseover event that I am trying to work on elements that are loaded with ajax. For example I have a div that when you mouseover hide/show another div. When I load these divs through ajax they no longer work. For example :</p> <pre><code>&lt;div class="block"&gt; &lt;div class="something"&gt;...
javascript jquery
[3, 5]
3,032,594
3,032,595
confirm box using javascript
<p>how to get confirmation before a export button is cliked.if yes then then export function has to be done if no it should not be done</p>
c# javascript asp.net
[0, 3, 9]
407,738
407,739
Asp.net webparts or portlet like functionality
<p>What is the best way to let other parties use your website as their own content using their own style ?</p> <p>We have build a small website for a customer, asp.net, .net framework 3.0. Now the customer wants other parties to be aple to use our website in their own websites while maintaining the styling of the cost...
c# asp.net
[0, 9]
2,025,736
2,025,737
Accessing each CalendarDay in Calendar Control without using the DayRender Event
<p>I need to manipulate the appearance of the an ASP.NET calendar control. I have data that I need to display on the calendar control but I don't want to access the data from within the DayRender event. How do I access the CalendarDay object that represents each day in the calendar without being within the DayRender ...
c# asp.net
[0, 9]
4,711,163
4,711,164
using jquery to load data from mysql database
<p>I'm currently using jquery's ajax feature or whatever they call it. To load data from mysql database. Its working fine, but one of the built in features of this one is to load all the data which is on the database when you press on backspace and there's no character left on the text box.</p> <p>Here's my query:</p>...
php jquery
[2, 5]
1,447,224
1,447,225
Generating event on .cs page by double click on the design view of .aspx page
<p>I am developing a web application in asp.net and c#, now in a particular aspx page whenever I doubleClick(design view) on a button or on a drop down list, instead of going to </p> <p><code>public void btn_click</code> event or <code>DropDown_SelectedIndexChanged</code> event, the cursor points to protected void Pa...
c# asp.net
[0, 9]
4,635,801
4,635,802
Better way than setInterval?
<p>I have the current function below, but feel like there is a much better way to write the same thing. I am looking for some insight on the most optimized way to write the same function below and why.</p> <p>Note this is all inside of <code>$(function(){});</code></p> <pre><code>m = function(){ $("#id").animate({...
javascript jquery
[3, 5]
4,688,154
4,688,155
jQuery click brings me to top of page. But I want to stay where I am
<p>I have a simple click and show, click and hide button, but when I click it, the page anchors at the top of the page. Is there anyway to prevent this? So that when I click the button, I stay at the same place in the browser?</p> <p>My code is..</p> <pre><code>$('#reportThis').hide(); $('#flagThis').click(function ...
javascript jquery
[3, 5]
3,988,588
3,988,589
ASP.NET C# - How to retain value after Response.Redirect
<p>I'm working in ASP.NET c# application. I came to a part where I need to retain some value after response.redirect to the same page <strong>without using additional QueryString or Session</strong>, because Session more or less may burden the server's performance even just a small value.</p> <p>Below is my code fragm...
c# asp.net
[0, 9]
5,328,107
5,328,108
Why I can't access variables from inside some functions (JavaScript)?
<pre><code>var myvar = "my value"; (function() { alert(myvar); // undefined })(); </code></pre> <p>or</p> <pre><code> var myvar = "my value"; $.post( url, function( data ) { alert(myvar); // undefined }); </code></pre> <p>and how can I solve this issue without storing this value in a hidden input or di...
javascript jquery
[3, 5]
1,336,552
1,336,553
jQuery methods on original javascript object?
<p>Did jQuery add any sort of new functionality to internal JS object like the "anchor" object?</p> <p>I know you can select via <code>$("a")</code>, but what happens if i already have an object selected?</p>
javascript jquery
[3, 5]
5,838,083
5,838,084
hasClass doesn't work in my js code?
<p>I want to use <code>hasClass</code> in the following code, but that doesn't work for me, please see my demo in jsfiddle and tell me, what do I do wrong?</p> <pre><code>&lt;span&gt; &lt;input type="text" name="relation" class="IdRelation"&gt; &lt;/span&gt; ​ if ($('span').hasClass('IdRelation')) { alert("ok")...
javascript jquery
[3, 5]
2,280,934
2,280,935
Javascript Switch statement not working as expected with string
<p>I'm trying to use the following switch statement in an ajax success callback:</p> <pre><code>success: function(datain) { switch (datain) { case "ERROR. No ID. Try again": $(".errors").append('There was an error.'); ...
javascript jquery
[3, 5]
6,009,301
6,009,302
How do you sort letters in JavaScript, with capital and lowercase letters combined?
<p>I'm working on a JavaScript (jQuery's OK too if this needs it, but I doubt it will) function to alphabetize a string of letters. Let's say the string that I want to sort is: "ACBacb".</p> <p>My code as of now is this:</p> <pre><code>var string='ACBacb'; alert(string.split('').sort().join('')); </code></pre> <p>Th...
javascript jquery
[3, 5]
5,620,706
5,620,707
Calling Javascript Function in C# not working properly
<p>I wanna call a javascript function in c sharp code. i wanna hide the specific Li tag whose id is c sharp variable"li_name". For this i am calling a javascript function. </p> <p>Cs Code:</p> <pre><code> li_name = DSRolePermission.Tables[0].Rows[k]["MENUNAME"].ToString(); StringBuilder script = new StringBuilder...
c# javascript asp.net
[0, 3, 9]
5,126,172
5,126,173
How to find server control using jquery?
<p>How to find server control using jquery e.g</p> <pre><code>$(".tab1").find("&lt;%=lblTab1Heading.ClientID%&gt;"); throws exception thrown &amp; not caught </code></pre>
jquery asp.net
[5, 9]
3,739,925
3,739,926
Adjusting height of scrolling div Javascript
<p>I am combining two scripts together a scroller and a content fader. When I swap the content (fading), div's with alot of content make the scrolling div super long. I was reading on the plugin demo for content scrolling: <a href="http://manos.malihu.gr/jquery-custom-content-scroller" rel="nofollow">http://manos.mal...
javascript jquery
[3, 5]
2,396,651
2,396,652
jQuery class count on a certain table column number
<p>I've been at this for a while and want to know the best way of achieving my goal if anyone has any ideas!</p> <p>Example:</p> <pre><code>&lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Hello&lt;/td&gt; &lt;td&gt;Hello (I want to check this column)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Hello 2&lt;/td&gt; &lt...
javascript jquery
[3, 5]
2,249,821
2,249,822
Can't loop through elements created by jquery
<p>I've added a bunch of links to a div like this:</p> <pre><code>$('#links').append('&lt;a href="http://example.com/"&gt;Example&lt;/a&gt;'); </code></pre> <p>But when I try to loop through them with <code>$('#links a').each</code> it only finds the links that are already there in the HTML.</p> <p>What am I doing w...
javascript jquery
[3, 5]
1,678,410
1,678,411
Using selected options value before clicking submit
<pre><code>&lt;form id="form1" name="form1" method="post" action=""&gt; &lt;select name="apartment_type" id="abc" &gt; &lt;option value=""&gt;Please Select Apartment type&lt;/option&gt; &lt;option value="duplex"&gt;Duplex&lt;/option&gt; &lt;option value="bongalow"&gt;Bongalow&lt;/option&gt; &lt...
php javascript
[2, 3]
275,597
275,598
Inserting 1 or 0 in Bit field in sqlDatabase based on Checkbox checked in GridView
<p>I have a gridview which has a Checkbox Template Field, I am using C# code and basically when the user checks all the Checkboxes in the datagrid view I want to add a 1 or 0 into an SQL database with a datatype field Bit based on the checkbox being checked or not. Here is my code so far;</p> <pre><code>protected void...
c# asp.net
[0, 9]
1,391,392
1,391,393
Im trying to create an excel file....but while running on the server the following error comes
<p>Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space. </p> <p>To free disk space, delete files you no longer need from the disk you are saving to.</p> <p>any idea why???</p>
c# asp.net
[0, 9]
5,794,276
5,794,277
Only show parts of image under a div using jquery
<p>I'm displaying a background picture with some semi-opaque div over it, so that it appears somewhat darker than it actually is. On top if it, I have a number of smaller, draggable divs. </p> <p>I'd like the image to be completely visible, or revealed under these divs. These smaller divs should be like looking throug...
javascript jquery
[3, 5]
652,401
652,402
add incrementing class to images inside a div
<p>Okay I dont think anyone has covered this yet.</p> <p>I have a div with x amount of images inside it. I need to add the class 00x to each image where the x starts at 1 and goes up everytime for each image. I have tried doing this with a for in statement however cant seem to make it work. I am using the jquery libra...
javascript jquery
[3, 5]
672,565
672,566
how to refresh my index page after form submission?
<p>I am having a dynamic content in my jsp pages that has to be refreshed once my form is submitted.Form submission is not done via ajax.I have tried with data-cache=never,rel=external. They ddnt work for me.</p>
javascript jquery
[3, 5]
4,806,133
4,806,134
Should I continue learning a language if in the meanwhile I became interested in another language/platform?
<p>I started learning Java a couple of months ago. I also wanted to become more exposed to linux so I installed ubuntu and started working with Java since then. In the meanwhile however I became more interested in C# and in learning the Windows platform. At this point I'm asking myself if I should stop learning Java an...
java c#
[1, 0]
4,405,517
4,405,518
jQuery selector not working on callback function
<p>I have my code like this</p> <pre><code>$.post('JSP/Commands/Search.jsp', $("#search_field").serialize(), function(id) { $('#div_to_load').load('JSP/Details.jsp'); $("#headCollapsed_" + id).trigger('click'); }); </code></pre> <p>I have checked that the function is returning the correc...
javascript jquery
[3, 5]
2,732,560
2,732,561
String.fromCharCode & CharacterSets
<p>I recently tried to mirror some input within input(text) fields. Using</p> <pre><code> String.fromCharCode(event.which) </code></pre> <p>for instance, translates all 'standard' characters correctly. Well it translates them all to uppercase, but that you can easily catch by looking up the shift key aswell.</p> <p>...
javascript jquery
[3, 5]
3,548,481
3,548,482
Settings a listener to Shared Preference's dialog 'OK' button
<p>I have class Settings that extends PreferenceActivity, in which user enter his Google account and the password. When the user presses 'add account' a dialog jumps with OK and CANCEL buttons. Same occurs when pressing add password, I want to define listener within PreferenceActivity to the OK button in the password d...
java android
[1, 4]
4,750,632
4,750,633
Embedding javascript object in dynamically created html
<p>I have a js function that recieves an array of items. The function itself creates html content dynamicly using a call to jquery html function. The problem is that I don't remember how to embed correctly the array inside the appended html. For example,</p> <pre><code>var ErrorsNotifier = { init: function(items) {...
javascript jquery
[3, 5]
4,924,914
4,924,915
What is the proper way to make my List be read and modified throughout my entire Android Java project?
<p>I have the following List:</p> <pre><code>List&lt;Map&lt;String, String&gt;&gt; items = new ArrayList&lt;Map&lt;String, String&gt;&gt;(); </code></pre> <p>It's populated with data on the load of my app. I need to use it throughout my entire app, on most Activities and Fragments, with data both being read and being...
java android
[1, 4]
2,159,273
2,159,274
How to know a browser is minimized in javascript
<p>Hi i have notification <code>div(divNotify)</code> with some information and a timer in masterpage</p> <pre><code> Protected Sub Timer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick Try Me.GetNotification_Stats() ScriptManager.RegisterClientScriptBlock(...
javascript jquery asp.net
[3, 5, 9]
976,265
976,266
Does c++ have anything like List<string> in C#
<p>does c++ has antyhing like generic list in C# , something like List for storing array of strings .</p>
c# c++
[0, 6]
1,516,765
1,516,766
Adding new Columns to GridView with a new DataSource
<p>I have a gridview that is loaded from a DataSet, in which most of the fields are generated through templates.</p> <p>One of them is an Image that changes according to the value that is returned from the dataset. Here is an example:</p> <pre><code>&lt;asp:TemplateField HeaderText="Attention"&gt; &lt;ItemTemplate&...
c# asp.net
[0, 9]
4,491,252
4,491,253
adding html into a div without id
<p>i'm trying to add some html code with javascript and jQuery into a div without an id, but with a class</p> <p>i'm trying to have it done like this, but without success...</p> <p>flie.js :</p> <pre><code>$(".myClassName").ready(function(){ $(this).innerHTML = "&lt;img src=\"http://mywebsite.com/img.png\" /&gt;...
javascript jquery
[3, 5]
1,415,236
1,415,237
resizing image using jquery
<p>html </p> <pre><code>&lt;div id="inside"&gt;&lt;div id="inside1"&gt;&lt;img id="inner_images" src="1.jpg" alt=""/&gt;&lt;/div&gt;&lt;span&gt;photo details&lt;/span&gt;&lt;/div&gt; &lt;div id="inside"&gt;&lt;div id="inside1"&gt;&lt;img id="inner_images" src="2.jpg" alt=""/&gt;&lt;/div&gt;&lt;span&gt;photo detail...
javascript jquery
[3, 5]
3,955,361
3,955,362
attempting to check whether an image is on a page with jquery
<p>I have an image on my webpage as follows:</p> <pre><code>&lt;img id="k4Tbx6luuHmP01dpI4BRZw==" src="/thumbnail/k4Tbx6luuHmP01dpI4BRZw=="&gt; </code></pre> <p>However, when I try</p> <pre><code>var is_image_there = $("#k4Tbx6luuHmP01dpI4BRZw==").attr("src"); console.log(is_image_there); </code></pre> <p>Chrome co...
javascript jquery
[3, 5]
3,517,045
3,517,046
Alternative method for Android push notification
<p>Is there an alternative to using Google C2DM for push notifications with Android? I ask because the app I'm working on will only run when the device is connected to a specific network. It's an app for members of this specific company and notifications will only come from that companies server. Since everything is "i...
java android
[1, 4]
2,411,577
2,411,578
relpace textarea in jquery
<p>I'm trying to Replace a %%%VERSION%%% text, the text is coming from an tinyMCE editor. </p> <p>looks like this. </p> <pre><code>$("#description textarea").val($("#description textarea").val().replace(/%%%VERSION%%%/g, STAT_VERSION_INFO)); </code></pre> <p>The value of the textearea is:</p> <pre><code>&lt;textare...
javascript jquery
[3, 5]
5,391,991
5,391,992
XmlTextWriter path error?
<p>What is wrong with the following statement?</p> <pre><code>XmlTextWriter writer = new XmlTextWriter(@"D:\project\data\" + System.DateTime.Today + @"\" + System.DateTime.Now + ".xml", null); </code></pre> <p>When I try the above statement it gives the following error</p> <blockquote> <p>The given path's format i...
c# asp.net
[0, 9]
3,888,853
3,888,854
Why won't jQuery's load event fire on dynamically inserted script elements?
<p>I'm dynamically inserting a script element using jQuery. The script loads as expected, but the load event does not fire.</p> <pre><code>jQuery('&lt;script/&gt;').attr({ type : 'text/javascript', src : 'http://platform.twitter.com/widgets.js' }).appendTo('body').load(function(){ /* This alert does not fi...
javascript jquery
[3, 5]
4,807,938
4,807,939
Java on iPhone 4
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1193524/can-we-run-java-applictions-on-iphone">Can we run Java applictions on iPhone?</a> </p> </blockquote> <p>im not sure this is the place for asking this but ill give it a go anyway.</p> <p>i recently downl...
java iphone
[1, 8]
2,176,453
2,176,454
Load external XML data file in a MOSS 2007 feature
<p>I am developping an ASP.NET application (SharePoint) and I have a feature that is creating and accessing folders. With the administrator account, no problem everything works well, but when I am connected with a different account of course it cannot create/access the folders. How can I "impersonate" the administrator...
c# asp.net
[0, 9]
2,888,093
2,888,094
how to send table value to printer?
<p>I want to send table values to printer.That table contails more than 50 records.so there is scrollbar or pagination on that table.Below the printer there print button, if click the button those all values should go to printer.</p> <pre><code>function print(){ window.print(); window.opener.document.location ...
javascript jquery
[3, 5]
2,442,455
2,442,456
Event after Create User - ASP.NET Membership
<p>I am going to use Create User Wizard in order to let a user create their account for this company web site. I'd like to add one more step after new account is created, but I can't find the way to do it. What I want to do is that verify the use as a current employee of this company. This is not open web site for ever...
c# asp.net
[0, 9]
530,893
530,894
jQuery plugin which lets users draw rectangles in a div works in basic setup, but not when implemented in my page?
<p>I'm using this <a href="http://jsbin.com/azare/" rel="nofollow">Boxer plugin</a> to allow the user to draw rectangles in a div. I've got it working in <a href="http://jsfiddle.net/h8vnw/" rel="nofollow">this jsFiddle</a>.</p> <p>But I can't get it working in <a href="http://jsfiddle.net/7WgdH/" rel="nofollow">this ...
javascript jquery
[3, 5]
1,251,701
1,251,702
Reference two php files at once
<p>I noticed that on facebook, when you click on an image it opens up in their photo viewer. I understand that is done with javascript, but when you look at the url it says:</p> <p><a href="http://www.facebook.com/photo.php?fbid=3230830261587&amp;set=a.1664092454121.85323.1591534315&amp;type=1&amp;theater" rel="nofoll...
php javascript
[2, 3]
3,889,255
3,889,256
how can i check how many '.classname' items are?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5706106/count-elements-with-jquery">Count elements with jQuery</a> </p> </blockquote> <p>hi there,</p> <p>i was considering, using jquery,</p> <pre><code>var n = 0; $('.className').each(function(){ n = n+...
javascript jquery
[3, 5]
842,927
842,928
How not to refresh a page from JavaScript?
<p>I am working on a website using <code>asp.Net</code>, and it includes a page called from an <code>iframe</code>. This page named Districting, has a javascript code in the aspx page. I created a function, that is executed when "Done" button is clicked. This function tests if the conditions that the user made are true...
javascript jquery asp.net
[3, 5, 9]
4,515,021
4,515,022
Show pictures on mouseover
<p>I have an ASP.NET page where I am showing products in a Gridview control. When users mouse over a Product name a window should appear and show that Product's picture in it (by getting product id and than find associated image for it.) </p> <p>Is there an AJAX control or something like this??</p>
c# asp.net
[0, 9]
1,644,524
1,644,525
Given a paragraph of text, how to get everything from the start to the last whitespace?
<p>Given a block of text like so: </p> <pre><code>"Hello world this is http://yahoo.com " </code></pre> <p>On keypress I'm looking at the text for links. I don't want to look for links in text while the user is still typing, example: </p> <pre><code>"Hello world this is http://yahoo.co" </code></pre> <p>How can I g...
javascript jquery
[3, 5]
4,930,649
4,930,650
Something Wrong?
<p>When I run the following code:</p> <pre><code>&lt;html&gt;&lt;head&gt; &lt;title&gt;Code&lt;/title&gt; &lt;script type="text/javascript"&gt; var height = "&lt;?= $height ?&gt;"; var width = "&lt;?= $width ?&gt;"; if (self.parent.frames.length &amp;&amp; self.parent.frames.length != 0) self.parent.location = docum...
php javascript
[2, 3]
729,057
729,058
Javascript/Jquery - Setting default value in function
<p>Using javascript/jquery is there a way to set a variable to a default value if no value is passed in the function? For example</p> <pre><code>function someFunction(data1,data2) { } </code></pre> <p>If data1 or data 2 is empty it gives me an undefined value. In php I could do just this:</p> <pre><code>function s...
javascript jquery
[3, 5]