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
5,081,373
5,081,374
Android and IOException - strange error
<p>I'm trying to write a basic application with http get request. Eclipse validated my code, but when I using IOException in Android console I have this strange messages:</p> <pre><code>trouble writing output: null [2009-07-29 17:22:49 - myapp] Conversion to Dalvik format failed with error 2 </code></pre> <p>And my a...
java android
[1, 4]
3,070,382
3,070,383
.offset().top returning the wrong value
<p>I'm having a bizarre issue that I don't know how to solve and was wondering if you guys could help.</p> <p>A bit of background: I have been asked to create a system where subpages of a page in wordpress are loaded on the end of that page in an infinite scroll. This is working correctly. </p> <p>They also want the ...
javascript jquery
[3, 5]
3,364,232
3,364,233
Postback problem on a submit button !
<p>I have a page that has 4 tables. Initially when the page is loaded, it shows 1 &amp; 2. Thats working fine. On Post back(When Submit is clicked), it should show 3 &amp;4. Even thats working fine(code shown here). When the submit is clicked again, it has to call updatePaymentInfo() and redirect.. Is there something t...
c# asp.net
[0, 9]
1,847,747
1,847,748
Call Javascript function from Gridview RowDeleting event
<p>I need to call a javascript alert from an if condition inside a gridview in the gvLocations_RowDeleting section. </p> <p>Code is as follows:</p> <pre><code>protected void gvLocations_RowDeleting(object sender, GridViewDeleteEventArgs e) { if (CheckIfLocationExists(ID) == true) { //need to call java...
c# javascript asp.net
[0, 3, 9]
4,073,039
4,073,040
TitlePageIndicator selected line footer to header
<p>I'm using the TabPageIndicator from Jake Wharton My question: Is there any way to transform the tab footer line in a "header line"? I'm using the indicator below the ViewPager and it would be nice to have the "selected line" on the top of my tab title.</p> <p>Thanks in advance</p>
java android
[1, 4]
5,066,114
5,066,115
C#-like named argument in javascript?
<p>Is it possible to use named argument in javascript?</p> <p>E.g.</p> <blockquote> <p>void method (int a, int b);</p> <p>method(a:1, b:2);</p> </blockquote>
c# javascript
[0, 3]
5,329,685
5,329,686
Display dates of a month or year for which the day name is Friday, in Java or JavaScript?
<p>How can I display the dates in a month or year for which the name of the day is Friday, in Java or JavaScript?</p> <p>For example, for the month of December 2011, the code would display:</p> <ul> <li>2/12/2011</li> <li>9/12/2011</li> <li>16/12/2011</li> <li>23/12/2011</li> <li>30/12/2011</li> </ul>
java javascript
[1, 3]
4,645,635
4,645,636
Expected behavior when an request for a collection will have zero items
<p>Let's say you are given the following...</p> <pre><code>List&lt;Thing&gt; theThings = fubar.Things.All(); </code></pre> <p>If there were nothing to return, what would you expect fubar.Things.All() to return?</p> <p>Edit: Thanks for the opinions. I'll wait a bit and accept the entry with the most ups.</p> <p>I ag...
java c#
[1, 0]
3,460,315
3,460,316
Understand JQuery Snippet code
<p>Can anyone help me understand what this code snippet is doing? I'm maintaining a website and I think this is the source of a problem I am having. </p> <pre><code>function cust_addToCart(itemid, itemqty, options, viaajx, loadingf, callback) { var url = "/app/site/backend/additemtocart.nl?buyid=" + itemid + "&amp...
javascript jquery
[3, 5]
2,655,391
2,655,392
If condition in a return statement
<p>I need to make a if statement with in a function that returns multi-values. I tried this but it's not working. </p> <pre><code>a(this).attr('src', function(i, current){ if ( i == 'http://www.old.com'){ return current.replace('http://www.old.com','http://www.new.com'); } else if ( i == 'http://ww...
javascript jquery
[3, 5]
919,872
919,873
Referencing functions from within functions inside a JavaScript object
<pre><code>var Page = { data: null, Load: function () { this.Populate; }, Populate: function () { } }; $(document).ready(Page.Load); </code></pre> <ol> <li>Why can't I reference <code>Page.Load</code> as a function in <code>ready()</code> eg <code>.ready(Page.Load())</code></li> <li>Why ca...
javascript jquery
[3, 5]
3,079,162
3,079,163
JS to jQuery to the fullest
<p>I have this:</p> <pre><code>function createObject() { var request_type; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer"){ request_type = new ActiveXObject("Microsoft.XMLHTTP"); } else { request_type = new XMLHttpRequest(); } return request_type; } var http = crea...
javascript jquery
[3, 5]
3,042,595
3,042,596
How to get Custom Property from ASP.NET Textbox using javascript?
<p>I have created a custom text box with property "key"(ASP.NET C#).I want to get the value of this property "key" using java script.How can I do this?</p>
asp.net javascript
[9, 3]
2,296,855
2,296,856
Jquery automatically form submit, but returns nothing
<p>I'm using Keith Jquery Countdown 1.5.8 for doing the countdown and the ticking time is working perfectly for every user. i have 2 forms in a single php file (let's say multiform.php) but the form submits nothing when the countdown reaches zero.</p> <p>Here is my jquery code :</p> <pre><code>&lt;script type="text/...
php jquery
[2, 5]
5,139,403
5,139,404
Turning text into executable statements
<p>This is a question out of curiousity for java or c++, I wanted to ask if it is possible to turn any text input into some executable statements?</p> <p>For example say I have a text file with info like: </p> <p>"class: Abc, Param: 32"</p> <p>Now say in C++ or Java I want to read that file and do something like:</p...
java c++
[1, 6]
5,409,037
5,409,038
Are there any FOSS libraries that are the result of ripping bits out of Android for plain Java?
<p>Before you jump, yes i have heard of the recent project to make Android proper run on a plain JRE. This question is not about Android the platform but rather about leveraging the great stuff thats in there, and may be useful in parts, eg the bitmap/graphics stuff.</p> <p><em>PS</em> Yes lets ignore the obvious bits...
java android
[1, 4]
3,643,404
3,643,405
reload div with javacript containing php content
<p>I have seen a lot of questions like this, but they don’t seam to answer my question.</p> <p>I have a php page with this structure:</p> <pre><code>&lt;?php include 'header.php'; include 'content.php'; include 'footer.php'; ?&gt; </code></pre> <p>In the header.php I have a function that counts some rows in a databa...
php javascript
[2, 3]
5,682,974
5,682,975
How to call PHP page with Javascript & jQuery when user clicks on a href link?
<p>In a PHP Project I have hyperlink :</p> <pre><code>&lt;a href="addid.php?id='. $Id . '"&gt;| Name |&lt;/a&gt;'; </code></pre> <p>When a user click on the link I need to add the selected "id" to session</p> <p><strong>addid.php Code :</strong></p> <pre><code>session_start(); $_SESSION['id'] = $_GET['id']; </code>...
php javascript jquery
[2, 3, 5]
2,908,638
2,908,639
Any jQuery "typewriter" plugins which support line breaks + callback functions?
<p>Recently I've went through half a dozen jQuery plugins which do "typewriter" effects on text but none of them seem to support line breaks. If you're not sure what this is, I mean something like this:</p> <p><a href="http://haydndemos.awardspace.co.uk/typewriter1.html" rel="nofollow">http://haydndemos.awardspace.co....
javascript jquery
[3, 5]
4,679,870
4,679,871
Javascript/Jquery Convert string to array
<p>i have a string </p> <pre><code>var traingIds = "${triningIdArray}"; // ${triningIdArray} this value getting from server alert(traingIds) // alerts [1,2] var type = typeof(traingIds ) alert(type) // // alerts String </code></pre> <p>now i want to convert this to array so that i can iterate</p> <p>i tried </...
javascript jquery
[3, 5]
2,178,973
2,178,974
How to fetch content from a webpage?
<p>I want to fetch div content from a webpage and to use it in my page.</p> <p>I have the url <a href="http://www.freebase.com/search?limit=30&amp;start=0&amp;query=cancer" rel="nofollow">http://www.freebase.com/search?limit=30&amp;start=0&amp;query=cancer</a><br /> I want to fetch div content with id artilce-1001. Ho...
php jquery
[2, 5]
5,867,330
5,867,331
Is it possible to set height and width of image which was assigned to a label dynamically
<p>Hi all i am using the code below to append image to a <code>label</code> text </p> <p><code>lblPopUp.Text = "&lt;img src='Popup(Images)/notfound.png' /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Access Denied,Contact Administrator";</code></p> <p>This results me as follow when loaded</p> <p><img src="http://i.st...
c# asp.net
[0, 9]
3,498,452
3,498,453
Jquery inside foreach loop
<p>I have this jquery code in a foreach loop. Basicaly the variable $perf gets a new value with every loop. How can I use jquery to display the different $perf value with each loop? Is it possible?</p> <pre><code> foreach ($perfs as $perf): &lt;script type="text/javascript"&gt; $(document).ready(function(...
php jquery
[2, 5]
1,403,430
1,403,431
Using a Details View, is there any way during Page_Load (or anywhere) to only display non-null fields?
<p>I've been receiving help with a program I've been working on from you guys (and I really appreciate it as I'm fairly new to <code>ASP.NET</code>), but now I'm stuck again.<br> I've got my <code>List&lt;Products&gt;</code> that contains one Product object with 17 properties(representing the fields). Some of these pr...
c# javascript asp.net
[0, 3, 9]
1,251,494
1,251,495
Querying Servers
<p>I want to query few game servers.</p> <p>I have made a server refresher in Java which queries each server in a loop one by one.</p> <p>Will changing to C++/C or PHP make querying faster or should i stick to Java ??</p> <p>UDP Packets are sent / received to query a server.</p> <p>Also, is there any faster way to ...
java php c++
[1, 2, 6]
5,932,872
5,932,873
Remove HTML element using Javascript in android
<p>I am using <code>Webview</code> to display the html page and i am successfully able to hide my html element but my problem is it hide after taking some time i want to hide when page load every time in <code>webview</code> Please help me out.</p> <p>my code is as follows :</p> <pre><code> @Override public ...
javascript android
[3, 4]
354,187
354,188
Refresh GridView After Data is Deleted From DetailView Using C#
<p>When user select any record from the GridView then my DetailView is updated based on the selection of the GridView. So what I am trying to do is that when I delete anything from the DetailView then I want to refresh the GridView so basically I don’t want to show still the deleted record in the GridView. I have tri...
c# asp.net
[0, 9]
2,236,031
2,236,032
How to assign the value of a javascript variable to a php variable
<p>I've a form. </p> <pre><code>&lt;form action="inc/genxml.php" method="post"&gt; &lt;input id="nameTxt" name="name" type="text" value="test"/&gt; &lt;button id="nameSave" class="left"&gt;Save&lt;/button&gt; &lt;/form&gt; </code></pre> <p>And a div element #name</p> <p>When I click the save button, I wa...
php javascript jquery
[2, 3, 5]
1,946,584
1,946,585
$(document).click(): does not fire alerts
<p>Might be simple but I can find a reasonable explanation for that</p> <pre><code>$(document).ready(function(){ $(document).click(function () { alert('ok'); }); }); </code></pre> <p>Does not fire the alert(); I am using the newest google chrome. Does browser put some restriction for that as there is ...
javascript jquery
[3, 5]
2,934,162
2,934,163
Web Apps for cross platform mobile software development?
<p>I am a C++ programmer interested in developing applications for Android as well as the iPhone platform. I have explored both these platforms by writing simple applications in Java (Android) and Objective-C (iphone). But the fact is that I am not comfortable with either of these languages, and it bothers me that I ha...
iphone android
[8, 4]
3,511,981
3,511,982
asp.net threads: attributable to the user that started them
<p>(asp.net 2.0, C#)</p> <p>I need to implement threading that will be:</p> <ol> <li>Attributable to the user that started the thread (e.g. on a callback, I could use an ID or the name of a thread to look up the thread that the user previously started). </li> <li>If the thread is finished, the callback should be able...
c# asp.net
[0, 9]
4,003,675
4,003,676
jquery reset conditional filter
<p>I have 2 dropdown lists on my webform and using jquery trying to filter/reset filter 2nd dropdown elements based on 1st dropdown selection.</p> <pre><code>$(document).ready(function() { $('#dropdown1').change(function(e) { switch ($(this).val()) { case "4": ...
asp.net jquery
[9, 5]
2,823,315
2,823,316
Seperate Values which are saved in one column
<p>i have one column. In that column is saved the fullname(firstname, surname) of a Person. Sometimes it is saved like</p> <pre><code>Michael, Myers </code></pre> <p>and sometimes the name is saved like</p> <pre><code>Michael Myers </code></pre> <p>without a comma between them. </p> <p>If i load the column and sav...
c# asp.net
[0, 9]
945,152
945,153
Developing a algorithm to produce matches for android game?
<p>I have a class that is responsible for creating matches that the user has to complete. After the user completes the match another random match is then loaded..</p> <p>For example, user has to match cards..Red, blue, green. User does this and competes the match.</p> <p>Next match is load user must now complete matc...
java android
[1, 4]
3,202,328
3,202,329
How to harness control of my JQuery coded sliding divs?
<p>Essentially I have 4 divs that take turns sliding in and sliding out with delays and then it recalls the function. Like so:</p> <pre><code>$(document).ready (function bradslide(){ $("#slide1").delay('1000').slideDown('1000').delay('6000').slideUp('1000'); $("#slide2").delay('9000').slideDown('1000').delay('6000')...
javascript jquery
[3, 5]
2,929,690
2,929,691
how to get correct ClientID
<p>update: asp.net</p> <pre><code>&lt;asp:RadioButtonList runat="server" ID="rbl" RepeatDirection="Horizontal"&gt; &lt;asp:ListItem Text="None" Value="0" Selected="True" Enabled="true" /&gt; &lt;asp:ListItem Text="Float" Value="1" Selected="False" Enabled="true" /&gt; &lt;asp:ListItem Text="Float1" Value="...
jquery asp.net
[5, 9]
4,215,473
4,215,474
Event for add/edit/delete Contact in android
<p>Is there any event for add/edit/delete in Contact List?</p>
java android
[1, 4]
3,632,409
3,632,410
Change the html of span through javascript
<p>I am developing an asp.net web app in which I am using a span tag </p> <pre><code>&lt;span id = "ptxtAgree" &gt; &lt;%: data.Agree %&gt;&lt;/span&gt; </code></pre> <p>and I want to update the span text through javascript and in script I am writing </p> <pre><code> $("#ptxtAgree").text(msg); </code></pre> <p>If...
c# javascript jquery asp.net
[0, 3, 5, 9]
5,569,491
5,569,492
Android Hardware (mobile )
<p>i want to connect Sony Ericsson xperia x10 (android mobile) to the eclipse (emulator) i was able to connect htc mobile to the eclipse.but i could not connect the sony mobile to the eclipse.can you please help me? </p>
java android
[1, 4]
3,475,929
3,475,930
Why my 'else' do not work?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2076988/why-does-id-return-true-if-id-doesnt-exist">Why does $(‘#id’) return true if id doesn’t exist?</a> </p> </blockquote> <p>I have a very simple js function:</p> <pre><code>function refresh(ltr) { if (...
javascript jquery
[3, 5]
460,204
460,205
Separate click event for first three td and last td not working in Dom change
<p>I am having four column in my table. When we click one of the first three td that will do one operation and when we click last td that will do other kind of operation. I did like this</p> <pre><code>$('#items_list tr td').not('#items_list tr td:last-child').click(function() { // Do something } $("#items_list tr...
javascript jquery
[3, 5]
921,707
921,708
How to apply validation on radio button user controls using java script
<p>Having more than one radio button user controls generate dynamically how to applying validation on those radio button and different controls generate dynamically. </p>
javascript asp.net
[3, 9]
839,431
839,432
How to select elements within boundary?
<p>I'm trying to figure out a way to select elements that are overlapped (and contained, completely covered up) within an absolutely positioned div.</p> <p>I basically need to select elements within a certain pixel boundary. How can this be done using jQuery?</p>
javascript jquery
[3, 5]
2,456,907
2,456,908
Using Power Manager
<p>My app sets an alarm. While waiting for the alarm my phone closes the screen. When the alarm sounds the screen is dark so I press the power key and the screen lights up but I now have to touch the Lock button to access the app interface. I would prefer that the Lock has been disposed off when the user responds...
java android
[1, 4]
2,456,768
2,456,769
jQuery (or regular Javascript) execute function when page is loaded AFTER back button is pressed
<p>I've seen this on a lot of websites, but I can't figure out exactly how to do it:</p> <p>When a function is executed, the URL changes to whatever.com/page/#something and then when that url is accessed, the function is executed again. I know how to make that work when the page is first loaded, but I can't figure out...
javascript jquery
[3, 5]
5,549,611
5,549,612
jQuery anchor preventDefault
<p>Using jQuery, how do I get the value from a textbox and then load a new page based on the value?</p> <p>For example, lets say the textbox contains "hello" on page1.php, how do I change the default behavior of an anchor tag to now load the following</p> <p>page2.php?txt=hello</p> <p>I have the following so far:</p...
javascript jquery
[3, 5]
5,407,211
5,407,212
Targeting the last PARENT table-row (tr), not the CHILD table-row (tr)
<p>I'm attempting to target the last parent table row within a table that has children table-row elements inside of it. I've tried the below jQuery to target the :last pseudo, however, like expected, it is targeting the absolute last table-row element within the targets parent table.</p> <pre><code>$('table[id*="dgReg...
javascript jquery
[3, 5]
4,696,501
4,696,502
Decoding strings in PHP
<p>I am working on a PHP application that has to parse strings being sent by another program. the problem is that some strings have octal characters and some other escapes in the middle.</p> <p>So instead of "script>XYZ", I am getting:</p> <p><code>\103RI\120T&gt;XYZ%6En \151\156 d%6Fcu\155%65n..</code></p> <p>And I...
php javascript
[2, 3]
1,216,450
1,216,451
change TextBox text after button click in Facebox plugin
<p>I have a problem: My facebox has a button and textbox(asp.net server controls) I want when i click the button to change the textbox text here is my aspx code:</p> <pre><code>&lt;div id="FaceDiv" style="display:none" &gt;I'm your facebox&lt;br /&gt; &lt;asp:Button ID="ShowButton" runat="server" Text="Show text" ...
jquery asp.net
[5, 9]
5,806,140
5,806,141
How to do undetectable redirect
<p>I want to be able to go from one site to another but not as a redirection. In other words I want to fake that I inserted a particular link directly to my browser input field instead of clicking the link on my page.</p> <p>So I've tried "HTML meta refresh", JavaScript redirection and PHP header() redirection. I was ...
php javascript
[2, 3]
4,691,586
4,691,587
Scan PDF files and upload it through php
<p>How can I upload pdf files after scanning it through scanner feeder ? I am using <a href="http://www.chestysoft.com/ximage/default.asp" rel="nofollow">OCX</a> plugin to upload images to server, but in the application I am working on, I have to upload PDF document to server. Can you suggest me plugin or library even ...
php javascript
[2, 3]
5,401,120
5,401,121
ExpandableListView's onChildClick - Relations?
<p>I have an ExpandableListView where each group has two child rows (one for deleting the group and one for editing the group):</p> <pre><code>Item 1 Edit Delete Item 2 Edit Delete Item i .. </code></pre> <p>Im having problems in the onChildClick method registering under which item (Item1/Item2/Itemi), dele...
java android
[1, 4]
709,027
709,028
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]
5,110,595
5,110,596
Dynamically set value of input box
<p>I have an aspx page with an input textbox control for which i want to set a value. I want it so that the value dynamically changes based on the current text of the textbox when the form is submitted. Does anyone know how to do this without jquery?</p>
javascript asp.net
[3, 9]
5,615,298
5,615,299
Json output for android
<p>i am using this <a href="http://p-xr.com/android-tutorial-how-to-parse-read-json-data-into-a-android-listview/" rel="nofollow">tutorial</a> </p> <p>please guide me how can i customized it for my mysql table which is like this <img src="http://i.stack.imgur.com/3ufhY.png" alt="enter image description here"></p> <p...
php android
[2, 4]
4,913,089
4,913,090
onTouchEnd not working for Android Froyo 2.2?
<p>The following html when opened in the default browser on Android 2.2 registers touchstart and touchmove events properly, but not touchend events. Any idea why?</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"&gt; &lt;html&gt; &lt;head&gt; &lt;meta name="viewport" content="width=device-width, ...
javascript android
[3, 4]
1,204,284
1,204,285
Trying to set value on hidden parameter on click of submit button in form
<p>Trying to set a parameter on a hidden field on click of submit button.</p> <pre><code> $('.delete').on('click', function() { $('#id').val('1000'); }); </code></pre> <p>This is the hidden field:</p> <pre><code> &lt;input type="hidden" name="itemId" id="id" /&gt; </code></pre> <p>And this is one ...
javascript jquery
[3, 5]
5,122,920
5,122,921
Adding, Removing and Adding Element again removes its Event
<p>I have a hyperlink with an ID when clicked will perform a certain event using JQuery. JQuery records the existence of this link on document load. Some time during the course of the users visit. I remove that link and the re-add it later. However, that even is not fired off again when that link is clicked after it ha...
javascript jquery
[3, 5]
2,717,154
2,717,155
asp.net cache css and script but not the page
<p>In my master page in the Page_Load method, I have this line:</p> <pre><code>Response.Cache.SetCacheability(HttpCacheability.NoCache); </code></pre> <p>Basically, I don't want to cache the page. I do want to cache the .js and .css files but when I reload the page, these files don't get loaded from the browser cache...
c# asp.net
[0, 9]
2,676,552
2,676,553
can php variables be defined inside a javascript code
<p>The code:</p> <pre><code>if( 4 &gt; 1 ) { alert('ok'); &lt;?php $mode = true;?&gt; } else { alert('not-ok'); &lt;?php $mode = false;?&gt; } var_dump($mode); </code></pre> <p>This alerts OK, but the <code>var_damp()</code> shows <code>bool(false)</code></p> <p>Why is var_dump showing that $mo...
php javascript
[2, 3]
1,430,973
1,430,974
Is there an event that fires when an element's `class` attribute changes?
<p>I have a <code>&lt;ul&gt;</code> element on my page with a few children. A <code>class</code> attribute will be added to these children at some point, </p> <p>Before</p> <pre><code>&lt;ul&gt; &lt;li&gt;1&lt;/li&gt; &lt;li&gt;2&lt;/li&gt; &lt;li&gt;3&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>After</p> <pre><...
javascript jquery
[3, 5]
147,888
147,889
Android radio button custom attributes
<p>I have a 4 static radio buttons. I want to add custom attributes to radio buttons.</p> <pre><code>RadioButton btn_radio1= (RadioButton)findViewById(R.id.btn_radio1); //I just can change id of element,than get it. btn_radio1.setId(44); </code></pre> <p>Thanks.</p> <p>---UPDATED XML</p> <pre><code>&lt;RadioButton...
java android
[1, 4]
1,585,197
1,585,198
bind callback parameter
<p>I have this code to set "State Machine" in view of a javascript application:</p> <pre><code> var Events = { bind: function(){ if ( !this.o ) this.o = $({}); this.o.bind(arguments[0], arguments[1]) }, trigger: function(){ if ( !this.o ) this.o = $({}); th...
javascript jquery
[3, 5]
3,669,966
3,669,967
Why does jQuery.ready run when the page isnt ready?
<p>so often i put jquery document ready functions at the bottom of my html, just to have it run before all the elements of the page are loaded. i'm tired of my functions not working because resources arent finished loading on the page, jquery.ready keeps saying the elements are done loading when they arent! who wants t...
javascript jquery
[3, 5]
3,236,838
3,236,839
Maximum stack size over reached
<pre><code> var myArray = []; $('#students_targeted option:selected, #cc_students_targeted option:selected').each(function(){ myArray.push(data); }); </code></pre>
javascript jquery
[3, 5]
3,381,365
3,381,366
JQuery UI Timepicker is not open when click the text field
<p>I have one question regarding to JQuery UI Timepicker. I have multiple text fields.</p> <pre><code>&lt;input type="text" style="width: 31px;" id="timepicker.[1]" name="mon1" readonly="true"/&gt; &lt;input type="text" style="width: 31px;" id="timepicker.[2]" name="mon2" readonly="true"/&gt; &lt;input type="text" sty...
php jquery
[2, 5]
4,708,802
4,708,803
URL of current script in JavaScript
<p>How can I find out the URL of the JS file that was called?</p> <p>Let's say the JS file (which is part of a library) and the HTML file (which is the application) are on a different server. To find out the URL of the HTML file is easy. But how can I find out the server name and path of the JS files' server within th...
javascript jquery
[3, 5]
1,809,328
1,809,329
Is there a way to play the role of Javascript with any other language like C#?
<p>Is there a way to play the role of Javascript with any other language like C#? One way came up in my head is, having silverlight installed, using C# instead of Javascript for all the client side scripting (Though C# is not a scripting language). Is it possible?</p> <p>I am not talking about something like GWT(Java)...
c# javascript
[0, 3]
1,356,127
1,356,128
Javascript code execution going inside if condition even though condition is false
<p>This is one of the weirdest behavior I have seen. Following is the js code snippet:</p> <pre><code>else if ($("*[id$=ddlDefaultPurpose]").val() == 2) { if ($("*[id$=ddlJobCategory]").val() == -1) { ShowMessageStrip(errorJobCategory); formIsValid = false; } //else if (!TryParseSalaryOffer...
javascript jquery
[3, 5]
1,773,198
1,773,199
click function for retrieving div
<p>how can i retrieve find out which button click is from which div. Basically i have multiple div</p> <pre><code>&lt;div id="rare1"&gt; &lt;input type=button value="OK" id=btn&gt; &lt;/div&gt; &lt;div id="rare2"&gt; &lt;input type=button value="OK" id=btn&gt; &lt;/div&gt; &lt;div id="rare3"&gt; &lt;input type=button ...
javascript jquery
[3, 5]
2,417,975
2,417,976
Putextras not working
<p>I have multiple variables to pass from one activity to another. </p> <p>I have this in the first activity:</p> <pre><code>public void onClick(View v) { switch(v.getId()){ case R.id.bStartGame: Intent i = new Intent(StartScreen.this, GameScreen.class); Bundle extras = new Bundle(); extras.putStr...
java android
[1, 4]
3,527,247
3,527,248
How can i pass values to the method of class?
<p>I have this class </p> <pre><code> class Registration { function registration() { print_r($_REQUEST); $fname = htmlspecialchars(trim($_POST['fname'])); $lname = htmlspecialchars(trim($_POST['lname'])); } $obj_reg = new registration(); } </code></pre> <p...
php jquery
[2, 5]
1,249,318
1,249,319
Java applet on a site to take a screenshot?
<p>I want to do the following:</p> <ol> <li>Create a java applet without display and put it on my site. </li> <li>When the user enters, he allows the applet to run and for him nothing changes (he does not see any screen from that applet). </li> <li>When he clicks on a button, I want an onclick event to send the applet...
java php javascript
[1, 2, 3]
966,353
966,354
How to get the day difference b/w two dates without using any platform library in java?
<p>I have a question: Create a function that returns day difference between two dates (inclusive), without using any function provided by the platform or external library. The function must work for all dates in the range of 1st January, 1901 through 31st December 2999, inclusive. For example, there are 5 days in the r...
java android
[1, 4]
3,036,963
3,036,964
Javascript Memory Usage
<p>In the following code: </p> <pre><code>$(document).ready(function() { var content = ""; for (var i = 0; i &lt; 1000; i++) { content += "&lt;div&gt;Testing...&lt;/div&gt;"; } $("#Load").click(function() { $("#MyDiv").empty(); $("#MyDiv").append(content); return false; ...
javascript jquery
[3, 5]
3,235,201
3,235,202
allow only Arabic Letters in textbox using JavaScript
<p>I have aspx page that have TextBox control for " User Arabic Name" I want to Allow user to type only arabic letters in textbox using JavaScript</p>
javascript asp.net
[3, 9]
5,363,667
5,363,668
How to get all CheckBoxes using C#?
<p>In <code>Asp.net</code>. how can I access every <code>checkbox</code> exists in the page using <code>C#</code> code ?</p>
c# asp.net
[0, 9]
744,315
744,316
Dropdowlist in Gridview footer not populating
<p>I have the following code for populating a dropdownlist in my gridviews footer.</p> <pre><code> if (!IsPostBack) { GridViewRow FooterRow = (GridViewRow)grdTime.FooterRow; if (FooterRow != null) { QuartersTableAdapter Quarters = new QuartersTableAd...
c# asp.net
[0, 9]
3,717,066
3,717,067
How to run a javascript function before postback of asp.net button?
<p>I'm using Javascript to create a DIV element and open up a new page by using onclientclick. This works great. Now, I need to write to it from the server side and this element must be created before it is posted back.</p> <p>How do I get the javascript to execute before the postback?</p> <p>Currently, I have to pre...
asp.net javascript
[9, 3]
1,372,907
1,372,908
Post elements that is not in the form tag?
<p>I have code like so:</p> <pre><code>&lt;form enctype="multipart/form-data" method="POST" action="blabla.php" class="addToCart"&gt; &lt;input type="button" onclick="addToCartMulti();" value="Add Tracks to Cart" id="addToCart" name="addToCart"&gt; &lt;/form&gt; </code></pre> <p>Outside of the form tags, I have tra...
php javascript
[2, 3]
288,097
288,098
Javascript is broken in html page source
<p>I have a java web application. I am using jquery in it. I am calling some javascript from my jsp page. I have used EL, jstl tag in my page. Some of jquery variables is assigned from jsp variable. A strange problem occurs randomly. Some of javascript line have broken. I found those from Page Source option of browser....
javascript jquery
[3, 5]
5,986,567
5,986,568
What is this code in Javascript?
<p>On some JS code on some sites I see Javascript code such as this:</p> <pre><code>SomeName.init = (function () { // some stuff })(); </code></pre> <p>I mean, this is not a jQuery plugin code such as this:</p> <pre><code>(function( $ ){ $.fn.myPlugin = function() { // Do your awesome plugin stuff here ...
javascript jquery
[3, 5]
3,439,555
3,439,556
ASP.NET Custom Membership, Sessions
<p>Howdy, I recently wrote with the help of you guys a login control which logs in against a custom database. I did this using the "validate" method in my Custom Membership control ...</p> <p>However I want to set a couple Informations in a Session, I am not able to do that in the Membership Generator ... I have to do...
c# asp.net
[0, 9]
3,248,252
3,248,253
Master page post back on click of menu item?
<p>I have a master page wherein I have menu list. When I click on any of the menu item my entire page gets post back. I do not want this to happen. Instead I want only the content that needs to be refreshed/change. </p> <p>Any quick / easy resolution to the above issue? </p> <p>Please help. </p>
c# asp.net
[0, 9]
1,287,506
1,287,507
Accessing javascript array from function
<p>Okay, so in my <code>&lt;head&gt;</code> section i have the following:</p> <pre><code>&lt;script&gt; var userDefaultInfo = '&lt;?=$userInfo;?&gt;'; var jGets = new Array (); &lt;? if(isset($_GET)) { foreach($_GET as $key =&gt; $val) echo "jGets[\"$key\"]=\"$val\";\n"; } ?...
php jquery
[2, 5]
1,115,704
1,115,705
asp.net,c#.net Read Only Field
<p>I have a textbox.Texbox is readonly. And on Page_Load the Texbox automaticlly displayed with a value from the data base.i have a 'if' loop for check the text box value is null or not.But i cant retrive the textbox value.What may be the reason for that? my web page code is</p> <pre><code>&lt;asp:TextBox ID = "text1"...
c# asp.net
[0, 9]
3,005,612
3,005,613
How to use SVN (Apache SubverSion) in android project to maintain the version
<p>I want to use SVN (Apache SubverSion) on my android project. To maintain version of the application. Can any one please tell me what are the step by step procedure to Install and use the SVN In the project. I am using Eclipse Helios (3.6). </p> <p>Thanks In advance..</p>
java android
[1, 4]
4,396,869
4,396,870
What's the difference between $.proxy and the native js 'call' / 'apply'?
<p>I believe they both allow you to control the value of 'this', but beyond that, I'm a little unclear and Google/SO isn't helping much so far. Any clarification appreciated. I did find this, but I'm skeptical that it tells the whole story: </p> <blockquote> <p>"When I first learned about jQuery's proxy() method, I ...
javascript jquery
[3, 5]
4,390,417
4,390,418
changing an elements css position after scrolling down the page
<p>I am messing around with some jquery trying to get to grips with it.</p> <p>I have a ul nav which has a absolute position set but after I scroll the page down by 200 pixels i would like that to switch to position fixed so that the nav always stays on the page.</p> <p>How would I do this?</p> <p>below is the examp...
javascript jquery
[3, 5]
594,554
594,555
short to byte and byte to short conversion in Android
<p>I am developing a software in Android. In a particular portion of software, I need to convert short to byte and re-convert to it to short. I tried below code but values are not same after conversion.</p> <pre><code> short n, n1; byte b1, b2; n = 1200; // short to bytes conversion b1 = (byte)(n &amp; 0x00f...
java android
[1, 4]
5,357,513
5,357,514
Selecting by ID attribute using JQuery in ASP.NET
<p>I've just started using JQuery in VS 2008, and so far I like it! But, I'm confused about how I should be using JQuery in order to select asp.net controls on a webpage.</p> <p>For example, I have the following code (just a mock-up):</p> <pre><code>&lt;asp:textbox id="txtSomeData1" runat="server" text="Some Data!!"&...
asp.net jquery
[9, 5]
1,446,150
1,446,151
android - fc without an obvious reason
<p>Can someone tell me what is wrong with this code. On my 3 different devices it works totally fine but a lot of my app users are reporting fc when this activity starts</p> <p>Logcat from every one of then is saying NullPointerException in onCreate</p> <p>Code: <a href="http://pastebin.com/E3WyeYdN" rel="nofollow">p...
java android
[1, 4]
2,219,075
2,219,076
Remove statically added controls at runtime
<p><strong>The Scenario:</strong> I have an asp.net website where I show a div popup on page load for taking a few user details. When a user inputs the details, or closes the popup, I set up a flag cookie so that the popup is not displayed again for the user. The div is in the MasterPage so that it is displayed no matt...
c# asp.net
[0, 9]
2,607,509
2,607,510
JavaScript: How do I debug in chrome to find out why this code doesn't work?
<p>How do I use the JavaScript console to see why this code:</p> <pre><code>// Empty info if ($('.perma-info').text() == '') { $('.perma-info').remove(); } </code></pre> <p>Doesn't work in this page: <a href="http://dev-indiehaz.tumblr.com/post/22897976111/vans-vw" rel="nofollow">http://dev-indiehaz.tumblr.com/po...
javascript jquery
[3, 5]
858,656
858,657
Need some suggestion to buys books of javascript and jquery
<p>May be this question duplicate or redundant but i want to elaborate my question so:</p> <p><strong>i have tried looking to google and flipkar,amazon that ...but by just looking at the book you can't really judge how it will be...and it's always good ask someone who has experience...because i can't keep on buying to...
javascript jquery
[3, 5]
1,197,687
1,197,688
Parse array of values - jQuery
<p>Am calling a webservice from my jQuery to fetch both <code>Staff</code> and <code>Student</code> details. In my web service I have values for Staff as well as Students, and am returning these as array of strings. While returning values am just serializing these two as </p> <pre><code>[WebMethod(EnableSession = true...
jquery asp.net
[5, 9]
941,365
941,366
Passing Control Id from Linkbutton in a gridview
<p>How do I pass the Control ID in a gridview that is derived from a stored procedure into a variable. I will use the variable to pass into the database later on to return some results. Thanks.</p>
c# asp.net
[0, 9]
1,780,504
1,780,505
Using jQuery to echo text
<p>Is it possible to use jQuery to echo text in place of a script tag? More precisely, is there a way to accomplish</p> <pre><code>&lt;script type="text/javascript"&gt; document.write("foo"); &lt;/script&gt; </code></pre> <p>... without the use of <code>document.write</code>? I am not happy about using <code>docu...
javascript jquery
[3, 5]
4,600,696
4,600,697
How to add fast/slow buttons to show replay on google map
<p>hey i m working on google maps i am saving route in an xml file and then showing replay to user.Now i want to add fast,slow,normal buttons to this replay how can i do this right now i m showing replay using fixed interval</p> <pre><code>if (i &lt; latlngvar.length - 1) { interval = parseInt(docu...
c# javascript
[0, 3]
837,394
837,395
Displaying multi-page/frame TIFF file in ASP.Net 2.0
<p>I'm trying to display a multi-page/frame TIFF file on a web page. All I get displayed is the first page.<br> I can also display any single page in the mutli-page file using SetActiveFrame to select the appropriate page. I just can't display the entire file.<br> My code:</p> <pre><code>Response.ContentType = "image/...
c# asp.net
[0, 9]