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
224,245
224,246
error because of changing the package name
<p>hi i created all my apps in a single package name, when i was to upload it, i was success in uploading my first app. when i was to upload my second app i came to know that 2 app with same package name cannot be uploaded. Its not possible for me to create the second app once again with a new package name so because o...
java android
[1, 4]
1,044,577
1,044,578
JSONParser cannot be resolved to a type
<p>Trying to follow this tutorial: <a href="http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/" rel="nofollow">Tutorial</a></p> <p>Trying to use <strong>JSONParser</strong> like so:</p> <pre><code>// Creating JSON Parser object JSONParser jParser = new JSONParser(); </code></pre> <p>But Eclip...
java android
[1, 4]
5,060,651
5,060,652
Fixed character limit text box with running feedback - javascript
<p>Is there a simple javascript pattern for showing how many characters left you can use in a fixed character text box?</p> <p>Say you have a text box and you want them only to use 500 characters, twitter and stack-overflow show how many you have left as you type. I presume you can use jquery and a type event to produ...
javascript jquery
[3, 5]
4,963,181
4,963,182
"Invalid postback or callback argument" after new deployment
<p>Recently deployed a project into production and have run into the "Invalid postback or callback argument" error. We haven't encountered this in testing at all and after some research have found that the problem occurs in the following situation:</p> <ol> <li>Old version is published and accessed.</li> <li>New versi...
c# javascript asp.net
[0, 3, 9]
3,470,581
3,470,582
How to organize Javascript and AJAX with PHP?
<p>My javascript is getting out of hand for my PHP application. I have 20 tags that link to various javascript files in a javascript folder. Each javascript file basically controls one element on the DOM. And, if the javascript file uses AJAX, then it will have a corresponding PHP file that the AJAX will call.</p> <p...
php javascript jquery
[2, 3, 5]
2,581,612
2,581,613
How to tell a page to load a JS function based on variables being sent
<p>I have a function which loads some content when executed...</p> <p>IE...</p> <pre><code>function load_product(product_id) { $.ajax({ type: 'GET', url: 'product_image.php', data: 'product_id='+product_id+'', success: function(data) { $('#product_image').html(data); } }); } </code></pre> <p>That ...
php javascript jquery
[2, 3, 5]
2,832,553
2,832,554
force close when music stops - Android
<p>another new problem described below:</p> <p>When I press home button when music STILL plays, it closes correctly, but when the sound (that is five seconds long) has finished and I press home button, it gives me a force close. I have tried an else-statement; with no luck.</p> <pre><code>protected void onStop() { ...
java android
[1, 4]
4,241,518
4,241,519
Combining multiple selectors in jQuery
<p>I'm trying to find a solution to make this code cleaner:</p> <pre><code>$(document).keypress(function(ev){ if($("#dialog").is(':visible') === false &amp;&amp; $("#alertDialog").is(':visible') === false){ if(ev.keyCode=='13' &amp;&amp; !$('#resetBtn').is(':focus') &amp;&amp; !$('.edit-new').is('...
javascript jquery
[3, 5]
3,782,623
3,782,624
Remove file from input field
<p>I am working on file uploading. So when I click cross button how can I remove exited file using php without page reload?</p> <p><img src="http://i.stack.imgur.com/0a1lh.jpg" alt="enter image description here"></p>
php javascript
[2, 3]
3,052,724
3,052,725
How to record video using Intents?
<p>I need to unserstand how I can record video programatically. Now I use this construction:</p> <pre><code>public class AndroidLearningActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedI...
java android
[1, 4]
999,303
999,304
Apply class to body while watching videos
<p>Is there a way to first check if the browser is webkit or not, and then apply a class to the body when a user clicks on a video to play it? If the browser is webkit, I'd like to apply the class .blur, and if the browser is not webkit, i'd like to add a dark overlay, so the user can focus on the video. I would have N...
javascript jquery
[3, 5]
4,298,241
4,298,242
Javascript - Getting data from XML for later use... put in array or object?
<p>I am extracting a bunch of data from an XML file using jQuery. I need to use the data to fill in image paths, names, etc.</p> <p>What is the best way to gather all of this data for use? For instance, I get everything like so:</p> <pre><code> $(document).ready(function() { $.ajax({ ...
javascript jquery
[3, 5]
862,479
862,480
Java: Succinct way to import multiple constants
<p>Is there a succinct way to import in Java which would be equivalent to the following statement:</p> <pre><code>import static android.view.View.GONE; import static android.view.View.INVISIBLE; import static android.view.View.VISIBLE; </code></pre> <p>I know about this:</p> <pre><code>import android.view.View.*; <...
java android
[1, 4]
2,435,942
2,435,943
Difference in behaviour of function - JavaScript/jQuery
<p>I've written some JavaScript/jQuery code that adds a users email to my newsletter database. There is a "subscribe" button to start the process, but I also wanted the user to be able to hit return for usability.</p> <p>Weirdly, the code works for both the button and when the return key is hit in that the email is ad...
javascript jquery
[3, 5]
3,130,242
3,130,243
How to get the value from dropdown in asp.net
<p>I am using dropdown in ASP.net to display image along with value</p> <pre><code>&lt;asp:DropDownList ID="ddBanner" runat="server" CssClass="ddBanner" &gt; &lt;/asp:DropDownList&gt; </code></pre> <p>I used the following link to modify to my needs, i got it working. <a href="http://www.aspdotnet-suresh.com/2011/12...
c# jquery asp.net
[0, 5, 9]
3,660,402
3,660,403
real time countdown timer using javascript and php
<p>i need help to create real time countdown timer for timestamp</p> <p>iam using php to echo the timestamp like this</p> <pre><code>&lt;? php echo $timestamp;?&gt; </code></pre> <p>what iam trying to do is to countdown $timestamp in real time using javascript</p> <p>thank you all</p>
php javascript
[2, 3]
3,670,152
3,670,153
javascript parameters cut down in IE
<p>Hello I have passed value of div lang attribute in my jquery function.this is working perfect in all browse except IE.</p> <pre><code> While inspects in FIREFOX div look like below code. &lt;div lang="1760@239.0000@349.0000@449.0000@plain make it@Plain make@Plain@Georgia Gray@8x16@10x20@12x24@No@45@10x20@check2@my...
php jquery
[2, 5]
216,188
216,189
ASP.NET radio button jQuery handling
<p>I am trying to figure out why my page doesn't fire the radio button change event.</p> <p>Here's the script I have for it, it's supposed to show a div once the radio button is checked.</p> <pre><code> $("input[id$='radio1']").change(function () { if ($("input[id$=radio1]").is(':checked')) { ...
javascript jquery asp.net
[3, 5, 9]
2,495,112
2,495,113
calling REST service using Jquery/javascript
<p>I need to call a REST Service from my classic ASP application. I heard that the best way to call a REST service is using Jquery. Its not working for me. I dont know what mistake I am doing here . Here is my code.</p> <pre><code>&lt;script language="javascript" scr="inc\javascript\jquery-1.7.2.js" &gt;&lt;/script&gt...
javascript jquery
[3, 5]
615,730
615,731
writing a code for chess board (8x8), except the verteces are nodes, and edges are connection between nodes.. i.e, 8x8 network
<p>I am trying to write a code for just the chess board (8x8), where each vertex is a node, and edges are connections between the nodes. Each node is connected with either 2, 3 or 4 nodes. </p> <p>I am trying to write the code considering a node as an object. I am new to Graph theory implementation. Please help me ou...
java c++
[1, 6]
42,787
42,788
Any good alternative for ASP.NET validation controls?
<p>Is there easy to integrate ASP.NET with jQuery form validation plugin or any other JS framework to replace standard ASP.NET client validation ?</p>
asp.net javascript jquery
[9, 3, 5]
3,778,725
3,778,726
Removing the div child in jquery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5062916/replace-div-with-another-div">Replace Div with another Div</a> </p> </blockquote> <pre><code>&lt;div id='test'&gt; &lt;span&gt;&lt;/span&gt; &lt;p&gt;&lt;/p&gt; &lt;button&gt;&lt;/button&gt; &lt;h1&g...
javascript jquery
[3, 5]
3,508,808
3,508,809
JQuery each loop looping through one line of code x amount of times before even looking at the rest
<p>I have a loop in Jquery:</p> <pre><code>var fadeTime=500; css_id=0; $.each(my_array, function (i, d_U) { css_id++; an_v=d_U[1]; an_d=d_U[4]; do_c_function("id_344",true,true); $("#box_"+css_id).fadeIn(fadeTime,function(){ //this stuff will happen once the fadein is complete $("#box_"+css_id).animate({top:...
javascript jquery
[3, 5]
3,008,167
3,008,168
How to go to Activity by clicking Table row?
<p>I'm making a simple app. and it is my first app too... </p> <p>It has an activity with a menu and I made each menu option in a Table Row. Each Table Row contain an Image button and a Text Description. I want to go to another Activity when we click on each Table row. How do I do that??</p> <p>And is it possible to ...
java android
[1, 4]
3,268,276
3,268,277
When search for right name display once when search for first character in name displays 5 times?
<p>Seach in database only display firstname and lastname in Gridivew with linkbutton.</p> <p><img src="http://i.stack.imgur.com/NSsxB.png" alt="enter image description here"></p> <p>In the first Image(1) I Search only for the first Name, and get displayed firstname and last name. In the second Image(2) I only search ...
c# asp.net
[0, 9]
3,977,516
3,977,517
Is there a way to detect if a user is on a wifi connection with php or javascript?
<p>Cant seem to find any info on this, but was wondering if there is any way to detect if a user is on a wifi connection, specifically public wifi, using javascript, or php?</p>
php javascript
[2, 3]
57,310
57,311
Determine if JavaScript value is an "integer"?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/600763/check-if-a-variable-contains-a-numerical-value-in-javascript">Check if a variable contains a numerical value in Javascript?</a> </p> </blockquote> <p>How do I check if variable is an integer in jQuery?</p...
javascript jquery
[3, 5]
4,830,414
4,830,415
Creating links for elements with a particular class with jQuery
<p>How can I wrap every element belonging to a particular class with a link that is built from the text inside the div? What I mean is that I would like to turn:</p> <pre><code>&lt;foo class="my-class&gt;sometext&lt;/foo&gt; </code></pre> <p>into</p> <pre><code>&lt;a href="path/sometext" &gt;&lt;foo class="my-class&...
javascript jquery
[3, 5]
3,106,762
3,106,763
Using OnDraw() Function in Android Conditionally
<p>I want to know if we can call Ondraw() method of Android Conditionally, based on some flag. For example ondraw() should be called only when a particular frame is decoded.</p> <p>So consider this situation:</p> <pre><code>decoder(); /// @NDK set flag; if (Flag==set) { OnDraw() works and displays an image...
java android
[1, 4]
2,106,253
2,106,254
Why can't java subordinate object access parent field?
<p>I have an object that I instantiate twice, and each one needs to affect something in the other object. Yes, it's ugly, but in Android, I want to make a radio button in one display/tab match the state in another display/tab. I suppose I could have a method in the parent that updates both instantiations of the radio b...
java android
[1, 4]
2,576,363
2,576,364
Add class to a div via Jquery
<p>I have the div which is generated when page loads as below.</p> <pre><code>&lt;div class="redactor_ redactor_editor"&gt;&lt;/div&gt; </code></pre> <p>How can I add a class .example onto it via jquery like below?</p> <pre><code>&lt;div class="redactor_ redactor_editor example"&gt;&lt;/div&gt; </code></pre> <p>Tha...
javascript jquery
[3, 5]
1,354,491
1,354,492
problem with jquery and asp.net data exchange
<p>i have a wcf service that i want to call and i know it's returning a JSON string. </p> <p><strong>Q1</strong>: how can i find out how the JSON looks like at runtime? for example, if the JSON is {'name':'steive', 'lastname':'jones'} how do i find this parameter names with javascript or jquery? </p> <p>in the sample...
c# jquery asp.net
[0, 5, 9]
5,710,577
5,710,578
ASP.NET - Internal messaging system
<p>I want to implement a messaging system in my Web application similar to the one Chase and Facebook have on their websites. Should I develop this on my own, or should I find a 3rd party control or other solution? Would google provide some sort of API to make this easy? I'm leaning towards developing this on my own...
c# asp.net
[0, 9]
270,946
270,947
Stack of activity from Activity stack
<p>There is a stack of activity i want to call the activity from that stack , My question is that is it possible to check from that stack and call that intent . When i press home button and again when i press the executable it should start the activity where i have left . Is it possible ? Any example related to the s...
java android
[1, 4]
5,519,595
5,519,596
Delegating a button click event by clicking another button
<p>I want to fire a HTML button click event by clicking another button, Can anyone help me with the code, I'm using jQuery library..</p>
javascript jquery
[3, 5]
4,071,266
4,071,267
How can I get my CheckBoxList to have three possible states?
<p>How can I get my <code>CheckBoxList</code> to have three possible states ? More precisely, is there a way to have three possible states for each checkbox : checked, unchecked, undefined (in most GUIs this is represented as a full square).</p> <p>Alternatively, do you recommend another control that would meet these ...
c# asp.net
[0, 9]
889,854
889,855
Using JavaScript, Select GridView Rows & selected column values in asp.net
<p>My requirement is to get the gridview selected row column values in javascript function which is I am calling on click on image that is first column of gridview. Please tell me how can I do this I can't use checkbox or radio button instead of image, as well i don't want to refresh the page. </p>
javascript jquery asp.net
[3, 5, 9]
756,282
756,283
Using jquery to monitor form field changes
<p>Trying to learn some jquery to implement an autosave feature and need some assistance. I have some code to monitor the status of form fields to see if there has been any change. Everything works, but I need to only monitor the changes in a specific form, not all form inputs on the page. There is a search box and a n...
javascript jquery
[3, 5]
3,563,907
3,563,908
What is the difference between "$(this)" and "this"?
<p>I was reading the <a href="http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery">http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery</a>. And got confused with use of <code>this</code> in these 2 code segments.</p> <pre><code> $(document).ready(function() { $("#orderedlist").find("li")....
javascript jquery
[3, 5]
3,567,962
3,567,963
phpmyadmin html connect
<p>i am currently creating a web application. the problem here it is coded purely in HTML and JScript. Is it possible to use a php script as well to connect to PHPmyadmin? i have been encountering the same problem where the script is being displayed as text file</p>
php javascript
[2, 3]
1,372,739
1,372,740
Detect vertical scroll and scrollbar width and apply width change to body
<p>In my page, I wish to detect whether the page has vertical scrollbars, and if so, need to detect the width of the scrollbar, so I can reduce my body by the width and thus prevent my sidebar from changing location from viewing a non-scrolling page to a scrolling page. I have the following jQuery/Javascript code:</p> ...
javascript jquery asp.net
[3, 5, 9]
1,187,954
1,187,955
What is the Java equivalent of PHP var_dump?
<p><strong>PHP has a <a href="http://php.net/var_dump">var_dump()</a> function which outputs the internal contents of an object, showing an object's type and content.</strong></p> <p>For example:</p> <pre><code>class Person { private $firstName; private $lastName; public function __construct($firstName, $lastN...
java php
[1, 2]
497,037
497,038
combining similar click handlers in order to reduce code being used in jquery?
<p>I have 2 click events that go through a series of different actions, the only thing that is different between the 2 events though is 2 lines. Is there a way of combining these clicks in order to cut down the amount of code being used?</p> <pre><code>$('a.register').click(function() { $('h4#registerH...
javascript jquery
[3, 5]
5,847,670
5,847,671
Anchoring from a link to label in a repeater
<p>I have a list on top of my page that has a few different countries on it. I need to have an #anchor that will pop half way down the page to the country picked. However the countries down the page are pulled from a Database and are listed by HyperLinks in a repeater. </p> <pre><code>&lt;td align="center"&gt; &lt;u...
c# asp.net
[0, 9]
4,700,674
4,700,675
What is wrong with my jQuery / my JS?
<p>I just started working on the following site: <a href="http://www.psykotaktyle.com/" rel="nofollow">http://www.psykotaktyle.com/</a></p> <p>I have downloaded the latest jQuery (1.6.2) and jQuery UI (1.8.14).</p> <p>The only other JS code on the page is:</p> <pre><code>function get_url_param(param, url) { param ...
javascript jquery
[3, 5]
4,308,648
4,308,649
jQuery string manipulation performance vs. PHP
<p>Im building a custom jquery modal box that loads an external html template file that contains variables that need to be replaced. For instance: [user-name]</p> <p><strong>I know I have 2 options for modifying the template file:</strong></p> <ul> <li>use find and replace in jquery</li> <li>process the template ser...
php javascript jquery
[2, 3, 5]
4,367,912
4,367,913
Why can I not see my object's properties
<p>I'm stumped here and would love to know what I'm mising. </p> <p>I was just re-writing some code and cleaning some stuff up. I have a method that does an ajax call and returns a json string. Since I use the method a couple of places I abstracted to this method here within a name space. </p> <p>This is json object ...
javascript jquery
[3, 5]
2,912,811
2,912,812
Why is Context needed for getRelativeTimeSpanString?
<p>I was wondering why <a href="http://developer.android.com/reference/android/text/format/DateUtils.html#getRelativeTimeSpanString%28android.content.Context,%20long,%20boolean%29" rel="nofollow"><code>getRelativeTimeSpanString</code></a> needs a context? (leaving the puns aside)</p> <pre><code>public static CharSeque...
java android
[1, 4]
5,939,633
5,939,634
How to have an IF OR in android?
<pre><code> if(word.equals(" ")){ } </code></pre> <p>I have this IF statment, what i would like it to also do is the following..</p> <pre><code> if(word.equals(" ") OR word.equals(".") ){ } </code></pre> <p>I know the above code will not work, but im looking how to implement something like that? Anyone know how...
java android
[1, 4]
4,162,580
4,162,581
Strip default HTML code
<p>I want to create a web form where I'll perform some background action based on the GET parameter through jQuery and will print 1 or 0. But the problem - ASP.NET is printing lots of HTML by default even when no such code exist in the Markup window</p> <pre><code>&lt;%@ Page Language="C#"%&gt; &lt;% try { int...
c# asp.net
[0, 9]
1,376,811
1,376,812
How do I format 7 as '07' in string in JavaScript?
<p>I have JavaScript day, month and year. I need my day to be in 2 digits, my months also to be in 2 digits and year in 4 digits.</p> <p><strong>Eg.</strong> If month is <code>7</code> it should give me string as <code>'07'</code>. If it is <code>12</code> then it should return <code>'12'</code>.</p> <p>I google for ...
javascript jquery
[3, 5]
1,919,281
1,919,282
Send Mail from ASP.NET
<p>in my application i m sending a mail from gmail server. when i m executing the code its giving error</p> <p>here is the code</p> <pre><code> mail.To.Add(txtTo.Text); mail.From = new MailAddress(txtFrom.Text); mail.Subject = txtSubject.Text; mail.Body = txtBody.Text; mail.IsBodyHtml = true; i...
c# asp.net
[0, 9]
3,256,789
3,256,790
android Thread and Service
<p>I am using below code.</p> <pre><code> import android.app.Activity; import android.os.Bundle; import android.provider.ContactsContract.Data; import android.util.Log; public class ActivityDemoActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(B...
java android
[1, 4]
974,547
974,548
jquery AJAX sent data in key value pair
<p>In my aspx page, i have the js like this :-</p> <pre><code> &lt;script language="javascript" type="text/javascript"&gt; $("#btnLoad").click(function () { var dataForAjax = "{'datakey':'hello'}" $.ajax({ type: "POST", url: "Ajax__Demo.aspx/SendFile", data:...
c# jquery
[0, 5]
4,735,286
4,735,287
Adding jQuery event handlers to elements with wildcard IDs
<p>I currently have the following in a document.ready block:</p> <pre><code> $("[id^=summaryDetailLink_]").each(function(index) { var splitID = this.id.split("_"); this.click(alert('clicked: '+splitID[1])); //toggleDetail(splitID[1]) }); </code></pre> <p>Ultimately I want to detect when a T...
javascript jquery
[3, 5]
1,505,505
1,505,506
JavaScript unexpected object behavior with jQuery
<p>I have two <code>&lt;div&gt;</code> elements, and the following JavaScript code:</p> <pre><code>var myObject = { $input: $('&lt;input /&gt;'), insert: function () { $('div').append(this.$input); $('div').append(' '); } }; myObject.insert(); </code></pre> <p>This, as I expect, produces ...
javascript jquery
[3, 5]
5,981,120
5,981,121
jQuery - Search that will get the list of matched value
<p>I have a list of downloadable zip files. I wanted to add a search box, that will search the filename they are going to download. </p> <p>Example if they if they are going to search "laptop" keyword. It will show the <code>laptop_pricelist.zip</code>, <code>apple_laptop_pricelist.zip</code> and <code>laptop_accesso...
javascript jquery
[3, 5]
1,399,183
1,399,184
Update web.config file in asp.net
<p>I am working on a web application which sits on a server and connects to various client machines based on the IPAddress.I have to change the IPAddress every time in the web.config file in order to connect to a particular client machine.</p> <p>I want to put a text box where i can enter the ipaddress and it updates ...
c# asp.net
[0, 9]
5,922,999
5,923,000
How do I prevent button presses until form request is completed when form request causes a file download
<p>In my Asp.net webforms site I have a form where users select various options and those options are sent back in a postback that generates a PDF report and sends that file back to the user for download via the following code:</p> <pre><code> protected void btnTopGenReport_Click(object sender, EventArgs e) { ...
c# asp.net
[0, 9]
4,212,450
4,212,451
javascript event.target not working in mozilla
<pre><code>&lt;script type ='javascript'&gt; function fun(userID) { var btn = event.target; // error 'event' undefine in mozilla alert(btn.id); } &lt;/script&gt; </code></pre> <hr> <pre><code>&lt;asp:linkButton id ="target" style =" cursor:pointer" onclick ="fun('1')" &gt;click here &lt;/asp:...
javascript jquery asp.net
[3, 5, 9]
1,214,912
1,214,913
Retrying an http connection
<p>I'm making an http request. I'm on a platform (android) where network operations often fail because the network connection might not be immediately available. Therefore I'd like to try the same connection N times before completely failing. Was thinking of something like this:</p> <pre><code>DefaultHttpClient mHttp ...
java android
[1, 4]
4,655,820
4,655,821
redirection follow by post
<p>just wonder how those air ticket booking website redirect the user to the airline booking website and then fill up(i suppose doing POST) the required information so that the users will land on the booking page with origin/destination/date selected?</p> <p>Is the technique used is to open up new browser window and d...
javascript python
[3, 7]
2,826,368
2,826,369
How to use javascript or jQuery to read a pixel of an image?
<p>How to use javascript or jQuery to read the color of a pixel of an image when user click on it? (of course we have the (x,y) value of this pixel by subscribing to the click event).</p> <p>Thanks!</p>
javascript jquery
[3, 5]
929,297
929,298
"Expecting More Source Characters" in my Javascript
<p>Visual Studio is objecting to the script below and returns a message that says "Expecting More Source Characters". This I assume is the reason this script won't fire on the page.</p> <p>Usually when I get this message in VS it means I forgot a semi colon. However I don't <em>think</em> that is the case this time....
javascript jquery
[3, 5]
1,763,527
1,763,528
Thumbs up/Thumbs Down Rating Implementation
<p>Similar to the one here on StackOverFlow, I would be needing to implement a way for people to vote up and vote down comments in a forum like site.</p> <p>However instead of having a generic overall score, we will display the total amount of "thumbs up" and "thumbs down". The overall score will be needed for filteri...
c# asp.net
[0, 9]
2,067,261
2,067,262
Get parent formname on child window using jquery?
<p>i have below form tag on parent page from which i open a popup. i want to get form Name attribute value(i.e "cust-100" ) on popup screen</p> <pre><code>&lt;form action="/custAction" formName="cust-100"&gt; </code></pre> <p>i tried below</p> <p><code>self.opener.document.$('[name="formName"]').val()</code> but ...
javascript jquery
[3, 5]
222,057
222,058
Creating a small jQuery plugin
<p>I created this plugin to make work around an application easier.</p> <p>Here is the link : <a href="http://jsfiddle.net/X5Squ/" rel="nofollow">http://jsfiddle.net/X5Squ/</a></p> <p>My problem it that it always uses just 1 of the elements, please don't edit the data and data5 functions as these work perfectly for o...
javascript jquery
[3, 5]
3,679,037
3,679,038
Writing to a file on Android issue
<p>I am currently trying to paste current time into a file for an Android application. The code looks like this but the file is not created. I have enabled the permission of my application to write on the SD card through the manifest. Any ideas?</p> <pre><code> Time today = new Time(Time.getCurrentTimezone()); ...
java android
[1, 4]
5,589,711
5,589,712
Adding break every 2 consecutive floated elements (nth:child)
<p>I created this fiddle so that you can see what i am trying to do easily. I would like to add that break after every 2 consecutive div elements (div.column) </p> <p>Fiddle example: <a href="http://jsfiddle.net/j5qS5/" rel="nofollow">http://jsfiddle.net/j5qS5/</a></p> <p>I tried:</p> <pre><code>$(".column:nth-child...
javascript jquery
[3, 5]
3,530,635
3,530,636
Am I less likely to encounter cross-browser issues if I use php instead of server-side javascript to build a website?
<p>Recently, I've been involved in two projects.</p> <p>The first one is built on php and the second in Javascript (using <a href="http://nodejs.org/" rel="nofollow">http://nodejs.org/</a>). Well, I thought that since php depends mostly on the hosting provider, if the site works in one browser it should work in all th...
php javascript
[2, 3]
1,607,687
1,607,688
PHP / mySQL output via javascript and dropdown
<p>Here is what I have in php:</p> <pre><code>[Color, Size, Status] Red, Small, 1 Red, Large, 0 Blue, Small, 1 Blue, Large, 1 </code></pre> <p>I can get that output in php just fine like mentioned above. What I want to do is get this structured properly for dropdown in html and javascript/jquery (please continue read...
php javascript jquery
[2, 3, 5]
2,586,293
2,586,294
passing query string value from asp.net page to iframe
<p>I have an asp.net page with a textbox and a button. on button click, I open a popup and load a page in it using iframe. I want to pass value of textbox as query string to page in iframe. How can I do this?</p> <p>I tried using server side iframe like this:</p> <pre><code>&lt;iframe id="popupframe" runat="server" s...
javascript jquery asp.net
[3, 5, 9]
5,180,516
5,180,517
Calculation in code behind
<p>Chauffeur service cost $30. It is an option to user whether they want the service or not. When they already select car, and day of rental, I store it in session. </p> <pre><code>Session["car1"] = Label1.Text; Session["price"] = Label5.Text; Session["day"] = DropDownList3.SelectedItem.Text; Session["driver"] = Label...
c# asp.net
[0, 9]
2,425,125
2,425,126
hide javascript in php
<p>hi all i am working on a project, it need email validation when user enter his email address check for availiblity. i wrote the php code in javascript it works fine but my problem is when some one see my page source it is displaying all user email address in javascript code. i want hide this one.</p> <p>i wrote ...
php javascript
[2, 3]
3,475,867
3,475,868
One function to rule multiple buttons, and then some
<p>I have 7 buttons. They are distributed on top of a background image and interacting with it. They are placed absolutely. I have created a jQuery function to animate one of the buttons height. The button expands upwards. Check it out here: <a href="http://hdpano.no/bf/newindex.html" rel="nofollow">http://hdpano.no/bf...
javascript jquery
[3, 5]
5,941,312
5,941,313
JQuery - DIV-Content-Change should be another URL
<p>after the user logged in, the project-url is root/inside/. The site has 4 different main-sections, which will be displayed in a div via Ajax. The url does not change, after clicking on the links. How can i do it, that the url changes like this after clicking on the links for the main sections:</p> <pre><code>root/i...
javascript jquery
[3, 5]
4,352,676
4,352,677
Android Package Manager List Doesn't Show Navigation Icon
<p>I'm using the below code to get a list of applications:</p> <pre><code> List&lt;ApplicationInfo&gt; packages = pm.getInstalledApplications(PackageManager.GET_META_DATA); Collections.sort(packages, new ApplicationInfo.DisplayNameComparator(pm)); for (int i = 0; i &lt; packages.size(); i++) { if (p...
java android
[1, 4]
2,553,976
2,553,977
Need help with jQuery to JavaScript
<p>I want to rewrite this line as vanilla JS so it is applied quicker (and before the downloading of the jQuery library). The line is</p> <pre><code>$(document).ready(function() { $('body').addClass('javascript'); }); </code></pre> <p>If I added it to the html element instead, would I be able to leave off the DOM rea...
javascript jquery
[3, 5]
1,616,018
1,616,019
jQuery .getJSON vs .post which one is faster?
<p>Using $.getJSON(); or $.post();</p> <p>I'm trying to send some parameters through a page that is just for AJAX request and get some results in JSON or html snippet. </p> <p>What I want to know is that which one is faster?</p> <p>Assume the HTML file would be simply plain boolean text (true or false)</p...
javascript jquery
[3, 5]
2,903,404
2,903,405
jQuery: do I need to put calls to $("img").lazyload() in $(document).ready()?
<p>I am using <a href="http://www.appelsiini.net/projects/lazyload" rel="nofollow">lazy load jquery plugin</a>.</p> <p>It tells me to put this in my code to activate it:</p> <pre><code>$("img").lazyload(); </code></pre> <p>Do I have to put this in <code>$(document).ready()</code>? or can I just put it at the very to...
javascript jquery
[3, 5]
1,579,964
1,579,965
hiddenfield have to change on every onclick
<p>Am new to asp.net,c#. Am having dynamic boxes(each companies),it will create at the run time.Now On each click of the box my hidden field should give the respected id.If am clicking that box I can get the company id from database,now if the company id is 5 my hidden field should get 5,if it is 7 my hidden field shou...
c# javascript asp.net
[0, 3, 9]
1,087,284
1,087,285
Banner changer issue
<p>I have the lines of code for a banner changer and whenever i add a link to any of the banners, it goes blank "The banner space goes blank." every now and then. </p> <pre><code> $(function(){ $('#banner img:gt(0)').hide(); setInterval(function(){$('#banner :first- chi...
javascript jquery
[3, 5]
5,405,428
5,405,429
find element at an absolute position
<p>How would you use jquery to get the element at a particular x, y coordinate? You can .offset and .position to find absolute and relative position using jquery. </p>
javascript jquery
[3, 5]
3,703,445
3,703,446
Name convention Controls on Forms Tips
<p>I found out this article I would like share with you.</p> <p><a href="http://10rem.net/articles/net-naming-conventions-and-programming-standards---best-practices" rel="nofollow">http://10rem.net/articles/net-naming-conventions-and-programming-standards---best-practices</a></p> <p><a href="http://stackoverflow.com/...
c# asp.net
[0, 9]
2,279,430
2,279,431
JavaScript check field value based on variable value
<p>I have an anchor like this:</p> <pre><code>&lt;a href="#" rel="1 4 7 18 "&gt;Anchor&lt;/a&gt; </code></pre> <p>Where 'rel' attribute values are ids of some items.<br /> Than I have a form with an input, where user should type an id and click submit button.<br /> On submit button click I need to check the value of ...
javascript jquery
[3, 5]
5,091,511
5,091,512
Problem with jQuery clone(): clone input without value
<p>I am using jquery <code>.clone()</code> and it is working fine. However my problem is that when I clone my input field it also clones the value of the previous field. I don't want to clone the value. How can I overcome this issue?</p> <p>Here is my code</p> <pre><code>function addrow(){ var num = $('.clone...
javascript jquery
[3, 5]
301,384
301,385
Anyone know of javascript for this drop down navigation?
<p>I'm a beginner to web design, does anyone know of a script that has this EXACT drop down navigation style?</p> <p><a href="http://behance.vo.llnwd.net/profiles4/172375/projects/4109265/b262ce1df694cced3f3fa5fe3cb8dc97.jpg" rel="nofollow">http://behance.vo.llnwd.net/profiles4/172375/projects/4109265/b262ce1df694cced...
javascript jquery
[3, 5]
907,272
907,273
How can I retain a GridViewRow value?
<p>My <code>GridView</code> is loaded with data from my database in a <code>DataSet</code>, which corresponds to <code>Label</code>s inside the <code>GridView</code>.</p> <p>When users click the <code>Select</code> button on a <code>GridViewRow</code>, the button fills a <code>TextBox</code> outside the <code>GridView...
c# asp.net
[0, 9]
3,747,214
3,747,215
How to send email from ASP.Net
<p>My question is should I use email account to send email from asp.net application or just I can send it from the localhost? regards,</p> <p>Mohamed Farag</p>
c# asp.net
[0, 9]
4,633,568
4,633,569
Generating a C++ executable from a C# application
<p>I have a WCF service accepting requests from our clients. After analyzing the request I need to generate (compile + link) C++ EXE. What is the best method to create an C++ EXE from a C# application???</p> <p>10x</p>
c# c++
[0, 6]
1,023,868
1,023,869
How to invoke browser without losing browsing state?
<p>I have written an activity that has 2 image buttons (1 for messaging and another for browser). On click on each will start messaging and browser android activities respectively.</p> <p>My question is: whenever I start my app and click on any of the buttons say browser button for example, and after it starts the and...
java android
[1, 4]
2,393,196
2,393,197
Cannot seem to get user location
<p>I've been trying to get the longitude and latitude of a users location with Android. I've been trying to use the LocationManger however it does not seem to activate and give me an update. Here is the code, any ideas what I'm doing wrong?</p> <pre><code>LocationManager locationManager = (LocationManager) this.getSys...
java android
[1, 4]
3,512,631
3,512,632
What are the best practices to add jquery to asp.net?
<p>I apologize if this question has been asked, but I can't find a question for this anywhere.</p> <p>I would like to use jquery on my asp.net page, but should I just register a new script? Add a link? Is there some special reference I can add?</p> <p><a href="http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-...
jquery asp.net
[5, 9]
449,824
449,825
DisplayMessageActivity cannot be resolved to a type-Building first android App
<p>Hi I have just began working on the first android application on <strong>developer.android.com</strong>.</p> <p>well to start with I got to learn many error origins and their solutions from S.O. , but i have been trying to figure out this statement <em>"DisplayMessageActivity cannot be resolved to a type"</em> whi...
java android
[1, 4]
5,903,398
5,903,399
Drag an app window
<p>My app uses android:theme="@android:style/Theme.Panel"</p> <p>in the manifest to make the window smaller than the screen on a big tablet.</p> <p>But how can I move the app window around on the screen?</p> <p>I don't see anything like "application.left" in the API.</p>
java android
[1, 4]
279,454
279,455
Optimising event handling: one large, or many small?
<p>Which pattern is best, and why?</p> <pre><code>$myElements.delegate(selector, 'event1 event2', function () { if (event.type === 'event1') { /* Handle event 1 */ } if (event.type === 'event2') { /* Handle event 2 */ } } </code></pre> <p><strong>OR</strong></p> <pre><code>$myElements .delegate(selector, 'e...
javascript jquery
[3, 5]
1,623,417
1,623,418
Event not getting fired in code behind
<pre><code>PnlImages.Controls.Add(new LiteralControl(" &lt;img id=\"img\" class=\"content\" src=\"" + url + "\" runat=\"server\" name=\"img\" onclick=\"return onClick(this);\" /&gt;")); public void onClick(object sender) { } </code></pre> <p>debugger is not firing instead giving error "object expected".<br> Please...
c# javascript
[0, 3]
971,421
971,422
ASP.net or jQuery modal pop-up solution
<p>I am looking for a modal pop-up solution with the following requirements:</p> <p>1.) Usable with ASP.net. 2.) The modal pop-up's height is dynamic, for example: the modal pop-up's height would grow based on how much content was in it and if your content is going to make the pop-up taller than the browser's availabl...
jquery asp.net
[5, 9]
5,953,943
5,953,944
jQuery slideToggle() on two items concurrently
<p>So I'm in the process of creating a text slider, for headlines. I would like the currently displayed text to side out, at the same time that the new text is sliding in. Is there a way that I can use jQuerys <code>.slideToggle()</code> or <code>.slide()</code> concurrently to be able to do what I want?</p>
javascript jquery
[3, 5]
5,814,587
5,814,588
gridview on edit event , on update event?
<p>I would like to know how I can access the edit and the update button from <code>GridView</code>?<br> I mean, if I click the edit button from the website in the <code>GridView</code>, I want to get some values from the tables.<br> For example: the <code>button1</code> event.</p>
c# asp.net
[0, 9]