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
873,348
873,349
Comparisons between date as facebook by jquery
<p>How to compare the time/date between dates as how facebook does? Please see the attached image to understand my requirement. Is there any solution using jquery?</p> <p><img src="http://i.stack.imgur.com/hQz7j.jpg" alt="enter image description here"></p> <p>I tried as following js code, but i not have output in it ...
javascript jquery
[3, 5]
4,519,016
4,519,017
Ajax url navigation
<p>I'm trying to make something similar to GitHub that loads content based on the url.</p> <p>I saw this <a href="http://stackoverflow.com/questions/2586661/url-navigation-in-an-ajax-based-website">article</a>, but I do not want to use a plugin. I would like to write my code manually.</p> <p>One article I saw <a href...
javascript jquery
[3, 5]
4,136,326
4,136,327
Simple Modal not working in IE 9
<p>Below is URL of the page which works fine in Firefox, chrome, Safari but for some reason it is not working in IE 9.</p> <p>Modal shows a banner when page loads.</p> <p><a href="http://tinyurl.com/b52drmt" rel="nofollow">http://tinyurl.com/b52drmt</a></p> <p>link for modal i am using <a href="http://www.ericmmarti...
javascript jquery
[3, 5]
5,072,529
5,072,530
Get value of HREF from Anchor tag using JQuery
<p>I have an anchor tag like this</p> <pre><code>&lt;a class="k-link" href="#"&gt;Add New Details&lt;/a&gt; </code></pre> <p>After clicking on the link i need to get the value of </p> <pre><code>&lt;list id="getval"&gt; #=Id# (5) &lt;/list&gt; </code></pre> <p>I have written the code something like this.</p> <pre>...
javascript jquery
[3, 5]
3,151,242
3,151,243
Missing } in XML Expression
<p>I am trying to change our site to load a Header through jquery using the .load() function but to do so I need to set the Title of the page. </p> <p>From another StackFlow question it was suggested to do something as simple as </p> <pre><code>$(document).ready(function() { document.title ='Name Changed to Prot...
javascript jquery
[3, 5]
5,397,534
5,397,535
How to reuse a dropdownlist each row of a table instead of rebuilding it
<p>I have a table the uses the same dropdown list in each row. I thought that I could just create one dropdown list and then reuse it in each new row, but the table only ends up with one row unless I create "new" dropdownlist. Am I approaching this all wrong? </p> <p>In the interest of efficiency, is there a way to...
c# asp.net
[0, 9]
924,765
924,766
How can I load an apk dependency from the android market?
<p>I'm using google moderator as a simple way to collect feedback for my application. There's a google moderator app on the market that provides a better interface than the website for mobile users. </p> <p>Getting to the point: Is there a way to get it to install along with your application or a reasonable way to ide...
java android
[1, 4]
5,123,459
5,123,460
Android proximity alert,from kml file
<p>im trying to plan and build a small android app that takes in a kml file of co-ordinates, these coordinates are grouped together as a lineString with maybe a couple of dozen points in each linestring, im trying to build an app that as the user travels if they are within a set of these cordinates marked as a line on ...
java android
[1, 4]
4,880,468
4,880,469
regex parsing a dynamic parameter from url string
<p>I have a URL as follows: www.mysite.com?paramNamePrefixXXX=value</p> <p>What is the best way to parse the url for the parameter name / value where XXX is dynamic/unknown..</p> <p>Since I don't know the parameter name at render time.. I'd like to match on the 'startswith.. 'paramNamePrefix' + XXX (where XXX is some...
javascript jquery
[3, 5]
3,943,542
3,943,543
how do I add items to listview dynamically in android
<p>Can anybody help me? I'm trying to create a ListView in Android, and I'm trying to load items into it using code (not using XML)</p> <p>Here's the code that I have so far</p> <pre><code>tweetList = (ListView)this.findViewById(R.id.tweetListView); TextView tv; for(int i=0;i&lt;20;i++) { ...
java android
[1, 4]
2,030,021
2,030,022
Next question which depends on the button you press
<p>I'm a complete newb writing out a small little script in which the third question depends on what button you press on the second question, however I am completely lost as to how I should proceed :/</p> <p><a href="http://jsfiddle.net/pufamuf/uSuqB/6/" rel="nofollow">http://jsfiddle.net/pufamuf/uSuqB/6/</a></p> <p>...
javascript jquery
[3, 5]
4,201,529
4,201,530
ASP.Net 2012 Unobtrusive Validation with jQuery
<p>I was playing with Visual Studio 2012 and I created an <strong>empty ASP.Net Web Application</strong>, when I tried to add the <em>traditional validator controls</em> to a new page, this error occurs:</p> <blockquote> <p>WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add ...
c# asp.net
[0, 9]
88,174
88,175
jQuery: consecutive Ajax requests allowed?
<pre><code>$(document).ready(function() { $("#firstTimeSubmit").click(function(event) { event.preventDefault(); var name = $("#firstTimeText").val(); if (name == "" || name.length &gt; 12) { $("#updates").html("&lt;b&gt;Dummy! Invalid name!&lt;/b&gt;"); } else { $.ajax({ type: "GET...
javascript jquery
[3, 5]
4,902,540
4,902,541
How to create movement from button on google map Android
<p>Need to make navigation buttons on the map, can someone tell how to do such a thing, no tutorial on this subject is not found, and as such I do juzat not imagine. Card in the phone led, now you need to add a touch of a button, or go up or down or left or right. Does anyone have any examples? Or at least tell me what...
java android
[1, 4]
5,161,396
5,161,397
Toggle show/hide <div> element with jQuery
<p>I have used following Jquery to show div on button click, with following code. But its not showing the div on button click.</p> <pre><code>$(document).ready(function(){ $("#addbutton").show(); $("#addchild").show(); $('#close').click(function(){ $("#addbutton").slideToggle(); }); }); </code></pre> <p>Wh...
javascript jquery
[3, 5]
666,080
666,081
selecting uploaded images with jQuery
<p>I have list of uploaded images in a div. For example this: <a href="http://jsfiddle.net/CymEv/" rel="nofollow">http://jsfiddle.net/CymEv/</a> I want to select multiple images from the list (by clicking on it, and deselect by clicking again (eg. toggle), and I want to get the names of selected images. How can I do th...
javascript jquery
[3, 5]
5,855,428
5,855,429
jQuery.get() Variables Scope
<p>I'm working with jQuery's Ajax but in my case I need to store the response in global variables:</p> <pre><code>var points = Array() $.get("/data", {"id": 1}, function(data) { for (var i=0; i &lt; data.length; i++) { points[data[i].someid] = data[i]; } alert(points[22].someid.toString()); // it works...
javascript jquery
[3, 5]
5,066,143
5,066,144
Android Book similar to Effective Java (Joshua Bloch)
<p>Do you know a book similar to Effective Java but the main concentration is the Android Environment? </p> <p>I mean, there are a lot of programming resources in android, also in java but what I am thinking is a kind of compilation. A good example: Effective Java book is a compilation of java language best practices....
java android
[1, 4]
4,217,878
4,217,879
IF File Exists Javascript
<p>Can anyone see anything wrong with this? It stops the image changing when the image is not here as I want but it does not change the image all the time when it does!</p> <p>Cheers, Shaun </p> <pre><code>var myFile = "/_images/multi/" + productCode + "/" + imgCodeAlt + "_l.jpg"; if (myFile.exists()) { $("#i...
php javascript
[2, 3]
1,122,823
1,122,824
hide/show div on image click with jquery?
<p>I am trying to show/hide div when click on an image. when I click on the image nothing happens. What is wrong with my code</p> <pre><code>&lt;script type="text/javascript"&gt; $('#close').click(function(){ $('#main').show(); $('#login').hide(); }); &lt;/script&gt; &lt;div style="float:right;"&gt;&lt;a ...
javascript jquery
[3, 5]
2,459,740
2,459,741
registering javascript function using ScriptManager.RegisterClientScriptBlock
<p>I have following script registered on page load:</p> <pre><code> ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "watermark", "function WaterMark(txtWaterMark, event,text) { if (txtWaterMark.value.length &gt; 0 &amp;&amp; event.type == 'mouseover') {txtWaterMark.style.color = '#c6c1c1'; if(txtWater...
c# asp.net
[0, 9]
971,049
971,050
$("#but0_0").attr(...) works but $(hid).attr(...) does not work when hid === "#but0_0"
<p>On Safari 4.0, I have a check that prints "????" if hid === "#but0_0"</p> <p>Works:</p> <pre><code>$("#but0_0").attr("onmousedown",function(){alert("Aha!");}); </code></pre> <p>Doesn't work:</p> <pre><code>var id = "but"+y+"_"+x; var hid = "#"+id; if (hid === "#but0_0") console.debug("????"); $(hid).attr("onmous...
javascript jquery
[3, 5]
1,346,689
1,346,690
How can I access the row in a RowCommand event
<p>I am trying to find a DropDown element in the GridView_RowCommand but it says that GridViewCommandEventArgs does not contain a definituon for 'Row'. I need to do this in this event because i am evaluating a GridView Command. See failing code below</p> <pre><code>protected void GridView1_RowCommand(object sender, Gr...
c# asp.net
[0, 9]
3,364,746
3,364,747
jquery swap images on click and hide then
<p>I'm trying to build a menu. OVer a canvas I load different images and position them using CSS. Currently I operate with SHOW / HIDE with a lots of code duplication. My questions are: - instead of just hidding an image, how can I change it on click with another one? and then again hide it, if I should click another b...
javascript jquery
[3, 5]
139,104
139,105
Java conversion to php?
<p>Is it possible to convert this java code snippet to php?</p> <pre><code>public void testBalanceReturnsToZeroOnVending() { sodaVendor.insertCoin(50); sodaVendor.insertCoin(20); sodaVendor.insertCoin(5); // The price is right! assertEquals("We have e...
java php
[1, 2]
4,561,713
4,561,714
Create intermediate element with jQuery
<p>I want to invoke a creation of div with certain class just below the invoke button, how can I do that most efficiently with jquery?</p>
javascript jquery
[3, 5]
208,683
208,684
change inputType
<p>How can I change the <code>inputType</code> if is verified a particular situation?</p> <pre><code>if(currentMethod.equals(3)) { display.setText(""); if(nuovo.equals("")) /**se nell'EditText non ci sta scritto nulla,numero2 = 0**/ { Toast t = Toast.makeText(Convertitore.this, "Inserire un nume...
java android
[1, 4]
4,356,710
4,356,711
CA2000 object 'comm' is not disposed along all exception paths
<p>I have a bunch of methods like so in my DAL in VS 2010. When I run the "new" Code Analysis option i get the message - Warning CA2000 object 'comm' is not disposed along all exception paths. Call System.IDisposable.Dispose on object 'comm' before all references to it are out of scope.</p> <p>I understand I could ...
c# asp.net
[0, 9]
3,209,607
3,209,608
jQuery tree menus won't expand!
<p>I'm using the <a href="http://wordpress.org/extend/plugins/cms-tree-page-view/" rel="nofollow">Page Tree View</a> plugin and I may have done something recently to install the latest version of JDK that screwed up my jquery in WordPress because now the menu items won't expand. They appear, and they even show the load...
jquery javascript
[5, 3]
4,942,998
4,942,999
How to access CISCO Tapi from .Net Application
<p>I am new to Tapi. Please apologizes me, if anything is wrong or not clear. </p> <p>I need a c++ wrapper for accessing cisco Tapi from my application (Developed in .net 3.0 with c#) I Searched on web, I got free wrapper and sample code like (Julmar Itapi and Atapi and Helan warn wrapper). These wrappers are used ac...
c# c++
[0, 6]
3,290,401
3,290,402
Headaches with radios in Jquery
<p>I have 2 radios:</p> <pre><code>&lt;input id="a_15_0" type="radio" value="abc" name="a_15"/&gt; &lt;input id="a_15_1" type="radio" value="xyz" name="a_15"/&gt; </code></pre> <p>Both are unselected. I have only the name of the radio, i.e <code>a_15</code>, but not the IDs.</p> <p><strong>1)</strong> How can I get ...
javascript jquery
[3, 5]
1,849,264
1,849,265
get the ful imagepath for any image on the web
<p>If I get any image tag from any website I want to be able to get the full path to the image file.</p> <p>eg:</p> <pre><code>src="http://www.example.com/images/foo.gif" //This is fine src="images/foo.gif" src="/images/foo.gif" </code></pre> <p>for the bottom two src attributes, how can i get the full image path?...
c# asp.net
[0, 9]
599,422
599,423
how to create a list of span for a given array
<p>Let's say I have an object which looks like that:</p> <pre><code>var users = ['user1', 'user2']; </code></pre> <p>For this object I would like to create a list of span like that:</p> <pre><code>"&lt;span&gt;user1&lt;/span&gt;&lt;span&gt;user2&lt;/span&gt;" </code></pre> <p>I did try the following code</p> <pre>...
javascript jquery
[3, 5]
270,410
270,411
Easiest way to get element parent
<p>Suppose i have this structure of elements:</p> <pre><code>&lt;div class="parent"&gt; &lt;div class="something1"&gt; &lt;div class="something2"&gt; &lt;div class="something3"&gt; &lt;div class="something4"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/...
javascript jquery
[3, 5]
3,083,251
3,083,252
Why isn't my switch block (switching on $(e.target) .attr("class")) working?
<p>I am trying to figure out why this code doesn't work.. <br></p> <p>All i want is to have simple event delegation to assign one event listener.</p> <p>it only alerts, it doesn't animate. Please let me know whats wrong here:</p> <pre><code>$(document).ready(function() { var img = $("img"); $("span").click(functi...
javascript jquery
[3, 5]
679,844
679,845
Is it possible for an Android app to modify the screen at all times?
<p>To give a ridiculous example, could you have a water app/service that stayed on the display AT ALL TIMES (or perhaps only when not actively using another application) and caused ripples to occur when you touched the screen? I would not want an app like this, but it's just an example.</p> <p>I know there is a live w...
java android
[1, 4]
536,086
536,087
How can I say this in jQuery?
<p>I want to append some text after 2 closing divs to a sector element.</p> <pre><code>&lt;a href="" class="thingIClicked"&gt;Click me&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; // this is where I want to append the text </code></pre> <p>My code appends the text after the link. How can I say "append it after the 2nd closin...
javascript jquery
[3, 5]
1,104,135
1,104,136
View and Shadowbuilder
<p>I am working on a <strong><code>dragdrop</code></strong> game, but I have small problem, that when I click in a view the shadow builder appears first at the right-top-corner and then it moves with the touch place. </p> <p>Aslo the shadow builder is smaller than the initial view. How can I make it as the initial vi...
java android
[1, 4]
4,891,105
4,891,106
Calling server side function from client side
<p>I am using <code>Asp.Net/C#</code> in my application.My current situation is that I am using <code>Jquery</code> tabs on one of my pages , I have tabs in the following order</p> <ol> <li>Personal Details</li> <li>Additional Details</li> <li>Submit Data</li> <li>Show Records</li> </ol> <p>On the tab Show Records I ...
c# jquery asp.net
[0, 5, 9]
2,798,722
2,798,723
Is there a php function like python's zip?
<p>Python has a nice <a href="http://docs.python.org/library/functions.html#zip"><code>zip()</code></a> function. Is there a PHP equivalent?</p>
php python
[2, 7]
5,578,558
5,578,559
Unable to execute dex: Multiple dex files define
<p>I know this question has been asked here a few times before. But i haven't seen any possible solution yet. Before i make the project 'Run as Android Application' , if i do not clean it, i receive the following error and have to restart Eclipse ... and clean again.</p> <pre><code>Conversion to Dalvik format failed:...
java android
[1, 4]
4,707,084
4,707,085
selecting div that contains div with a certain value
<p>I have several outer divs, all of them contain 3 inner divs <code>class1</code> <code>class2</code> <code>class3</code>. I want to select the outer div based on the value attribute of its inner div that has <code>class1</code>. For example, I want to select the first div because its <code>class1</code> div has value...
javascript jquery
[3, 5]
3,010,670
3,010,671
How can I detect the browser in JavaScript?
<p>I need to detect the browser with JavaScript.</p> <p>I have an image gallery with different js files for FireFox, Chrome, and IE. How can I detect the browser display the corresponding file?</p>
javascript asp.net
[3, 9]
2,860,396
2,860,397
Animated toggle in jQuery not linking through
<p>Im trying to make an animated list that when an item is clicked, a child UL toggles display and becomes visible. The problem is however, when the user then clicks a child LI within the newly visible List, the display is then toggled again as opposed to the link going to a new page...</p> <p>My jQuery is...</p> <pr...
javascript jquery
[3, 5]
3,166,818
3,166,819
Displaying different images at different times with JQuery
<p>I have a rotator on a homepage that rotates every 10 seconds or so. I'm trying to set it up to where at 7p, 8p, and 9p it displays a specific image and doesn't rotate (if it has to rotate, that's fine, but at least want it to start on a specific image), and then the rest of the time it rotates as normal.</p> <p>Ok,...
javascript jquery
[3, 5]
4,850,725
4,850,726
How to create an array from elements of another array using javascript
<p>I'm trying to filter an array to build another array with the results I get. But the combination of functions I have been using with jQuery haven't workk so far. So I would appreciate some advice about how to solve this.</p> <p>Here is the example of what I'm trying to implement:</p> <p>This is my first array:</p>...
javascript jquery
[3, 5]
4,240,702
4,240,703
call local image in drawable with html (WebView)
<p>This question has been asked few times in forums, but in my code, i can't display my image. I think it's not the right method :</p> <pre><code>webViewContact.loadData(db.getParametres().get(0).getInformationParam(), "text/html", "utf-8"); </code></pre> <p>getInformationParam() recup the HTML code, like :</p> <pre...
java android
[1, 4]
5,450,399
5,450,400
Is there a way to include PHP value inside a javascript function?
<p>I want to dynamically tell a javascript which <code>&lt;div&gt;</code> to hide, but I dont know how to send the request to the javascript as it is a client side script.</p> <p>for eg:</p> <pre><code>&lt;? $divtohide = "adiv"; ?&gt; &lt;script language="javascript"&gt; function hidediv($divtohide) { ...
php javascript
[2, 3]
1,451,752
1,451,753
How to save a file with information from another program
<p>I'm trying to write a program that will help me label ports for work. I am using CDPR to find the information. The command prompt gives me a read out and I want to use the Port ID value only. I want to manually enter the patch panel info in a box and the switch port auto fills with the Port ID that CDPR provides. I ...
c# java
[0, 1]
5,566,992
5,566,993
Using click event while button is disabled
<p>I need to check on clicks while the button is disabled is this possible? Or is there any other way to this?</p> <p>HTML:</p> <pre><code>&lt;form id="form"&gt; &lt;input type="submit" id="submit" value="Submit" /&gt; &lt;/form&gt; </code></pre> <p>JS:</p> <pre><code>$("#form").submit(function (e) { e.preven...
javascript jquery
[3, 5]
1,322,594
1,322,595
Checkboxlist count function not working
<pre><code> function isSubCateChecked() { var chkBoxList = document.getElementById("ctl00_ContentPlaceHolder1_chkSubCategory"); var chkBoxCount = chkBoxList.getElementsByTagName("input"); var isCheck = false; for (var i = 0; i &lt; chkBoxCount.length; i++) { ...
javascript jquery asp.net
[3, 5, 9]
5,627,723
5,627,724
jQuery OOP technique confusion
<p>I'm looking at <a href="http://jamietalbot.com/2010/08/22/object-oriented-jquery-plugins/" rel="nofollow">Jamie Talbot's technique for OOP in jQuery</a>. I pretty much understand this for the most part, however I'm getting slightly lost when trying to understand the logic for this:</p> <pre><code>result = $(result)...
javascript jquery
[3, 5]
1,460,217
1,460,218
Should clone(true) be used when appending cloned elements, or on() with clone(false)?
<p>When cloning an element and appending it to another element, is it better to clone the events off the original element, or using on() so the events need not be cloned? Better is based on being faster, using less memory, and being the more official way of doing it. Please explain why one way is better than another....
javascript jquery
[3, 5]
3,410,202
3,410,203
whats the pros/cons with working with PHP as opposed to asp.net or the whole .net framework?
<p>I'm currently working with php but everyone is telling me that asp.net is so much better. What is the real story?</p>
php asp.net
[2, 9]
4,915,435
4,915,436
Variables inside methods
<p>I have this method:</p> <pre><code>public String Nov2() { String[] ops = new String[] {" + ", " - ", " * ", " / "}; int i = rand.nextInt(4-0) + 0; String op1 = ops[i]; int novnum1 = rand.nextInt(101-1) + 1; int novnum2 = rand.nextInt(101-1) + 1; String novnum1str = Integer.toString(novnu...
java android
[1, 4]
5,372,024
5,372,025
Select Element From List by Index with jQuery
<pre><code>&lt;form id="foo"&gt; &lt;input&gt;&lt;/input&gt; &lt;input&gt;&lt;/input&gt; &lt;input&gt;&lt;/input&gt; &lt;/form&gt; </code></pre> <p>I want to do:</p> <p><code>document.getElementById("foo").getElementsByTag("input")[1];</code></p> <p>But in jQuery. I want to select a certain object under ...
javascript jquery
[3, 5]
4,836,604
4,836,605
JQuery change the value of an <img src="" by ID
<p>I need some simple JQuery code so I can change the src value of a specific img.</p> <p>It's currently:</p> <pre><code>&lt;img id="myImage" src="image1.gif" /&gt; </code></pre> <p>and I need to change it to:</p> <pre><code>&lt;img id="myImage" src="image2.gif" /&gt; </code></pre> <p>using JQuery.</p>
javascript jquery
[3, 5]
4,726,946
4,726,947
Am I missing something? My values don't get stored into my array
<p>I have this</p> <pre><code> var selected = [] $('#SelectBoxContainer .DDLs :selected').each(function (i, selected) { alert($(selected).val()); selected[i] = $(selected).val(); }); </code></pre> <p>My alert is telling me that it is going through this loop and getting ...
javascript jquery
[3, 5]
2,609,613
2,609,614
ImageMap display in asp.net
<p>I have building image with seating positions, I have to display selected location of image on button click. example If user select seat num 120 I have to locate seat num 120 and highlight the seat num. Image is very big 2000x1500 size so I have to show the image with selected position ,like in google map it display ...
c# asp.net
[0, 9]
1,757,679
1,757,680
using both auto post back and validators
<p>have a pulldown with both AutoPostback set to true and a validator. When I select an "invalid" value from the pulldown, the validator message shows briefly, then a postback occurs and the errormessage is gone! this is my code:</p> <pre><code>&lt;asp:TextBox ID="SerialFrom_txt" runat="server" BackColor="White" Borde...
c# asp.net
[0, 9]
2,817,568
2,817,569
lightbox promblem in master page
<p>I am using LightBox v2.0.4 with master pages on a web site and I am having problems with the loading.gif and closelabel.gif images appearing. In lightbox.js, whenever I run the program it gives error in this line</p> <pre><code> fileLoadingImage: 'images/loading.gif', fileBottomNavCloseImage: 'imag...
asp.net jquery
[9, 5]
2,451,550
2,451,551
Stack OverFlow in Plain Javascript
<p>I am using simple windows.open function to open up a popup window. While teh same is working fine in another page.</p> <p>Basically there is a user control and that user control has simple table. In there I am using a link button where ONClientClick I am using windows.open('some.aspx'). But it is giving error like ...
asp.net javascript
[9, 3]
2,650,516
2,650,517
Jquery: Setting permanent height to an specific tab & resize plugin
<p>I am working with jquery sliding tabs. I have found a resize plugin that helps the tabs adjust to expanding content. The only thing is that i want to set a permanent height to tab 1(st_content_1). The code i have below works but it is a bit faulty. </p> <ul> <li>Should place in the function if statements?</li> <li>...
javascript jquery
[3, 5]
4,989,302
4,989,303
jQuery if statement with variable mathematical operator
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/10591243/is-there-a-way-to-make-a-comparison-operator-a-variable">Is there a way to make a comparison operator a variable?</a> </p> </blockquote> <p>So I am looking for something similar to this question <a href...
javascript jquery
[3, 5]
571,859
571,860
How to append the output of a servlet using JQuery
<p>I am currently making a website. Basically when the user scrolls to the bottom of the screen I am going to download another 10 posts (I'm making a little social network). To do this I have downloaded JQuery. The following JavaScript is ran when the user scrolls to the bottom of the page:</p> <pre><code>page++; var ...
java javascript jquery
[1, 3, 5]
627,973
627,974
How to create public and private members?
<p>I'm a bit confused, how can I create public and private members.</p> <p>My code template so far is like:</p> <pre><code>(function()){ var _blah = 1; someFunction = function() { alert(_blah); }; someOtherFunction = function() { someFunction(); } }(); </code></pre>
javascript jquery
[3, 5]
4,739,146
4,739,147
Disable LinkButton when OnClick Event Fires
<p>I have an asp:LinkButton as follows:</p> <pre><code>&lt;asp:LinkButton ID="LinkButtonNewServicesCategory" runat="server" OnClientClick="this.disabled=true;return false;" style="float:left;margin-right:5px;" CausesValidation="False"&gt;new services category&lt;/asp:LinkButton&gt; </code></pre> <p>The int...
asp.net javascript
[9, 3]
269,689
269,690
Collapsable div, but from a certain point defined in a variable
<p>E.g. I have a div that contains all the text like:</p> <pre><code>&lt;div class="text-container"&gt; &lt;p&gt; Though we welcome the idea of a smaller connector, we're miffed that Apple couldn't just adopt the semi-industry standard of Micro-USB. That would make things easier for smartphone users across the globe. ...
javascript jquery
[3, 5]
3,297,769
3,297,770
jQuery - change value of css class dynamically
<p>I have an image slider written in jQuery. I need the images to be in groups of two (like a magazine) so i have classes .pageLeft and .pageRight that apply a left- or right-margin equal to the width of the container minus the width of a page img (.page class). I want to be able to fullscreen this slider and dynamical...
javascript jquery
[3, 5]
1,430,801
1,430,802
Auto Load and Refresh Div every 10 Seconds with jQuery
<p>I'm working with a nice little Jquery that auto loads and refreshes a div every bla bla Seconds. Works perfectly on all browsers then I load up IE and bang what a surprise no luck! :(</p> <p>Index.html</p> <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jquery/1.3.0/jquery....
javascript jquery
[3, 5]
3,311,085
3,311,086
When should I define an hash code function for my types?
<p>Is there any other reason for implementing an hash code function for my types other than allowing for good use of hash tables? </p> <p>Let's say I am designing some types that I intend to use internally. I know that types are "internal" to the system, and I also know I will never use those types in hash tables. In ...
c# java
[0, 1]
2,021,063
2,021,064
replacing div content with a click using jquery
<p>I see this question asked a lot in the related questions, but my need seems very simple compared to those examples, and sadly I'm just still too new at js to know what to remove...so at the risk of being THAT GUY, I'm going to ask my question...</p> <p>I'm trying to switch out the div contents in a box depending on...
javascript jquery
[3, 5]
4,617,289
4,617,290
How to select multiple li item using control key in jquery?
<p>Here i am selecting a single li item in one list and on click of the add button the selected item will be moved to the next lsit</p> <pre><code> $("#list3 li").click(function () { $("#list3 li").removeClass('clicked'); $(this).addClass('clicked'); }); $("#add").click(f...
jquery asp.net
[5, 9]
2,977,524
2,977,525
Porting mypaint to C#?
<p>I want to develop a cross language project with mypaint in Visual Studio. I want to open and access mypaint python and c++ code in Visual Studio and add C# code for new parts, including using C# libraries. How would I go about doing this? How do I get the different parts into Visual Studio from the sourcecode or sho...
c# c++ python
[0, 6, 7]
4,606,411
4,606,412
How to compare if string has a enter key in the end using jquery/javascript?
<p>I have a string value from a user input box. I have to figure out if last char is a enter key (line feed).</p> <p>Thats the code. Here I am checking if last char has a whitespace. Now I also have to check if last char is enter key (carriage return or line feed). How can i do this?</p> <pre><code>var txt = $get("&l...
c# asp.net javascript jquery
[0, 9, 3, 5]
2,250,436
2,250,437
Is there a method to retrieve the file name of a class?
<p>Is there a method to retrieve the file name of a class?</p> <p>Specifically I would like to create a static method (CreateLink) in a base class (BasePage) to automatically return the path and filename of the page called.</p> <p>I code in .C# ASP.NET</p> <pre><code>private const string TEMPLATE = "~/One.aspx";...
c# asp.net
[0, 9]
4,511,587
4,511,588
How to create draggable widgets?
<h2>Background</h2> <p>I am tasked with developing the front-end to an analytics product that presents the information to the user in a customizable dashboard like the one used by Google Analytics: - Dashboard is comprised of draggable widgets arranged in a grid layout - Widgets have a drag handle which can be click...
javascript jquery
[3, 5]
3,792,984
3,792,985
Android: ListView fixed height of child view
<p>Please advice how to set fixed heigh (in dip) for the child view of ListView component?</p> <p>I am using relative layout as root layout for the child view</p> <p>when I set backgoround image to relative layout it becomes very height (maybe because backgoround picture is large) and I want to set precisely the heig...
java android
[1, 4]
752,119
752,120
PHP to PYTHON inter communication
<p>How can I run a Python script store in another server from PHP? I have googled for this and found many solutions to run Python files from PHP, but those were for Python files stored locally. Mine's on a another server.</p>
php python
[2, 7]
5,246,995
5,246,996
Template Control events occurs in second click.Not on First Click
<p>i Don't know what i missing here.</p> <p>i have a gridview in which a template control contains a link button.At link button click i scroll down to bottom of page<code>[Focusing a Panel Control]</code>. See this how i doing the <a href="http://stackoverflow.com/questions/9360706/do-the-scrolling-in-client-brower-wi...
c# javascript asp.net
[0, 3, 9]
1,488,994
1,488,995
How I do javascript string manipulation?
<p>I have a variable like this:</p> <pre><code>var data= [{"Timestamp":1349816400000,"TaskEffortLeft":123},{"Timestamp":1352498400000,"TaskEffortLeft":-123}] </code></pre> <p>Now I want to strip out those "Timestamp": and "TaskEffortLeft": and also change curly brackets into big bracket and make it Like this:</p> <p...
javascript jquery
[3, 5]
2,279,652
2,279,653
Method Swizzling in Android using java
<p>Is it possible to do method swizzling in android using java? i would like to intercept a system method and log its parameters then process it normally </p>
java android
[1, 4]
2,832,144
2,832,145
Android Bluetooth sharing possible?
<p>Before Start working on android Bluetooth i wanted to ask some Questions.</p> <p>1) what are the limits of Bluetooth in android. 2) what were the Bluetooth Features different API's provide. 3) how many devices can we connect simultaneously with one server. 4) can a single device can send and receive at a time.</p>
java android
[1, 4]
1,493,492
1,493,493
Change value control in asp.net basend on custom event triger
<p>Hi i want to update value in textbox when event trigger..i know how to do it in winform..but i cant do it in webform..</p> <pre><code> protected void Page_Load(object sender, EventArgs e) { if(IsPostBack) return; else myClass.MyEvent += new MyClass.MyEventDelegate(Defau...
c# asp.net
[0, 9]
1,991,826
1,991,827
cells.InnerHtml not getting correct way
<pre><code>protected void ReadHtmlTable(string patientName, string startHour, string startMinute, int rowspan) { for(int i = 0; i &lt;= tableAppointment.Rows.Count - 1; i++) { for(int j = 0; j &lt;= tableAppointment.Rows[i].Cells.Count - 1; j++) ...
c# asp.net
[0, 9]
4,852,464
4,852,465
Show/Hide Multiple Divs
<p>I am trying to trigger a show/hide of one div at a time.</p> <p>What is happening is that all the divs (.shareLink) are opening at the same time.</p> <p>Below is my jqury:</p> <pre><code>$(document).ready(function(){ $(".shareLink").hide(); $("a.trigger").click(function(){ $(".shareLink").toggle("400"); return fa...
javascript jquery
[3, 5]
4,495,023
4,495,024
response from server width jquery Ajax
<p>i can use this below code for sending any data to server and getting successful result, but my code dont sent respond <code>$data</code> is true or false. code is can successful insert to database localhost PHP file:</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt; &lt;META HTTP-...
php jquery
[2, 5]
1,497,316
1,497,317
how to set separate css to each menu item in the asp menu control
<p>i have a menu control like below</p> <p><strong>menu1 menu2 menu3 menu4</strong></p> <p>how to set separate ccs for each menu?. menu1--css1 menu2--css2 menu3-css3.. like this</p> <p>Thanks.</p>
c# asp.net
[0, 9]
4,215,629
4,215,630
how to make this carousel continious?
<p>Does anyone one know how to make this carousel continious ? here is the source <a href="http://www.ajaxdaddy.com/demo-jquery-carousel.html" rel="nofollow">http://www.ajaxdaddy.com/demo-jquery-carousel.html</a></p> <p><code>jQuery('#mycarousel').jcarousel({ vertical: true, size: 6, scroll: 4 ...
javascript jquery
[3, 5]
5,018,739
5,018,740
Which jQuery/css menu library for working with ASP.NET TreeView or Menu controls
<p>I'm looking for a good jQuery or CSS, or combo, library to enance my left side menu in an an intranet application. I don't like the 'hover only' expand/collapse style of the ASP.NET Menu control on its own, and I don't like the 'icon-click only' expand/collapse style of the TreeView control on its own.</p> <p>I pl...
asp.net jquery
[9, 5]
1,132,574
1,132,575
JQuery Only Toggle if checkbox gets checked .. possible?
<p>I am using the code below where it toggles between 2 div's. My problem is that I'm using a checkbox to trigger the toggle. What I need is that...</p> <p>If the checkbox is NOT check and the user checks it ... then it toggles but if the checkbox is already checked then do not toggle.</p> <p>Is this possible at all?...
javascript jquery
[3, 5]
3,543,275
3,543,276
changing html tags with javascript and get the value on server side
<p>I have this HTML tag:</p> <p><code>&lt;span id="pricea" runat="server"&gt;13323223&lt;/span&gt;</code> and I am changing this value with JavaScript:</p> <pre><code>&lt;script type="text/javascript"&gt; $(function () { $("#pricea").hover(function () { document.getElementById("pricea").innerHTML = "1234"...
javascript jquery asp.net
[3, 5, 9]
4,128,454
4,128,455
Jquery mobile and Android integration
<p>I have fair knowledge of Android and sometimes had played with Jquery.<br> Now I want to develop a Android app with Jquery mobile but not sure how it works together.<br> Can anybody please share some good link to work with Android and Jquery mobile ? </p> <p>Thanks,<br> Ajinkya.</p>
jquery android
[5, 4]
5,423,687
5,423,688
form keeps getting submit event without pressing submit button
<p>I am trying to make a form so when user click button then it will submit but the problem is that it is keep getting on function even if I am not pressing submit button. here is my code</p> <pre><code>$(function () { var url, container, form, View = { init: function () { container = $('.con...
javascript jquery
[3, 5]
216,722
216,723
Can jquery animate the css background property?
<p>I know that you can <code>.animate() background-image</code> with jQuery. But can you <code>.animate()</code> <code>background: url(myImageURL) top center repeat-y</code> ?</p> <p>EDIT </p> <p>The purpose of the function is to animate from <code>background: undeclared</code> to <code>background: url(images/red_cu...
javascript jquery
[3, 5]
3,960,133
3,960,134
Print multiple documents continuously
<p>I want to implement a continious printing of document.Please see image below<img src="http://www.freeimagehosting.net/uploads/c87bde9396.png" alt="alt text"></p> <p>When I choose the checkboxes then click the print button, all the information of a particular applicant will be printed.Take note that each document wa...
c# javascript
[0, 3]
6,007,674
6,007,675
dynamic string with javascript
<p>for my login system,i have checked login credentials with php code in same file,but when user successfully logged in, i want to show You have logged in just bottom to the login form with javascript..how to do that!?</p>
php javascript
[2, 3]
5,835,582
5,835,583
Disable href with jquery/js
<p>I am having difficulties in disabling href links through jquery. I am using this method I modified. Can some please advise or help me in figuring this out? Thank you.</p> <p><strong>jquery/js</strong></p> <pre><code>&lt;script&gt; $('.next-tab').click(function() { $('.st_tab_active').attr('disabled','disable...
javascript jquery
[3, 5]
2,822,621
2,822,622
Difference between x.toString() and x+""
<p>Back in college one of my profs. taught us to just do <code>x + ""</code> as a quick conversion from basic types to strings.<br> I don't remember which class it was in I had him for some Java and C++ courses(I haven't used either for some time now), but I use it in C#/.Net now which is what I'm primarily developing ...
c# java
[0, 1]
2,085,018
2,085,019
Display only HTML links jQuery
<p>I have a url and I want to display only the html links or URLs using jQuery.</p> <p>Thanks Jean</p>
php jquery
[2, 5]