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
3,496,588
3,496,589
jQuery create and remove <div> by click
<p>Hi I try to wirte a function, which enables the user to create a when he clicks on a certain area of the site, and when he clicks on that created div again, it gets deleted. Somehow I can only create divs and when I click them, a new one is created instead removing of the clicked one. I also implemented a function ...
javascript jquery
[3, 5]
452,224
452,225
Check the time stored in the DB, then make sure its 15 min later before running a update task
<p>I would like to stop people from constantly syncing/updating items in the DB as this could cause potential problems. I have a time the last sync/update occured which is stored in the DB. What I need to do is disable the user from initiating another update/sync until 15 minutes has passed since the last update/sync...
c# asp.net
[0, 9]
764,627
764,628
How to create simple div with transparent rest of site?
<p>How to create simple div with transparent rest of site (This div will be show after click in link or other div)</p> <p>Here exemple:</p> <p><img src="http://i.stack.imgur.com/JroNb.jpg" alt="enter image description here"></p>
javascript jquery
[3, 5]
2,003,285
2,003,286
"state information is invalid for this page" error
<p>I have an error comes up in aspx page:</p> <p>The state information is invalid for this page and might be corrupted.</p> <p>What would be the problem?</p>
c# asp.net
[0, 9]
1,814,974
1,814,975
Checking something isEmpty in Javascript?
<p>How can I check if a variable is empty in Javascript? Sorry for the stupid question, but I'm a newbie in Javascript!</p> <pre><code>if(response.photo) is empty { do something else { do something else } </code></pre> <p><code>response.photo</code> was from JSON, and it could be empty sometimes, empty data c...
javascript jquery
[3, 5]
1,789,320
1,789,321
how to make code execute after Response.end
<p>My code is like this</p> <pre><code>HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ContentType = "application/pdf"; HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment; filename=" + "name" + ".pdf"); HttpContext.Current.Response.TransmitFile("~/media/pdf/n...
c# asp.net
[0, 9]
3,672,437
3,672,438
How do get a parent node without having a starting reference point?
<p>I want to provide a method for my web app that allows a user to call my function anywhere within his code (inside script tags) that will display a fade-in/fade-out message. What I don't know how to do is determine where I am at in the DOM without having a starting reference point.</p> <p>Function:</p> <pre><code>f...
javascript jquery
[3, 5]
3,471,889
3,471,890
ProgressDialog working in thread on android
<p>I have a little problem, I hope U can help me;)</p> <p>Trouble is, that ProgressDialog show only after loading run(), but I need to show it on start and showing it while loading some data. I put: "dialog = ProgressDialog.show(CategoriesListActivity.this,"Working...","Loading data", true);" in method run(), but the ...
java android
[1, 4]
799,092
799,093
jQuery: fadeToggle() not change text of link Show / Hide
<p>I have a problem with fade toggle, It works when the div is visible to start with and link "Show QR" change to "Hide QR". Link "Hide QR" should be clicked and div hidden but link of text not change to "Show QR"</p> <p>html:</p> <pre><code>&lt;a class="emotTab" id="qrshow" href="javascript:void(0);"&gt;Show QR&lt;/...
javascript jquery
[3, 5]
3,472,305
3,472,306
Remove all the 'tr' if the any of the 'td' does not have given text
<p>I have a table with many rows . first row is the header.</p> <p>i want to delete all the rows if any of its td does not have given text.</p> <pre><code>&lt;tr&gt; &lt;td id="1" class="links"&gt;Madia&lt;/td&gt; &lt;td id="" class="edit_client" &gt;Press&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td id="2"...
javascript jquery
[3, 5]
4,031,068
4,031,069
is it possible to UnZip file in android by code?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1705844/what-is-the-best-way-to-extract-a-zip-file-using-java">What is the best way to extract a zip file using java</a> </p> </blockquote> <p>I have a zip file that I transfered to Android. Is it possible to un...
java android
[1, 4]
1,999,620
1,999,621
Compiling android .apk by java code
<p>I would like to create a java app that actually programaticlly compiles a differnt android project - Meaning i'd like to create .apk files by code. How would i go about this??? Is this feasible?</p> <p>Thanks</p>
java android
[1, 4]
5,682,672
5,682,673
Javascript RegExp Object
<p>I use this function below to quickly find an item in a table<br> My problem is that this function only searches for text that contains the search string in the given table<br> I have been trying my best to modify it to match only the text that begins with the search string but not working.</p> <pre><code>function s...
javascript jquery
[3, 5]
1,512,330
1,512,331
Javascript , loading progress bar before site loads
<p>I want to make a progress bar for a GUI site that I am making and I need a bit of code in javascript to detect if the site is loading and how many elements/images have loaded and has the site fully loaded. I have the progress bar made with css and I dont know how I can turn on/of elements in js.</p> <p>How can I ac...
javascript jquery
[3, 5]
2,440,869
2,440,870
Not Applicable for the Arguments
<p>I'm trying to show a progress message when a preference is selected:</p> <pre><code> Preference prefLocation = (Preference) findPreference("location"); prefLocation.setOnPreferenceClickListener(new OnPreferenceClickListener() { public boolean onPreferenceClick(Preference preference) { ...
java android
[1, 4]
3,069,606
3,069,607
loop not iterating through entire arraylist
<p>I'm having a problem where I am trying to iterate through an arraylist which stores restaurant objects but the loop only goes through 3 of the five elements.</p> <p>I created a test method to illustrate:</p> <pre><code>public void testLoop() { ArrayList&lt;Eatery&gt; test = new ArrayList&lt;Eatery&gt;(); ...
java android
[1, 4]
2,254,748
2,254,749
Java solution for C++ style compiler directive
<p>I have a Java array:</p> <pre><code> String[] myArray = {"1", "2"}; </code></pre> <p>Depending on a condition that is known at compile time I would like to assign different values:</p> <pre><code> String[] myArray = {"A", "B", "C"}; </code></pre> <p>In C++ I would use something like </p> <pre><code>#ifdef...
java c++
[1, 6]
945,869
945,870
Accessing value from the controls within a dynamically loaded web user control (asp.net c#)
<p>I have created a web user control (MemberDetails.ascx) which is loaded dynamically on a page (Member.aspx) for my website. The control has some TextBoxes. I want to store the values inputted by a user in these TextBoxes to a database on the click event of a button that is on the Member.aspx page (i.e. not a part of ...
c# asp.net
[0, 9]
4,376,571
4,376,572
Android program writes to emulator but not phone
<p>I am trying to write an Android program to accept input and then write the data to a file on the internal storage of my phone. When I execute my program on the emulator it makes a file just as I expect it to, but when I try and execute it on my phone the file doesn't seem to be created. I've looked around on this si...
java android
[1, 4]
1,275,487
1,275,488
js typing text to screen
<p>hey guys i have a problem with a function which runs just fine on my localhost by when i upload it to the server it doesn't work, could some one please point me to the solution:</p> <pre><code>var text = "some text"; var textArray = text.split(""); var looptimer; function letterloop(){ if (textArray.length &gt;...
javascript jquery
[3, 5]
5,211,802
5,211,803
RegularExpression validator so my textbox have to start with uppercase
<p>I'm using this expression: </p> <blockquote> <p>^[A-Z][a-zA-Z0-9]*$</p> </blockquote> <p>And it works fine if I type for example "Kristian". But when I want to continue that sentence like typing "Kristian is working with SharePoint", it doesn't work. Any better expression out there?</p>
c# asp.net
[0, 9]
4,368,613
4,368,614
SelectedIndexChanged event does not fire if Item is already selected in dropdown?
<p>Assume that I have a dropdown with 2 items and by default, the first item is selected. If I select the click the first item in the dropdown, is there a way I can get the selectedIndexChanged event to still fire?</p> <p>Can I do it by setting the SelectedIndex of the Dropdown to -1, for example?</p> <p>Well that d...
c# asp.net
[0, 9]
2,716,516
2,716,517
How to open a Bootstrap modal window using jquery?
<p>I'm using Twitter's Bootstrap modal window functionality. When someone clicks submit on my form, I want to show the model window on clicking the "submit button" in the form </p> <pre><code> &lt;form id="myform" class="form-wizard"&gt; &lt;h2 class="form-wizard-heading"&gt;BootStap Wizzard Form&lt;/h2&gt; &l...
javascript jquery
[3, 5]
2,370,307
2,370,308
JQuery missing : after property ID
<p>So I am working with some jquery code to do a simple hide of a p and a show of a p. I am simple adding a class called showp and showing it while making sure the others are not shown by hiding them first. But I keep getting an error missing : after property ID. Any help would be greatly appreciated.</p> <pre><code> ...
javascript jquery
[3, 5]
2,965,924
2,965,925
Accessing script block with jquery
<p>I have a script block, in the div element which is appended after html response. I want to access this block and call eval() function for this script. How can I access the script block.</p> <p>I tried <code>$("#divId script")</code> , but it doesn't work.</p> <pre><code>&lt;div id="divId"&gt; &lt;script type="...
javascript jquery
[3, 5]
123,980
123,981
Cannot load CSS and JS dynamically with this function
<p>I am trying to load Plugins based on the condition as in the below function. But i am unable to do it. Please have a look at the code and let me know the errors in the code..</p> <pre><code> function loadPlugin(choic) { var plugin=choic*1; if(plugin &gt;= 1 &amp;&amp; plugin &lt;= 3) { $("hea...
javascript jquery
[3, 5]
1,134,396
1,134,397
Accessing an element of parent page from iframe - IE7 Issue
<p>I'm opening an iframe(inside a pop up) from a page(say parent) and trying to hide the div element(whose id is iframeloading) of parent page from this iframe using the following code $(window.parent.document).find("#iframeloading").hide();</p> <p>This works in ff but not working in IE7..Pls help </p>
javascript jquery
[3, 5]
5,404,464
5,404,465
Using PHP to Match a Javascript Timestamp
<p>Alright when I do the code:</p> <pre><code>&lt;script type = "text/javascript" &gt; document.write((new Date).getTime()); &lt;/script&gt; </code></pre> <p>You get the Unix timestamp in miliseconds. I need something that will match this in PHP. I need a variable to be set to that, NOT necessarily printed. The varia...
php javascript
[2, 3]
3,699,453
3,699,454
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]
4,544,016
4,544,017
Render enumeration value using code blocks
<p>I want the value of jsonStr to be</p> <pre><code>"{submitOfferResult: 0}" </code></pre> <p>instead though it is </p> <pre><code>"{submitOfferResult: OFFER_ACCEPTED}" //javascript var jsonStr = "{submitOfferResult: &lt;%=SUBMIT_OFFER_RESULT.OFFER_ACCEPTED %&gt;}"; //c# public enum SUBMIT_OFFER_RESULT { OFFER...
c# javascript asp.net
[0, 3, 9]
1,840,620
1,840,621
jQuery is not defined and could not find why?
<p>My jQuery code is not working and in firebug console it says: "jQuery is not defined". I have checked jQuery is loading but I still not getting why its showing error. </p> <p>Site URL is given in comment below so I can remove it when issue resolved. Your help will be appreciated. </p> <p>My jQuery code looks like:...
javascript jquery
[3, 5]
873,618
873,619
Android Webview caching works in version 4.0.x but not in 2.3.3
<p>I am facing a very strange issue. My jquery webview works offline in browsers and in <code>android version 4.0.x</code>. However, it does no work offline in lower versions. </p> <p>Code for setting cache mode :</p> <pre><code>if(isConnected) { webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT); } els...
java android
[1, 4]
2,246,293
2,246,294
Reading 4-bit chunks from byte array
<p>I'm getting a <code>byte[]</code> from an external input, where each byte stores <strong>two</strong> 4-bit values. My task is to read the 4-bit value of index <strong>idx</strong> from this tightly packed array. I've never written such code, so I wonder if my below solution is correct, and if yes, then whether ther...
java android
[1, 4]
3,769,855
3,769,856
Different Output Color When Convert to Excel
<p>When I want to convert to Excel using C#, I have problem with the color. I use references :</p> <pre><code> using Microsoft.Office.Interop.Excel; </code></pre> <p>With the Code:</p> <pre><code> private Microsoft.Office.Interop.Excel.Range workSheet_range = null; workSheet_range.Interior.Color = GetColorValue(be....
c# asp.net
[0, 9]
3,057,899
3,057,900
ASP.NET CheckBoxList Client side validation
<p>Is it possible to add a custom validation function to jquery validate plugin for ASP.NET CheckBox list?I am using jquery plugin to validate all controls at client side.It works perfectly with normal inputs like textbox,dropdown list etc.For some reason it is not working with Checkboxlist.In pure html checkboxlist b...
jquery asp.net
[5, 9]
2,895,462
2,895,463
.bind is not working with dynamic html
<p>In below .bind event - I can not reproduce the result - when I am injecting a dynamic html. Tried with .on/.live but those are not working</p> <pre><code>function initToggleDetails() { abc.Log("initToggleaction"); $('.alink').unbind('click.link'); $('.alink').bind('click.link', function(event) { ...
javascript jquery
[3, 5]
4,858,734
4,858,735
jQuery Text Limiter not working
<p>I am using the textLimiter jQuery class (<a href="http://plugins.jquery.com/project/jQueryTextLimiterCounter" rel="nofollow">http://plugins.jquery.com/project/jQueryTextLimiterCounter</a>) and I can not get it to work. I am using the demo as a walk through and here is what I have so far.</p> <p>Master Page: </p> ...
jquery asp.net
[5, 9]
2,622,926
2,622,927
How to store class hierarchy so I can generate a tree most efficiently?
<pre><code>List&lt;myObject&gt; objects = new List&lt;myObject&gt; myObject { string a; string b; } </code></pre> <p><code>a</code> holds the name of the <code>objects[i]</code>, and <code>b</code> holds the name of the parent of <code>objects[i]</code>.</p> <p>How can I serialize this list to a file so I ca...
c# javascript
[0, 3]
3,001,415
3,001,416
Why isn't this function running?
<pre><code> $('.posts li img').each(function() { if( this.complete ) imageResize($(this), 64, 64); else $(this).load(imageResize($(this), 64, 64)); }); </code></pre> <p>I tried adding "alert('test')" to imageResize(), but it isn't working. Is there any reason why imageResize() isn't being called...
javascript jquery
[3, 5]
4,814,444
4,814,445
Java and C# Certification Questions with Answers
<p>I am new to Certification exams.. in terms of most likely questions for Java's Sun Certification and C# Certification.</p> <p>So is there any mock test or pdf's available for such exams with answers? So I can practise it efficiently...</p> <p>Thanks..</p>
c# java
[0, 1]
4,611,241
4,611,242
how to compare the date in xml row with today's date
<p>I have one xml file which is retrieved using jquery in sharepoint. One of the row of the xml is like below.</p> <pre><code>&lt;z:row ows_Title='Have dinner party with Host' ows_Due_x0020_Date='2012-05-10 00:00:00' ows_MetaInfo='1;#' ows__ModerationStatus='0' ows__Level='1' ows_ID='1' ows_UniqueId='1;#{2A8F277A-C95B...
javascript jquery
[3, 5]
2,824,047
2,824,048
C# List querying and grouping
<p>I have this list:</p> <pre><code>OrderId ProductId DateTime 1 1 10.01.2012 1 2 09.01.2012 2 1 11.01.2012 3 1 12.01.2012 3 2 13.01.2012 </code></pre> <p>I want to e...
c# asp.net
[0, 9]
3,853,220
3,853,221
How do I protect phone number from bots
<p>I want a phone number which display on public page will be protected. Example converts phone number characters to HTML entities and bots can't grab the number in plain text. Let me know the trick.</p>
php jquery
[2, 5]
249,330
249,331
How to access a file from aspx web page ie \\folder\\mydocument.doc
<p>I need to access a word document by applying the following to the explorer navigation bar</p> <p>\folder\subfolder\mydocument.doc</p> <p>I am not looking to read the content and load the aspx page, just access the file and let the person's PC use word to open it.</p> <p>Thanks for any help</p>
c# asp.net
[0, 9]
375,345
375,346
process a page on UnLoad?
<p>I need for a php file to process when the user click a link/go back/exits a page. Its part of a saving user info process. if i do a jquery unload how would I fire the php file to load and process.</p> <p>jQuery(window).bind("unload", function() { // what should i add? });</p>
javascript jquery
[3, 5]
2,388,121
2,388,122
Why is jQuery tools CDN link pointing to an ad?
<p>Why is the link <a href="http://cdn.jquerytools.org/1.2.5/all/jquery.tools.min.js" rel="nofollow">http://cdn.jquerytools.org/1.2.5/all/jquery.tools.min.js</a> pointing to an ad?</p>
javascript jquery
[3, 5]
4,934,737
4,934,738
Edit Nodes in TreeView Control
<p>how to edit nodes in asp treeview control , and I want to save the changes back to the xmldocument.I didnt find TreeviewId.LabelEdit property.</p>
c# asp.net
[0, 9]
2,108,885
2,108,886
Get text from span with a specific class
<p>I have the below HTML and JQuery code and i am needing some help to do the following, i have some radio buttons with freight types, when the user choose one of them i need to get its price, it is in the span with the class <code>price</code>. I've tried to use <a href="http://api.jquery.com/closest/" rel="nofollow">...
javascript jquery
[3, 5]
537,730
537,731
Is it possible to transfer data directly between two android devices to other users in the same network?
<p>Let's say I have two android mobile devices, connected to the same wireless network, and that network hasnt external/internet access.</p> <p>Without third party software, is it possible to transfer data through wifi without knowing the ip from each other and without creating an hotspot? Something like we do on Wind...
java android
[1, 4]
4,860,824
4,860,825
Using `find( )` and selecting the parent element as well
<p>I have been trying to create a highlight effect for a while now. This is extremely close to what I need however, the problem with this method is it leaves out the inner most parent element.</p> <p>What I need is the exact same functionality as what the below JQuery code produces, the only difference is, I would lik...
javascript jquery
[3, 5]
5,990,673
5,990,674
how to add cancel button inside spinner
<p>I want to add cancel button inside of spinner how to add cancel button in spinner without </p> <p>using alert dialog please give me an example..</p> <p>spinner = (Spinner) findViewById(R.id.spinner);</p> <pre><code> ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(getApplicationContext(),R.l...
java android
[1, 4]
1,981,341
1,981,342
ASP Chart with multiple X axis columns
<p>I have an SQL table with two columns, salesperson and status. The status can be one of three things, gold, silver and bronze.</p> <p>How do I go about creating a chart where the salesperson name appears once along the x-axis but has three columns above their name for a count of each status?</p> <p>Thanks, Jonno</p...
c# asp.net
[0, 9]
4,515,693
4,515,694
Integrating jQuery BBQ into my current code?
<p>I am trying to integrate the <a href="http://benalman.com/projects/jquery-bbq-plugin/" rel="nofollow">jquery BBQ plugin</a> into my current code, at the moment I have set up a simple AJAX request that returns the selected links relative page. Can anyone tell me how I can modify the BBQ script so it will work with my...
javascript jquery
[3, 5]
3,973,507
3,973,508
Export ASP.Net grid data to excel w.o. third party dll
<p>I want to export grid data from ASP.Net webpage to Excel without using any third party dll.</p> <p>can anybody tell me how to do it ?</p>
c# asp.net
[0, 9]
1,399,746
1,399,747
How to call a javascript function directly from an activity in Android?
<p>I wanted to know if there is any way that I can call a JavaScript function from native Android Activity. </p> <p>I came across: </p> <pre><code>webView.loadUrl("javascript:hello()"); </code></pre> <p>But it did not work for me. </p> <p>Also, how will Android know in which html page does this JavaScript functio...
javascript android
[3, 4]
956,057
956,058
Android app loading white screen on device
<p>I've debugged my app on my PC and it works fine. When I go into my phone and tablet instead of it loading the <code>WebView</code> like it should it simply loads a white screen, I guess failing to load the web site. I'm not sure where to begin debugging since my debug mode and virtual device works fine. Any sugge...
java android
[1, 4]
5,256,275
5,256,276
What does this expression of jquery mean $("div[id*='box']")?
<p>Does below expression mean it will give me all the div objects which have id containing the word box in it? </p> <pre><code>$("div[id*='box']") </code></pre>
javascript jquery
[3, 5]
3,714,958
3,714,959
File upload using jquery not working
<p>I'm trying to make a really simple file upload using jQuery, without having to download 3rd party plugin / scripts.</p> <p>Here is my code:</p> <p>HTML </p> <pre><code> &lt;form enctype="multipart/form-data" action="" method="POST" name="form"&gt; &lt;input type="hidden" name="MAX_FILE_SIZE" value="1000000"...
php jquery
[2, 5]
2,358,720
2,358,721
Java to C# code converter
<p>Are there any converters available that converts Java code to C#?</p> <p>I need to convert the below code into C#</p> <pre><code>String token = new String(""); URL url1 =new URL( "http", domain, Integer.valueOf(portnum), "/Workplace/setCredentials?op=getUserToken&amp;userId="+username+"&amp;password="+password +"...
c# java
[0, 1]
4,613,083
4,613,084
Shoud these two JQuery functions produce the same behavior?
<p>Assuming I have the following two JQuery functions -</p> <p>The first, which works:</p> <pre><code>$("#myLink_931").click(function () { $(".931").toggle(); }); </code></pre> <p>and the second, which doesn't work:</p> <pre><code>$("#myLink_931").click(function () { var class_name = $(this).attr("id").split('_...
javascript jquery
[3, 5]
2,022,662
2,022,663
jQuery Removing last two characters in a class
<p>This should be pretty simple. I'm trying to use the slice method to remove the last two characters in a dynamically created string in a shopping cart.</p> <p>So instead of having a product show as $28.00, I want the product to show up as $28. Since these values are coming from a database, I can't simply define the ...
javascript jquery
[3, 5]
1,088,626
1,088,627
Replace All innerhtml text with Javascript
<p>I've been trying for hours and I've looked a lot of samples on StackOverflow, but I can't fix my simple script.</p> <p>I grabbed DOM with jQuery</p> <pre><code>var color = $('#bscontainer').html(); </code></pre> <p>and now the content of color is:</p> <pre><code>&lt;img src="resources/P/Blue_BG_2Col.png" id="bg"...
javascript jquery
[3, 5]
308,257
308,258
how to change class of <a> tags in jquery
<p>I have a table structure, something similar to</p> <pre><code>&lt;table style="width: 100%;"&gt; &lt;tr&gt; &lt;td&gt; &lt;a href="#" class="xx"&gt;one&lt;/a&gt; &lt;/td&gt; &lt;td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;a href="#" class="xx"&gt;...
javascript jquery
[3, 5]
3,676,015
3,676,016
setTimeOut code not working with jQuery
<p>I have this code, but it execute only once...</p> <pre><code>$('.' + container).hover(function() { t = setTimeout( function(elem){ //this should be executed as long as I hover, //with interval declared in viewSpped variable $(elem).find('img').first().appendTo('.' + c...
javascript jquery
[3, 5]
3,202,013
3,202,014
How to flash(hide/clear/delete) the previously appended values on every new click?
<p>Whenever I click, the new value is appended but the previous value is also shown. How can I clear the previously appended values on every new click?</p> <p>Here goes the onclick used in php function</p> <pre><code>echo "&lt;a href='#' onclick=chat_com('$name'); &gt;$name &lt;/a&gt;&lt;br&gt;"; // suppose this di...
php jquery
[2, 5]
191,833
191,834
How to click a button on website?
<p>The HTML code is;</p> <pre><code>&lt;input id="submit_button" type="submit" value="Convert file" title="Upload video to convert to MP4 format"&gt; </code></pre> <p>How would I go about clicking this button by using the webBrowser control?</p> <p>I tried;</p> <pre><code>webBrowser1.Document.GetElementById("submit...
c# asp.net
[0, 9]
1,490,172
1,490,173
How to handle click event in jquery for a button?
<p>I have a grid view in which I have a button feild for deleting that particular row in the grid view, using the GridView_RowDeleting() event.</p> <p>So when that particular row gets renders it's such</p> <pre><code>&lt;input type="button" value="Delete" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolderBody...
c# jquery asp.net
[0, 5, 9]
1,199,876
1,199,877
stack overflow error
<p>i just got my first ever stack overflow when I ran this script:</p> <pre><code>var hlat = 0.00; var hlong = 0.00; var mapdiv = document.getElementById('map'); var map_url = base_url + 'ajax/getPropMap'; var id_url = base_url + 'hotels/gethotel_id'; var id=0; var map = null; // apply gmaps to product map div $(func...
php javascript
[2, 3]
2,030,101
2,030,102
Create Handler that manipulates head tag
<p>Is there any way to create a handler that changes the head tag content real time?</p>
c# asp.net
[0, 9]
156,108
156,109
how to get value of row in gridview and display in textbox
<p>How to get value of row in <code>Gridview</code> and display in <code>Textbox</code>?</p> <p>Don't work this code. And I don't want to use this code:</p> <pre><code>protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) { LinkButton lnkButton = sender as LinkButton; GridViewRow ...
c# asp.net
[0, 9]
1,716,387
1,716,388
re-fetch request in php and javascript
<p>here it goes;</p> <pre><code>echo "&lt;a href='#' class='thumb'&gt;&lt;img class='thumb-img' value = ".$row-&gt;aid." onclick='getVote(".$row-&gt;aid.", \"".$row-&gt;atitle."\")' src='images/roadies/th".$row-&gt;aid.".jpg' /&gt; &lt;/a&gt;"; </code></pre> <p>the above function sends the "$row->aid" value to a java...
php javascript
[2, 3]
4,036,954
4,036,955
fadein / fadeout div on checkbox select / unselect
<p>I am trying to bring up a menu when any of the checkbox is selected, as you can see in screenshot below, it shows the number of selections and the menu also disappears when none is select.</p> <p><img src="http://i38.tinypic.com/200tow0.jpg" alt="alt text" /></p> <p>I am able to bring up the menu with this code</p...
javascript jquery
[3, 5]
5,542,408
5,542,409
How to call instance method in predefined class from another class in android
<p>I have two classes, shown below:</p> <p>TestActivity.java</p> <pre><code>public class TextActivity extends Activity { public void onCreate(Bundle savedinsstate) { super.onCreate(savedinsstate); Intent intent=new Intent(this,MYMapActivity.class); startActivity(intent); MYMapActivity.ma.displayGoog...
java android
[1, 4]
3,130,263
3,130,264
how to pass a function as part of an object in javascript without invoking the function
<p>I am trying to use .ajaxSubmit(). I want to pass it the options object. I want to create this options object based on the user's behavior. So this is how I am doing it:</p> <pre><code>$('#my-form').ajaxSubmit(GetSearchAjaxFormOptions(param1, param2)); function GetSearchAjaxFormOptions(param1, param2) { return...
javascript jquery
[3, 5]
3,570,170
3,570,171
Unable to import com.google.android.maps.MapView (Eclipse)
<pre><code>import java.util.List; import android.app.Activity; import android.os.Bundle; import android.widget.LinearLayout; import android.view.ViewGroup; import android.widget.*; import com.google.android.maps.MapView; public class MapView extends MapActivity { LinearLayout linearLayout; MapView mapView;...
java android
[1, 4]
5,970,050
5,970,051
How to display Html page in our .aspx page?
<p>i wrote this code </p> <pre><code> public partial class monograph : System.Web.UI.Page { public string path = "file:///D:/CD IP/Html/Monographs/"; protected void Page_Load(object sender, EventArgs e) { } protected void LinkButton1_Click(object sender, EventArgs e) ...
c# asp.net
[0, 9]
4,074,741
4,074,742
How to handle AsyncTask failure
<p>Is there a specific way to handle failure in an AsyncTask? As far as I can tell the only way is with the return value of task. I'd like to be able to provide more details on the failure if possible, and null isn't very verbose.</p> <p>Ideally it would provide an onError handler, but I don't think it has one.</p> <...
java android
[1, 4]
5,284,282
5,284,283
Connect via Bluetooth
<p>I have been working on a bluetooth app for android.I can select a Bt-device from vaible-device-list. How can i connect with the selected device? Could you please help me? Thank you very much </p> <p>Here is my code:</p> <pre><code>public class ScanActivity extends ListActivity { private static final int RE...
java android
[1, 4]
1,673,711
1,673,712
Get unique id after the fact?
<p>I want to be able to change a button image on click which isn't the issue. Each button is unique to information that is pulled from the database and on click the button should change and send the appropriate info to the database. What I am unsure about is how I can change the specific button. Say there are five thin...
php javascript
[2, 3]
5,890,935
5,890,936
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]
3,713,449
3,713,450
Using jquery post request to same page
<p>I am trying to send the value "hi" to the php variable "text" via a post request made to the current page.</p> <p>jquery</p> <pre><code>$.post("", "hi"); </code></pre> <p>php</p> <pre><code>if (isset($_POST['POST'])) { $text = $_POST['POST']; } </code></pre>
php javascript jquery
[2, 3, 5]
278,579
278,580
Purpose of BAL in 3 tier architecture
<p>I am a newbie for 3 tier architecture as it consists of UI,BAL and DAL layers.So i am writing all the database code in DAL and i have declaring the variables in BAL and i have calling the methods into the UI,but is this is the correct way to code??What is my BAL is doing then?what is the main purpose of business lay...
c# asp.net
[0, 9]
837,657
837,658
how to do show hide for multiple classes
<p>i have did the code for one category so i need to do same thing for another categories using with same code... can suggest any shortest format for using multiple category containers.</p> <p>ex: my symbols is one category so i need to do the such a way for another category that is "my dollars'</p> <p>Jquery</p> <p...
javascript jquery
[3, 5]
1,237,474
1,237,475
What is unique identity of an Internet connected device IP / MAC?
<p>I am making a script that show popup only one time , then it will never show again on that device.. </p> <p>How is it possible to do this?</p> <p>I have already tried by using cookies, but these can be deleted by the user and so the effect is limited.</p> <p>Another question is what is wholly unique per device, I...
php javascript
[2, 3]
2,493,796
2,493,797
jquery each() index when passed self
<p>I am trying to access the element index during each iteration of this loop.</p> <pre><code>$('.slide').hide().repeat().each($).fadeIn($).wait(1000, function(){ //do stuff }).wait(noHover).fadeOut($); </code></pre> <p>I tried doing something like:</p> <pre><code>$('.slide').hide().repeat().each(i, $).fadeIn($)...
javascript jquery
[3, 5]
1,985,827
1,985,828
Why is my exception handling code not handling exceptions?
<p>I have some C# code that pulls down a remote website using the HttpWebRequest class. I'm handling errors with a try/catch, but some errors (like Webrequest and IOException) don't seem to be getting "caught" with the way I have it setup:</p> <pre><code>try { StartScrap("http://www.domain.com"); } catch (Excepti...
c# asp.net
[0, 9]
1,722,505
1,722,506
Is there an elegant way to overload a jQuery method inside of a plugin only?
<p>I am having a bit of a <em>dull</em> moment today, where I can't think of an elegant solution for this problem.</p> <p>I have inherited a plugin, and I need to modify it to allow passing a <em>enabled</em> or <em>disabled</em> state to it, to have it detach all of its events, show the <em>disabled</em> state, etc.<...
javascript jquery
[3, 5]
5,301,262
5,301,263
Click listener firing twice due to nested element
<p>I have the following listeners:</p> <pre><code>$('td').on('click', '.time_note', function (e) { // When the user clicks the note div alert('note click'); }); $('table').on('click', 'td', function(e) { alert('time click'); }); </code></pre> <p>I need two different actions depending on whether the note is c...
javascript jquery
[3, 5]
179,260
179,261
An application is working on one server but doesn't work on another?
<p>I have a new web application. I've setup the application and it's working on one server(xxx) but it's not working on another(yyy). I changed the web.config file(checked throughly and I've changed the connection string and appsettings). </p> <p>What could be the error?</p> <p>The login page is working but when I pr...
javascript asp.net
[3, 9]
3,402,629
3,402,630
How to add text to span control dynamically in c#
<p>net c#. I am using a place holder, and adding span dynamically to the place holder. How can i add text to span dynamically in c# asp.net?</p>
c# asp.net
[0, 9]
1,926,055
1,926,056
jQuery Design Pattern for Updating Selectors When the HTML Changes
<p>I'm looking for some advice on a making my jQuery selectors more configurable. For example, given the following HTML generated by PHP:</p> <pre><code>&lt;ul id="my-list"&gt; &lt;li&gt;first&lt;/li&gt; &lt;li&gt;second&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>And a bit of jQuery:</p> <pre><code>$(function()...
javascript jquery
[3, 5]
3,335,672
3,335,673
jQuery DateRangePicker and Tabs
<p>I am using <code>daterangepicker</code> plug-in inside jQuery <code>tabs</code>. Everything works fine in the first tab, but in the second tab when I click in the input field that has daterangepicker, it appears in the upper left corner.</p> <p>I am assuming that might be because the DOM was changed by the tabs plu...
javascript jquery
[3, 5]
3,954,809
3,954,810
How to display only one key if i hold the key down in the textarea
<p>Is There any possible way to display only one character when a key is pressed <strong>DOWN</strong> for a longer period of time what I mean is when I press lets say 's' <strong>DOWN</strong> for a longer period of time I want only 's' displayed and I don't want this to happen 'sssssssssssssssssssssssssssssssssssssss...
javascript jquery
[3, 5]
38,882
38,883
how to change master page label's text after a button click on child page
<p>I am using shopping cart icon showing number of products in cart. but when i add item to cart shopping is not updated.so i want to know if there is any method to change master page label's text after a button click on child page.</p>
c# asp.net
[0, 9]
5,995,619
5,995,620
Replace an image in code behind for Asp.net
<p>I have a page, which is called from 2 different functions. For each function, the page has to be display different image. I have 2 images. </p> <p>On the aspx page, code is like this. Please help me out how to display different image for different functions!! Thanks Guys!!</p>
c# javascript asp.net
[0, 3, 9]
4,487,689
4,487,690
PHP var in jquery call
<p>This is working, but there is probably a better way to pass the php var. does anyone have any options? thanks</p> <pre><code>&lt;?php $slide = "fade"; ?&gt; $(document).ready(function() { $("#showcase_right").awShowcase({transition : "&lt;?php echo $slide; ?&gt;"}); }); </code></pre>
php jquery
[2, 5]
541,835
541,836
Problem with jQuery-check after submitting a form
<p>I have a form, and before it submits I want to check some of the input against a database. The idea: 1) submit form, 2) check values, 3) show error or actually submit the form. Example:</p> <pre><code>$(form).submit(function() { $.post('check.php', { values }, function(res) { // result I need before su...
php jquery
[2, 5]
3,650,005
3,650,006
Logical operator OR problem: jQuery
<p>Or operator does not work. could you help how to get it right. </p> <pre><code>$('.iconWrapper span').click(function(e) { $('#div1').find('img').attr('src', function(index, src) { if( src =='../../photo/roz1.jpg' || '../../photo/roz2.jpg'){ alert ('ohra'); }else{ alert ('lil'); } }); <...
javascript jquery
[3, 5]
1,217,975
1,217,976
Code behind file not recognizing controls in *.ascx
<p>I have a QuestionControl.ascx and a QuestionControl.ascx.cs code behind file I copied to a new project. When I build the project any references in the code behind file to controls declared in the ascx gives me this error:</p> <blockquote> <p>'QuestionControl' does not contain a definition for 'rdbtnlstQuestion...
c# asp.net
[0, 9]
417,168
417,169
How to create layout when using spinner
<p>hello android developers i am using spinner control in my application.when i click the spinner i need to get new layout in the right side of the spinner.How to code that.please help me.</p>
java android
[1, 4]