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,226,190
4,226,191
intercept form submit with jQuery
<p>I wanna intercept a submit via jQuery and first check if a file is present on the server. If it's present continue with the request, if not display a message and dont send the request. This is what I have:</p> <pre><code>$("#methodForm").submit(function(e){ checkIndex('upload/segments.gen').done(func...
javascript jquery
[3, 5]
3,688,962
3,688,963
Binding buttons to textbox
<p>I created this jFiddle here: <a href="http://jsfiddle.net/NkxHD/3/" rel="nofollow">http://jsfiddle.net/NkxHD/3/</a> in which I want to bind buttons to textbox. So if I click '7' I want 7 to be displayed in the textbox. Something like this: </p> <pre><code>function(e){} -- </code></pre> <p>How should I do this?</p>...
javascript jquery
[3, 5]
1,063,364
1,063,365
Detecting 1st Directory if its not english
<p>I have a website where its got translated languages which are the following.</p> <p>English, German, Spanish, French and Italian.</p> <p>I have a select box which when selected it should change the location to the translated language.</p> <p>the main issue I'm having is figuring out how to get the url WITHOUT the...
php javascript jquery
[2, 3, 5]
5,811,349
5,811,350
jQuery onhide event handler
<p>In jQuery, I'm hiding my elements using <code>.hide();</code>.</p> <p>Is there an evert handler that is fired when I hide something? You see, I have a bunch of elements in my code, and I'm hiding them or showing them (using jQuery) a bunch of times. To keep things in check, in an efficient way, I would love to us...
javascript jquery
[3, 5]
2,418,491
2,418,492
accepting only character input in text box
<p>How to validate input box for only text input using jquery and php e.g name <strong>_</strong> must accept only text input and no special character like "aaa@ or @@@ aaaa" and alpha numeric like "aaa123"</p>
php jquery
[2, 5]
3,454,710
3,454,711
addEventListener not working in ie8
<p>I have created a table cell and checkbox dynamically.. I have used <code>addEventListener</code> to call a function on click of the check box, which is working in google chrome and firefox but having problems in ie8.. Can some one please help me on how to solve this.. this is my code</p> <pre><code>var cell1 = row...
javascript jquery
[3, 5]
3,187,898
3,187,899
how to run python in iphone?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/43315/can-i-write-native-iphone-apps-using-python">Can I write native iPhone apps using Python</a> </p> </blockquote> <p>this post <a href="http://stackoverflow.com/questions/43315/can-i-write-native-iphone-apps...
iphone python
[8, 7]
3,446,269
3,446,270
Asp.net is it possible to check page_load a click event is triggered?
<p>When a button is clicked, I would like to check whether a button is clicked in my page_load. Is this possible? I am using asp.net 2.0 C#</p>
c# asp.net
[0, 9]
3,312,325
3,312,326
How to check browser's JavaScript is enabled or not
<p>My application depends on JavaScript, I want to check the client browser's JavaScript is enabled or not and raise an alert message if its turned off.</p>
javascript asp.net
[3, 9]
367,515
367,516
jQuery serialize remove empty Select
<p>I have a big form, that will be serialized by a jQuery function.</p> <p>The problem is that I need to remove from this form before being serialized all the empty values.</p> <p>I found a way to successfully remove all the empty input text fields, but not the selections.</p> <p>It does not work properly with selec...
javascript jquery
[3, 5]
5,996,438
5,996,439
ASP.NET C# Nested controlls access
<p>I've got something like that</p> <pre><code>&lt;asp:ListView ID="lv" runat="server"&gt; &lt;LayoutTemplate&gt; &lt;asp:Literal ID="litControlTitle" runat="server" /&gt; &lt;label id="test" runat="server"&gt;dw&lt;/label&gt; &lt;asp:PlaceHolder ID="itemPlaceHolder" runat="server" /&gt; &lt;/LayoutT...
c# asp.net
[0, 9]
5,119,289
5,119,290
Reverse order of operations for OnClick and OnClientClick?
<p>I have some simple javascript that I'd like to run when a button is clicked, but I also want some postback action to occur on the server. The logical code for this looks like this:</p> <pre><code>&lt;asp:Button ID="btnOK" runat="server" Text="Save Changes" OnClientClick="UpdateParent();" OnClick="btnOK_Click" /&gt...
asp.net javascript
[9, 3]
2,832,765
2,832,766
FadeTo across sliced images
<p>I have an image that is sliced into 9 images into multiple div.</p> <p>I want to implement fading focus on 3 group of sliced images. Once I mouseenter to a group of images, the other group of images will fadeout.</p> <p>The problem arises when I hover across the images within the same group, the other images will ...
javascript jquery
[3, 5]
2,285,004
2,285,005
ASP.NET access client side update on postback
<p>I am using two listbox for moving items from one to another using jquery. Auto postback is set to false for both the listboxes. Is there a way to access the items server side on postback? </p> <p>Thanks</p>
jquery asp.net
[5, 9]
2,820,881
2,820,882
What is possible in Java not in C# and vice versa
<p>In our real life Java and C# both has a significant effect. Personally I love Java because of its complexity also I have experience in C# too. I want to know, from desktop application to robotics, web application to machine learning what are the fields which are possible in Java but not currently available in C# and...
c# java
[0, 1]
2,222,894
2,222,895
Retrieve Dynamic Control Value
<p>Guys please help me with this..</p> <ol> <li>I am dynamically adding 3 textboxes, 2 radiobuttons and 5 multiline textbox controls in a table <strong>ON CLICK OF A BUTTON</strong> in asp.net</li> <li>I want to retrieve and store the values of each and every control.</li> </ol> <p>I am very new to asp.net. Please h...
c# asp.net
[0, 9]
651,796
651,797
Use jQuery to scroll to the bottom of a div with lots of text
<p>I have a div with a scrollbar on the right when there is a lot of text in it. I tried to use this code to scroll to the bottom of a div when the page loads, but I am not having much luck. How can it be achieved?</p> <p>Style:</p> <pre><code>div.messageScrollArea{width:100%; max-height:300px; overflow:auto;} </code...
javascript jquery
[3, 5]
792,356
792,357
In javascript/jquery what is the best way to convert a number with a comma into an integer?
<p>I want to convert the string "15,678" into a value 15678. parseInt and parseFloat are both returning 15 for "15,678." Is there an easy way to do this?</p>
javascript jquery
[3, 5]
2,634,374
2,634,375
java android load items to listview from database?
<p>Okay so i have a database, and i want it so you can favorite items.</p> <p>Would i make it so you can save items then it will load it into a list view?</p> <p>this is my load thing</p> <pre><code>//Calls the database, gets a list of names. // if listofnames.size()==0 keep name, otherwise // change name to...
java android
[1, 4]
4,570,712
4,570,713
How to edit the style attribute from an element with Jquery
<p>I need to edit the style attribute with jQuery. Here is what I am trying to do. </p> <p>I have a div</p> <pre><code>&lt;div style="background:url('images/image.png') no-repeat scroll 0 0 transparent;color:red;"&gt; hello &lt;/div&gt; </code></pre> <p>and I need to change the <code>background</code> to something e...
javascript jquery
[3, 5]
154,139
154,140
How to prevent default link behavior if element inside of link is clicked
<p>I have a link that looks like this:</p> <pre><code>&lt;a href="page.html" class="myLink"&gt; Link text &lt;div class="toggle"&gt;x&lt;/div&gt; &lt;/a&gt; </code></pre> <p>When they click on the <code>x</code> in toggle I want to prevent the link from navigating, but if they do click on the <code>Link Text</cod...
javascript jquery
[3, 5]
1,885,698
1,885,699
strange behavior on display|display:none elements
<p>I have a custom modal dialogue that consists of a simple div and some css. There are 2 buttons (OK, CANCEL) buttons. The CANCEL button is always the same; it hides the modal dialogue via <code>onclick="$('#div').css('display','none')"</code> (NB: this is also how the modal is shown; <code>('display','')</code>). I a...
javascript jquery
[3, 5]
1,695,258
1,695,259
adding html tags to the head to make remove title bar when making a web app
<p>I want to remove the title bar in my HTML/JS application/responsive site. The site is mainly responsive but is a one-page app. However, I want to remove the header bar on mobile and iPad.</p> <p>I am already using:</p> <pre><code>window.scrollTo(0,0); </code></pre> <p>which works for the iPhone but not the iPad. ...
javascript jquery
[3, 5]
2,276,371
2,276,372
How to manage database with around 400,000 records in iPhone and Android?
<p>I have a requirement for a database with around 400,000 records in iPhone and Android. Any best method in doing this? Is it possible?</p>
android iphone
[4, 8]
5,985,938
5,985,939
InnerHTML attribute empty on span tag during page submit - jQuery/ASP.NET
<p>I have a hidden <code>TextBox</code> control on my page that updates a <code>span</code> tag on the <code>keyup</code> event using jQuery. When the page is posted back to the server, the <code>innerHTML</code> attribute is empty.</p> <p>How do I get the value that was set during the <code>keyup</code> event?</p> ...
asp.net jquery
[9, 5]
4,398,119
4,398,120
android and SQL Server
<p>i am developing an application that reads and writes data remotely on an SQL Server, the application is ment to run on an android devices. i know that i have to make a java server that uses socket connetion to the android app, i did that and the server connect normally using MS JDBC driver and excutes sql queries an...
java android
[1, 4]
5,274,973
5,274,974
cannot copy a Jquery object into a Jquery object
<p>Hi I am trying to insert a JQuery object inside another by doing the following:</p> <pre><code>var htmlCode = $("&lt;div id='"+data.layoutDescriptions[i].id+"'&gt;&lt;/div"); if(data.contentRef == "RecursiveContactSubForm"){ if(htmlArray[2]){ alert("in here"); htmlCode.append(h...
javascript jquery
[3, 5]
2,654,469
2,654,470
formatting for concatenated string jquery
<p>Hi I'm trying to get this</p> <pre><code>$( "&lt;div class=\"images\ style=\"background:url('" + item.link + "')no-repeat top center;\"/&gt;").appendTo("#images").wrap("&lt;a target=\"_blank\ href='" + item.link + "'&gt;&lt;/a&gt;"); </code></pre> <p>to output correctly but I'm not very hot on concatenating javasc...
javascript jquery
[3, 5]
753,360
753,361
JQuery Check if input is empty not checking onload?
<p>I am using this code to check if an inputbox is empty or not and it works fine but it only checks check a key is press not when the page loads.</p> <p>It's does what it should but I also want it to check the status when the page loads.</p> <p>Here is the current code:</p> <pre><code>$('#myID').on('keyup keydown k...
javascript jquery
[3, 5]
3,511,106
3,511,107
Inherit problem in asp.net
<p>in my web application i copy and paste the code from other site to in my page also the source code starting form when i run the application it is giving the error like this</p> <h2>Server Error in '/DomainIV' Application.</h2> <p>Compilation Error Description: An error occurred during the compilation of a resou...
c# asp.net
[0, 9]
4,496,831
4,496,832
Why my events aren't registered after postback?
<p>I have a problem where I have a page with a checkbox :</p> <pre><code>&lt;asp:CheckBox runat="server" ID="chkSelectAll" OnCheckedChanged="chkSelectAll_CheckedChanged" EnableViewState="true" Text='&lt;%# CommonFunctions.GetText(Page, "CreateTask", "chkSelectAll.text") %&gt;' AutoPostBack="true" /&gt; </code></pre> ...
c# asp.net
[0, 9]
1,345,844
1,345,845
Android Supporting Multiple Screens with fixed width icons
<p>This may not be explained the best but here it goes. I have a window of 2 by 2 square icons. I found a custom layout script that spaces these equally on the screen. These 4 icons consist of a square background with a little image and title. At the moment the width and height are defined in dp. But that stretches or...
java android
[1, 4]
399,880
399,881
Javascript how to make sure JQuery .append is displayed
<p>I have the following javascript function, which uses <code>.append</code> from JQuery. However it only works if I add <code>alert()</code> at the beginning of the function. I have found out the reason for this behavior is due to the asynchronous way AJAX works. </p> <p>How can I make sure that this function displa...
javascript jquery
[3, 5]
5,722,261
5,722,262
Error calling getResources().openRawResource()
<p>I have to read a file called <code>hello.txt</code> using the following code on java/eclipse/android:</p> <pre><code>import java.io.InputStream; public class Tokenirzer { public String ReadPath () { InputStream inputStream = getResources().openRawResource(R.raw.hello); } } </code></pre> <p>Howeve...
java android
[1, 4]
3,109,705
3,109,706
JavaScript / jQuery closure function syntax
<p>Can someone please explain the differences between the following functions:</p> <pre><code>(function($){ // can do something like $.fn.function_name = function(x){}; })(jQuery); </code></pre> <p>Could I use jQuery in the next function?</p> <pre><code>(function(){ }()); </code></pre> <p>And is the followin...
javascript jquery
[3, 5]
5,841,413
5,841,414
How can i display an alert after Response.End
<p>I already know, codes after the <code>Response.End()</code> will not work. I am trying to <code>alert</code> a <code>message box</code> after <code>Response.End</code>. Basically what i am doing is i will read data from <code>Excel</code> file and check for the missing data in the excel file. I will collect all the ...
c# asp.net
[0, 9]
5,725,351
5,725,352
setDrawingCacheEnabled
<pre><code>finalImgscreen //My View. finalImage //My Bitmap finalImgscreen.setDrawingCacheEnabled(true); finalImage = finalImgscreen.getDrawingCache(); </code></pre> <p>This works Fine on QVGA screen Emulator/Device,but shows black screen on HVGA screen Emulator/Device.</p> <p>Can you help me out of it.</p>
java android
[1, 4]
1,115,174
1,115,175
Receiving JQuery $.post data and returning specific results with PHP
<p>I'm trying to make a dynamic website on a single webpage and I'm almost there. All that's left is to do some php coding. </p> <p>Here is a few lines of code from my "index.php"</p> <pre><code>$('.open').click(function(){ current = $(this).html(); $.post("source.php", {name: current}, function(src){ ...
php javascript jquery
[2, 3, 5]
1,713,041
1,713,042
Jquery : Appending Dynamic Controls Leads to an Issue
<p>I am using SSRS to display reports what i doing technically is I am dynamically adding an Anchor Tag in HTML when the reports gets rendered. Now what the issue is Its Working Properly in IE 8 but not working in rest of the other sites. I am using Jquery to add that link inside Html here is the code. Please tell me w...
jquery asp.net
[5, 9]
2,445,489
2,445,490
lightbox description on the right of the image?
<p>i am having an issue trying to change the way the description showing, i don't want it to show below the image because the information in big, so i wanted to show beside the image but it always gives me error, i asked the support of the plug-in and i haven't got any replays i googled but with no luck, i even tried l...
javascript jquery
[3, 5]
955,376
955,377
accessing c# variable
<p>ASP.NET, C#, Javascript</p> <p>I have an unknown number of results returning from an sql querey. </p> <p>I then make changes to their values with javascript and set a value on a hidden input (generated programatically on page_init).</p> <p>My question is: what's the best way to access the hidden input variables v...
c# asp.net javascript
[0, 9, 3]
5,864,393
5,864,394
set selected value for a dropdownlist populated by a webservice
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4900051/set-selectedvalue-for-a-dropdownlist-populated-by-web-service">Set selectedvalue for a dropdownlist populated by web service</a> </p> </blockquote> <p>I have a dropdownlist that is populated by a webserv...
javascript asp.net
[3, 9]
378,466
378,467
JQuery Append To Dynamically Created Element
<p>I am dynamically appending a <code>div</code> element to an existing <code>div</code>. But immediately following that, I need to append another <code>div</code> to the <code>div</code> I just created dynamically. But I can't seem to find the dynamically created <code>div</code> in order to append to it. I assume ...
javascript jquery
[3, 5]
2,948,318
2,948,319
Remove dynamically generated div with jquery
<p>I would like to add/remove a new div when the corresponding checkbox is checked/unchecked with jQuery. Here's my attempt:</p> <pre><code>&lt;script type="text/javascript"&gt; $(function() { $("#form1 :checkbox#checkbox1").click(function() { var d = document.createElement('div'); ...
javascript jquery
[3, 5]
28,945
28,946
Show list of partial news items as a hyperlink so the user can click 'read more'
<p>I need to create a Vertical Ticker news scroller which gets populated dynamically from the code behind using C# ( asp.net ) by taking the records from a MSSQL database.</p> <p>I see a similar article but its in PHP ( See Below ) <a href="http://stackoverflow.com/questions/3352943/automatically-insert-content-into-n...
c# asp.net
[0, 9]
5,505,760
5,505,761
Response BinaryWrite not working on Android browser
<p>I have a byte array in the database and i need to show that in a pdf file format. Here is the way i did that. However, this doesn't work on Android tablets(checked in 2.3.5 and 3.2). </p> <pre><code>Response.Clear(); Response.ContentType = "application/octet-stream"; Response.BufferOutput = true; Response.Buffer = ...
c# android asp.net
[0, 4, 9]
4,951,741
4,951,742
how to set div on whole page using px
<p>I would like to extend my div element to whole page but I dont want to set te scrollbars for page. I tired <code>$(window).width</code> and <code>$(document).width</code> but when i set this to my css the scrollbars appears. I cant add CSS <code>width: 100%</code> becouse other stuff in my application base on width ...
javascript jquery
[3, 5]
1,052,413
1,052,414
Cons of external JavaScript file over inline JavaScript
<p>What are some of the disadvantages of using an external JS file over including the JS as a part of the ASPX page?</p> <p>I need to make an architectural decision and heard from coworkers that external JS does not play nice sometimes.</p>
asp.net javascript
[9, 3]
1,276,543
1,276,544
javascript and jquery book all in one
<p>I was always wondering how to use jquery. Should I use it for everything, just some parts, what is a good practice etc. </p> <p>So I am looking for a jquery book which also explains pure javascript. Some things should probably still be done without jquery. So how to mix jquery with pure js.</p> <p>Is there any goo...
javascript jquery
[3, 5]
1,868,025
1,868,026
Get value from select with JavaScript for use in PHP
<p>I have this <code>select</code>:</p> <pre><code>&lt;select id="mymenu" name="id" onchange="getID()"&gt; &lt;option&gt;&lt;/option&gt; &lt;option value="1"&gt;A&lt;/option&gt; &lt;option value="2"&gt;B&lt;/option&gt; &lt;option value="3"&gt;C&lt;/option&gt; &lt;/select&gt; </code></pre> <p>I want to...
php javascript
[2, 3]
5,084,692
5,084,693
jQuery $.ajax is not doing anything
<p>I have a jQuery AJAX request that does not seem to be doing anything.</p> <p>I see no action on the Network tab on Chrome Debugger,</p> <p>The error/success callbacks are not being called inside the function and nothing seem to happen on the server side whatsoever.</p> <p>The thing is, this is not happening on my...
javascript jquery
[3, 5]
2,818,055
2,818,056
list view Selected item Changes when scrolled out of view
<p>I have a list view which is populated with custom rows. each row has some data and a circle image which turns green on click of it . i basically wanted to replicate a "read" status as in "this msg is read if circle image turns green". i have used a base adapter to show the view on the screen. i have managed to cha...
java android
[1, 4]
3,038,277
3,038,278
What does jQuery ajax() return?
<p>Is this in the API documentation:</p> <pre><code>jQuery.ajax( url [, settings] ) </code></pre> <p>when you run</p> <pre><code>done(); </code></pre> <p>on it</p> <p>What is done acting upon?</p> <p>I'm looking for documentation on done().</p> <p>It is working on this object ( slang )</p> <pre><code>xhr </code...
javascript jquery
[3, 5]
2,939,325
2,939,326
Obtain the ID of all selected checkbox in jquery?
<p>I have some checkboxes with class=check. How can I obtain the ID of all selected checkboxes with jQuery?</p>
javascript jquery
[3, 5]
60,217
60,218
unable to access webmethod of a webservice using jquery ajax() method
<p>I am unable to access webmethod of a webservice using jquery ajax() method. My webservice is in website/Afolder/webservices folder. And I am calling the webmethod ina user control which is inside website/Afolder/usercontrol folder. The user control is in a page which is inside website/Afolder folder.What should be t...
jquery asp.net
[5, 9]
2,078,103
2,078,104
using jQuery .hover() with absoltutely positioned layered elements
<p>I have the following code to display an absolutely positioned (layered with z-index) element ontop of the hovered element. When the mouse interferes with the element that is faded in on hover and causes mouseout / mouseover to fire repeatedly causing adverse effects. </p> <p>What is the best way to code this so t...
javascript jquery
[3, 5]
3,343,719
3,343,720
String modification issue in JS
<p>I have a string like "word_count". How can I transform it to "WordCount" in an elegant way using JavaScript? My decision seems too complicated to me. I'll be very grateful for your help. </p>
javascript jquery
[3, 5]
2,605,919
2,605,920
Is it possible to call a Javascript function (that's private) inside the object A from an object that inherits from A?
<p>I want to be able to test some inner functions that I have without putting the Javascript test code in the same file. I've been trying to inherit the class that has the inner functions, and then adding wrapper functions to make them public, like this:</p> <pre><code>copyPrototype(TrafficChartCanvas_test, TrafficCha...
javascript jquery
[3, 5]
3,161,631
3,161,632
how to set visible true and false for drop down list box using javascript in asp.net
<pre><code>&lt;asp:DropDownList ID="ddloption" runat="server" Visible="false"&gt; &lt;asp:ListItem Text="Active" Value="Active"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="D-Active" Value="D-Active"&gt;&lt;/asp:ListItem&gt; &lt;/asp:DropDownList&gt; function boxchange(dd) { document.getElementById("&lt;%= dd...
asp.net javascript
[9, 3]
1,875,417
1,875,418
How to add and remove Textboxes using javascript and then send the data to php?
<p>How to create a dynamical add/remove textboxs AND send all the data to PHP? Making a dynamic add and remove is fine, but how do I store it in PHP? </p> <p>The number of textboxes will vary, so how do I store all of them separately in php?</p>
php javascript jquery
[2, 3, 5]
2,311,314
2,311,315
Display a new popup after pressing reset button by closing old popup and show the same form freshly
<p>I have a pop up window,which is displaying form which can contain previous some form details or new form.When i press a button it should reset to the new form by closing the active dialog window.</p>
php javascript
[2, 3]
1,027,117
1,027,118
Acheiving a bounce effect on text using jquery animate()?
<p>I am trying to use Jquery to create a bounce effect, this is what i have so far:</p> <p>Html:</p> <pre><code>&lt;div id ="animation"&gt;bounce&lt;/div&gt; </code></pre> <p>Jquery:</p> <pre><code>$("#animation").animate({ marginTop: "80px" }, 1500 ) .animate({ marginBottom: "40px" }, 800 ); </code>...
javascript jquery
[3, 5]
2,405,325
2,405,326
Why isn't my modified JavaScript showing up in the debugger?
<p>I have started my web application as website. I am calling JavaScript in it. Problem is in the script: the first time through, the script is working while debugging, but if I make any modification to the script and then try to debug it, control is moved to old lines and not new lines. I tried to rebuild, but still g...
asp.net javascript
[9, 3]
1,062,880
1,062,881
Open pdf from hyperlink in gridview
<p>want to open pdf file when a user clicks on hyperlink shown in gridview column.The name of the file is taken from first column of the gridview where file titles are stored.</p> <p> </p> <p>hovering over hyperlink in gridview shows file link, but when clicked it doesnot open pdf file,</p> <pre><code>protected void...
c# asp.net
[0, 9]
4,717,112
4,717,113
How to check existing of application on device?
<p>I have just made application which requires BarCode scanner on device. How can I programatically check existing of this application into device? I know package name for BC scanner. </p>
java android
[1, 4]
1,114,977
1,114,978
jquery load problem
<p>I'm having a problem where a jquery load function wipes out the dom element that it is targeted at.</p> <p><code>popup_content.load('form.html #print_options1', function() {popup_content.fadeIn();});</code></p> <p>when popup_content is a div targeted by jquery. A jquery load was previously used to load content int...
javascript jquery
[3, 5]
3,322,145
3,322,146
How to change selected menu option using jquery
<p>Hi I am using jquery chosen plugin. I want to selected menu value by selected value from other select menu. But my code working with simple selected menu. I want it to work with jquery chosen plugin. Example <a href="http://jsfiddle.net/7vkLv/13/" rel="nofollow">code</a> </p> <pre><code>$(".chzn-select").chosen() ...
javascript jquery
[3, 5]
4,174,764
4,174,765
create countdown timer in milliseconds
<p>I'm trying to create a timer that counts down in years, months, days, hours, minutes, seconds and milliseconds. I've found a few guides online, but they are sort of not easy to understand, or do not do the milliseconds. Can anyone help me do something like this, say, for this friday at 13:30.</p> <p>so it could rea...
javascript jquery
[3, 5]
2,359,507
2,359,508
How to set the control value in another open aspx page
<p>My problem is simple, but I cannot find a way to solve it :( <br> When the user clicks a specific button, I need to open a new aspx page (in a new window) so that he is able to select something that needs to be returned to the original page. I was able to open the new page with window.open, however, I'm not able to ...
asp.net javascript
[9, 3]
2,267,192
2,267,193
How to raise an event without the full postback?
<p>I have two controls in an UpdatePanel; a checkbox and a timepicker.</p> <p>When I click the checkbox (event CheckedChanged) it is supposed to make the timepicker editable (ReadOnly = false) and vice-versa. I want the event CheckedChanged raised without doing a full postback.</p> <p>Is there a workaround without do...
c# asp.net
[0, 9]
1,833,791
1,833,792
Why does the ClientID not show up? How to fix
<p>I have a jQuery function in ASP that I am trying to get the client ID of. When It renders the HTML I get this as a result.</p> <p>[HTML RENDERED]</p> <pre><code>$("")//ctl00_Content_gvProgramList .tablesorter({ widthFixed: true, widgets: ['zebra'], widgetOptions: { ...
jquery asp.net
[5, 9]
4,518,429
4,518,430
using this.addClass (Jquery)
<p>I am trying this.addclass in jquery to add a class to a DIV, that could be unknown. Can this be solved in this way? </p> <pre><code>&lt;style&gt;.classOne { font-size:24px; color:#009900;}&lt;/style&gt; &lt;script&gt; function hello() { alert(); $(this).addClass('classOne'); } &lt;/script&gt; &lt;div class="som...
javascript jquery
[3, 5]
3,524,399
3,524,400
Something in my initiation is causing the app to crash. I'm fresh out of ideas if anyone can help I will be greatfull
<p>The catlog says that the first for cycle completes and the crash happens at the second one. This is the <code>init</code> method for a very simple game.</p> <pre><code>private void init() { Resources res = this.getResources(); int x=R.drawable.crystal0000; for(int i=0;i&lt;=1...
java android
[1, 4]
3,105,476
3,105,477
How to Write an Experiment Framework
<p>I'm an intermediate C#/ASP.net coder working on a fun MVC project. I'd like to implement an experiment framework that will allow objects to "jiggle" functionality in order to find better ways of doing things. Where can I read more about best practices or tutorials on this kind of thing?</p> <p>e.g</p> <pre><code...
c# asp.net
[0, 9]
4,649,981
4,649,982
Loading jquery after inserting the jquery tag
<p>I insert the jquery tag</p> <pre><code> var newScript = document.createElement("script"); newScript.id = "grazit_jq"; newScript.type = "text/javascript" newScript.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"; script.parentNode.appendChild(new...
javascript jquery
[3, 5]
2,233,464
2,233,465
How to get width and height of a view
<p>I have a class called game that extends View that is added to a LinearLayout. I know that it is displaying my View but i need to get the width and height of the view in order to draw some of my images. Here is my constructor code:</p> <pre><code>public Game(Activity activ) { activ.setContentView(R.layout.game);...
java android
[1, 4]
4,344,286
4,344,287
How to detect chrome and safari browser (webkit)
<p>I am trying to detect the chrome and safari browser using jquery or javascript. I thought we are not supposed to use jQuery.browser. Are there any suggestions here? Thanks a lot!</p>
javascript jquery
[3, 5]
1,829,604
1,829,605
Encrypting text in Android (Java)
<p>Please help me to correct the code. The string is not getting encrypted.</p> <pre><code>private static String Encrypt(String val) { int len = val.length(); int[] k = new int[len]; for (int n = 0; n &lt; (len-1); n++) k[n] += 5; val = k.toString(); return val; ...
java android
[1, 4]
4,281,310
4,281,311
Is it possible to create image programatically on Java, Android?
<p>I need to create .jpeg/.png file on my Android application programatically. I have simple image (black background), and it need to write some text on it programatically. How can I do it? Is it possible? </p>
java android
[1, 4]
5,182,061
5,182,062
Handling dynamic number of columns
<p>I'm developing a CMS of sorts, and I want to give my users the possibility of customizing the display. More precisely, I want to give them the ability to choose to display or hide the left column, the right column and/or the top div. The middle column cannot be hidden since this is where the actual content will show...
c# asp.net
[0, 9]
1,767,849
1,767,850
How to efficiently draw a bitmap 36 times at different locations?
<p>I need to draw multiple bitmaps of an identical bitmap source onto a canvas. instead of calling 36 different objects as i am doing right now is there an easier way to draw them all on? And also being able to classify which one is which?</p> <p>an example of what i want to do is...</p> <p>i want 36 balls to be draw...
java android
[1, 4]
1,168,083
1,168,084
Why returns different value when use & operator in JavaScript and C#?
<p>I have worked the same process in JavaScript and C# with the &amp; operator, but the result was different.</p> <p><strong>C# Code</strong></p> <pre><code>Int64 x = (634586400000000000 &amp; 4611686018427387903); x= 634586400000000000; </code></pre> <p><strong>JavaScript Code</strong></p> <pre><code>var x = (6345...
c# javascript
[0, 3]
4,949,190
4,949,191
jquery how to combine two selectors to second function of single toggle event
<p>If I have a regular toggle function bound to a click event</p> <pre><code>$('#work-content a').toggle( function() { // first click stuff }, function() { // second click stuff } ); </code></pre> <p>But, I also need to bind <code>$(document).click</code> event to the second function someh...
javascript jquery
[3, 5]
3,409,009
3,409,010
Jquery not called?
<pre><code>&lt;div&gt; &lt;asp:Button ID="btnCalculate" runat="server" Text="Calculate Claim" OnClientClick="cfrm();"/&gt; &lt;/div&gt; &lt;div style="visibility: hidden;"&gt; &lt;asp:Button ID="btnYes" runat="server" OnClick="btnYes_Clicked" /&gt; &lt;/div&gt; &lt;script language="javascript" type="text/javascrip...
c# jquery asp.net
[0, 5, 9]
1,194,029
1,194,030
return null in ajax
<p>i have this code:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { function doAjax(url) { $("#customForm").submit(function() { var formdata = $("#customForm").serializeArray(); $.ajax({ url: url, type: "post", dataType: "jso...
php javascript jquery
[2, 3, 5]
2,238,502
2,238,503
converting class file to jar file using c++
<p>Is it possible to convert <code>.class</code> file to <code>.jar</code> file using c++ code?</p> <p><strong>(i.e can we write a code in c++ that when executed converts given .class file to .jar file)</strong></p> <p>If yes,how can i do that?</p>
java c++
[1, 6]
1,854,247
1,854,248
copying resource to sdcard gives a damaged file in android
<p>I am trying to move a raw resource (it is a zip file) from the app to SD card using this code:</p> <pre><code>void copyFile() throws IOException { File dest = Environment.getExternalStorageDirectory(); InputStream in = context.getResources().openRawResource(R.raw.file); OutputStream out = new FileOutput...
java android
[1, 4]
2,494,254
2,494,255
jquery select dynamically added images on error
<p>Iam using js/jQuery to add images to my site like this:</p> <pre><code>var img = document.createElement("img"); img.width = imgWidth; img.file = fileList[i]; img.name = 'pic_' + i; img.classList.add("obj"); </code></pre> <p>But sometimes the url is broken because the image does not exist. In this case I would like...
javascript jquery
[3, 5]
2,269,070
2,269,071
update javascript in updatepanel
<p>lets say I've got a function that iterates over an array. The function is outside the updatepanel, the array is defined within the update panel. The items of the array are dynamically created. On the first try I've realized, that the values of the array do not update when the update panel loads again.</p> <p>Would ...
javascript asp.net
[3, 9]
6,034,191
6,034,192
Javascript resize on every image load
<p>I've got this code:</p> <pre><code>while ($row = mysql_fetch_assoc($result1)) { echo " &lt;a href='#'id='VV".$row['id']."'&gt; &lt;p&gt;".$row['title']."&lt;/p&gt; &lt;p&gt;".$row['date']."&lt;/p&gt; &lt;img onload='scale()' id='II".$row['id']."' src='../res/videos/img/".$row['img']."'/&gt; &lt;/a&gt; &lt;script ty...
php javascript
[2, 3]
630,632
630,633
Javascript DIV positioning
<p>I am working on some JS to display a Twitter-eque error/success banner. I would like the banner to be visible at the top of the browser (FF, Chrome, Safari) for the duration of the time it is in view (including if the user decides to scroll somewhere else). I can't figure out the solution however.</p> <p>Another is...
javascript jquery
[3, 5]
2,200,104
2,200,105
jQuery.editable: Need to strip HTML breaks on edit
<p>I have a field that I'm outputting text into after doing an nl2br(). I've made the field editable by users. However, I don't want users to see the <code>&lt;br&gt;</code>s when they click edit.</p> <p>This is my function:</p> <pre><code>$(this).editable({ type: 'textarea', submit: 'Save', cancel: 'Canc...
javascript jquery
[3, 5]
811,722
811,723
How can we pass value to textbox by its name using jquery in Asp.net
<p>I want to pass value in textbox by its name using jquery in asp.net but when i passed the value to textbox the value in textbox is visible for the short time then it disappered every time this is my code</p> <pre><code> &lt;script type="text/jscript" src="Scripts/jquery-1.9.1.min.js"&gt;&lt;/script&gt; &lt;s...
jquery asp.net
[5, 9]
2,895,105
2,895,106
QueryString checking
<p>How to check if the web page contains any string queries at the page load?</p>
c# asp.net
[0, 9]
2,985,322
2,985,323
jQuery transitions don't finish
<p>So I added some transitions to a image rollover:</p> <pre><code>$(document).ready(function(){ $('.project').hover(function(){ $(this).children('.description').stop().slideDown('fast'); }, function(){ $(this).children('.description').stop().slideUp('fast'); }); }); </code></pre> <p>Howev...
javascript jquery
[3, 5]
2,350,195
2,350,196
reading unicode *.txt files?
<p>Currently I am reading .txt files with</p> <pre><code> FileInputStream is = new FileInputStream(masterPath+txt); BufferedReader br = new BufferedReader(new InputStreamReader(is)); String readLine = null; while ((readLine = br.readLine()) != null) { ... </code></pre> <p>But uni...
java android
[1, 4]
4,045,408
4,045,409
JQuery Read Cookie and pass it to a PHP Variable?
<p>I have a cookie and need to read it with JQuery or just javascript if JQuery alone is not possible.</p> <p>Then I need to pass the value of that Cookie to a PHP variable</p> <p>Can this be done?</p> <p>UPDATE: I need everything to happen in the same page.</p> <ol> <li>Javascript reads the already existing cookie...
php javascript jquery
[2, 3, 5]
652,399
652,400
Debugging is Very Slow Via F10
<p>I am using Visual Studio 2008.In aspx page When stepping through my C# code line by line via F10, it takes the debugger over one second to get to the next line. I've tried deleting all breakpoints, but that did not make any difference.</p> <p>If any one Know about this tell me.</p> <p>Regards</p> <p>Nanda Kishore...
c# asp.net
[0, 9]
5,248,167
5,248,168
Pass width and height of canvas to constructor of class
<p>I need to pass the value of the canvas width and height to the cunstructor of the a Player class when I create that object in the constructor of the GameSurfaceView class below. The problem is that I can't get hold of any value of the canvas width and height at that time!? The only way, so far for me, is that I can ...
java android
[1, 4]
4,092,893
4,092,894
OnTouchListener not working
<p>I have a few buttons in a tab layout for which the OnClickListener works fine. The purpose of these buttons is to start a new activity when clicked upon. I want my code to work for the touch mode of the phone as well. In other words I wanted to know how to implement the OnTouchListener for the code. Currently I have...
java android
[1, 4]