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,390,958
4,390,959
Benefits to starting JavaScript "for" loops at 0, or just traditional?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://programmers.stackexchange.com/questions/110804/defend-zero-based-arrays">Defend zero-based arrays</a> </p> </blockquote> <p>I'm running code that loops through an array of HTML IDs.</p> <p>With the HTML IDs named content1, content2, …, co...
javascript jquery
[3, 5]
556,029
556,030
How can I inform the Gallery about the touch event happening in ScrollView?
<p>I have the following custom classes. Currently the scroll for the ScrollView works fine. If I override the onTouchEvent in ScrollView and make it return false, the Gallery works fine however the ScrollView scroll does not. How can I make it so both will work together?</p> <p>This is the CardGallery class which exte...
java android
[1, 4]
1,339,977
1,339,978
set cursor position in textarea at end once user clicked on textarea
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4715762/javascript-move-caret-to-last-character">Javascript: Move caret to last character</a> </p> </blockquote> <p>I am working on text area using jquery, to provide good UI validation. Currently I stuck at -</...
javascript jquery
[3, 5]
557,101
557,102
Converting single quotes to double quotes inside a title attribute
<p>I have an image title that has a tag with double quotes in it, and I need to convert it to single quotes for use in a photo slideshow. I don't have the option of changing anything other than the attribute name, so I can't escape the quotes inside the value. </p> <p>Here's my html:</p> <pre><code>&lt;div id="image...
javascript jquery
[3, 5]
796,413
796,414
Loadind system shared library runtime in Android
<p>I need to write an application, which will be using a shared library. I need that application to be installed on devices with Android 1.6 and above. I have added the shared library information on the manifest file as follows:</p> <pre><code>&lt;uses-library android:name="com.google.android.maps" android:required="f...
java android
[1, 4]
4,733,730
4,733,731
working with Jquery dyanmic created elements?
<p>my simple script is append few elements through jquery .<br> what im trying to do is to add some ajax call for those created elements .<br> the issue is the event never work for those elements and i tried a lot of Jquery methods but all fail .<br></p> <pre><code>$("#currentbuild").append('&lt;li class="cancelevent"...
javascript jquery
[3, 5]
5,842,272
5,842,273
Pros and cons of using a Thread or TimerTask for an Android game
<p>Many Android game examples utilize a Thread to run a game engine on a particular interval. However, I've seen some other examples that use a TimerTask to run the game engine interval as well. I'm curious as to what other developers think the pros and cons of each approach are.</p>
java android
[1, 4]
2,871,633
2,871,634
How to do a USER NAME & PASSWORD protection in a web site before it is loading
<p>How can we able to protect a site using USERNAME and PASSWORD after we entering the URL and the site is before loading</p> <p>For ex: <a href="http://www.buildyourownbouquet.com/" rel="nofollow">http://www.buildyourownbouquet.com/</a></p> <p>I need exactly what it looks like...</p> <p>Thanks in Advance</p> <p>Fe...
php javascript
[2, 3]
2,545,258
2,545,259
Styling letters of a word within an input differently, possible?
<p>Wondering if this is even possible, but if I have a input containing text, for example lets say the word 'Test' is in the input. What I would like to be able to do is change the styling on the individual letters of the word 'Test'</p> <p>I would like the '<strong>Te</strong>' to be bold and then have the 'st' be r...
javascript jquery
[3, 5]
1,535,624
1,535,625
How can I pass arguments to event handlers in jQuery?
<p>With jQuery code like: <br/></p> <pre><code>$("#myid").click(myfunction); function myfunction(arg1, arg2) {/* something */} </code></pre> <p>How do I pass arguments to myfunction while using jQuery???</p>
javascript jquery
[3, 5]
5,046,416
5,046,417
mousedown div containment to parent(latest)
<p>My inner div is suppose to move around with the mouse cursor on mousemove but i want it to stop at the if statement if it is dragging with the isDragging variable so it will drag smoothly but it seems to not stop any suggestion and help would be appreciated update: <a href="http://jsfiddle.net/pPn3v/47/" rel="nofoll...
javascript jquery
[3, 5]
200,329
200,330
how to pass a command line argument to a c++ file through a python code?
<p>i am compiling a c++ file in python code using this os.system("rc.cpp") and then os.system("./a.out") . I would like to pass a command line argument to the rc file . how do i do it?</p>
c++ python
[6, 7]
4,272,438
4,272,439
Sorting javascript array
<p>I have a global array in javascript say <code>jsonArr = ["location","department","grade"];</code></p> <p>now inside my method i am doing this</p> <pre><code>var newArr = []; newArr = jsonArr; var sorted_arr = newArr.sort(); </code></pre> <p>my newArr is getting sorted but problem is along with jsonArr also got s...
javascript jquery
[3, 5]
4,600,322
4,600,323
t.tBodies(0).appendChild(r) is not working in firefox
<p><code>t.tBodies(0).appendChild(r);</code> is not working in firefox. This is javascript code and used to create dynamic table elements. Please advice. </p>
javascript asp.net
[3, 9]
5,816,403
5,816,404
jquery attr(name,value) method's value parameter
<p>I'm reading Bibeault's jQuery in Action and I'm having troublel understanding the <code>value</code> parameter of the <code>attr()</code> method. The book says that the parameter can be a function whose parameters are <code>index</code> and <code>previousValue</code>. What is the purpose of these parameters? I don't...
javascript jquery
[3, 5]
1,548,603
1,548,604
jquery toggleclass bug on iPhone
<p>The following code shows a menu called #wrap-footer by sliding it down when you click #menu-button. Clicking anywhere on the page except the menu makes it slide back up. </p> <p>When the menu is visible #menu-button has a class added to it called 'menu-open' (used for styling). When the menu is hidden again the cla...
jquery iphone
[5, 8]
1,706,072
1,706,073
Javascript multiply function failed when together
<p>Javascript function does not work when </p> <pre><code>function loadcontents(obj) { var params = $(obj).attr('href').split('?'); $.getJSON(IVIDPLAY_BASE_DIR+'content/load2.php?'+params[1], function(json) { if (json.returnval == 1) { $('#contents').fadeOut('fast', function() { $(this).html('json.contents'...
php javascript
[2, 3]
3,002,567
3,002,568
Develop an application Module wise in asp.net?
<p>How to develop an application in asp.net module wise In which we can add new module and remove existing module dynamically? Or Suppose we create an asp.net web application. how to convert that application in an module so that the application will work as a module of another application. </p>
c# asp.net
[0, 9]
5,784,020
5,784,021
pyfacebook and javascript query
<p>I'm using pyfacebook on the backend and javascript on the client side. Now if I want to pass a variable to the javascript from pyfacebook. how would I go about doing that, any ideas?</p>
javascript python
[3, 7]
1,898,339
1,898,340
How to make Dropdown List with checkboxes?
<p>How do we make a drop down list with checkboxes? C# lang is preferred for this.</p>
c# asp.net
[0, 9]
4,872,647
4,872,648
Javascript class scope
<p>I am unable to call this.RenderDeals() from inside my Post.success function. I assume this has something to do with scope? Could someone shed some light on the issue, and possibly suggest a workaround. I have tried using prototype and module pattern, both without any luck.</p> <p>FYI Post is an $.ajax wrapper that ...
javascript jquery
[3, 5]
5,501,281
5,501,282
Disable autocomplete for all jquery datepicker inputs
<p>I want to disable <code>autocomplete</code> for all inputs using jquery ui datepicker without doing this to every input manually. How could be this done?</p>
javascript jquery
[3, 5]
3,320,753
3,320,754
Using Jquery to post single variable
<p>Hi I have a jquery function which prompts user to enter a value in a dialog box and posts the value to a script and then returns a value which posts a form value if the first value is correct. The second value (txtImport) is not being posted to the script (importFile)?</p>
php jquery
[2, 5]
3,686,776
3,686,777
When to fetch more content on infinite scroll?
<p>I'm building out an infinite scrolling feature for my site and am debating at what scroll point to inject more content into the page. I've seen some that perform the request at a fixed pixel distance from the bottom of the document, and others that feel more percentage based. What do large sites like Tumblr, Faceboo...
javascript jquery
[3, 5]
2,751,602
2,751,603
Create multi-dimensional array index in Javascript?
<p>I have a ajax request that is returning to me an object that looks roughly like the following:</p> <pre><code>[ {category: "Test Category", id: "1", name: "Test", language: "English"}, {category: "Test Category", id: "2", name: "Test2", language: "English"}, {category: "A test", id: "3", name: "Test3", l...
javascript jquery
[3, 5]
423,325
423,326
MultiViewControl issues
<p>I'm presently in the process of reworking a MultiViewControl based wizard process for our web application. I am having an rough time trying to make sense of the order that events are happening (Page_Load, Init, prerender, etc). Does anyone out there on the interwebs have details on dealing with one of these contro...
c# asp.net
[0, 9]
818,307
818,308
jQuery fire function on all class elements
<p><strong>I want to execute some function on all class elements. How can i do that?</strong></p> <p>I know i can use jQuery like this:</p> <pre><code>$('.myClass').css('background','red'); $('.myClass').hide(); $('.myClass').fadeIn(); // etc </code></pre> <p>but what i want is something like:</p> <pre><code>// i w...
javascript jquery
[3, 5]
4,719,108
4,719,109
What is the correct way to handle client side and server side errors on the web?
<p>I'm new to web development (though not new to WinForms developmet) and I wanted to know the correct and efficient way to handle errors both on the client side as well as the server side.</p> <p>For example, user enters a bad zip code (using letters), I want to notify the user of the bad zip code entered, how do I h...
c# asp.net
[0, 9]
2,257,170
2,257,171
What does this attribute below mean?
<p>I have seen this example on the web:</p> <pre><code>$('#questionTextArea').each( function() { var $this = $(this); var $questionText = $("&lt;textarea class='textAreaQuestion'&gt;&lt;/textarea&gt;") .attr('name',$this.attr('name')) .attr('value',$this.val()); $que...
javascript jquery
[3, 5]
3,124,733
3,124,734
jquery .slideToggle wait till all other <li> are closed
<p>Hi all I use a php script to pull the names of the products from a mysql db and display them into a list, each list has 4 sub list elements that are displayed and hidden (toggled) via jquery. my issue is if i move my cursor from on product to the next then it starts opeing that products <code>&lt;li&gt;</code> eleme...
php jquery
[2, 5]
316,607
316,608
Cookies and session state in asp.net
<p>I want to take the name the user types in and then display this on another aspx page using session state.</p> <p>On the page where to user types the name the code I have is</p> <pre><code>Session["name"] = TextBox1.ToString(); //Store the session state in a variable called name from the text box. Response.Redirec...
c# asp.net
[0, 9]
2,820,411
2,820,412
Android Java make a image move down
<p>How can i make a image just scroll down a straight line by it self?</p> <p>Like</p> <p>The Image starts up here and then it will just smoothly scroll down till it hits the bottom and stop</p> <p>Please look at this: <a href="http://tinypic.com/r/1z17iv9/7" rel="nofollow">http://tinypic.com/r/1z17iv9/7</a></p>
java android
[1, 4]
4,484,548
4,484,549
Context not resolved inside a runnable thread
<p>Here is the code inside main Activity class, which works fine..</p> <pre><code>public void onStart() { super.onStart(); mHandler = new Handler(); context = this; ... } </code></pre> <p>And the following code gives problem, don't know why:</p> <pre><code>public void onStart() { super.onStart(); ...
java android
[1, 4]
2,093,450
2,093,451
How to access data in JSON format using javascript
<p>I'm trying to figure out on how to access data in JSON format and have gone a whole day searching for ways but I still can't find a solution to fit my needs. The closest relative question to my problem is <a href="http://stackoverflow.com/questions/14588928/accessing-json-data-in-a-javascript-variable">this question...
javascript jquery
[3, 5]
4,462,068
4,462,069
Game: Algorithm for spawning enermies at game/window egdes
<p>I'm looking for an algorithm for spawning enermies at the egdes for the gameboard/window for an Android game. I'm doing the old SpaceWars/Shooting asteriods with spaceship and i need the asteroids to spawn at random locations outside the gameboard, where after they will move into the gameboard in different direction...
java android
[1, 4]
3,873,668
3,873,669
Python equivalent of PHP's date()
<p>For simple formats its easy to come up with equivalents</p> <p>PHP:</p> <pre><code>date("Y-m-d") === "2012-07-25"; </code></pre> <p>Python:</p> <pre><code>date.strftime("%Y-%m-%d") == "2012-07-25" </code></pre> <p>But what is the Python equivalent of</p> <pre><code>date("jS F Y") === "25th July 2012"; </code><...
php python
[2, 7]
2,960,416
2,960,417
Calling code behind function from jquery Side
<p>How can I do call code-behind function from the client-side?</p> <pre><code>// Code-behind function: public void CodeBehindFunction(int i) { ... } </code></pre> <p>I want to call it from client-side...</p> <pre><code>// Client-side call: $(this). ?? </code></pre>
jquery asp.net
[5, 9]
2,013,578
2,013,579
IP Camera Android Application
<p>I am new in android application &amp; I want to make android application to view &amp; control IP cameras but I don't know from where I can start I want to know if there are specific cameras that can be controlled? or any IP camera can be controlled? as I want to choose between three types of VIVOTEK camera please ...
java android
[1, 4]
2,964,146
2,964,147
How to rotate matrix of button
<p>In my layout I have matrix of buttons with images so I want rotate buttons column wise alternatively right to left and left to right so I can see blank buttons without images.</p>
java android
[1, 4]
2,421,942
2,421,943
Does anybody knows any Android library which works just like Fancybox?
<p>Does anybody knows any Android library (or any fragments of code) to make thumbnails/ImageView enlarge just like the javascript plugin Highslide JS (<a href="http://highslide.com/" rel="nofollow">http://highslide.com/</a>)? This seems to be the standard method of how Facebook app enlarges images. I particularly like...
java javascript android jquery
[1, 3, 4, 5]
726,974
726,975
Create dynamic inline stylesheet
<p>What is the best way of creating dynamic style tags using js and/or jQuery?</p> <p>I tried this:</p> <pre><code>var style= jQuery('&lt;style&gt;').text('.test{}'); </code></pre> <p>This works in FF but pops an error in IE7 "Unexpected call to method or property access."</p> <pre><code>var style = document.create...
javascript jquery
[3, 5]
3,501,429
3,501,430
how do i open my class from main activity?
<p>Im attempting to open my class Speak2 from my main activity with code:</p> <pre><code>Intent i = new Intent("R.voice.Speak2"); startActivity(i); </code></pre> <p>Please advise?</p> <p>code:</p> <pre><code>public class recon extends Activity implements OnClickListener{ ListView lv; static final int check ...
java android
[1, 4]
1,781,380
1,781,381
The interface ColorSpace cannot define an initializer
<pre><code>public abstract interface Color { public static final float[] xyz2sRGB; static { float[] arrayOfFloat = new float[9]; arrayOfFloat[0] = 3.241F; arrayOfFloat[1] = -0.9692F; arrayOfFloat[2] = 0.0556F; arrayOfFloat[3] = -1.5374F; arrayOfFloat[4] = 1.876F; arrayOfFloat[5] = -...
java android
[1, 4]
5,709,182
5,709,183
How to get the innerText of RadioButtonList
<p>I am able to use the following to get the value of the selected radio button (of the radio button list rblReason)</p> <pre><code>var reasonId = $('#rblReason').find('input[checked]').val(); </code></pre> <p>How can I get the innerText of the radio button selected? ty</p>
asp.net javascript jquery
[9, 3, 5]
4,594,546
4,594,547
resizeable textarea
<p>I've got such definition of textareaBox and textarea in CSS file:</p> <pre><code>.textareaBox { border: 1px solid #e5e5e5; width: 371px; height: 73px; float: right; padding: 5px 10px; } .textareaBox textarea { width: 370px; height: 67px; line-height: 18px; outline: none; border: none; ...
jquery asp.net
[5, 9]
800,170
800,171
How to modify my jQuery script to add a math function and pass the result?
<p>You can find my jQuery in this fiddle <a href="http://jsfiddle.net/qSkZW/9/" rel="nofollow">http://jsfiddle.net/qSkZW/9/</a> where the value changes based on your dropdown selection.</p> <p>What I need is to multiply the selected quantity with a PHP variable. For example when<code>$price = '10';</code> and you sele...
php javascript jquery
[2, 3, 5]
1,738,902
1,738,903
Android - Broadcast Receiver screen off to Intent, not working....?
<p>I have code below that I have inserted into my onCreate method, but it dosent seem to work. I want it to launch other activity when screen goes off/battery button press. </p> <p>CODE:</p> <pre><code>protected void onStartCommand() { // TODO Auto-generated method stub super.onStart(); ScreenReceiver(); ...
java android
[1, 4]
5,852,830
5,852,831
compare the password user input against from database
<p>i'm new to asp.net, i'm writing a login page for learning asp.net, here is the error with the script. When i enter the password only contains english letters, there are no errors, but when i enter the password contain digit/only digit for example, abc123 or 123, line 28 will produce an error, anyone knows what the p...
c# asp.net
[0, 9]
5,482,793
5,482,794
Trying to create header and footer for android app
<p>I have created a header and footer. In the header I inserted a menu button with a click event of starting another activity. </p> <p>How can i get the body frame by fixing header and in the same activity. The java code for this file is</p> <pre><code>public class DigitalFoodMenu extends Activity { @Override protec...
java android
[1, 4]
3,072,945
3,072,946
How to break this string?
<p>I have a string "10/15/2010" </p> <p>I want to split this string into 10, 15, 2010 using c#, in VS 2010. i am not sure how to do this. If someone can tell me what function to use, it would be awesome. </p> <p>Thank you so much!!</p>
c# asp.net
[0, 9]
2,758,775
2,758,776
error in c# code of time zone info
<p>i am not using any java script. my code is:</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { System.Collections.ObjectModel.ReadOnlyCollection&lt;TimeZoneInfo&gt; TimeZoneColl = TimeZoneInfo.GetSystemTimeZones(); DropDownList2.DataSource = TimeZoneCol...
c# asp.net
[0, 9]
3,226,038
3,226,039
You are here links
<p>I would like to do links of pages that will tell where you are. In other words something like this;</p> <p>You are here: ASP Free Forums > Programming > ASP Development > </p> <p>I am using ASP.net c#.</p> <p>Any suggestions of how I can do this.</p>
c# jquery asp.net
[0, 5, 9]
3,238,127
3,238,128
Team Parallel development in ASP.NET
<p>I am developing an application written in ASP.NET (C#) which heavily use on Master Page and Session.</p> <p>As there will be enhancement in the same web application, and will be done by my teammate.</p> <p>is there any good approach that can enable we to work on the same solution, and delivery the change to UAT / ...
c# asp.net
[0, 9]
2,712,832
2,712,833
Remove address in jQuery Popup
<p>I have a jQuery Popup music player in my website, i want to remove the address bar showing the path to the plugin.</p> <p>The popup event in the JS file:</p> <pre><code>if( !window.fapPopupWin || window.fapPopupWin.closed ) { var windowWidth = 1070; var centerWidth = (window.screen...
javascript jquery
[3, 5]
4,993,669
4,993,670
from parent to child without traversing the full path
<p>My divs are nested like this. </p> <pre><code>&lt;div id="top"&gt; &lt;div class="child1"&gt; &lt;div class="child-child"&gt; &lt;div class="child-child-child"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="child2"&gt; &lt;div class="child-child"&gt; ...
javascript jquery
[3, 5]
969,034
969,035
Android: Clean up AsyncTask
<p>Over time my app using a lot of AsyncTasks, and I noticed in the debugger that they don't go away and even when they are done they still show up as an active thread. Is there any way after the task is done to tell the garbage collector to kill it?</p>
java android
[1, 4]
4,612,313
4,612,314
how to get file without as it is
<p>Hi I am trying to read a html file and store its content but when I am converting it I am Getting all the special characters are converted to Question mark.</p> <p>I am using stream reader to read the file and stream writer to write the content of that file to another file after storing the content in the Database....
c# asp.net
[0, 9]
5,852,604
5,852,605
Jquery: How can I place triggers on images already cached?
<p>Please see: <a href="http://flx.me/h/0504/" rel="nofollow">http://flx.me/h/0504/</a></p> <p>Source: <a href="http://pastebin.com/bDh5k3Qd" rel="nofollow">http://pastebin.com/bDh5k3Qd</a></p> <p>jquery.preload-min.js: <a href="http://jquery.com/plugins/project/Preload" rel="nofollow">http://jquery.com/plugins/proje...
javascript jquery
[3, 5]
5,565,608
5,565,609
word processor in c# or c++
<p>I learned C Sharp for one purpose, to write a word processor that includes my needs. For example that you could play with the spaces between words, and the spaces between the lines, raise one word higher from the row, and many other similar things. When I start working on it in c# - winForms I see the possibilities ...
c# c++
[0, 6]
1,848,024
1,848,025
Is there a way to check if pipelining is enabled in php or javascript?
<p>Is there a way to check if pipelining is enabled in php or javascript? There are certain services in the browser you can access in about:config that speed up the browser without uncertainty so I wanna check if some of these are or even get the value aas a string if needed in php or javascript, is this possible? If i...
php javascript
[2, 3]
5,762,700
5,762,701
How do I copy all elements and children between two elements into a temp element?
<pre><code>context = document.createElement("span"); start_element = my_start_element; end_element = my_end_element; // some how iterate through here (assuming start and end are different elements) [start_element .. end_element].each(function(current_element){ context.append(current_element); }); </code></pre> <p>...
javascript jquery
[3, 5]
5,954,496
5,954,497
learning android vs learning a programming language
<p>Hi!</p> <p>I'm a self-taught programmer. I've taught myself a little bit of web-related technologies (HTML, CSS, Javascript) and 2 "proper" langauges: Python and Java.</p> <p>Now, recently, I started to learn Android. I thought the process would be the same as it was when i learned the other technologies, but far ...
java android
[1, 4]
3,740,738
3,740,739
calling jQuery from td
<p>i have created a table with a row and 4 columns.i declared attributes class,id for td element. when i click on the td i have to call the jQuery function to load pop up box. here instead load pop up i just want to display the alert box but it doesn't work. here is my code</p> <p>jQuery</p> <pre><code> &lt;script...
php javascript jquery
[2, 3, 5]
4,401,576
4,401,577
Could not load file or assembly 'System.Web.DataVisualization' or one of its dependencies
<p>I received this error:</p> <pre><code>Server Error in Application. Could not load file or assembly 'System.Web.DataVisualization' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. Description: An unhandled exception occurred during the exe...
c# asp.net
[0, 9]
5,397,176
5,397,177
need help with jQuery when not hovering over a particular element
<p>I am having a navigation div (the id is navigation) i am thinking of writing a code that executes when i am not hovering over the navigation. Can somebody explain me how can that be possible with jQuery.</p> <pre><code> &lt;ul id='navigation'&gt; &lt;li&gt;a&lt;/li&gt; &lt;li&gt;b&lt;/li&gt; &lt;li&gt;c...
javascript jquery
[3, 5]
5,308,967
5,308,968
Creating asp.net website dynamically on the fly
<p>I have an ASP.NET website I need some tool that generate copy of this site on server with a small changes in web.config file.</p> <p>For example: user fill in small form and it creates for him a new copy of this site with db on the server.</p>
c# asp.net
[0, 9]
2,790,113
2,790,114
Can't make work an ajax post to php
<p>Where it's my problem for me the code look's fine</p> <pre><code>$.post("../Backend/buscarCliente.php",{tipoBusqueda:"'"+$('#sltTipoBusqueda').val()+"'"},respuesta); </code></pre> <p>the php</p> <pre><code>&lt;?php //include all DAO files header('Content-Type: text/html; charset=utf-8'); require_onc...
php jquery
[2, 5]
5,137,300
5,137,301
path to Assets to string?
<p>For example, this would be the path to a file on the external memory...</p> <pre><code>String path = Environment.getExternalStorageDirectory().toString()+"/myApp/face.jpg"; </code></pre> <p>But is there also such a path to the Asset folder?</p> <p>Cheers!</p> <p>P.S.</p> <pre><code>"file:///android_asset/1.png"...
java android
[1, 4]
1,287,423
1,287,424
jQuery shortening long numbers with commas
<p>Could this be done with <code>javascript/jQuery</code>:</p> <pre><code>&lt;div class="number"&gt;99,123,123&lt;/div&gt; &lt;div class="number"&gt;123,123,123&lt;/div&gt; &lt;div class="number"&gt;1,123,123,123&lt;/div&gt; &lt;div class="number"&gt;1,123,123,123,123&lt;/div&gt; </code></pre> <p>To display as</p> <...
javascript jquery
[3, 5]
4,940,291
4,940,292
How do i set check box in "complete action using" window while selecting particular action?
<p>I am doing experiment on my app. In this, I have implemented one edit-text and send button. Now, whenever I am going to send message, I'd like to launch a Complete Action Using window that would allow me to choose between different messaging application that are installed on device. So, I am able to launch that Comp...
java android
[1, 4]
2,374,434
2,374,435
c#.net website - How to let user choose a folder?
<p>I basically want to open a dialog box on the click of a button..The user will choose a destination folder and then a text file will be created in the chosen Folder using the path in the dialogue box.</p> <p>I have used asp.net's FileUpload to upload files but I don't know how to chose a folder using it. Or there's...
c# asp.net
[0, 9]
5,451,741
5,451,742
Toggle view of modal button
<p>I have the following modal dialog:</p> <pre><code>$(document).ready(function() { $( "#addLocation" ).dialog({ modal: true, height: 820, width: 550, buttons: { "Add Location": function() { document.forms['mapform'].submitted.value='1'; docum...
javascript jquery
[3, 5]
72,663
72,664
Javascript: Exception and error strategy
<p>Does anybody know a good strategy for handling exceptions and errors. At the moment I have different pieces of code handling their own validation/errors/exception but I would really have a centralized strategy. I was thinking of some global notification system that passes some errors/exceptions to the user like vali...
javascript jquery
[3, 5]
5,505,040
5,505,041
JQuery keep class for selected menu
<p>I have the following menu on a header.php page that is included on each link page as follows:</p> <pre><code>&lt;nav id="main-nav"&gt; &lt;ul class="container_12"&gt; &lt;li&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="home.php"&gt;&lt;? echo TEXT_DASHBOARD_HOME;?&gt;&lt;/a&gt;&lt;/li&gt; ...
php javascript jquery
[2, 3, 5]
3,034,526
3,034,527
How to count visitor of one website from another website(which are on totally different domain)
<p>I want to count the visitor of a website(which is located totally different domain) from my website.Just like <a href="http://www.alexa.com/" rel="nofollow">Alexa is counting the visitor of all website</a> . How it can be done? Any idea or implementation please. Thanks in advance.</p> <p>For all i clarify my questi...
php javascript asp.net
[2, 3, 9]
1,453,963
1,453,964
Set a bool variable if an element has a class applied
<p>I am able to hide an element on the page in this way</p> <pre><code>$('.info_player &gt; .item_focus').hide(); </code></pre> <p>I need to set a variable on true or false if the element .info_player has the class .item_focus applied or not.</p> <p>How to make it with jquery?</p> <p>Please provide me a sample of ...
javascript jquery
[3, 5]
3,464,092
3,464,093
Jquery event handler not firing
<p>I have a web page that is having some javascript issues. I have tried looking over everything however I have a username field and when you click it (<code>.focus</code>) it should bring up a pop up. I used firebug in firefox to put break points right then the <code>.focus</code> function is called and it it is not f...
javascript jquery
[3, 5]
5,354,294
5,354,295
How to get path to file using some external file managers apps Android?
<p>Is it possible to get File from sd card, which is picked using some 3rd apps (file manager) ?</p> <p>I mean that i have activity with button open file and when user press open it shows him suggestions to use some other app to open file, and when he pick open i get back to my activity with path of that file ?</p>
java android
[1, 4]
144,934
144,935
how can i get return value of javascript funtion
<p>my code like this</p> <pre><code> var key,value; //……some code…… function checkReg(i,j){ $.getJSON(api_checkExists,{"k":i,"v":j,"rand":Math.random()},function(c){ alert(c.status); return(c.status); }); } var temp=checkReg(key...
javascript jquery
[3, 5]
5,294,292
5,294,293
weird jquery problem in IE8/7
<p>the problem starts when i use </p> <pre><code>#mydiv{ margin:0 auto; } </code></pre> <p>all other browsers just works fine. this is an example</p> <pre><code>alert($("#mydiv").position().left); //output 0 $("#mydiv").animate({'left': '-=500'}); alert($("#mydiv").position().left); //output -499 </code></pre> ...
javascript jquery
[3, 5]
4,933,505
4,933,506
Loop through numerous variables
<p>I have 48 variables (TextViews), like tv1, tv2, tv3, tv4...tv48.</p> <p>I want to set a value for these variables, with a for loop, since I do not want to write down the same row 48 times.</p> <p>Something like this:</p> <pre><code>for (int i=1; i&lt;49; i++) { "tv"+i.setText(i); } </code></pre> <p>How t...
java android
[1, 4]
1,148,433
1,148,434
jquery traversing an appended to ol/ul
<p>I'm trying to traverse a ul that has been appended to before traversing like so:</p> <pre><code>var items = []; $('#list').append('&lt;li id="item_10"&gt;item 10&lt;/li&gt;'); $('#list').each(function () { var item = $(this).attr('id'); items.push(item); }); alert(items.toString()); </code></pre> <p>But w...
javascript jquery
[3, 5]
1,225,570
1,225,571
FB like button callbacks not working
<p>Can anyone tell me why callbacks are not working for the like button code given below? The code is standard set up in javascript as I can see. First button is initialized, then api is loaded asynchronously and callback functions are provided. Thanks.</p> <pre><code>&lt;script&gt; window.fbAsyncInit=function(){ ...
php javascript
[2, 3]
4,011,127
4,011,128
conditionally call JavaScript function
<p>I have a "Pay" button where we are starting to accept credit card. I need to call a Javascript function from the server side click event. I tried with Response.Write as below but that does not trigger my function that is defined in the separate .js file. What else can I do?</p> <pre><code> protected void btm...
c# javascript asp.net
[0, 3, 9]
2,018,605
2,018,606
Javascript / jQuery flick between two images
<p>I'm struggling with the timer part. I can replace one image with another easily with javascript by calling the function. What I want to be able to do is set a timer to sit and change the images at a specific interval (say 1 second).</p> <p>I've used jQuery to refresh an image every second before, but when I try a...
javascript jquery
[3, 5]
1,610,546
1,610,547
Android: How to retrieve file name and extension of a resource by resource ID
<p>I have the following:</p> <pre><code>getResources().getResourceEntryName(resourceId); </code></pre> <p>The problem is, that it retrieves only the file name without the extension.</p> <p>For example, if I have the following res/drawable/pic.jpg, the</p> <pre><code>getResources().getResourceEntryName(resourceId); ...
java android
[1, 4]
2,934,936
2,934,937
Do I need to specify object type when creating globals in Javascript?
<p>I have the following code: </p> <pre><code>var oTable = $('#dataTable').dataTable({ ... </code></pre> <p>I would like to declare oTable as a global but I am a bit confused. With javascript how do I do this and do I have to specify the object type when I declare it as a global?</p>
javascript jquery
[3, 5]
2,074,675
2,074,676
JQuery: .LOAD, how to get next call to happen AFTER the .LOAD completes?
<p>JQuery: .LOAD, how to get next call to happen AFTER the .LOAD completes?</p> <p>Basicly Im loading some information into a div which is dynamically adjusting the height of the DIV as it loads. </p> <p>I then want to run a call to adjust the height of the DIV, but can only properly calculate after the load complet...
php jquery
[2, 5]
111,213
111,214
Nested Elements with wildcard selector / Event Bubbling
<p>I want to bind to an element and add an outline to it when I over it. The problem is that when I hover over a nested element, the parent elements are also selected.</p> <p>When I hover over "5 deep" I should only have a border around that span and not all of its parents.</p> <p><a href="http://jsfiddle.net/7uQwr/"...
javascript jquery
[3, 5]
3,312,428
3,312,429
Very Simple Routing on One page website
<p>I'm developing a simple one page website, where the pages scroll horizontally using the scrollTo() javascript library. I have a home / about / contact page. I was wondering if there was a way to still use some form of URL routing like www.example.com/about, to get the about page, and would get updated in the browser...
javascript jquery
[3, 5]
2,810,362
2,810,363
jQuery iframe file upload
<p>Im building a file upload with jQuery, but Im getting a jQuery error trying to set the attributes of the form:</p> <pre><code>$(document).ready(function () { $("#formsubmit").click(function () { var iframe = $('&lt;iframe name="postframe" id="postframe" class="hidden" src="about:none" /...
javascript jquery
[3, 5]
303,849
303,850
Toggle span elements in div on hover
<p>I am still relatively new to jQuery and am trying to hide the text I have contained in a few spans within a div on a hover, then show them again on a hover out. I feel like it it something relatively easy to do, I just havent had much success. Thank you!</p> <pre><code>$(".resultBox").hover(function() { // P...
javascript jquery
[3, 5]
5,522,471
5,522,472
casting php arrays to c# hashtables
<p>I have some multi-dimensonial php arrays being passed down to my c# app. To pull values out on the c# side, i have to do something like:</p> <pre><code>String example = (string)((Hashtable)((Hashtable)example_info["FirstLevel"])["SecondLevel"])["example_value"]; </code></pre> <p>How would I go about removing the ...
c# php
[0, 2]
3,235,967
3,235,968
How to detect if shift has been released?
<p>I want to be able to run a function when the shift key is released.</p> <p>I know the shift key can be detected with something like:</p> <pre><code>$(window).bind("keydown keyup", function(ev) { ... }); </code></pre> <p>It works very well for detecting key combinations (e.g. <code>shift+a</code>). Problem is, if ...
javascript jquery
[3, 5]
4,082,448
4,082,449
Attach Javascript variable to cookie
<p>I've been strugling, maybe someone can help me please? I've got a javascript counter on my page, trying to attach it to a cookie (<a href="http://stackoverflow.com/questions/7764051/javascript-counter-on-php-page">My first quetion about this</a>) so that if the user refreshes the page the counter does not start fro...
php javascript
[2, 3]
4,426,365
4,426,366
jquery tree traversal issue
<pre><code>$('.field').blur(function() $('*').not('.adress').click(function(e) { foo = $(this).data('events').click; if(foo.length &lt;= 1) { // $(this').next('.spacer').children().removeClass("visible"); } $(this).unbind(e); ...
javascript jquery
[3, 5]
2,217,876
2,217,877
jQuery underscore notation
<p>Could anybody give me an explanation of the underscore in a jQuery plugin function? I have no idea of what "<em>_</em>" means. Example code below:</p> <pre><code>$.fn.bgStretch=function(o){ this.each(function(){ var th=$(this), data=th.data('bgStretch'), _={ align...
javascript jquery
[3, 5]
381,380
381,381
how to verify if my datatable is empty
<p>hello again y have populate my datatable using 1 button an array, next button 2 is going to send my datatable to excel, so what a i do is this using C#, and asp.net: out side of the button y declare my datable so i can be use in both buttons</p> <pre><code> System.Data.DataTable _myDataTable =new System.Data.Dat...
c# asp.net
[0, 9]
1,365,855
1,365,856
how to build(url for web services also), deploy and use web services in java
<p>i have a server with oracle database for which i have to make web services. i searched a lot but didn't got a perfect solution from starting means building web service of URL having simple parameters and json parameters also. and then giving response of json. please tell me if i am sitting in front of my ser...
java android
[1, 4]
1,132,123
1,132,124
Image auto reload with a fade or preload?
<p>So I've got a basic system set up to reload webcam jpgs at a regular interval, but it's weird to see the file load. I'd rather have one fade into the other or at least wait for the whole image to load before it swaps the other one out.</p> <pre><code> $(document).ready(function() { setInterval('updateCa...
javascript jquery
[3, 5]