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,790,820
4,790,821
Dynamically limit the amount of checkboxes that can be checked by user
<p>I've created a test and answer system. Each question can either have one or multiple answers, e.g "Please mark 1 answer", "Please mark 3 answers" etc.</p> <p>Is it possible to limit the amount of checkboxes that the user can check based on this? If the question requires 1 answer, then they can only check 1 of the c...
php jquery
[2, 5]
1,789,023
1,789,024
How to make a Dictionary and Utility in C#?
<p>I have 15 web pages that has the same labels. But, in one case, I need to change all of their Text, in all pages. Other than writing them all by one, I want to make something general and public that I can use in all the pages. The ID's of the labels are same. I don't know how to do it with different web pages. Can y...
c# asp.net
[0, 9]
5,883,375
5,883,376
How can I get last characters of a string using JavaScript
<p>I have </p> <pre><code>var id="ctl03_Tabs1"; </code></pre> <p>Using JavaScript, how might I get the last five characters or last character?</p>
javascript jquery
[3, 5]
5,379,449
5,379,450
How to apply an algorithm for a C# container like functor in C++?
<p>In C++ to apply an algorithm for a collection or container, I overload the <code>operator()</code>. For example generate random number for a container: </p> <pre><code>#include &lt;iostream&gt; #include &lt;vector&gt; #include &lt;string&gt; #include &lt;algorithm&gt; #include &lt;cstdlib&gt; using namespace std;...
c# c++
[0, 6]
5,762,488
5,762,489
displaying images in a slider
<p>I want to know is there an easy way in order to be able to place images in a loop as below in like a slider? The user sees first image in a slider and then by using arrows for example, be able to slide to next to next or previous image. If user is on last image and wants to go on next image, it displays the first im...
javascript jquery
[3, 5]
3,359,595
3,359,596
is there any way to check the information of client device in javascript or php, which request to server? is this device mobile, tablet or pc?
<p>I need to detects client device at server end using php or javascript? which is client device and which browser is using that device? </p>
php javascript
[2, 3]
5,994,750
5,994,751
jQuery Positioning and Animation
<p>So I have a piece of code: </p> <pre><code>jQuery.fn.center = function(parent) { parent = this.parent(); this.css({ "position": "absolute", "top": ((($(parent).height() - this.outerHeight()) / 2) + $(parent).scrollTop() + "px"), "left": ((($(parent).width() - this.outerWidth()) / 2) + $(parent).scrollLeft() + "px")...
javascript jquery
[3, 5]
379,114
379,115
Do I need to detach my event handler before I reattach it to the new element?
<p>I'm writing a jQuery JS file that attaches an event handler to a link, but the event handler replaces the link with a new link retrieved via an ajax request. It's actually a +1, -1 function, so the link switches back and forth.</p> <p>It's my understanding that even when the link is clicked twice and returns to its...
javascript jquery
[3, 5]
3,708,042
3,708,043
How to prevent the user to change page with jQuery
<p>I have a page with a form that is submittes via ajaxSubmit() (so, without changing the page).</p> <p>My goal is that, when the user try to change page (or even to close the browser), i ask him if really want to exit the page without sending the form (exactly as gmail does).</p> <p>Gmail for example do this with a ...
javascript jquery
[3, 5]
2,014,057
2,014,058
Dynamically changing the jQuery sortable placeholder value
<p>How do I use an if statement in the jQuery sortable plugin to dynamically determine the placeholder class?<br/><br/> If the item is being dragged around in <code>#listA</code> then I want the placeholder class to be <code>.ImInListA</code><br/> If the item is being dragged around in <code>#listB</code> then I want t...
javascript jquery
[3, 5]
2,733,721
2,733,722
Go to Top of Page when is postback
<p>I have an ascx control which has inside a Save Button and it is at the bottom of the page. When i click the save button and it postbacks the control remains at the bottom. Is that any whay to go to top after postback?</p>
c# asp.net
[0, 9]
4,279,725
4,279,726
Transfer data between activity with spinners
<p>i am new in Android development.</p> <p>Im trying to transfer selected data from multiple spinners (Search activity) to another activity (JSON Search result activity)</p> <p>and at the end i have button that open the search result</p> <p>Search activity: i have the java spinner</p> <pre><code>ArrayAdapter&lt;Cha...
java android
[1, 4]
5,853,321
5,853,322
formated output of JS contents into a HTML table
<p>i have a javascript file with the following content and would like to generate a dynamic html table with it's content</p> <pre>(function($) { My.Shortcuts = { a: 'Name', b: 'Elvis', c: 'Fun' }; My.Plugins.extend({ Name: { url: 'http://www.name.com' example: 'some example ...
javascript jquery
[3, 5]
2,405,965
2,405,966
Check if javascript is already attached to a page?
<p>Is there any way to check if javascript file is already attached to the page by its file name.</p> <p>For eg : </p> <pre><code>if ("path-to-script/scriptname.js") already embeded { call related function } else { Append '&lt;script src="path-to-script/scriptname.js" type="text/javascript"&gt; &lt;/script&gt; ' call...
javascript jquery
[3, 5]
5,917,220
5,917,221
What's the effect of implementing the OnClickListener with an Activity?
<p>I don't understand why I have to implement the OnClickListener to use the OnClick-method. Assuming this code:</p> <pre><code>public class KlickitestActivity extends Activity implements OnClickListener { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { ...
java android
[1, 4]
4,739,476
4,739,477
Generate price from a list with Javascript variables
<p>I have a few variables:</p> <pre><code>var test1 = 1500; var test2 = 500; var test3 = 3000; var test4 = 20000; </code></pre> <p>And I have an another variable like this:</p> <pre><code>var list = 'test3,test1'; </code></pre> <p>This is not fixed obviously, so that can be <code>'test4,test1,test2'</code> etc..</p...
javascript jquery
[3, 5]
3,206,914
3,206,915
Java code translation of Python array-splitting code
<p>Can someone please give the Java equivalent of the below python (which slices a given array into given parts) which was originally written by ChristopheD here:</p> <pre><code>def split_list(alist, wanted_parts=1): length = len(alist) return [ alist[i*length // wanted_parts: (i+1)*length // wanted_parts] ...
java python
[1, 7]
426,951
426,952
Change table row display property
<p>I have an html page with a table that contains a hidden row:</p> <pre><code>&lt;table&gt; &lt;tr id="hiddenTr" style="display:none"&gt; ... &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>I need to make it visible at client side using jquery. I tried this</p> <pre><code>$('#hiddenTr').show(); </code></pre> <...
javascript jquery
[3, 5]
471,534
471,535
How to render .msg file content in ASPX page?
<p>I have some e-mails that i would like to store in SQL Server database and render within an asp.net web application. <br /> Currently the .msg files are stored in a BLOB field and and a link to download the file to user's system is given. <br /> However, I want to render the content of the message directly without gi...
c# asp.net
[0, 9]
5,176,715
5,176,716
basic jquery .load
<p>i have this main page</p> <p>index.html</p> <pre><code>&lt;script&gt; $(document).ready(function(){ $("#content").load('page.html'); $("#menu").click(function () { alert('Hello'); }); }); &lt;script&gt; &lt;div id="content"&gt;&lt;/div&gt; </code></pre> <p>and in page.html</p> <pre><code>&lt...
javascript jquery
[3, 5]
406,142
406,143
validating dropdownlist in gridview using javascript
<p>I have created a gridview with dropdownlist in asp.net(c#).i want to validate dropdownlist using jvascript.if i dont select anything from dropdownlist that time script shud display a message.i don know how to get the name or id of that dropdownlist</p>
c# asp.net
[0, 9]
5,631,647
5,631,648
How to attach image in input fields using Php/javascript?
<p>I am having one form in that input fields are <strong>regno,name,date of birth</strong> etc.</p> <p>With this input fields i need to attach image along with this input fields how I can do using <code>PHP/JavaScript</code></p>
php javascript
[2, 3]
4,813,356
4,813,357
How to redirect the page quickly when the user clicks the browser back button in asp.net
<p>I am building an application as server client concept, in which the server is an asp.net application. What i am trying to do is</p> <ol> <li>User enter the link and provide the login details in the login page.</li> <li>After authentication the user will be redirected to the main page, which is a master and child pa...
c# asp.net
[0, 9]
5,492,807
5,492,808
jQuery on() not firing on appended a tag
<p>I have a feeling this is an embarrassingly simple mistake I'm making but I just can't see it at the moment.</p> <p>I have a table which I'm dynamically appending rows to - the the final column of each row contains a link that, when clicked, should remove that row. At the moment, the rows are being added fine but I ...
javascript jquery
[3, 5]
1,957,501
1,957,502
Append a <div> in jQuery
<p>When I'm using this code:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { $.ajax({ type: "GET", url: "nyhederlang.xml", dataType: "xml", success: parseXml, error: function(){alert("Error: Something went wrong");} }); }); function parseXml(xml) { //print the title and the d...
javascript jquery
[3, 5]
3,146,121
3,146,122
How can I add a "selected" class to just one row of a table when a row is clicked?
<p>I am using the following code:</p> <pre><code>$("#dataTable tbody").on("click", "tr", function (event) { if (!$(this).hasClass('row_selected')) { $(oTable.fnSettings().aoData).each(function () { $(this.nTr).removeClass('row_selected'); }); $(this).addClass('row_selected'); ...
javascript jquery
[3, 5]
5,958,413
5,958,414
TrafficStats in Android
<p>Can you explain to me following, 1) getMobileTxPackets is static method in TrafficStats class, I would like to know the time frame at which this data is captured, when I call this function, it returns me the value, how and when is this value calculated. What if I would like to get the Tx Packet value as and when tr...
java android
[1, 4]
2,485,102
2,485,103
appendTo not working with ie window.open
<p>i want to print a <code>div</code> data.<br> This is my code and work fine in all browser but not working in IE, any solution?</p> <p>Thanks in advance.</p> <pre><code>function printer(divid){ var thePopup = window.open( '', "Customer", "menubar=0,location=0,height=700,width=700" ); //var printReport =`ent...
javascript jquery
[3, 5]
3,610,353
3,610,354
jQuery Wrapping some string with conditional
<p>i have string need to be wrapped by tag <code>HTML</code> with conditional like this: </p> <pre><code>&lt;h1&gt;Test&lt;/h1&gt; </code></pre> <p>Then nothing will happen</p> <pre><code>&lt;h1&gt;Test Lagi&lt;/h1&gt; </code></pre> <p>Then the first word will be wrapped by <code>span</code>, result <code>&lt;h1&gt...
javascript jquery
[3, 5]
5,053,216
5,053,217
How to retrieve url parameters from a jquery load function?
<p>I have two htmls namely index.html and grid.html. I need to refresh grid contents according to the dropdown values being selected in the index.html file. </p> <p>In my index.html page I've this code,</p> <pre><code>$(document).ready(function() { $('#orderTypeOptions').change(function() { var oType = $(...
javascript jquery
[3, 5]
5,951,457
5,951,458
jQuery, unable to store data returned by $.get function
<p>I am trying to turn <b>div#sidebar</b> into a sidebar in my app. My code looks like the one below.</p> <pre><code>$('#sidebar').userProfile(); jQuery.fn.userProfile = function() { $.get('/users/profile', function(data){ $(this).html(data); }); }; </code></pre> <p>It didnt work because, I found the <b><i>this</i...
javascript jquery
[3, 5]
1,544,518
1,544,519
Accesing local filesystem and extracting file metadata using web app
<p>I am trying to build a web application which can do this: 1. Through the web application User selects some files present on his machine's filesystem. 2. Web application then extracts metadata of selected files like filename, size, filetype and stores it in a database at server.</p> <p>So I need two things - 1. web ...
php javascript
[2, 3]
4,134,269
4,134,270
jquery drop down not working
<p>Trying to use <a href="http://labs.abeautifulsite.net/jquery-dropdown/" rel="nofollow">http://labs.abeautifulsite.net/jquery-dropdown/</a> for a simple drop down menu but for some reason, I cannot get it to work.</p> <pre><code>&lt;a href="#" data-dropdown="#dropdown-1"&gt;dropdown&lt;/a&gt; &lt;div id="dropdown-1...
javascript jquery
[3, 5]
2,889,718
2,889,719
Pass a value from child.master to parent.master
<p>I need to pass a string value from the child.master to the parent.master. There is a funtion in parent.master </p> <pre><code>public void setMyString(string s) { myLiteral.Text = s; } </code></pre> <p>How can I access such method from my child.master?</p> <p>Thank you.</p>
c# asp.net
[0, 9]
3,368,301
3,368,302
jQuery get the text/html value of the first element with class xxxxx
<p>Ok, I have a series of Unordered Lists on a page I am working on. The list items of each unordered list have a class name for use with some click events that I have done. Now I am trying to find the :first/first() element of a given class name. Problem is, :first/first() return undefined. I know first() you can't sp...
javascript jquery
[3, 5]
4,183,490
4,183,491
Override jQuery functions
<p>Is there way to override jQuery's core functions ? Say I wanted to add an alert(this.length) in size: function() Instead of adding it in the source </p> <pre><code>size: function() { alert(this.length) return this.length; }, </code></pre> <p>I was wondering if it would be possible to do something like this...
javascript jquery
[3, 5]
1,172,348
1,172,349
why the change event is not called?
<p>When I set the text of a input text with: <code>$('#rif').val('bla bla bla');</code></p> <p>Why if I add a <code>.change()</code> event on that input text is not called?</p>
javascript jquery
[3, 5]
3,418,275
3,418,276
Steps of allowing OpenID
<p>how to make my Desktop Application to use openID , ahve any one idea about using "DotNetOpenAuth" to do it ? </p>
c# asp.net
[0, 9]
849,012
849,013
Global validation using jQuery
<p>Please Suggest me About any link for validation. I am going to create new application. it had more than 100 pages. Each page must include the field validation.This action will increase my time and also increase the coding. so i need a file that include all type of validation i just call that file where i need the va...
php jquery
[2, 5]
279,172
279,173
URL breaking when it contains # in jQuery ajax request
<p>When I request a url with jquery Ajax that contains # sign, the string of the url after # gets cut off. For example:</p> <pre><code>http://somesitem.com/?name=Some#thing </code></pre> <p>When I observe this url being requested in firebug, I see that all that is being submitted is:</p> <pre><code>http://somesitem....
javascript jquery
[3, 5]
2,334,350
2,334,351
why this javascript code is not working?
<p>Do you know why this is failing, I mean alert is working (it shows me that if found the button) but text or background is not changed:</p> <pre><code> $('input[type=button]').click( function() { var button=document.getElementsByName("contactme"); alert(button.length + " elements!"); button.value="Ne...
javascript jquery
[3, 5]
3,820,736
3,820,737
jQuery .hover() auto return to previous state
<p>I am wondering if there is a simple solution where after the user un-hovers, the data will return to its original state? My current solution is to save the original state, and load this data once the user has un-hover. This can become tedious as each hover changes alot of text fields, and it is a hassle to store all...
javascript jquery
[3, 5]
3,007,852
3,007,853
jquery obj.find problem in javascript
<p>I have this snippet of code, which fails at var link:</p> <pre><code>var obj = $(this[0]); var html = obj.html(); var link = html.find('a[href*=/comment/reply]'); </code></pre> <p>This is an ajax response from a submitted form. The output of what I get back from the var html is as follows:</p> <pre><code>==...
javascript jquery
[3, 5]
3,865,302
3,865,303
Colorize number pairs
<p>I am using the jQuery Stopwatch plugin to track time on a browser based JavaScript game I am developing. This plugin outputs 00:00:00. I need to have each number pair (hours,minutes,second) in diffrent colors.</p> <p>I also outputs a dummy time before the game starts in HTML (00:00:00). I am able to colorize each n...
javascript jquery
[3, 5]
2,231,243
2,231,244
outputting valid Javascript from Java
<p>I'm using Java 6. I want to output code for a Javascript variable ...</p> <pre><code> String jsValue = escapeForJS(value); String expression = "storedVars['myVar'] = \"" + jsValue + "\";"; </code></pre> <p>Is there anything standard that will do this? I came up with my own ...
java javascript
[1, 3]
4,295,600
4,295,601
Email date parser when right click on browser
<p>[EDIT] I rewrote the question to mention specifically the context menu. Thanks for the remark.</p> <p>I'm looking to create a date parser for email, so that in case of text selection and right click, there will be an option in the context menu to identify the selected text (say <code>7/6/2011 10:30 meeting with Joh...
c# javascript
[0, 3]
3,281,559
3,281,560
Wait for iframe to load before next function is triggered?
<p>First off: I know things should be run asynchronously if possible.</p> <p>I have a function, called wrap:</p> <p>essentially it loads the current page as an iframe. I need it in order to keep the javascript running even when links are clicked on the page.</p> <pre><code>function wrap(){ event.preventDefault()...
javascript jquery
[3, 5]
2,086,176
2,086,177
jQueryRotate click issue
<p>i'm using the jQueryRotate.js extension to perform a rotation operation on a miniature arrow (to behave like that in os x aqua filesystems), as found here:</p> <p><a href="http://wilq32.adobeair.pl/jQueryRotate/Wilq32.jQueryRotate.html" rel="nofollow">http://wilq32.adobeair.pl/jQueryRotate/Wilq32.jQueryRotate.html<...
javascript jquery
[3, 5]
1,493,927
1,493,928
Call Java from Javascript and pass integer
<p>I use java to evaluate a javascript file. This is using java.lang.String.format and shall pass an integer, but I get the exception for "java.util.IllegalFormatConversionException: d != java.lang.Double". My passed value seems to be converted to double.</p> <p>javascript:</p> <pre><code>java.lang.String.format("%02...
java javascript
[1, 3]
2,099,464
2,099,465
ASP.NET - clients without JavaScript
<p>I have some functionality on my page that JavaScript is currently handling. I want to make my page compatible with non-Javascript users. Is there a way I can say "If JavaScript is enabled, use my JavaScript routine, otherwise do a Postback and let the server-side handle it?"</p>
asp.net javascript
[9, 3]
3,889,872
3,889,873
JS Slider extention/option
<p>Hello I have a Slideshow. I will like to changed it up a bit.</p> <p>Basically the slider have a click though functionality using LIs menu which works good.</p> <p>But I wanted the option of one Arrow that will loop through the slideshow instead of clicking 1, 2,3, 4,5...</p> <p>Just wanted one click that says N...
javascript jquery
[3, 5]
2,542,296
2,542,297
Load javascript after page load
<p>I have an external javascript that contains something like:</p> <pre><code>document.wrileln("&lt;script type='text/javascript' src='...'&gt;&lt;/script&gt;"); </code></pre> <p>In the original html i have something link</p> <pre><code>&lt;div id="banner"&gt; &lt;script type="text/javscript" src="&lt;the extern...
javascript jquery
[3, 5]
683,252
683,253
Show random classes
<p>Let's say I have some classes like:</p> <pre><code>&lt;div class="something" style="display: none"&gt;Some text I would like to show&lt;/div&gt; &lt;div class="something" style="display: none"&gt;Some text2 I would like to show&lt;/div&gt; &lt;div class="something" style="display: none"&gt;Some text3 I would like t...
javascript jquery
[3, 5]
4,643,571
4,643,572
how did SO animate answer div
<p>I am wondering for some time now, how did SO do this animation on answers when you click on link answer, answer divs color changes for some time and it reverts back, I'm sure this question has been asked before but I just couldn't find it. Or this random example :</p> <p><a href="http://stackoverflow.com/questions/...
javascript jquery
[3, 5]
2,360,707
2,360,708
(js/jquery) Rotating an image in FF/Saf/Chrome without Canvas OR Zooming a canvas item
<p>I am working on a project where I need to rotate and image to the users' liking then allow them to zoom a bit in and out.</p> <p>Using jquery.rotate.1-1.js in IE everything works perfectly (how rare) as MS wrote their own rotation tool (progid:DXImageTransform) so the img is rotated and then kept as an image. Howev...
javascript jquery
[3, 5]
1,509,877
1,509,878
jQuery selector context question
<p>I'm trying to do make the following selection:</p> <pre><code>$(".program", row) </code></pre> <p>Where "row" is a jQuery object containing two table rows. One of the tr's has the class 'program". This selector doesn't seem to find it. However the following works: </p> <pre><code>$(".title", row) </code></pre> ...
javascript jquery
[3, 5]
1,356,324
1,356,325
How to assign the selected value of Drop down to text box
<p>I'm trying to assign the selected value in the drop down to text box when ever I hit a button. I'm not able to see the selected value in the <code>TextBox</code>. Can someone please let me know what am I missing?</p> <p>My code is as follows:</p> <pre><code>public partial class _Default : System.Web.UI.Page { ...
c# asp.net
[0, 9]
4,554,982
4,554,983
How pass variables from activity to service without restart service
<p>I need send data (ArrayList, Array, String, etc) from my <code>Activity</code> to my <code>Service</code>. If use <code>Intent</code> and <code>Bundle</code> nesessary Service restart. I need send data without restart Service (if Service is running use him, if not running start him and send new data).</p> <p>Also I...
java android
[1, 4]
1,055,014
1,055,015
Difference between finish() and this.finish() in android
<p>Providing <code>finish()</code> and <code>this.finish()</code> in <code>onPause()</code> or <code>onStop()</code> method is same?</p>
java android
[1, 4]
5,935,310
5,935,311
Why Data manipulation occur when refresh the page in Asp.net
<p>Why Data manipulation occur when refresh the page in Asp.net</p> <p>After submit the button to insert data to database table if i press f5 or browser refresh then again dulicate data is inserted why it is maintaining the textbox values and without clicking the submit button it is fired......? provide solution.........
c# asp.net
[0, 9]
4,513,646
4,513,647
how to get the checked box input value by jquery or javascript?
<p>the input check box code:</p> <pre><code>&lt;li class="odd"&gt;&lt;input type="checkbox" class="forminput" name="VD10" checked="checked" value="http://test1.com"&gt; &lt;a href="#"&gt;example 1&lt;/a&gt;&lt;/li&gt; &lt;li class="even&gt;&lt;input type="checkbox" class="forminput" name="VD11" checked="checked" v...
javascript jquery
[3, 5]
2,041,747
2,041,748
How I turn label in asp red
<p>Hi I would like to turn label red in .aspx when user enters wrong answer into textbox.</p> <p>but not know how, hw I can do this?</p>
c# asp.net
[0, 9]
2,589,547
2,589,548
Return string from PHP database loop to Javascript array
<p>I'm trying to create a video slideshow using a Javascript array. The array needs to be populated from a database loop. The database of videos is created through a CMS.</p> <p>I am currently using "push" for my array, FeaturedVideos, but it's not working. How else do I put the returned string into the array?</p> <p...
php javascript
[2, 3]
3,832,965
3,832,966
Weird behavior in Android's "if" block
<p>It walks like a bug, it chirps like a bug.... I need someone to confirm that it's a bug.</p> <p>I was trying to get phone numbers from the address book with this code:</p> <pre><code>public JSONObject getAllPhones() throws JSONException{ String mPhoneNumberProjection[] = new String[] { Contacts.Phones.NAM...
java android
[1, 4]
2,051,049
2,051,050
Unable to install Google API in Android
<p>I want to create a map view application in android. If I click the Third Party Add-ons to install Google Api, I'm getting this error </p> <blockquote> <p>Failed to fetch URL <a href="https://dl-ssl.google.com/android/repository/addons_list.xml" rel="nofollow">https://dl-ssl.google.com/android/repository/addons_li...
java android
[1, 4]
4,392,725
4,392,726
Sign in to other website using asp.net
<p>Hey guys, I'm trying to make a website that can sign into other websites for the users, and grab certain information. For example: a web based game forum that automatically pulls your game statistics. My website would have to navigate to the game url, fill in the user name and password, sign in, then read the html o...
c# javascript asp.net
[0, 3, 9]
5,668,483
5,668,484
How does one identify an empty element using jQuery that might contain a comment tag?
<p>I'm trying to identify an empty element that might or might not contain a comment tag and/or white space.</p> <p>The following HTML structure is common place in the environment I'm working with:</p> <pre><code>&lt;div class="container container-no-title"&gt; &lt;div id="dnn_ctr6735_ContentPane" class="container-...
javascript jquery
[3, 5]
2,330,309
2,330,310
What language should I write my 2D game in?
<p>I'm thinking of writing a game. It's inspired by Minecraft/Terraria (but don't worry it will be different). </p> <p>My main question is what language I should write it in -- it'll be relatively simple graphics, more like Terraria than Minecraft. I know Java relatively well and Minecraft is written in it, but C++ s...
java c++
[1, 6]
1,705,543
1,705,544
jQuery hover functions IE error
<p>I've been having some difficulty with jQuery hover functions. Proberbly as a result of staring at the same code for far too long, but perhaps someone can help.</p> <p>I have the following function:</p> <pre><code> $("#div1").mouseover(function () { $("#div2:hidden").show(); }); $("#div1").mouseo...
javascript jquery
[3, 5]
3,013,962
3,013,963
How to dynamic adding rows into asp.net table?
<p>How can I add rows in a table from server-side?</p> <pre><code> if (!Page.IsPostBack) { Session["table"] = TableId; } else { TableId = (Table)Session["table"]; } protected void btnAddinRow_Click(object sender, EventArgs e) { num_row = (TableId.Rows).Count; TableRow r = new Table...
c# asp.net
[0, 9]
5,040,340
5,040,341
jQuery Validation Plugin stopping form submission, submit button won't work
<p>The following script using jQuery validation plugin - <a href="http://docs.jquery.com/Plugins/Validation" rel="nofollow">http://docs.jquery.com/Plugins/Validation</a> - is preventing the form from sending that is found here:</p> <p><a href="http://www.bestcastleintown.co.uk/book2.php" rel="nofollow">http://www.best...
javascript jquery
[3, 5]
5,283,175
5,283,176
Best way to rearrange positioning of images/divs with javascript/jquery?
<p>I took a peek at the source of <a href="http://wonderwall.msn.com" rel="nofollow">http://wonderwall.msn.com</a> and noticed how all the span tags that the blocks of the wall have don't seem to be associated with any ID. It makes me very curious how they are able to accomplish the animated repositioning of elements w...
javascript jquery
[3, 5]
1,122,727
1,122,728
get text, and split it after a given string
<p>is there any javascript method to get text, and split it after a certain value? </p> <p>Like for instance, having: </p> <pre><code>&lt;p&gt;here is some text &lt;!-- read more --&gt; and here is some more&lt;/p&gt; </code></pre> <p>get this:</p> <pre><code>&lt;p&gt;here is some text&lt;/p&gt; &lt;p&gt;and here i...
javascript jquery
[3, 5]
1,240,138
1,240,139
What is the difference between having a function in Jquery.Document and not having it in
<p>I am just wondering what is the difference between these two</p> <pre><code>File1.js $(function() { function MyFunction() { // some code here } }); File2.js $(function() { // call it. MyFunction(); }); </code></pre> <p><hr /></p> <pre><code>File1.js function MyFunction() { ...
javascript jquery
[3, 5]
51,652
51,653
jQuery listview plugin
<p>Is there any ListView widget plugin for jQuery? With resizable columns, sorting helpers, odd-even rows styles etc. Something like ListView class from Ext library but for jQuery (NOT table/grid).</p> <p><strong>UPDATED</strong> Have switched to ExtJS so question is not topical anymore.</p>
javascript jquery
[3, 5]
94,336
94,337
pageLoad() not firing in a dynamically loaded page using .NET 4.0 (Works fine on 3.5)
<p>I have a simple aspx page with a link to load another aspx page on right div (using JQuery load), like that:</p> <pre><code>&lt;%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt; &lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="Scr...
jquery asp.net
[5, 9]
1,543,394
1,543,395
Changing on('hover') to on('click') for touchscreen devices?
<p>I have a boolean variable called isTouchscreen and some on('hover', ...) events. If the isTouchscreen boolean variable equals true then I need to change on('hover') events to on('click') events. Is this possible?</p> <p>Something like:</p> <pre><code> $(".smart-suggestions").on("hover", ".option", function(){ ...
javascript jquery
[3, 5]
3,007,625
3,007,626
PHP/ JS File Upload Progress Bar
<p>How do I create a file upload progress bar similar to getdropbox.com using PHP and/or JavaScript?</p> <p>Thanks, -Giles</p>
php javascript
[2, 3]
3,587,910
3,587,911
How do I turn a timestamp into a javascript date object?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/847185/convert-a-unix-timestamp-to-time-in-javascript">Convert a Unix timestamp to time in Javascript</a> </p> </blockquote> <p>Turn a unix timestamp into 2008-07-17T09:24:17Z</p> <p>How to do that?</p>
javascript jquery
[3, 5]
3,887,639
3,887,640
print bar-code without print dialog
<p>I want to create a bar-code using code-128, without displaying it on the form. I want to print it without showing print dialog through bar-code printer on client side. I am able to create bar-code, I have stored it in hidden div but how to proceed further?? How do I achieve this using JavaScript or C#?</p> <p>Also,...
c# javascript asp.net
[0, 3, 9]
297,680
297,681
Source attachment does not contain the source for the file MenuInflater.class
<h2>My code is as follows:</h2> <pre><code>package chapter.seven; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; public class UserInterface extends Activity { /** Called when the activity is first created. */ @Override public void onCrea...
java android
[1, 4]
2,105,572
2,105,573
extract addresses from google map
<p>how can i extract all addresses,corresponding latitude &amp; longitude of a city(eg:Bangalore) from google map using php/js and store in mysql table .can anyone help me.Its urgent.Thank Yo</p>
php javascript
[2, 3]
4,466,338
4,466,339
Listbox.Length always 0 in JS
<p>When I run the following JS I always get the confirm box popping up despite the list visibly having items.</p> <pre><code>&lt;asp:ListBox ID="list" runat="server" Width="135px" Rows="8" /&gt; function CheckListEmpty() { if ($("#list").length == 0) { if (confirm("Are you sure?")) { //they clicked OK so ...
asp.net javascript jquery
[9, 3, 5]
4,820,788
4,820,789
how I can read text from html textarea in asp.net page?
<p>I set html textarea in asp.net page with out runat="server" and I need set the text in string variable by C# in code behind </p>
c# asp.net
[0, 9]
935,226
935,227
Cannot call web service when deploying ASP.NET site to the server but can run on localhost
<p>When I try to run an ASP.NET site by calling a webservice in the sub virtual directory, I get the error below:</p> <p><strong>"The request failed with HTTP status 401: Unauthorized. "</strong></p> <p>This is the code that I wrote:</p> <pre><code>Dim ws As Odyssey.SupportServices.SupportServices ws = New Odyssey.S...
c# asp.net
[0, 9]
758,840
758,841
dynamically display products in two columns
<p>I have a jsfiddle <a href="http://jsfiddle.net/K5PGp/" rel="nofollow">http://jsfiddle.net/K5PGp/</a> that I am trying to modify so that it displays the "products" in two columns even if the browser is IE 8.</p> <p>For example, if all 8 products are displayed, it should look like this:</p> <h2>one two</h2> <h2...
javascript jquery
[3, 5]
3,024,529
3,024,530
Chaining multiple asynchronous methods in javascript
<p>I am writing a javascript library to abstract ajax requests to my HTTP API. Each of my javascript functions is a wrapper for jquery's ajax call, which makes a callback to the user on completion.</p> <p>Eg.</p> <pre><code>mylib.doThing( "foo", { success:function(){alert("done");}); </code></pre> <p>In the case whe...
javascript jquery
[3, 5]
1,639,276
1,639,277
I need the landmark points of a contour
<p>I need to detect the source of leakage of a gas. I have numerous images of contours of gas spread from a point source under various atmospheric conditions. The images, i have got using ALOHA software, which gives the contour of gas spread under atmospheric conditions. So, i need the landmark points of the contour wi...
java c++
[1, 6]
528,705
528,706
How to avoid the checkbox 'Stop execute scripts on this page' in the Javasript message box?
<p>How can I avoid the checkbox 'Stop execute scripts on this page' in the Javasript message box? <img src="http://i.stack.imgur.com/3ZvNQ.png" alt="enter image description here"></p> <p>Regards, David</p>
javascript asp.net
[3, 9]
523,040
523,041
Home button brings back to my app
<p>I am making a car launcher application, which contains shortcuts to other apps, when i'm in another app i'd like to press the home button and go back to my launcher So basically i need to override the home button outside of my app,the override has to work only when my app is opened in the background so when i close ...
java android
[1, 4]
3,397,775
3,397,776
What should i learn after getting good knowledge of XHTML, CSS, Web Standards, Accessibility? Javascript or PHP?
<p>What should i learn after getting good knowledge of XHTML, CSS, Web Standards, Accessibility,Usability, Information Architecture and Adobe Photoshop?</p> <h2>Javascript/jquery</h2> <p>or </p> <h2>PHP</h2> <p>First I want to learn and be focus to learn anyone of these two? Which language would be good to learn fi...
php javascript
[2, 3]
4,130,986
4,130,987
How to Json Parsing In asp .net
<pre><code>http://www.taxmann.com/TaxmannWhatsnewService/Services.aspx?service=gettopstoriestabnews </code></pre> <p>This is my web service I have to parse and store all value in <code>String</code> please help me how to parse. </p> <p>using asp.net (C#) so that I can store :</p> <pre><code>news_id as it variable ...
c# asp.net
[0, 9]
572,545
572,546
How to kill session in jQuery function when I redirect to the logout page through jQuery?
<p>Hi all, I have gone through this example to end session when user was inactive for some amount of time which works fine</p> <p><a href="http://www.philpalmieri.com/js_sandbox/timedLogout/" rel="nofollow">http://www.philpalmieri.com/js_sandbox/timedLogout/</a></p> <p>But when it redirects back to <code>logout</code...
jquery asp.net
[5, 9]
4,548,393
4,548,394
Why does the html disappear?
<p>I would like to insert <code>&lt;div&gt;&lt;p&gt;Test&lt;/p&gt;&lt;/div&gt;</code> in another DIV at the top. So I try</p> <pre><code>$(document).ready(function(){ $('form').live('submit', function(){ var aform = $(this); $('#w').append('&lt;div&gt;&lt;p&gt;Test&lt;/p&gt;&lt;/div&gt;'); }); }); </c...
javascript jquery
[3, 5]
1,519,273
1,519,274
Linking c++ and c#
<p>I'm trying to link the C++ defined libraries , so that they be used in C#. I have an <code>CString PastUsed</code> that holds a variable in C++, which I'm trying to access in C#.</p> <p>In C++, I stored the value of the variable <code>PastUsed</code> in the '.odl' file as <code>BSTR PastUsed</code>. I'm using <cod...
c# c++
[0, 6]
1,304,259
1,304,260
PHP array to echo javascript array that I can access?
<p>I have a php array called $user.</p> <p>At the minute I am getting the variables across to javascript by manually adding them like so.</p> <pre><code>var username = ' . $user['username'] . '; </code></pre> <p>And so on is there a way I can make php echo a javascript array that I can access?</p>
php javascript
[2, 3]
3,262,141
3,262,142
Getting problem related to webmethod
<p>i have varchar value in database like (1110000111) when i search through autocomplete extender it display like (2013) means it converted into binary to decimal format but my requirements is it should display in (11100000111) this format means in original format.</p> <p>so plz help me how can i achive this through w...
c# asp.net
[0, 9]
4,901,043
4,901,044
processing returned json array in jquery
<p>I have a PHP page that returns a piece of HTML to set the values of a menu.</p> <pre><code>while($employee = mysql_fetch_array($query)) { $employee_menu = $employee_menu . '&lt;option value="'.$employee['id'].'"&gt;'.$employee['first'].' '.$employee['last'].'&lt;/option&gt;'; } echo json_e...
php jquery
[2, 5]
2,963,172
2,963,173
formatting json data to be camelCased
<p>I get a json response from the server that looks something like this:</p> <pre><code>{ "Response": { "FirstName": "John", "LastName": "Smith", "NickNames": { "NameOne": "Johnny", "NameTwo": "JohnS", "NameThree": "Smithy" }, "Success": t...
javascript jquery
[3, 5]
3,594,722
3,594,723
How to make a continuous connection between php and python
<p>I want to make a real time application. So here is the scenario- I have data coming to my computer through one of my COM port, which then is fetched by python and shown. For this I have used just a simple python <code>serial</code> module which reads the data via serial port and shows it.</p> <p>Now this data is lo...
php python
[2, 7]