Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
5,409,623
5,409,624
Arrays in Javascript
<p>I always had this silly doubt in mind but never had come up with the solution.</p> <p>I have seen several kind of arrays but I don't know the difference between them. I don't know how to explain exactly but it's most when passing parameters with jQuery.</p> <p>See:</p> <p><code>{ 'choices[]': ["Jon", "Susan"] }</...
javascript jquery
[3, 5]
4,031,074
4,031,075
Can I assign a value to a variable which Sticks to this variable in every scope?
<p>Can I assign a value to a variable (int) and never lose this value inside any scope ?<br/> the problem is I am assigning the value to the variable in some scopes but the variable returns to its default value (zero) in other scopes.. Example :</p> <pre><code> protected void Button_AddNewCourse_Click(object sende...
c# asp.net
[0, 9]
3,020,596
3,020,597
jQuery: Clone event(s) from one element to another
<p>Is it possible to clone event from one element, to another.</p> <p>For example: </p> <pre><code>$('.somelink').click({data:data},somefunc); </code></pre> <p>I need event in another place in document for element with different class.</p>
javascript jquery
[3, 5]
2,365,366
2,365,367
how can I add a progress bar with showing percentage level while uploading file in asp.net
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/11714858/create-file-upload-progress-bar-asp-net-and-javascript">Create File Upload Progress Bar ASP.NET and JavaScript</a> </p> </blockquote> <p>I have to create an web application in asp.net with C#.net in tha...
c# asp.net
[0, 9]
5,301,024
5,301,025
Android App WIDGET - voice recognizer
<p>Is it possible to run an app widget in background with voice recognizer open?</p> <p>Thank you. Flinx</p>
java android
[1, 4]
2,928,758
2,928,759
Android Garbage Collection in Lunar Lander
<p>In the Lunar Lander example (Provided by Google's Android site), there is a main loop in a method called "run()". Here it is below:</p> <pre><code> @Override public void run() { while (mRun) { Canvas c = null; try { c = mSurfaceHolder.lo...
java android
[1, 4]
248,626
248,627
ASP.NET and C# FileUpload
<p>I have a asp file upload for pictures and what I want to do is, when the file chosen has the same name as the previous file it should pop something up that says "This image name already exists, do you want to replace it? if yes then it would just override the current picture with the new one but if not then just lea...
c# javascript asp.net
[0, 3, 9]
4,857,332
4,857,333
How can I put score code in my program?
<p>Can you help me with my program im making an android game word guessing game.. i want to have a score for every words the user will answer</p>
java android
[1, 4]
5,189,108
5,189,109
How to use the widget handle network components?
<p>Have a code to disable and enable Wi-Fi adapter:</p> <pre><code>String service = Context.WIFI_SERVICE; wifi = (WifiManager)getSystemService(service); public void Connected(){ if (!wifi.isWifiEnabled()){ if (wifi.getWifiState() != WifiManager.WIFI_STATE_ENABLING) ...
java android
[1, 4]
5,130,252
5,130,253
Autocomplete jQuery & php problem
<p>i am trying to get a list of names from MySQL table useing php and jQuery autocomplete function but i get no result.could you help plz</p> <p>here is jQuery </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript"&gt;&lt;/s...
php jquery
[2, 5]
3,371,456
3,371,457
Sorting items in Select with remember what is selected
<p>I wanted to sorting items in select, but all solution what I finded have selecting last item in select. And it's problem if you edit existing data in forms.</p> <p>How solve this?</p> <p>Please don't ask me, why I didn't sorting items at server side.</p>
javascript jquery
[3, 5]
3,170,146
3,170,147
JQuery - how to find all elements matching given strings?
<p>I've stuck with my task.</p> <p>How to select all <code>&lt;span class="title"&gt;</code> elements on the page:</p> <pre><code>&lt;div class="my-page"&gt; &lt;span class="title"&gt;first&lt;/span&gt; &lt;span class="title"&gt;second&lt;/span&gt; &lt;span class="title"&gt;third&lt;/span&gt; &lt;span...
javascript jquery
[3, 5]
4,032,924
4,032,925
How to set up Python server side with javascript client side
<p>So there is already a Python program set up that runs on the console that I must build upon. I will be building a web GUI interface for the application using Javascript. How would I:</p> <p>a. Go about handling the input/output of this Python program without touching the original code.</p> <p>b. Go about sending c...
javascript python
[3, 7]
4,322,453
4,322,454
Recommended way to format numbers in a locale aware way?
<p>Lets assume we have one million.</p> <p>In english it should be formatted as 1,000,000 in german it should be 1.000.000.</p> <p>Thanks</p>
java android
[1, 4]
1,815,255
1,815,256
javascript if else statement
<p>i'm trying to make images on my site a bigger size if you click on them. <br/>i want to undo the enlarged view if you click on the picture again.</p> <pre><code>$("img").click(function(){ var grown = 'false'; if (grown == 'true') { $(this).animate({width: 300, height: 200}, 1000 ); var gro...
javascript jquery
[3, 5]
4,699,619
4,699,620
After omitting $ from input gettting NaN in javascript asp.net
<p>In javascript , I have given like this,( edited adding Pasman response )</p> <pre><code> var y= document.getElementById('&lt;%= DataItemValue4.ClientID%&gt;').firstChild.nodeValue.replace('$', ''); alert(Number(y)); y = y *48; </code></pre> <p>the value I am reading here is integer type amount with $, ex:...
javascript asp.net
[3, 9]
3,679,622
3,679,623
Using boolean variable in jquery .prop() while unchecking checkboxes. How can I manage it?
<p>I've the following code in jquery:</p> <pre><code> $('.checklist_true').click(function(e) { $('.checkid').prop({checked: true}); e.preventDefault(); }) $('.checklist_false').click(function(e) { $('.checkid').prop({checked: false}); e.preventDefault(); }) </code></pre> <p>I would like to replace...
javascript jquery
[3, 5]
2,933,990
2,933,991
Colour resource ID returning wrong value
<p>I am trying to set the text colour programatically from a colour resource during onCreate and am getting some wierd results.</p> <p>I have a colour resource defined in res\colors.xml:</p> <pre><code>&lt;resources&gt; &lt;color name="wheelFill"&gt;#C0FFFFFF&lt;/color&gt; &lt;/resources&gt; </code></pre> <p>m...
java android
[1, 4]
747,151
747,152
a question on conversion logic
<p>I am designing a unit converter using android.i m using logic which is not nice logic i think and i m giving some code here too.can anyone suggest me any better logic????</p> <pre><code>public void temperature(String value1,String value2) { if(value1.equals("Celsius") &amp;&amp; value2.equals("f...
java android
[1, 4]
4,686,948
4,686,949
Purpose of Object class in Android Application
<p>I am working on Android development. I stumbled upon the Object class. I read the docuementation and it doesn't say much about the purpose of the class. I think it comes in handy when an application has multiple threads. Is there other spots it can be beneficial?Can anyone give me some idea when to use it and the be...
java android
[1, 4]
1,920,006
1,920,007
How do I click coordinate on page?
<p>This is probably such a simple question, but after reading a few tutorials and other posts on Stack Overflow, I couldn't get what I was looking for.</p> <p>Using the <code>.click()</code> function in jQuery, I want to click a specific <code>X</code>, and <code>Y</code> location on the page. All I found were tutoria...
javascript jquery
[3, 5]
5,371,149
5,371,150
Page scroller like SQL Designer
<p>How can i make a page scroller with jquery like SQL Designer panel here one image of it: <a href="http://screensnapr.com/v/jX0Pk1.png" rel="nofollow">http://screensnapr.com/v/jX0Pk1.png</a></p> <p>link: <a href="http://ondras.zarovi.cz/sql/demo/" rel="nofollow">http://ondras.zarovi.cz/sql/demo/</a> please see at ri...
javascript jquery
[3, 5]
3,203,203
3,203,204
one web application multiple database for each client difficulties with recognizing clients Request.Url.Host
<p>I have one <code>asp.net(iis7)</code> web app and multiple database in back-end.</p> <p>Every client has different url for example:</p> <p><strong>client1.test.com<br> client2.test.com</strong> </p> <p>Application should read url <code>(HttpContext.Current.Request.Url.Host)</code> and determine which database us...
c# asp.net
[0, 9]
2,258,235
2,258,236
Upload image byte[] with POST
<p>How to send Image or Video with post request with lot off other parameters with post request ? I have image and video in byte[] format and I am trying like </p> <pre><code> HttpClient httpClient = new DefaultHttpClient(); http.setURI(URI.create(url)); MultipartEntity reqEntity = new Multipa...
java android
[1, 4]
5,795,757
5,795,758
Using LoadControl on pages with server controls
<p>I'm trying to create a user control template that I can send as email.</p> <p>In a utility class I have a method that contains this code:</p> <pre><code>StringBuilder sb = new StringBuilder(); Page p = new Page(); UserControl ctrl = (UserControl)p.LoadControl("~/EmailTemplates/OrderConfirmation.ascx"); StringWrite...
c# asp.net
[0, 9]
632,605
632,606
How to keep spaces in the formatted expression in jqMath
<p>I am using <a href="http://mathscribe.com/author/jqmath.html" rel="nofollow">jqMath</a> for Math equation formatter. I don't want to remove spaces and newline character from the expression. How can I do that? I have tried a lot but I coudn't find any solution. </p>
javascript jquery
[3, 5]
1,073,302
1,073,303
Simple jQuery .change question
<p>I am new to jQuery and am having difficulty getting a .change event to call a named function. When I use an anonymous function, it works fine.</p> <p>This works fine:</p> <pre><code>$(function() { $("select").change(function() { alert("hello"); }); }); </code></pre> <p>This does not work (i.e. ...
javascript jquery
[3, 5]
3,902,601
3,902,602
Can I chain function calls in jQuery?
<p>I want to execute the following:</p> <pre><code>$('#AccountID').change(SelectAccounts); and then (SelectProducts) </code></pre> <p>Is there some way I can make the function SelectProducts execute after SelectAccounts all on the same line?</p>
javascript jquery
[3, 5]
1,488,268
1,488,269
How to POST these variables?
<p>The script called <em>New script</em> is suppose to output 2 integer variables <code>anchor</code> and <code>signed</code>.</p> <p>I would like to replace <em>Old script</em> with <em>New script</em>, but as you can see, they are very different.</p> <p><strong>Question</strong></p> <p>How do I submit/post <code>a...
javascript jquery
[3, 5]
3,411,757
3,411,758
show changes after a refresh
<p>Is it possible to highlight changes in the DOM after each AutoRefresh. What are some different approaches?</p> <p>Thanks, rod.</p>
asp.net jquery
[9, 5]
257,225
257,226
Retrieving an element by array index in jQuery vs the each() function
<p>I was writing a "pluginable" function when I noticed the following behavior (tested in FF 3.5.9 with Firebug 1.5.3).</p> <pre><code>$.fn.computerMove = function () { var board = $(this); var emptySquares = board.find('div.clickable'); var randPosition = Math.floor(Math.random() * emptySquares.length); ...
javascript jquery
[3, 5]
3,201,013
3,201,014
JQuery Dialog while PHP requesting
<p>I have this php files:</p> <p>index.php</p> <pre><code>echo '&lt;a href="./edit.php?id=1"&gt;Edit&lt;/a&gt;'; </code></pre> <p>and the edit.php</p> <pre><code>&lt;?php $id = $_REQUEST['id']; if ($icao != NULL) { header("Location: ./index.php?id=$id"); } ?&gt; </code></pre> <p>When I click in the Edit l...
php jquery
[2, 5]
3,257,605
3,257,606
how can i use referenced libraries
<p>Hi I made one jar file with 3 classes.They work fine they are supporting file for getting HXM data.Now when i made jar i want to use it in my next project.I imported it and now it is in referenced libraries.But i can not find how can i use the libraries. in old project from i take the 3 .class file they have the pa...
java android
[1, 4]
4,243,406
4,243,407
Why does a aspx/cs project copied locally does not work?
<p>Why does a aspx/cs project copied locally does not work?</p> <p>I have copied the aspx/cs project right off the server and I put all the code right into my local host area. I opened the csproj file in visual studio with no problems I ran it and it did not crash. But what it does do is this. It says the Internet...
c# asp.net
[0, 9]
1,635,827
1,635,828
Best|Useful tools for ASP.NET/C# Devs?
<p>What tools do you use to develop .net apps? Things that make life easier|quicker. Fiddler was just recommended to me but I'm not sure how it works yet, though it looks interesting. I also use Notepad++ as a quick text editor. Aside from that, it's just VS studio for me.</p>
c# asp.net
[0, 9]
3,586,706
3,586,707
Accessing Dynamic Checkbox control's ClientID inside DataList control's OnItemCreated Event
<h2>ClientID property of Dynamic CheckBox</h2> <h2>Problem: I need to attach some javascript function for each of checkboxes with uniqueID inside Datalist.</h2> <p>When I'm trying to access ClientID inside <strong>OnItemCreated</strong> event in the code behind, it always resulting in the same ID which I've specified...
c# asp.net
[0, 9]
2,959,200
2,959,201
client side check of image size, extension and single click to open file-dialog window in IE?
<p>am working visual studio 2005</p> <p>I have a Fileupload control to upolad Image. After I select the Image path using fileupload control I have kept one button named Upload to upload image into temp folder for preview. In server only am checking the size and extension. its working good but what I need is</p> <ol>...
c# javascript asp.net
[0, 3, 9]
278,735
278,736
Code block + literal in asp.net custom control
<p>I'm searching for 2 days now to accomplish the following: I want a custom control which will take inline text + code blocks.</p> <p>Example of what I want to achieve:</p> <pre><code>&lt;asp:MyCustom runat="server"&gt; Hello there, &lt;%= User.Name%&gt; &lt;/asp:MyCustom&gt; </code></pre> <p>Here is what I cur...
c# asp.net
[0, 9]
5,004,544
5,004,545
jQuery imgAreaSelect
<p>I have 3 different divs with images in them. Each div with a different width and height. I am using jQuery imgAreaSelect on them all. Cropping works fine. My problem is i would like when the cropping window opens to start with an initial crop. I would like this initial crop to be the biggest possible porportions for...
javascript jquery
[3, 5]
1,946,108
1,946,109
javascript onchange query issue
<p>I have the following javascript at the head of my file.</p> <pre><code>&lt;?php echo "&lt;script language='JavaScript'&gt;\n"; echo "var times = new Array();\n"; echo "times[0] = 0;\n"; foreach($times as $time) { echo "times[". $time-&gt;DESC ."] = " . $time-&gt;FEE . ";\n"; } echo "&lt;/script&gt;\n"; ?&gt; </code...
php javascript
[2, 3]
2,583,020
2,583,021
Append an onClick event to an anchor tag using jquery?
<p>I am trying to add an onClick event to an anchor tag ...</p> <p>Previously i had ...</p> <p><code>&lt;a href="somlink.html" onClick="pageTracker._link(this.href); return false;"&gt;</code></p> <p>But i am trying to avoid the inline onClick event because it interferes with another script..</p> <p>So using jQuery ...
javascript jquery
[3, 5]
644,450
644,451
Android SDK not installing on win 7 64-bit
<p>I am trying to install Android SDK on windows 7 64-bit but it doesn't work. I keep getting <a href="http://goo.gl/4Xe5I" rel="nofollow">this screen</a>:</p> <pre><code>JAVA SE Development Kit (JDK) not found. Error: Failed to find Java version for 'C:\Windows\system32\java.exe': [2] The system cannot find the fil...
java android
[1, 4]
5,516,907
5,516,908
LinkedList<T> (2.0): removing items iteratively
<p>I need to iterate through a <code>LinkedList&lt;T&gt;</code> (in .NET 2.0) and remove all the items according to a given criteria. It was easy way under Java, since I could do the following:</p> <pre><code>Iterator&lt;E&gt; i = list.iterator(); while (i.hasNext()) { E e = i.next(); if (e == x) { // ...
c# java
[0, 1]
5,643,060
5,643,061
OnClient Click javascript using Freetextbox
<p>My javascript doesnt detect my function using Freetextbox..</p> <p>here's my code in javascript: I don't know if is the right code for Freetextbox.</p> <pre><code>function validateFreetextbox() { if(document.FTB_API["txt_Decs"].GetHtml == '' ) { alert("Please Fill up desciption."); ret...
c# javascript asp.net
[0, 3, 9]
3,425,426
3,425,427
How to display images from a folder in a gridview?
<p>How to display images from a folder in a gridview whose path is stored in ms sql database?</p>
c# asp.net
[0, 9]
5,157,522
5,157,523
slideshow with jquery fancybox and iframe
<p>I am trying to see if it is possible to create slideshow of html pages similar to flipboard.com landing page.</p> <p>I am able to load the html page using iframe in fancybox.</p> <p>The page is at: <a href="http://yshara.com/test.html" rel="nofollow">http://yshara.com/test.html</a></p> <p>My html/javascript looks...
javascript jquery
[3, 5]
3,453,343
3,453,344
How to trap 403 errors in C#
<p>I have a TRY / Catch in my C# code and I want to trap a 403 error so that I can send the user to a registration page.</p> <p>Is there a property in EXCEPTION for status code (403) or do I have to parse the message ({"The HTTP request was forbidden with client authentication scheme 'Negotiate'."}) ?</p> <p>I have t...
c# asp.net
[0, 9]
4,319,457
4,319,458
How to convert date and time stored in string to 24 format time in android?
<p>I have my date and time stored in string i.e my string contains str ="18/01/2013 5:00:00 pm". How can I convert it to 24 format time in android?</p>
java android
[1, 4]
5,174,986
5,174,987
How to Hide Sliding div on Document Ready
<p>I am trying to slide up and down a div (<code>.nav</code>) by clicking on another div (<code>#toggleMenu</code>) </p> <p>Now my problem is when I run the page the (<code>.nav</code>) div pops up very fast. I used the <code>$(".nav").hide();</code> to hide the div but this is happening after loading the (<code>.nav...
javascript jquery
[3, 5]
3,733,782
3,733,783
How can I set up a function so it's called rather than inline
<p>I was given the following code:</p> <p>accept</p> <p>Something like this:</p> <pre><code>$("input[id^='position_']").change(function() { //get the value of the input field marked with "position_x" var posX = $(this).val(); var idArr = $(this).attr("id"); var idTmp = idArr.split("_"); var id = ...
javascript jquery
[3, 5]
1,582,630
1,582,631
why asp.net wont delete my row?
<p>Im trying to delete a row from my Database,</p> <p>this is my code :</p> <pre><code>sql = "delete sum_lines from sum_lines join sum_tbl on sum_lines.summary_id = sum_tbl.id where sum_tbl.user_id = @userId and sum_lines.line_id ='@lineId'"; SqlConnection con = new SqlConnection(conString); dataObj ...
c# asp.net
[0, 9]
53,564
53,565
How to add new items in our project dynamically from our program?
<p>Is there is any method to add new items or existing items in our project from our program?</p> <p>For example: if i need to add example.aspx page from my program then how to add it?? And it should save in solution explorer.</p>
c# asp.net
[0, 9]
2,082,963
2,082,964
equivalent to push() or pop() for arrays?
<p>i am trying to add, remove and reference items from an array i create in my main java file, but i am having trouble figuring out the correct syntax. in actionscript they have push() and pop() for adding and removing items in an array, is there an equivalent in android?</p>
java android
[1, 4]
334,886
334,887
Attach event listener to dynamic element
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8021436/jquery-1-7-turning-live-into-on">jQuery 1.7 - Turning live() into on()</a> </p> </blockquote> <p>I used to love the <code>.live()</code> function that jQuery had. You would add it and voila, any future e...
javascript jquery
[3, 5]
4,649,559
4,649,560
Dynamic Dropdown onselect
<p>What I am trying to do is when a item is selected from my dropdown menu, it would make a input box appear with the description selected on the dropdown menu, so that it can be edited and updated back into the database,</p> <p>I am unsure how to handle the javascript:</p> <p><strong>Dropdown Code:</strong></p> <p...
php javascript
[2, 3]
174,885
174,886
JQuery to load external pages in DIV
<p>I am using jquery to load external pages in index.html Menu links have function - About</p> <pre><code>function about() {jQuery('#container').load('about.html');} </code></pre> <p>I am using jquery function on each child page to get the data from xml. Apparently, wen I call the jquery just once on index.html and u...
javascript jquery
[3, 5]
2,297,615
2,297,616
kamens jQuery-menu-aim in RTL version
<p>can someone help me in kamens jQuery-menu-aim plugin (<a href="https://github.com/kamens/jQuery-menu-aim" rel="nofollow">https://github.com/kamens/jQuery-menu-aim</a>) ? Overview: <a href="http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown" rel="nofollow">http://bjk5.com/post/44698559168/breaking-d...
javascript jquery
[3, 5]
1,987,642
1,987,643
Socialite.js callback or loaded event
<p>I'm implimenting <a href="https://github.com/dbushell/Socialite" rel="nofollow">Socialite.js</a> for the first time. [It is a js plugin for loading social media plugins after page load, or whenever] It seems really great but I want to hide the loading plugins and display them after Socialite has done its magic. [opa...
javascript jquery
[3, 5]
5,040,991
5,040,992
Not able to read contact's all values
<p>I have made an application of reading all contacts and its values from android address book, but i am not able to read all the vlaues of contact. Currently i am getting only its name and mobile number. </p> <p>How can i get its all phone numbers,all eamil values and address values ?</p> <p>Thanks in advance...</p>...
java android
[1, 4]
4,260,574
4,260,575
Can't add duplicate row to the asp.net Table Control
<p>I have an asp.net table control like this:</p> <pre><code> TableHeader A Text | Textbox </code></pre> <p>What I want to do is, in the page_load event, duplicate second row with all the controls within it, change the text in the first cell and add as a new row. So here is my code:</p> <pre><code> for (int ...
c# asp.net
[0, 9]
148,833
148,834
javascript/jquery: get info for a remote image
<p>I have an image that has "src" pointing to an external server, like this:</p> <pre><code> &lt;img src="http://somewhere.com/script.php?id=1234"&gt; </code></pre> <p>The image returned is .png and it can be returned as a "X" image or "O" image.</p> <p>How can I determinate if the image is X or O with javascript/...
php javascript jquery
[2, 3, 5]
3,072,940
3,072,941
rearrange randomly placed divs on click
<p>i have a couple of draggable divs that are placed randomly on the page when loaded</p> <p>i want these divs to be rearranged to a pre-specified location on the click of a link, how would i go about doing this?</p> <p>here's the jsfiddle: <a href="http://jsfiddle.net/BbKsq/7/" rel="nofollow">http://jsfiddle.net/BbK...
javascript jquery
[3, 5]
3,015,977
3,015,978
How to change Repeater DataSourceID?
<p>I have a repeater and and and I set its <code>DataSourceID</code> .</p> <pre><code>&lt;asp:Repeater ID="rpProducts" runat="server" DataSourceID="ItemDataSource" &gt; &lt;HeaderTemplate&gt;....&lt;/HeaderTemplate&gt; &lt;ItemTemplate&gt; .... &lt;/ItemTemplate&gt; &lt;FooterTemplate&gt; &l...
c# asp.net
[0, 9]
2,933,379
2,933,380
Unable to send context, constructor is undefined
<p>I have a DbAdapter class to handle the database stuff in my app, but for some reason I can't call it from a new class I have created (although it works in others).</p> <p>The code I'm using from the new class is:</p> <pre><code>DbAdapter mDbHelper = new DbAdapter(this); mDbHelper.open(); </code></pre> <p>...
java android
[1, 4]
3,288,743
3,288,744
Differences between ScriptManager and ClientScript when used to execute JS?
<p>Can somebody explain for me what the differences are between ScriptManager and ClientScript?</p> <p>ClientScript works well when I use it in Button_Clicked event, but it doesn't work when I use it in the GridView_RowUpdated of a GridView. (The GirdView is wrapped inside an update panel). Then I tried ClientScript a...
c# asp.net
[0, 9]
3,899,736
3,899,737
Need help to understand accelerometer code
<p>I have read through a lot of code but I do not understand how you can make an image move using the accelerometer sensor, I understand how to register it but I do not understand how to actually make an image or a shape draw move in sync with the accelerometer axis, I am using android java to do this. Please can someo...
java android
[1, 4]
3,889,035
3,889,036
ApiDemos 3.0/3.1 won't build because of unresolved types
<p>I'm trying to build ApiDemos for API levels 11 (3.0) and 12 (3.1). I've updated to the latest version both tools (revision 11) and platform tools (revision 4). In addition, I have the compatibility package installed.</p> <p>When I try to build the ApiDemos project I get thousands of errors, of which Eclipse shows 1...
java android
[1, 4]
2,379,815
2,379,816
Check all checkboxes inside an iframe (when inviting guests to a facebook event)
<p>i'm trying to check all checkboxes when inviting guests to a facebook event. Facebook has changed something i think beacuse i usually used this code and now it is not working:</p> <pre><code>var elms=document.getElementsByName("checkableitems[]"); var lunghezza = elms.length; for (i=0;i&lt;lunghezza ;i++){if (elms[...
javascript jquery
[3, 5]
4,629,808
4,629,809
How to get child elements of $self, jquery is OK
<pre><code>$('#cont &gt; fieldset').each( function(index){ var $self = $(this); // Here how to get child elements? How to write this selector? //$('$self &gt; div') ?? this seems does not work. }); </code></pre>
javascript jquery
[3, 5]
5,777,515
5,777,516
how to load the pdf file inside iframe in asp.net?
<p>I want to display Pdf file inside iframe control.I have added my code like this below.</p> <pre><code>in asp page, &lt;iframe width=500 height=500 runat="server" id="myPDF" src="pdf_003.pdf"&gt;&lt;/iframe&gt; in page_load myPDF.Attributes.Add("src", "pdf_003.pdf"); </code></pre> <p>When i run the project, then...
c# asp.net
[0, 9]
1,155,770
1,155,771
Connecting online players
<p>I want to create a game that connects two players. The players have to login and then proceed to the playing page.</p> <p>I have created the code for displaying the online players (from the activePlayer table). What I want is : the player chooses the opponent form the online players list and then the playing page d...
php javascript
[2, 3]
5,716,207
5,716,208
How can I get a HTML data value as a string with jQuery?
<p>I have the following in my source HTML:</p> <pre><code>&lt;li&gt;&lt;a href="#" data-value="01"&gt;Test&lt;/a&gt;&lt;/li&gt; </code></pre> <p>I want to get the value of the data attribute so I am using the following:</p> <pre><code>var abc = $(this).data('value'); </code></pre> <p>This works okay BUT not if ther...
javascript jquery
[3, 5]
1,228,129
1,228,130
how to stop script from running
<p>I have been trying to figure this out and probably asked the same question for the fifth time. Some day I will loose my mind. Any way</p> <p>Here is what I am doing </p> <p>I have four tabs. The contents in the tabs are dynamically generated. Sometimes they are very long and messes with page layout. So I am doing...
javascript jquery
[3, 5]
3,817,219
3,817,220
Update HTML H4 tag using jQuery
<p>I am having trouble changing the "text" between an HTML tag using jQuery. When someone clicks on a "radio button", the text should be updated in a certain HTML element. Here is my HTML:</p> <pre><code>&lt;div class="radio-line" id="radio-manager"&gt; &lt;input type="radio" id="rad-400" name="radio-manager" valu...
javascript jquery
[3, 5]
431,416
431,417
get text from attribute and format it
<p>I have a div elements with <code>data-seat</code> and <code>data-row</code> property:</p> <pre><code>&lt;div class='selected' data-seat='1' data-row='1'&gt;&lt;/div&gt; &lt;div class='selected' data-seat='2' data-row='1'&gt;&lt;/div&gt; &lt;div class='selected' data-seat='3' data-row='1'&gt;&lt;/div&gt; &lt;div c...
javascript jquery
[3, 5]
230,465
230,466
jQuery insertAfter doesn't work in some situations
<p>I want to add a hidden input after some element. I am using this code:</p> <pre><code>$("&lt;input type="text"&gt;").insertAfter(".addProduct"); </code></pre> <p>It doesn't work. But if I replace to it works.</p> <pre><code>$("&lt;span&gt;ddd&lt;/span&gt;").insertAfter(".addProduct"); </code></pre> <p>It works...
php javascript jquery
[2, 3, 5]
5,495,312
5,495,313
Editing different types of files from gridview
<p>I have a gridview with coloumns ID, filename, type, date &amp; time and view. There is one fileupload control which uploads the file from computer to some folder named abc. From this folder the filenames are copied to the database table and they are displayed in the gridview. There is one view column in the gridview...
c# asp.net
[0, 9]
5,484,264
5,484,265
click event not firing on newly created list item
<p>I have two lists and when you click on the second list the first list removes the first item and add to the second list but when I click on the newly created list item it doesn't fire why is that. <a href="http://fiddle.jshell.net/g84K9/" rel="nofollow">jsFiddle demo</a></p> <pre><code>$('#SearchList li a').bind("c...
javascript jquery
[3, 5]
4,588,595
4,588,596
Very simple jQuery not working
<p>Simply put, my <code>jQuery</code> is not working.</p> <p>Here is my code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;jQuery 101&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div&gt; &lt;h1&gt;Hello, world!&lt;/h1&gt; &lt;p&gt;Test&lt;/p&gt; &lt;/div&gt; &lt;script src="...
javascript jquery
[3, 5]
2,557,886
2,557,887
Remove a confirm() dialog via javascript/jquery
<p>In a javascript function, I do this for quick prototyping:</p> <pre><code>if(confirm("are you sure you want to do this")) { // do something } else { // do something else } </code></pre> <p>If I get a specific event over a websocket, I want to remove this dialog in javascript/jquery. Any ideas how to do that? I...
javascript jquery
[3, 5]
3,453,444
3,453,445
Need help regarding RSS Feed and wordpress
<p>i need to read rss feed from wordpress url. so here is the url <a href="http://bbaremancareers.wordpress.com/feed/" rel="nofollow">http://bbaremancareers.wordpress.com/feed/</a></p> <p>i just need to pick up title,content,publish date,title hyperlink url and media file url etc.</p> <p>i just could fetch only title...
c# asp.net
[0, 9]
2,142,355
2,142,356
javascript doesnt work on a link
<p>I have got this html:</p> <pre><code> &lt;a style="display:block; padding:100%; text-decoration: none;" href="http://google.com " class="Jasmin" id="target_site_to_visit"&gt; &lt;span data-app-id="88" class="btn" id="visit_site" style="right:22px; top:65px; padding:5px;z-index: -99999;"&gt;VISIT SITE&lt;/span&gt...
javascript jquery
[3, 5]
3,638,761
3,638,762
Get File from File Path and Upload - Jquery
<p>I have an output of </p> <pre><code>C:/Path/file/file.mp3 </code></pre> <p>now I need to fetch the file from the path and upload using jquery</p> <p>and store that file to 'audioData' variable...</p> <pre><code>$.ajax({ type: "POST", url: 'URL', data: { image: imageData, audio: audioD...
php jquery
[2, 5]
391,739
391,740
Bitmap Parameter Invalid
<p>I am facing an error when trying to create a bitmap directly from a string that contains file name and path.</p> <p>My Code is described below:</p> <pre><code>if (!string.IsNullOrEmpty(Request.QueryString["imagename"])) { string Image = Request.QueryString["imagename"]; Bitmap originalBMP = ne...
c# asp.net
[0, 9]
1,719,086
1,719,087
Make checkbox value append to textbox, separated by semicolon (copy e-mail addresses)
<p>I'd like to have a list of checkboxes (e-mail addresses). When boxes are clicked, a textfield blanks and is replaced with values of all checked checkboxes, only separated by "; ".</p> <p><a href="http://jsfiddle.net/7b5fk/1/" rel="nofollow">http://jsfiddle.net/7b5fk/1/</a> is -almost- what I want, except I don't wa...
javascript jquery
[3, 5]
4,074,790
4,074,791
How to find an element with a specific attribute that has a specific value
<p>How do a find an element which has the attribute "question-id" and equals a specific value? From there, i need to find the closest div (the wrapper of this element).</p> <p>Thanks</p>
javascript jquery
[3, 5]
2,605,244
2,605,245
How to find the duplicates in an array using jquery
<p>I have a jQuery array:</p> <pre><code>var arr = $('input[name$="recordset"]'); </code></pre> <p>I am getting the value of array like 8 or 6 </p> <p>If array values are repeating or duplicate I need to show <em>"please do not repeat the values"</em>. If not I need to proceed further.</p> <p>Using jQuery can anybo...
javascript jquery
[3, 5]
448,187
448,188
Create a reusable javascript function
<p>At the moment I'm using the below function to perform a simple slide...</p> <pre><code>function jeans(jean, links) { $(links).hide(); $(jean).hover( function() { $(links).show('slow'); }, function() { $(links).hide('slow'); });} </code></pre> <p>And calling it where required with...</p>...
javascript jquery
[3, 5]
2,461,836
2,461,837
any information on using bluetooth for a game?
<p>I am looking for any information on being able to send data back and forth on android devices such as booleans, strings or whatever, would this be easy to do and where would I look for any help on this, I am fairly new to developing for android so begginer stuff is very much appreciated, also would i just be able to...
java android
[1, 4]
2,832,538
2,832,539
jQuery How to kill a Created Div?
<p>What I have at the moment is a list of products (divs) that, when hovered over, a duplicate div is created and positioned over the original div (offset a bit and restyled using css). This new div is larger and offers more information that was being shown in the list view.</p> <p>When I hover off the new div it is ....
javascript jquery
[3, 5]
1,783,798
1,783,799
How do I get a variable out of a try/catch block?
<p>I've been trying to get this right for 2 days and am about ready to throw something .....</p> <p>I have a JSONArray which I'm processing in a try/catch block but it doesn't seem to pass the variable out at the end.</p> <p>My code:</p> <pre><code>try{ //Get the element that holds the results ( JSONArray ) ...
java android
[1, 4]
2,686,019
2,686,020
append PHP in jquery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7016701/creating-jquery-ajax-requests-to-a-php-function">Creating jQuery AJAX requests to a PHP function</a> </p> </blockquote> <p>How can i write PHP in Jquery </p> <p>is there is a way to do this </p> <pre><...
php jquery
[2, 5]
613,630
613,631
jquery function call on page both onload and onclick?
<p>i am working on jquery calender but i need to call a function both on page load and then on click. when the page load for the first time it should automatically call and execute the function and for 2nd time and onward it should be call through click. is it possible?? if yes please help me.</p> <pre><code> &lt;sc...
javascript jquery
[3, 5]
256,917
256,918
Load javascript function after other function
<p>I have two functions. I'd like <code>moduleList()</code> to load AFTER <code>reloadModules()</code>:</p> <pre><code>reloadModules(); moduleList(); function reloadModules() { $.get(v2_settings_url + 'v2_nav/', null, function(responseText) { $('#dock ul').html(responseText).parent().fadeIn(); }); ...
javascript jquery
[3, 5]
534,834
534,835
Dynamic value in popup
<p>PHP Code:</p> <pre><code>$cour = mysql_sql('SELECT c.id, c.category, cc.name, c.fullname,c.summary FROM mdl_course c, mdl_course_categories cc WHERE c.id = cc.course'); echo '&lt;table&gt;'; foreach($cour as $cou) { $coursename = $cou-&gt;fullname; $courseid = $cou-&gt;id; $summary =...
php jquery
[2, 5]
4,198,309
4,198,310
Measuring viral coefficient if sharing source is through facebook or twitter
<p>So the standard way of measuring the viral coefficient is via email addresses i.e. current user xyz@xyz.com invites 10 people via email so that you have their email addresses and can tell how many signed up and can therefore calculate the viral coefficient.</p> <p>How would you calculate and program for the viral c...
php javascript jquery
[2, 3, 5]
5,122,887
5,122,888
Jquery & query string
<p>the below way i call my pageload function by jquery. so please tell me how to pass query string.</p> <pre><code>&lt;script type="text/javascript" src="script/jquery-1.3.2.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $('#Customers').change(function() { ...
jquery asp.net
[5, 9]
1,544,279
1,544,280
Android: Prevent app from being killed
<p>I've made an Android app that plays a radio stream. It works well, low cpu and ram consumption. But if I open other apps like Facebook or even browse the internet, sometimes my radio application gets killed. </p> <p>Is there a way I can prevent this from happening?</p>
java android
[1, 4]
4,279,216
4,279,217
Using variables in a jQuery function
<p>This line $(''+fullId+'') is giving me problems. I've created an array in a different function that gets the #id's of all the inputs in the DOM. </p> <p>Now with this function i'm trying to create a blur and focus jQuery function. I've set the variable fullId to prepend the '"#' and append the '"' to the variab...
javascript jquery
[3, 5]
1,248,488
1,248,489
Why is my attribute value not changing using jQuery's .attr(x,y)
<p>I am trying to change the value of the<code>onclick</code>attribute:</p> <pre><code>&lt;span onclick="addPropertyToQuery(this)" tagId="${property.id}" class="half-padding half-margin tag"&gt; </code></pre> <p>The addPropertyToQuery() method looks something like this</p> <pre><code>function addPropertyToQuery(clic...
javascript jquery
[3, 5]