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,967,201
5,967,202
Enable/Disable Submit Button based on radio buttons
<p>I have a form layed out like this: </p> <pre><code>&lt;form action="join-head-2-head.php" method="POST" enctype="application/x-www-form-urlencoded"&gt; &lt;table border="0" cellspacing="4" cellpadding="4"&gt; &lt;tr&gt; &lt;td colspan="2"&gt;&lt;input name="player1rules" type="radio" id="tandc...
php javascript jquery
[2, 3, 5]
1,083,492
1,083,493
How to convert Int to constant for res/raw?
<pre><code> InputStream inputStream = getResources().openRawResource(R.raw.ac); </code></pre> <p>here, ac is constant file name from res/raw.</p> <pre><code>int books = cursor.getColumnIndexOrThrow(DictionaryDatabase.BOOK_DETAILS) </code></pre> <p>is an int contains name: ac also.</p> <p>Is it possible to use </p> ...
java android
[1, 4]
5,617,539
5,617,540
Getting loop to work in my script
<p>I basically want this loop to produce random spaces in a grid I am developing, but cannot get it to work in my script.</p> <p>I have the correct loop I just can't get it to work with the rest of my script</p> <p>I have just edited and it still doesn't work, any other ideas? </p> <pre><code> var listOfWords = {}...
javascript jquery
[3, 5]
3,278,782
3,278,783
When clicking on on the LI then automatically click on input radio
<p>When you click on li, I want input radio to be clicked.</p> <p>However, I am getting an error from conole log saying:</p> <pre><code>Uncaught RangeError: Maximum call stack size exceeded </code></pre> <p>How to fix this?</p> <p>Here the html code:</p> <pre><code> &lt;ul class="Method"&gt; &lt;li clas...
javascript jquery
[3, 5]
3,048,097
3,048,098
It is my life's ambition to get this jQuery to work
<p>I'm trying to write some jQuery for my first-ever mobile version of a particular page. If I detect a small browser size, I'm showing only a list of articles. Once a user clicks on an article, I want the list to minimize and the article to be shown in the main content. I'm trying to do this by hiding the list when an...
javascript jquery
[3, 5]
4,965,283
4,965,284
Referencing a drop down menu in jQuery from ASP.NET
<p>This is a newbie question. I've been using jQuery for a day or so.</p> <p>I simply want to capture each change in a drop down menu.</p> <p>Here's my drop down menu and reference:</p> <pre><code> &lt;script src="Scripts/insertRootCauseElements.js" type="text/javascript"&gt;&lt;/script&gt; &lt;asp:DropDownList ID=...
jquery asp.net
[5, 9]
807,290
807,291
Formatting string in Java
<p>Hi I'm new to java so this is going to seem a bit tame. Anyway, in objC, when I want to insert a variable into a string, I would do it like this:</p> <pre><code>NSString *string = [NSString stringWithFormat:@"test%i", variable]; </code></pre> <p>How do I do this in java?</p>
java android
[1, 4]
4,532,588
4,532,589
Usercontrol doesnt support Webmethod?
<p>I want to call a Scriptmanager webmethod in usercontrol. But Webusercontrol does not support WebMethod. Can it be achieved by Jquery Ajax or any other way?</p>
javascript jquery asp.net
[3, 5, 9]
2,204,968
2,204,969
Gowalla java-android, get access token?
<p>please give me tutorial about How to use OAuth2 and Checkin with gowalla-java. <a href="http://code.google.com/p/gowalla-java/wiki/OAuth2Example" rel="nofollow">http://code.google.com/p/gowalla-java/wiki/OAuth2Example</a> i don't understand how to Request Authorization, The callback code , and get acsess token.</p> ...
java android
[1, 4]
1,373,146
1,373,147
Fileupload Data Loses when checkbox is checked?
<p>any help Please.How can I fix problem like when ever I check check box at that time file path is losing from file upload. How can I retain the vlue of my fileupload ? I am using asp.net c#</p>
c# asp.net
[0, 9]
4,151,161
4,151,162
Adding characters to string (input field)
<p>I have a text box where the value is the result of a calculation carried out in jQuery. What I would like to do, using jQuery, is to display brackets around the number in the text box if the number is negative. </p> <p>The number may be used again later so I would then have to remove the brackets so further calcula...
javascript jquery
[3, 5]
2,977,461
2,977,462
Make button with function in jquery?
<p>I am trying to make a button with click function to run my jquery:</p> <pre><code>Function tester(){alert("test")} </code></pre> <p>My raw html button code is:</p> <pre><code>&lt;button class="t1" id="52" onClick="tester()"&gt;sometext&lt;/button&gt; </code></pre> <p>But i want to make the button using just jque...
javascript jquery
[3, 5]
685,230
685,231
Android Debugging InetAddress.isReachable
<p>I am trying to figure out how to tell if a particular ipaddress is available in my android app during debugging ( I haven't tried this on an actual device ).</p> <p>From reading it appears that InetAddress.isReachable should do this for me.</p> <p>Initially I thought that I could code something like:</p> <p>InetA...
java android
[1, 4]
779,681
779,682
Make flashlight app work when the application is closed
<p>I have this code that allows me to press a button to turn on my phones flashlight. What would be the best way to keep the light on, while the application is closed? I heard asynctask is good, but I read that it's meant for a background task that will communicate with the UI. What kind of "thread" should I use for th...
java android
[1, 4]
478,365
478,366
Local class definitions: why does this work
<p>Why does the following style of code work:</p> <pre><code>BroadcastReceiver receiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { //do something based on the intent's action } } </code></pre> <p>I would expect it to be:</p> <pre><code>private class MyBroadcas...
java android
[1, 4]
4,870,411
4,870,412
ConfigurationSection with multiple projects
<p>In my asp.net solution i have a couple of class library-projects that act as modules of the site.<br> In main project I have SiteConfigurationSection class that derives from ConfigurationSection. </p> <p>I want all projects to be able to access and use this SiteConfigurationSection.<br> But class library projects ...
c# asp.net
[0, 9]
5,480,168
5,480,169
Concerned with datalist
<p>I have a datalist. My designer code is like this.</p> <pre><code>&lt;asp:DataList ID="dlView" runat="server" CssClass="basix" RepeatColumns="4" &gt; &lt;ItemTemplate&gt; &lt;tr&gt; &lt;td&gt; &lt;asp:Image ID="imgPlan" runat="server" ImageUrl='&lt;%#GetImage(Eval("ImageName")) %&gt;' /&gt; &lt;/td&gt; &lt;td&gt; ...
javascript asp.net
[3, 9]
3,916,582
3,916,583
count of tr with style property empty
<p>Here is my html</p> <pre><code>&lt;table id="tbl1"&gt; &lt;tbody &gt; &lt;tr class="hide_grid_header"&gt;&lt;/tr&gt; &lt;tr style="display: none;"&gt;&lt;/tr&gt; &lt;tr style="display: none;"&gt;&lt;/tr&gt; &lt;tr &gt;&lt;/tr&gt; &lt;tr style=""&gt;&lt;/tr&gt; ...
javascript jquery
[3, 5]
3,017,214
3,017,215
Php: Detect if user included the javascript-snippet or not, on their website
<p>I got a simple javascript-file, wich my users need to include on their website for example. I want to detech if the snippet is include or not. The way I'm going to detect it, is by using a unique key in the js-file, for anyone who needs to know.</p> <p>Been searching a lot for this, but haven't come up with any res...
php javascript
[2, 3]
958,986
958,987
Different ways of saying document ready in jQuery?
<p>Are these both the same thing, i.e. ways of saying document ready:</p> <pre><code>$(function() { // }); </code></pre> <p>and </p> <pre><code>$(function($) { // })(jQuery); </code></pre> <p>or is there a difference between the two, if so then when should I use which?</p>
javascript jquery
[3, 5]
5,408,701
5,408,702
How can I validate a sentence using PHP and JavaScript?
<p>I am currently trying to validate if the sentence a user enters matches the expected sentence. The expected sentence is stored in a PHP variable <code>$rebuiltSentence</code>, for example 'the cat sat'.</p> <p>The problem is that when I try to call my JavaScript function <code>formSubmit()</code> I need to give it ...
php javascript
[2, 3]
4,754,353
4,754,354
Counting table row tags in text
<p>I'm trying to count how many starting table row tags <code>&lt;tr&gt;</code> that would be in the following text. Keep in mind that I said text, not html. I get this data back in a textarea (don't ask) and I need to count how many starting tr tags are in this textarea. How would I do that? Whats the appropriate meth...
javascript jquery
[3, 5]
3,385,641
3,385,642
How do I get my page to remember user's last action?
<p>We have a search form which allows users to search for items on the page.</p> <p>There is also another form with checkboxes that allows users to refine their searches with the hope of reducing the number of search results.</p> <p>For instance, if I enter McCland on the search box and 13 results marching McCland ar...
javascript jquery
[3, 5]
2,634,394
2,634,395
android If else statements
<p>So my issue is, I get a wierd sound problem (it repeats the hit sound really fast) when I use an if statement to determine if I hit the monster and lived or if I hit the monster and died. Using classic mario logic, if I land on top I live, if not then I die. I didn't have a problem until I added two different if sta...
java android
[1, 4]
408,274
408,275
Webform_SaveScrollPositionSubmit is not defined
<p>Cut a short story even shorter, Have a asp.net page with MaintainScrollPositionOnPostback="true" in the page directive (And I tried setting the same to true in page_load), but I get the above javascript error (Webform_SaveScrollPositionSubmit is not defined) and im guessing the page dosent scroll because that js fu...
asp.net javascript
[9, 3]
2,078,856
2,078,857
Php Validation for TextArea Number of Lines Limitation
<p>I have this wonderful piece of code from <a href="http://stackoverflow.com/questions/556767/limiting-number-of-lines-in-textarea?rq=1">here</a></p> <p>But if some one edits the form through firebug or disable the js then this wont work, I want to have server side validation for this function, can anyone direct me t...
php jquery
[2, 5]
398,628
398,629
Beautiful Soup [Python] and the extracting of text in a table
<p>i am new to Python and to Beatiful Soup also! I heard about BS. It is told to be a great tool to parse and extract content. So here i am...: </p> <p>I want to take the content of the first td of a table in a html document. For example, i have this table</p> <pre><code>&lt;table class="bp_ergebnis_tab_info"&gt; ...
php python
[2, 7]
4,978,240
4,978,241
calculating the number of first level UL LI in a page using jquery
<p>I have some jquery which will calculate the items in my menu and assign the li with a calculated width in px. </p> <p>here is the code:</p> <pre><code>$(document).ready(function(){ $('div#new-menu-lower ul li').css('width', ($('div#new-menu-lower ul').width() / $('div#new-menu-lower ul li').length)); $(fun...
javascript jquery
[3, 5]
1,762,861
1,762,862
Error in sending fax
<p>I use the following code for sending a FAX:</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { FaxDocument(@"E:\ss.doc", "04428257363"); } } public int FaxDocument(String TheFile, string faxnumber) { int JobID = 0; FAXCOMEXLib.FaxServer faxsrv = new FAXCOMEXLib.FaxServerClass()...
c# asp.net
[0, 9]
464,064
464,065
How to use PagerAdapter
<p>im trying to use PagerAdapter in my android application but im having difficulty with knowing where to place my code correctly. Its loading the views (xml files) correctly but not sure what code is meant to go were and anywere i have tried just makes the application crash (I know the code works fine because i have i...
java android
[1, 4]
997,807
997,808
How to see if an element in offscreen
<p>I have a list of divs, and everytime I want to go to the next div I press a key. I need to check if that div is offscreen, and if so, I need to move the screen to show that div either using anchors or another method.</p> <p>What is my best option for doing this?</p> <p>Just to clairify, offscreen in my case means ...
javascript jquery
[3, 5]
1,326,464
1,326,465
Convert data- string into an object?
<p>Thinking along the lines of using language resources (especially in SharePoint), I want to bind the text of my HTML tags to a value in one of my resource JavaScript objects (SharePoint has a handler that will do this). I would like to do something like this:</p> <p>HTML: </p> <p><code>&lt;div id="helloMessage" dat...
javascript jquery
[3, 5]
3,095,357
3,095,358
The type or namespace name 'function' could not be found?
<p>I am writing a function proc in my C# 2008 ASP.Net application and I get the following error:</p> <blockquote> <p>The type or namespace name 'function' could not be found (are you missing a using directive or an assembly reference) ?</p> </blockquote> <p>Any idea what this means?</p>
c# asp.net
[0, 9]
4,731,167
4,731,168
Highlight Arrival Date to Departure Date Asp Calendar
<p>How can i highlight Dates from StartDate to EndDate using asp Calendar C#</p> <p>when i first Click a Date to Calendar it will be the first Date and when i Click another Date i will be the last Date and highlights the Date</p> <p>from StartDate to EndDate</p> <p>this is the example <a href="http://reservations.di...
c# asp.net
[0, 9]
3,961,957
3,961,958
How jQuery do "fade" in IE8 and below?
<p>I just wanted to know how jQuery can generate a fade effect in IE browsers when they don't support <code>opacity</code>? Animating <code>opacity</code> is the way they do the fade in other browsers like Firefox and Chrome. I went into the code but honestly I couldn't find anything understandable to me!</p>
javascript jquery
[3, 5]
4,309,603
4,309,604
javascript sliding div left/right
<p>Hy guys! I want to make a slide toggle effect of a div. Below is the code in my html file. My div is 500px wide by 50px height. I want to make it slide left/right over the screen when pressed on the first image inside the div. This is a toolbox that contains a couple of icons inside. The first image at the left - le...
javascript jquery
[3, 5]
2,178,712
2,178,713
NoSuchMethodError: String.isEmpty
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4396844/scala-on-android-java-lang-nosuchmethoderror-java-lang-string-isempty">Scala on Android: java.lang.NoSuchMethodError: java.lang.String.isEmpty</a> </p> </blockquote> <p>I've just released a new app on An...
java android
[1, 4]
872,391
872,392
Android and calling JavaScript. Partial execution :)
<p>There is a problem that may be you can help me with.</p> <p><strong>What I used to have:</strong></p> <p>1) A web page with &lt; div >, javascript array with content, 2 images representing forth and back buttons. When user presses on a button a simple function is executed: increment/decrement a counter, find div b...
javascript android
[3, 4]
4,178,095
4,178,096
Disable the asp button after first click because it save multiple records in slow connection
<pre><code>&lt;asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" Text="Update" CssClass ="btn" ToolTip="Update" Width="58px" /&gt; </code></pre> <p>`This is my code for button, want to use javascript..help plz</p>
c# javascript
[0, 3]
3,642,164
3,642,165
How to decrypt a .net encypted string in php
<p>I am Encrypting a string in c# and sending this to a php page like this.</p> <pre><code>sfplr.Attributes.Add("href", "http://sml.com.pk/a/sfpl/reports.php?id=" + Convert.ToBase64String(Encoding.Unicode.GetBytes(emailid))); </code></pre> <p>and the url genrated from this code is like this</p> <pre><code>http://sml...
c# php asp.net
[0, 2, 9]
5,515,885
5,515,886
Embed js file in another
<p>How to embed the following inside a js file</p> <pre><code> &lt;script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"&gt;&lt;/script&gt; </code></pre>
javascript jquery
[3, 5]
205,334
205,335
Image content of HashMap won't appear
<p>So i come up with this code </p> <pre><code>Map&lt;Integer, Integer&gt; images = new HashMap&lt;Integer, Integer&gt;(); images.put(1,R.drawable.a); images.put(2,R.drawable.b); images.put(3,R.drawable.c); String[] abcd = {"a","b","c"}; Integer count = 3; for(int inte = 0; i...
java android
[1, 4]
5,373,271
5,373,272
Yet Another "Object doesn't support this property or method" - jQuery
<p>I just switched my App to run on MVC3 and the Razor view engine, and now I'm getting a JavaScript error. The thing is, nothing has changed on the JavaScript side of things... it worked before.</p> <p>Here's the code</p> <pre><code>&lt;script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery...
javascript jquery
[3, 5]
4,764,430
4,764,431
how to convert text file to xml
<p>I want to convert the <code>text file</code> into <code>xml file</code>.I have a large amount of string but i dont want to write in xml directly.</p> <p>So that I have made a text file now i want to convert this </p> <p>text file into xml format but when i am running this file getting no output. here is my </p> <...
java android
[1, 4]
5,282,759
5,282,760
Error in doing drag and drop
<p>My code is`</p> <pre><code>&lt;script&gt; $(function(){ var xco,yco,sen,ple,pto; document.onmouseup=function(){document.onmousemove=null;}; $(".pcre").mousedown(function(e){sen=$(this); ple=sen.offset().left; pto=sen.offset().top; xco=e.clientX; yco=e.clientY; $(document).mousemove(function(e){fle=ple+e...
javascript jquery
[3, 5]
689,429
689,430
is it a good idea to put all javascript file's content into one file to reduce server request and keep at bottom to increase performance?
<p>I use simple javascripts, jquery library and many plugins , should i make one file for all if yes then what we need to "just copy and paste and code from all file into one in needed order" or any thing else need to be considerd.</p> <p>as stated here <a href="http://developer.yahoo.com/performance/rules.html#num_ht...
asp.net javascript jquery
[9, 3, 5]
3,860,255
3,860,256
javascript/jquery checkbox comparison using "and"
<p>I have a two checkboxes as follows:</p> <pre><code>&lt;input type="checkbox" name="options_v[]" id="you_pick_v" value="you_pick" /&gt; &lt;input type="checkbox" name="options_v[]" id="owner_picks_v" value="owner_picks" /&gt; </code></pre> <p>I want my javascript function to make another element grey if the boxes a...
javascript jquery
[3, 5]
5,290,341
5,290,342
event not working in firefox
<p>I have the following function which works fine in chrome:</p> <pre><code>function updateUserID(element) { var username = $("#viewColTasks").val(); var currentEvent = window.event; if (currentEvent.keyCode === 13){ if (username == ''){ $("#viewColTasks").attr("placeholder", "Please enter a valid usernam...
javascript jquery
[3, 5]
5,755,880
5,755,881
my hover function in jquery it's not working
<p>i am trying to append p tag with some text and i trying to show alert message when hover that p tag content but here it's not working here is my code:<a href="http://jsfiddle.net/sureshpattu/37TUN/" rel="nofollow">code</a></p>
javascript jquery
[3, 5]
2,466,051
2,466,052
Android:Change the z-order of the view
<p>I have many views in my xml, and now I wanna <strong><em>change one view's z order</em></strong> in code in order to bring it to other views' front but <strong>not all</strong> the other views' front.</p> <p>Is there any way to achieve this?</p> <p>Thanks in advance!</p>
java android
[1, 4]
4,983,601
4,983,602
Passing custom objects between activities?
<p>How do I pass custom objects between activites in android? I'm aware of bundles but I can't seem to see any functionality for this in them. Could anyone show me a nice example of this?</p>
java android
[1, 4]
914,654
914,655
What Javascript / jQuery pattern is this to enclosing and hiding everything but still can alter the page?
<p>Did somebody come up with this pattern so it is a famous and well-known pattern? I see this pattern for using Javascript / jQuery, such as in <code>init.js</code>:</p> <pre><code>var Initializations = {}; Initializations = (function($) { function doSomething(i, domElement) { // ... } $(function() { ...
javascript jquery
[3, 5]
4,869,215
4,869,216
Split Panel using javascript
<p>I'm trying to code a split panel, Left and right. Each will have a button which you can click on and it will toggle that panel, while expanding the other. </p> <p>I am clueless as to where to start off? Is there an example that already does this?</p> <p>Can someone help me out. </p> <p>Thanks</p>
php javascript jquery
[2, 3, 5]
4,749,432
4,749,433
Javascript calling so fast
<p>I have an annoying little issue here. I have code which loads content from page2 and appends it to <code>#content</code>. That works, but sometimes it happens twice, then appends page3 before page2. Thats because in page3, there is just one post, but in page2, 4 posts.</p> <p>How can I make my code wait until the...
javascript jquery
[3, 5]
420,194
420,195
string to double
<p>i try to read text from screen and change it to double and it crash</p> <pre><code>public void equesionOperation(int signNum1) { S_numInTV=TV_calcScreen.getText().toString(); S_numUp=TV_calcUp.getText().toString(); D_numIn=Double.parseDouble(S_numInTV); D_numToCalc=Double.parseDoub...
java android
[1, 4]
3,698,112
3,698,113
Split this array in jQuery
<p>I have an array of cities and ID's looking like: </p> <pre><code>Brønderslev|810,Frederikshavn|813,Hjørring|860,Jammerbugt|849,Læsø|825,Mariagerfjord|846,Morsø|773,Rebild|840,Thisted|787,Vesthimmerland|820,Aalborg|851 </code></pre> <p>I <strong>do not</strong> want this:</p> <pre><code>&lt;option value="810"&gt;F...
javascript jquery
[3, 5]
2,224,619
2,224,620
Server variable in javascript
<p>Is there any way to access server side asp.net variable in javascript? I want to do something like</p> <pre><code>function setBookmark(val) { document.getElementById('&lt;%# hBookmark.ClientID %&gt;').value=val; } </code></pre> <p>Is it possible in anyway?</p> <p><strong>*Note*</strong>: hBookmark is a server...
asp.net javascript
[9, 3]
2,488,198
2,488,199
jQuery check detection, hiding previous (jsFiddle enclosed)
<p>I am trying to remove text fields with checkboxes as shown in the jsFiddle. However, as you can see, one of the boxes is checked but its corresponding text field exists. Can someone help me edit this to get this to hide the corresponding text fields for already checked items on load?</p> <p>Thanks!</p> <p><a href=...
javascript jquery
[3, 5]
985,717
985,718
How to create this Popup form in ASP.Net using JavaScript?
<p>I'm working with a web site in <code>ASP.NET</code> for the practice and I want to make the popup form like <a href="http://beemp3.com/" rel="nofollow">beemp3</a>. When we click on <code>Playlist Login</code> or <code>Playlist SignUp</code> a popup form comes on with transparent background but we can't access the co...
javascript asp.net
[3, 9]
5,148,753
5,148,754
Using Alert in Response.Write Function in ASP.NET
<p>I have database code like this </p> <pre><code>try { string strConnectionString = ConfigurationManager.ConnectionStrings["SqlServerCstr"].ConnectionString; SqlConnection myConnection = new SqlConnection(strConnectionString); myConnection.Open(); string hesap = Label1.Text; string musteriadi = ...
c# javascript asp.net
[0, 3, 9]
5,615,405
5,615,406
My condition doesn't read selected variable
<p>So I'm working on a search page where I have a block that displays the next 10 items in a list. What I want to do is to hide this block when I reached the end of my list.</p> <pre><code>function loadMore() { //Load the content var urlPortion = searchQuery.split("?"); var urlString = "?hits=10&amp;offset...
javascript jquery
[3, 5]
4,366,650
4,366,651
Missing assembly reference error in web application in VS2008
<p>I have a page called ProfileInfo.aspx and the codebind looks like this - </p> <pre><code> using System; using System.Web; namespace myservice { public partial class ProfileInfo : System.Web.UI.Page { protected void P...
c# asp.net
[0, 9]
4,238,877
4,238,878
2 IntentServices accessing the same data on file system.. safe?
<p>I'm relatively sure with this, but I need your opinion. I have two IntentServices on Android, both have access to the application's private file system.</p> <p>The filesystem works like a queue - the first IntentService only performs write operations, that means it does nothing other than creating new files. The se...
java android
[1, 4]
3,587,163
3,587,164
Webview doesn't download files
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/10069050/download-file-inside-webview">Download File inside WebView</a> </p> </blockquote> <p>I'm trying to navigate to a download url with the webview, and it doesn't download the file... I tried other links, a...
java android
[1, 4]
817,928
817,929
Uncaught TypeError when trying to alter image states
<p>I am trying to write a piece of code that when a button is clicked, it checks through a list of images, checks if it has an id of 'video' and if it does then display an overlay and remove the player that is there.</p> <p>I keep getting this error:</p> <pre><code>Uncaught TypeError: Cannot call method 'indexOf' of ...
javascript jquery
[3, 5]
634,725
634,726
Store Dropdown list old values and re populate them
<p>Please tell me how can i store the old value of the drop down list.</p>
javascript jquery
[3, 5]
1,024,415
1,024,416
How to change the color of few nodes of treeview in asp.net?
<p>I need to programmatically change the color of nodes in treeview. Is there any solution with asp.net or jquery? PS: I am binding the treeview nodes on demand.</p> <pre><code> private void BindTreeViewControl() { try { DataTable dt = new DataTable(); ...
jquery asp.net
[5, 9]
5,438,726
5,438,727
Cycle to get the source of a list of images
<p>I have a list with 8 thumbnails images. When I click in one of them the bigger image gets the source of the that thumbnail. I can do this one by one. </p> <pre><code>$('#img_1').click(function(){ var temp = $('#img_1').attr('src'); $('#bigger_image').attr('src', temp); }); </code></pre> <p>I tried to use a...
javascript jquery
[3, 5]
3,014,930
3,014,931
Remove null value in javascript for $.ajax POST
<p>I have</p> <pre><code>var pageData = { query: null, pageNumber: 0, pageSize: 30}; </code></pre> <p>When I make an ajax get:</p> <pre><code>$.ajax({ type: 'GET', url: '/Ajax/GetSuggestions', data: pageData, success: function (response) {} </code></pre> <p>The request show in firebug: <code>http://...
javascript jquery
[3, 5]
1,115,442
1,115,443
Unexpected token while using jquery on event
<p>I'm trying to bind on to a click event for a class but continue to get this error:</p> <pre><code>Uncaught SyntaxError: Unexpected token ; </code></pre> <p>My jquery and HTML</p> <pre><code>function loadData() { isLoading = true; $('#loaderCircle').show(); $.post(apiURL, { f: 'gridview', start: pgStart, ...
javascript jquery
[3, 5]
2,500,032
2,500,033
Using BufferedWriter and DataOutputStream in java together
<p>How can I simply write big-endian typed data into an OutputStream and still use buffering? (I'm developing for android if it makes any difference)</p> <p>I tried</p> <pre><code>out = new BufferedWriter(new DataOutputStream(new OutputStreamWriter(sock.getOutputStream()))); </code></pre> <p>but it looks like I'm in...
java android
[1, 4]
5,218,108
5,218,109
get the closest value from a list jquery
<p>i need to get the closest class html from my list, but its always returning null if i put directly the <code>closest</code>. i try some other thinks, but its not working.</p> <p>the <strong>html:</strong></p> <pre><code>&lt;ul id="ulId"&gt; &lt;li class='effectLeg'&gt; Stuffs &lt;/li&gt; &lt;li class='te...
javascript jquery
[3, 5]
4,202,329
4,202,330
SOAP - namespace, what is this used for?
<p>What is the namespace used for in a SOAP web service?</p>
c# asp.net
[0, 9]
420,802
420,803
Detecting when the @ key is pressed
<p>I am trying to detect when a user pressed the @ key in a text box. I can use JQuery to handle the keyup event like so...</p> <pre><code>$('#target').keyup(function(event) { }); </code></pre> <p>But what do I do from here to test for the @ character? I know I can use <code>event.which</code> to get a key code. But...
javascript jquery
[3, 5]
598,988
598,989
javascript form validation - positioning
<p>I have little snippet for validatin' my form. I need help to position the error messages, because now all message appear in the filed, so the user can't see it, and so its very annoying.</p> <pre><code>$(document).ready(function() { jQuery.validator.addMethod("lettersonly", function(value, element) { return...
php javascript jquery
[2, 3, 5]
2,683,940
2,683,941
Upload file using python simply using HTTPLIB
<pre><code>conn = httplib.HTTPConnection("www.encodable.com/uploaddemo/") conn.request("POST",path, chunk,headers) </code></pre> <p>Above is the site "www.encodable.com/uploaddemo/" where I want to upload an image. Now problem which I am facing is I am tyro in php so I am unbale to understand the meaning of path a...
php python
[2, 7]
4,822,963
4,822,964
Use a custom URL with ShareThis social share plugin
<p>i would like to know how to use a custom URL with ShareThis social share plugin. for a example i have a post summery on my index.php page taht is linking to my-post.php so what i want to do is to make users share my-post.php from my index page. </p> <p>here is the code from sharethis.com</p> <p>Buttons:</p> <pre>...
php javascript
[2, 3]
5,066,274
5,066,275
changing the values of height attribute of table cells using jquery or javascript
<p>I have two tables say table 1 and table 2.(both having equal number of rows) For each of the rows in table 1, I wish to set the height of the corresponding cells in table 2 equal to the corresponding cell in table 1. i.e table2-row1-col1 = table1-row1-col1 and similar.</p> <p>Please help me .</p>
javascript jquery
[3, 5]
1,347,975
1,347,976
Javascript variables within attributes
<p>With php it's easy to do something like this</p> <pre><code>&lt;? $x = "Joe"; echo "My name is $x"; ?&gt; </code></pre> <p>But I'm having trouble doing something similar with javascript</p> <pre><code>var div = document.createElement("DIV"); x="SomeValue"; div.setAttribute("id", (x)); div.setAttribut...
php javascript
[2, 3]
3,983,674
3,983,675
manipulating the screen from subclass
<p>So I have created an android app and things are working alright.</p> <p>In my main class I do a </p> <pre><code>new Game(); </code></pre> <p>Now from the constructor of the game object I try and manipulate the screen, but it does not seem to do anything. Is it even possible?</p> <pre><code>public class Game exte...
java android
[1, 4]
5,096,823
5,096,824
How to get milliseconds from a date picker?
<p>In my project I am saving milliseconds in a sqllite databse, by default I am saving</p> <pre><code>System.currentTimeMillis() </code></pre> <p>in the database, but there is an option for the user to select previous date from a date picker? But what sould I save then when user selects a previous or up comming days ...
java android
[1, 4]
4,996,962
4,996,963
Jquery $.getJSON no results done
<p>Here is my funciton: </p> <pre><code>function getEmployeeList() { alert("hello world3!"); $.getJSON(serviceURL + 'getemployees.php', function(data) { alert("hello world4!"); $('#employeeList li').remove(); employees = data.items; $.each(employees, function(index, employee) { $('#employeeList').a...
php jquery
[2, 5]
2,231,172
2,231,173
How to get a name of the clicked <a> tag
<p>This is my HTML code :</p> <pre><code>&lt;div class="span4"&gt; &lt;div class="hero-unit" style="padding:10px 10px 10px 10px"&gt; &lt;div class="accordion" id="accordion2"&gt; &lt;div class="accordion-group"&gt; &lt;div class="accordion-heading"&gt; &lt;a class="accordion-tog...
javascript jquery
[3, 5]
3,824,368
3,824,369
If parent element does not contain certain child element; jQuery
<pre><code>&lt;div class="test"&gt; &lt;div class="example"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="test"&gt; &lt;/div&gt; </code></pre> <p>How can I apply jQuery to an element with the class <code>test</code> only if it doesn't contain a child element with the class <code>example</code>?</p>
javascript jquery
[3, 5]
3,965,062
3,965,063
jquery populate select box with key:value pair?
<p>I am using jquery to the server code returns the following values</p> <pre><code>0:SELECT ONE;1:VALUE1;2:VALUE2 etc </code></pre> <p>how do i populate this into a select box?</p> <pre><code>var="0:SELECT ONE;1:VALUE1;2:VALUE2"; $("#targetSelectBox"). ??????? </code></pre>
javascript jquery
[3, 5]
426,845
426,846
rewrite css after div in jquery
<p>i have this:</p> <pre><code>&lt;dl id='1'&gt;&lt;/dl&gt; &lt;p&gt;text from database&lt;/p&gt; </code></pre> <p>i would like this after the div id 1:</p> <pre><code>&lt;dl id='1'&gt;&lt;/dl&gt; &lt;p style='float:left';&gt;text from database&lt;/p&gt; </code></pre> <p>is that possible to rewrite the css in javas...
javascript jquery
[3, 5]
2,742,499
2,742,500
Javascript object within object
<p>I'm having a few issues with creating an object within an object, it's syntax related but can't seem to remember how I can achieve this. </p> <pre><code>ajaxRequest = { that: null, request: null, multiRun: null, multiRunTimer: null, defaults={ ext: '', url: '', type: "POST", dataType: "json", ...
javascript jquery
[3, 5]
3,105,191
3,105,192
regarding sending mail to user
<pre><code>MailMessage message = new MailMessage(); message.From = new MailAddress("admin@mysite.com"); </code></pre> <p>Now for fetching email entered by the user in the textbox, I wrote:-</p> <pre><code> message.To.Add(Convert.ToString(txtEmail)); </code></pre> <p>but this is not working..isn't this the correct wa...
c# asp.net
[0, 9]
3,009,911
3,009,912
How to check browser support for capabilities / events?
<p>In the past we used browser sniffing to infer if certain events or capabilities were available. I understand that browser sniffing has been 'deprecated' or 'shunned' in favor of feature sniffing. I would like to know how I can check if a certain event can be handled.</p> <p>Take <code>DOMNodeInserted</code> for exa...
javascript jquery
[3, 5]
232,167
232,168
android deleting a file from internal storage
<p>I have created a file stored on internal storage from an activity. How can I delete this file from another activity? </p> <p>I'm thinking I'll have to get the file's directory (which I'm not sure how to) and delete it. I tried using </p> <pre><code>context.deleteFile(); </code></pre> <p>but it won't work because...
java android
[1, 4]
2,537,303
2,537,304
Difference in methods for testing undefined in javascript
<p>I've never understood the difference in these two ways for testing the existence of an object...</p> <pre><code>typeof obj == "undefined" </code></pre> <p>vs.</p> <pre><code>obj == undefined </code></pre> <p>Is one preferred? I'm almost always using jQuery, is the second a jQuery only feature?</p>
javascript jquery
[3, 5]
965,238
965,239
Image editing in Android
<p>In my application image editor I want to implement image brightness, contrast, sharpness, zooming, rotating, and save the image to my gallery. </p>
java android
[1, 4]
1,784,521
1,784,522
ASP.NET- Prompt confirmation only if needed
<p>I have a button. And I have a Session["actionMode"]. Here what I do in my buttonClick event:</p> <pre><code>protected void Button1_Click(object sender, EventArgs e) { if ((int)Session["actionMode"]==1) { //Do something } else if ((int)Session["actionMode"]==3) { //After confirmatio...
javascript asp.net
[3, 9]
2,062,256
2,062,257
Textarea - new lines to br tags and then special characters
<p>I have a text area with the following id: <code>#openingHours</code></p> <p>The text area contains information, for example:</p> <pre><code>&lt;textarea id="openingHours"&gt; Mon-Fri 8am - 6pm Sat-Sun 9am - 3pm &lt;/textarea&gt; </code></pre> <p>I want to get the value of the textarea and replace new line...
javascript jquery
[3, 5]
3,900,211
3,900,212
android resize layout when keyboard appears
<p>I would like to reposition layout when keyboard appears, for example when editing a text field, in order to get visibility on focused field. I tried windowSoftInputMode but I cannot get any difference. How to reach it? Thank you.</p> <pre><code>&lt;activity android:name="com.xxxx.projecte1.TabBar_Activ...
java android
[1, 4]
5,952,457
5,952,458
dynamically adding check box asp.net( csharp) and retain its value on postback
<p>I need to add dynamically checkboxlist to a section of web page. I also need to retain its value on post back. How this should be done?</p>
c# asp.net
[0, 9]
5,679,112
5,679,113
jQuery function bounces element - not very smooth
<p>I am using the following jQuery plugin on my website. ( <a href="http://jqueryfordesigners.com/demo/plugin-slide-demo.html" rel="nofollow">http://jqueryfordesigners.com/demo/plugin-slide-demo.html</a> ). Now if you closely examine the demo slider, you will see a slight bump/bounce at the bottom every time a header e...
javascript jquery
[3, 5]
2,434,228
2,434,229
parse json news feed array android
<p>I have an json feed from bbc in this format</p> <pre><code>{ "name": "ticker", "entries": [ { "headline": "text", "prompt": "LATEST", "isBreaking": "false", "mediaType": "Standard", "url": "" }, { "headline": "text", "prompt": "LATEST", "isBreaking": "...
java android
[1, 4]
2,380,162
2,380,163
Change part two class in div
<p>I want change part two of class name in each div into tag <code>&lt;span&gt;</code> from '.myclass_2' to 'yourclass', (in following html code). Here is my try with jQuery but they doesn't work true. How is fix it?</p> <p>Demo: <a href="http://jsfiddle.net/sTF3U/" rel="nofollow">http://jsfiddle.net/sTF3U/</a></p> <...
javascript jquery
[3, 5]
1,284,491
1,284,492
Error in JavaScript when inplementing input field shadow
<p>I want to implement shadow into input field. This is the JavaScript code that I use:</p> <pre><code>&lt;!-- input field shadow --&gt; var placeholder = "test field" $("input").on({ focus: function() { if (this.value == placeholder) { ...
javascript jquery
[3, 5]