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
1,230,862
1,230,863
How to sort a JSON object in javascript or jquery with the following format
<pre><code>"attributes": [ "BytesServed", "Duration", "UniqueIPAddresses", "StopEvents", ], "rows": [ [ "12118931578714", "160557966.305", "372", "193381", ], [ "248313315029", "4628315.959", "350", "27352", ], ] </code></...
javascript jquery
[3, 5]
5,214,276
5,214,277
Is it better to use .delegate() performance wise?
<p>One of the developers I work with began to write all his code this way:</p> <pre><code>$('.toggles').delegate('input', 'click', function() { // do something }); </code></pre> <p>vs:</p> <pre><code>$('.toggles').click(function() { // do something }); </code></pre> <p>Are there any performance benefits...
javascript jquery
[3, 5]
3,013,253
3,013,254
Why does this code use an .aspx file for JavaScript?
<p>I found some old code which I'm not sure I understand completely. The folowing is an .aspx page containing only JavaScript:</p> <pre><code>&lt;%@ Page Language="C#" EnableSessionState="True" CodePage="65001" uiculture="auto" %&gt; &lt;% Response.ContentType = "text/plain"; %&gt; var csBackgroundColor; function ...
javascript asp.net
[3, 9]
2,890,277
2,890,278
Jquery - Too Much recursion
<p>Getting this error with jquery &amp; jquery.form. Site has been live for awhile..upgraded to latest version of jquery &amp; jquery form and still having same issue. </p> <p>This is the error in firebug</p> <p>too much recursion [Break on this error] (function(){var l=this,g,y=l.jQuery,p=l....each(function(){o.dequ...
php jquery
[2, 5]
5,159,693
5,159,694
login using open id authentication
<p>I would like to know as in StackOverflow website user can login with open id authentication how it has been done.Can I get any sample example of doing this.</p>
c# asp.net
[0, 9]
2,132,525
2,132,526
how to get last typed or pasted substring in a text box using javascript
<p>i have a scenario i which i want to get the substing that was typed or pasted at the last position in the TextBox </p> <p>eg: when i type " hello how are you "</p> <p>-- it alerts for each words ie. </p> <p>alert 1: hello </p> <p>alert 2: how </p> <p>alert 3: are </p> <p>alert 4: you</p> <p>but if i paste "H...
javascript jquery
[3, 5]
1,486,835
1,486,836
How to get the numeric value progmatically from the sliderExtender?
<p><strong>what I tried:</strong></p> <p><strong>MarkUP:</strong></p> <pre><code> &lt;asp:TextBox ID="TextBox2" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:Label ID="Label1" runat="server" AssociatedControlID="TextBox2" Text="Label"&gt;&lt;/asp:Label&gt; &lt;asp:SliderExtender ID="SliderExtender1" Ta...
c# asp.net
[0, 9]
5,885,312
5,885,313
Jquery -> vanilla javascript?
<p>I am programmer who learning jQuery javascript but never really grasped vanilla javascript (i know I am a naughty programmer). My question is how would I go about replicating this functionality in vanilla JS?</p> <pre><code>$('select').change(function() { if($(this).val() == "Other (please specify)") { ...
javascript jquery
[3, 5]
4,888,370
4,888,371
Invoke anoymous event handler using reflection?
<p>I have implemented my own event registration for a client-server UI framework, much like in ASP.NET. I store an event's name (e.g. "<code>Click</code>") in a dictionary and as the value I remember </p> <p><code>oEventHandler.Method.DeclaringType.AssemblyQualifiedName.ToString() + "." + oEventHandler.Method.Name.</...
c# asp.net
[0, 9]
3,030,846
3,030,847
Inflating a view throws Resources$NotFoundException on physical device
<p>The exact error:</p> <pre><code>07-16 18:34:41.729: ERROR/AndroidRuntime(28347): android.content.res.Resources$NotFoundException: Resource ID #0x7f030001 07-16 18:34:41.729: ERROR/AndroidRuntime(28347): at android.content.res.Resources.getValue(Resources.java:892) 07-16 18:34:41.729: ERROR/AndroidRuntime(28...
java android
[1, 4]
645,324
645,325
C# Disable/Enable Button based on Emtpy/Populated Text Boxes
<p>I have a form with 5 text boxes and a button, and when the button is clicked it send the data to a SQL database. I would like the button to be disabled if any of the text boxes are null, how do I do this in C#? (I am in visual studio 2010 ASP.NET web app)</p>
c# asp.net
[0, 9]
3,084,025
3,084,026
How to access Database which was in APP_DATA
<p>I developed a sample for membership and roles using the tutorial available. Now what i need is if i run my example in the other machine i would like to login and access the pages with the user name and password that were created using Asp.Net Configuration in my machine can any one give me an idea to achieve this</p...
c# asp.net
[0, 9]
4,562,751
4,562,752
Add href to links dynamically
<p>I have a series of horizontal div boxes that I need to add the relevant href to link to the next one with anchorlinks. As they are produced dynamically I need to add the href with JavaScript.</p> <p>The desired effect will be:</p> <pre><code>&lt;div id="post1"&gt; &lt;a class="next-video" href="#post2"&gt;NextVide...
javascript jquery
[3, 5]
738,805
738,806
Put a tags round user highlighted text?
<p>I need to get the user selected area of a textarea and then insert <code>&lt;a&gt;</code> tags round it.</p> <p>I use this to get the user selected area:</p> <pre><code>var textComponent = document.getElementById('article'); var selectedText; if (document.selection != undefined) { textComponent.focus(); v...
javascript jquery
[3, 5]
5,295,334
5,295,335
Java "events" - nothing more than Interfaces. Why pretend it is Events when it is just a normal Interface and classes that implements that interface?
<p>I am mainly developing in .NET C# and I love the Events in C#.</p> <p>Im now doing som Android stuff and thus must deal with Java. When porting some code from C# to Java I ran into the problem of Events; Java does not have anything that corresponds to C# Events.</p> <p>So, when reading up on how Java handles "even...
c# java android
[0, 1, 4]
1,585,234
1,585,235
populate drop down list with month/year
<p>I have a date and I need to populate a drop-down with the months/years between that date and today. For instance, if that date is 10/14/2010 then the drop-down should contain October 2010, November 2010, December 2010, January 2011.</p> <p>The way I'm thinking of doing this is to pass that date to a function, loop ...
c# asp.net
[0, 9]
3,302,101
3,302,102
Trigger Click event using jQuery
<p>I want to trigger an ASP.NET button using jQuery <br>Target button placed in an Updatepanel <br>jQuery Code :</p> <pre><code> $(document).ready(function () { $('.ViewDetail').click(function (e) { var ID = $(this).parent().parent().attr('ExpID'); $("#hflIdentityID").val(ID); $("#btnLo...
jquery asp.net
[5, 9]
3,004,219
3,004,220
Redirecting to multiple pages and showing up a particular page in between
<p>I startup with a HTML page then on submit click I redirect a page to a different xyz.aspx page. On the load event of xyz.aspx I write a code:</p> <pre><code>StreamReader sr = File.OpenText(Server.MapPath("~/ResultXml/Result.xml")); Response.ClearHeaders(); Response.AddHeader("content-type", "text/xml"); Response.Wr...
c# asp.net
[0, 9]
5,135,122
5,135,123
Extract HTML from a WebView
<p>I want to extract only the Table (TagName: tbody) from the following Webpage: <a href="http://info.tam.ch/custom/stpl_klw.php" rel="nofollow">http://info.tam.ch/custom/stpl_klw.php</a></p> <p>But it doesn't work. Can somebody help me?</p> <p>(I used this Tutorial: <a href="http://lexandera.com/2009/01/extracting-h...
java javascript android
[1, 3, 4]
3,664,878
3,664,879
Fading slideshow Javascript
<p>There are tons of fading slideshows to copy and paste.. but I want to understand how it all works... So I have this working slideshow in JavaScript. How do I add a fade effect to it? Can it be done by adding the jquery fadeOut() method? Thanks in advance!</p> <pre><code>var counter = 0; function slideShow() { var...
javascript jquery
[3, 5]
2,086,540
2,086,541
Date format in c#
<p>How can i get below mentions date format in c#.</p> <pre><code>For 1-Nov-2010 it should be display as : 1st November For 30-Nov-2010 it should be display as : 30th November </code></pre> <p>Can we do using any date format or make a custom function that returns for 1 -> 'st', 2-> 'nd' 3-> 'rd', any date no -> 'th'...
c# asp.net
[0, 9]
1,781,847
1,781,848
asp.net http handlers and http modules does it work without using IIS?
<p>Can i only use HTTP handlers or HTTP modules if i use my ASP.NET website with IIS or NOT?</p> <p>And besides that, what is actually the main difference between an http handler and a http module??</p>
c# asp.net
[0, 9]
4,517,119
4,517,120
Access C# Variable From JavaScript
<p>I have a public property in my code behind named Tab which I'm trying to access in the pages aspx file with javascript but I'm not sure how to get the right value.</p> <p>This gives me the value I want</p> <pre><code>alert('&lt;% Response.Write(this.Tab); %&gt;'); </code></pre> <p>This does not</p> <pre><code> v...
c# javascript jquery asp.net
[0, 3, 5, 9]
2,983,125
2,983,126
how to create signup form using jquery in asp.net?
<p>i need to create a signup form using jquery like current <strong>Gmail signup form</strong>, can anyone guide me or give a like to creating like this?</p> <p>where when we typing something the error comes at right place, </p> <p>thanks</p>
c# jquery asp.net
[0, 5, 9]
3,964,278
3,964,279
sending values from android to server
<p>I want to set the following code in a start and stop button to send my values to server after every second . so i am wondering how to adopt best strategy for it .should i put in a thread or refresh the activity . please guide me the easy direction to adopt . Thanks</p> <pre><code>URL url = new URL("http://............
java android
[1, 4]
5,099,631
5,099,632
Rotate 5 testimonials at a time with jQuery
<p>I am looking to show 5 testimonials at a time, and have simple navigation arrows rotate to the next 5 when clicked. I'm still new to JS and jQuery and am having some trouble figuring this oneout. I assume I could create a custom post type for the testimonials, and call them on the front page. But I don't know how to...
jquery javascript
[5, 3]
5,535,459
5,535,460
Deleting file in asp.net using c#?
<p>When I save a document file in my solution explorer, I send that doc file through mail then I am wanting to delete the document file. It is giving an error like this: <code>process being used by another process</code>. </p> <p>Below please find my code:</p> <pre><code>protected void btnsubmit_Click(object sender,...
c# asp.net
[0, 9]
5,753,919
5,753,920
jQuery -- adding and removing a class using next() across paragraphs
<p>I have a document and it's got a variety of spans in it with the class .highlight on them. The first selected item also has .currentItem on it, indicating it's the one currently selected. I want to be able to browse to the next highlighted item when the user clicks a button. Here's the function that, best as I can t...
javascript jquery
[3, 5]
3,528,858
3,528,859
Load file once into an ASP.NET application
<p>I'm working on a web based app which in the core is an expert system, and I need to load the rules file to the app only once .. so I need an equivalent to public <code>static void main() {}</code> in ASP.NET site to load the file in it .. what is this equivalent and is it exist .. any suggestions are highly welcome ...
c# asp.net
[0, 9]
2,483,890
2,483,891
Javascript/Jquery : Call a Function after Previous Function is Complete
<p>Ok, it's 1 a.m., I suck at coding javascript, and I can't seem to find a clear solution anywhere.</p> <p>This is essentially what I have:</p> <pre><code>$('a.button').click(function(){ if (condition == 'true'){ function1(someVariable); function2(someOtherVariable); } else { doTh...
javascript jquery
[3, 5]
3,875,320
3,875,321
How do I change accordion header with plus and minus symbol?
<p>I don't like the default Accordion icons and I want to change them. This link here:</p> <p><a href="http://jqueryui.com/demos/accordion/#option-header">http://jqueryui.com/demos/accordion/#option-header</a></p> <p>shows the option to change the header but it requires to specify icons. I don't need icons. I just ne...
javascript jquery
[3, 5]
708,461
708,462
JSCocoa and the iPhone
<p>Now I have a stack of free time on my hands, I wanna get into iphone dev fo real.</p> <p>But Objective C scares me (a bit). It feels I'm going a bit back in time. I say this because I've spent the last 8 months coding in C++.</p> <p><a href="http://inexdo.com/JSCocoa" rel="nofollow">JSCocoa</a> looks awesome, but ...
javascript iphone
[3, 8]
791,674
791,675
how to stop javascript function after running once?
<p>can someone please show me how i can stop this javascript function after it has ran once? At the moment it just repeats again and again and i only want it to run the once.</p> <p>I'm still learning javascript, so sorry if its not great.</p> <p>thanks</p> <pre><code>&lt;script&gt; $(function() { $(".search_pro...
javascript jquery
[3, 5]
2,523,557
2,523,558
How can I pass arguments to anonymous functions in JavaScript?
<p>I'm trying to figure out how to pass arguments to an anonymous function in JavaScript.</p> <p>Check out this sample code and I think you will see what I mean:</p> <pre><code>&lt;input type="button" value="Click me" id="myButton" /&gt; &lt;script type="text/javascript"&gt; var myButton = document.getElementByI...
javascript jquery
[3, 5]
299,848
299,849
uncontrolable disableSelection on jquery?
<p>I'm using <code>.disableSelection()</code> on my webpage with jquery.</p> <p>When I want to focus on INPUT and TEXTAREA tags it's not possible to focus.</p> <p>I want to enable selection when I focus on <code>INPUT and TEXTAREA</code>.</p> <p>Please help me.</p>
javascript jquery
[3, 5]
1,725,627
1,725,628
jquery background-position-x issue
<p>How to do background-position-x in Jquery ?</p> <pre><code>console.log($('.element').css('background-position-x')); </code></pre> <p>Outputs <code>(an empty string)</code></p> <pre><code>console.log($('.element').css('background-position')); </code></pre> <p>Outputs <code>0px 0px</code></p> <p>What I want to do...
javascript jquery
[3, 5]
1,943,051
1,943,052
get column names to array
<p>how to get colum names to array in System.Data.DataTable?</p>
c# asp.net
[0, 9]
3,883,317
3,883,318
How to track down a page reload in javascript
<p>I am debugging a page that has a jquery dialog that contains a textbox and an ok button.</p> <p>When a user hits enter, the page is reloading and the textbox ID &amp; value are being passed to the page reload as get parameters. e.g. </p> <pre><code>http://example.com?tex_box_id=text_entered_in_text_box </code></p...
javascript jquery
[3, 5]
2,081,908
2,081,909
How can I check if a value is inside a object list?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5181493/how-to-find-a-value-in-a-multidimensional-object-array-in-javascript">How to find a value in a multidimensional object/array in Javascript?</a> </p> </blockquote> <p>I've these JavaScript objects in an arr...
javascript jquery
[3, 5]
5,180,934
5,180,935
how can I make a text entry field
<p>How can I make a text entry field that takes the input characters and displays it in another place, character by character as a the typest type them!</p>
php javascript
[2, 3]
1,971,756
1,971,757
is this a bug? please check it out
<h1>html</h1> <pre><code>&lt;div contentEditable="true"&gt;testing....&lt;/div&gt; </code></pre> <h1>jQuery</h1> <pre><code>$(document).ready(function(){ $('[contenteditable]').removeAttr('contenteditable'); }); </code></pre> <p>above codes is fine and working. you can feel it <a href="http://jsfiddle.net/hRR3b/...
javascript jquery
[3, 5]
4,757,020
4,757,021
unable to solve Timer_Tick
<p>i have same problem as this question.<a href="http://stackoverflow.com/questions/5764875/se-the-clientscriptmanager-registerforeventvalidation-method-in-order-to-registe">se the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation</a> i havent any p...
c# asp.net
[0, 9]
4,854,549
4,854,550
What does (button) mean?
<p>I am a beginner at Java, and have come across this line of code:</p> <pre><code>Button orderButton = (Button)findViewById(R.id.order); </code></pre> <p>What does the <code>(Button)</code> mean when it is inside the parenthesis? </p> <p>What is the term for putting it inside like that? </p>
java android
[1, 4]
5,719,905
5,719,906
Running a Python program from PHP in the background (Python output on cmd) and displaying the counter in PHP
<p><strong>I need to run a Python script from PHP in the background, and the Python script will output its content to cmd (I need to display cmd) and display a live counter in the PHP file as long as the Python script is running.</strong></p> <p>I have tried all the exec and system commands, but I am unable to obtain ...
php python
[2, 7]
4,102,389
4,102,390
How can I extract a URL from url("http://www.example.com")?
<p>I need to get the URL of an element's background image with jQuery:</p> <pre><code>var foo = $('#id').css('background-image'); </code></pre> <p>This results in something like <code>url("http://www.example.com/image.gif")</code>. How can I get just the "http://www.example.com/image.gif" part from that? <code>type...
javascript jquery
[3, 5]
3,334,133
3,334,134
jquery/js - i have a bunch of values (strings). i want to send it to another url via POST, how do i do this?
<p>i have this (simplified)</p> <pre><code>&lt;script&gt; dataToSend = 'dummy data here'; function sendIt() { //code here } &lt;/script&gt; &lt;a href='#' onclick='sendIt();'&gt;Click here to send data&lt;/a&gt; </code></pre> <p>what would i need to put in sendIt() to do a POST submit (not ajax, i want the use...
javascript jquery
[3, 5]
728,412
728,413
Can only access jQuery.ajax not $.ajax
<p>I have a strange problem. I have loaded jquery-min javascript in my file. But I can only access jQuery.ajax not $.ajax. $.ajax is said to be undefined. Why is that?</p>
javascript jquery
[3, 5]
3,395,468
3,395,469
toggle class on hover?
<p>I have written the following code:</p> <pre><code>$(document).ready(function () { $("#rade_img_map_1335199662212").hover(function () { $("li#rs1").addClass("active"); //Add the active class to the area is hovered }, function () { $("li#rs1").addClass("not-active"); }); }); </code></pre>...
javascript jquery
[3, 5]
5,296,829
5,296,830
Test for empty jQuery selection result
<p>Say I do </p> <pre><code>var s = $('#something'); </code></pre> <p>and next I want to test if jQuery found #something, i.e. I want to test if <code>s</code> is empty.</p> <p>I could use my trusty <code>isempty()</code> on it:</p> <pre><code>function isempty(o) { for ( var i in o ) return false; r...
javascript jquery
[3, 5]
4,784,248
4,784,249
Random number after js file include
<p>I have a problem with a page that includes two js files. In firebug it shows that every time the page loads those two files get included with the prefix ?_=someRandomNumber</p> <p>I don't know where that random number is generated from and I guess it is the reason the files are not being cached and are downloaded ...
javascript jquery
[3, 5]
5,964,251
5,964,252
Saving and restoring state in android
<p>I have searched through this and a few other sites for the answer, but I have been unable to find it. I am trying to save a boolean and an int using onSaveInstanceState and onRestoreInstanceState, but I can't seem to get it to work. It doesn't crash or anything, but it either isn't saving it or it isn't restoring it...
java android
[1, 4]
227,083
227,084
Get the first empty select box recursively
<p>I have multiple <code>select</code> boxes in my document and some of them are load with page load and some of them created dynamically. for example:</p> <pre><code>&lt;select&gt; &lt;option&gt;select one&lt;/option&gt; &lt;/select&gt; &lt;select&gt;&lt;/select&gt; &lt;select&gt; &lt;option&gt;select two&...
javascript jquery
[3, 5]
5,537,951
5,537,952
Difference between HttpContext.Current.Response/Request And Page.Request/Response
<p>Please, can you explain me what is the difference between HttpContext.Current.Response/Request And Page.Request/Response. </p> <p>Thank you</p>
c# asp.net
[0, 9]
1,354,254
1,354,255
JQuery Plugin: calling jConfirm from asp.net (code behind)
<p>i am using jquery <a href="http://labs.abeautifulsite.net/projects/js/jquery/alerts/demo/" rel="nofollow">plugin</a> and i got stuck in how to display the confirmation window from code behind and if the user choose "ok" than go ahead delete otherwise ignore.</p> <pre><code>jConfirm('Can you confirm this?', 'Confir...
asp.net jquery
[9, 5]
406,751
406,752
TrimEnd() not working
<p>I want to trim the end off a string if it end like this ", ". That's a comma and a space.</p> <p>I've tried TrimEnd(', ') but this doesn't work. It has to be only if the string ends this way so I can't just use .Remove to remove the last 2 characters. Any ideas?</p>
c# asp.net
[0, 9]
6,018,873
6,018,874
How can I pass a Context object to a thread on call
<p>I have this code fragment:</p> <pre><code>public static class ExportDatabaseFileTask extends AsyncTask&lt;String, Void, Boolean&gt; { private final ProgressDialog dialog = new ProgressDialog(ctx); protected void onPreExecute(); protected Boolean doInBackground(final String... args); protected void...
java android
[1, 4]
1,237,649
1,237,650
Retrieve search string from text box on master page for internal search
<p>Currently, I have a text box and a button on my master page for entering and submitting a search string. The search is internal to my website. The user would enter the search string then click on the search button. The search button redirects to the search results page. When the search results page is loaded, it cur...
c# asp.net
[0, 9]
2,635,935
2,635,936
Why statements after while loop is not getting executed?
<p>The problem for me nothing gets executed after while loop? what's the issue with that? (The lines after the end of while loop never gets executed)</p> <pre><code>client = serverSocket.accept(); BufferedReader in = new BufferedReader( new InputStreamReader(client.getInputStream()) ); whi...
java android
[1, 4]
1,414,705
1,414,706
What data types do the RangeValidator control support?
<p>explain the rangevalidator control,is it take string also? explain thank you</p>
c# asp.net
[0, 9]
1,329,992
1,329,993
Extract text from html: looking for a good sax-like parser or advices with a dom parser
<p>I have an html document formatted this way:</p> <pre><code>&lt;p&gt; some plain text &lt;em&gt;some emphatized text&lt;/em&gt;, &lt;strong&gt; some strong text&lt;/strong&gt; &lt;/p&gt; &lt;p&gt; just some plain text &lt;/p&gt; &lt;p&gt; &lt;strong&gt;strong text &lt;/p&gt; followed by plain, &lt;a&gt;with a li...
java android
[1, 4]
2,960,578
2,960,579
Find out if X509Certificate2 is revoked?
<p>How can I figure out if an <code>X509Certificate2</code> has been revoked? I assume the <code>Verify()</code> method checks it, but it doesn't explicitly state it in the help. Does anybody know?</p> <p>Also: does the Verify() check if the certificate is expired?</p>
c# asp.net
[0, 9]
3,555,143
3,555,144
Android clipPath - fill type
<p>I have two Bitmaps one over another. I want to perform clipPath over the later one (the foreground) so that the background image gets visible.</p> <p>so I do:</p> <pre><code> protected void onDraw(Canvas canvas) { canvas.drawBitmap(backgroundBitmap, 0, 0, mBitmapPaint); canvas.save(); can...
java android
[1, 4]
1,090,525
1,090,526
Pass uploaded file as a parameter to javascript method
<p>I am passing the uploaded file as a parameter in the JavaScript method. Then Firebug is throwing error like <code>SyntaxError: illegal character</code>.</p> <pre><code>&lt;input type="file" id="fileUpload" name="employerLogoUpload" /&gt; &lt;a id="_fileUploadLink" href="#" onClick="javascript:ajaxFileUpload(" +doc...
javascript jquery
[3, 5]
1,856,606
1,856,607
$.slideUp() not working on elements in a CSS "display:none" parent element
<p>I have a site I am designing that has some nested DIV elements that I use as containers to hold expandable buttons.</p> <p>The user clicks on a button and it expands to expose some more content.</p> <p>Everything works great until I have a DIV that is inside of a parent DIV with it's display property set to "none"...
javascript jquery
[3, 5]
3,905,750
3,905,751
Get the current file being processed in ASP.net
<p>I have a requirement where I want to trace what file is being processed by .net runtime. I mean if it is processing usercontrol x.ascx then it should return the whole path of that, and if it is processing usercontrol y.ascx it should return that. </p> <p>There are some candidates properties. </p> <pre><code>Reques...
c# asp.net
[0, 9]
3,124,990
3,124,991
jQuery and asp.net not playing nice together
<p>Please refer to this page for reference: <a href="http://loadedgranola.valitics.com/_product_83484/blackberry_lime" rel="nofollow">http://loadedgranola.valitics.com/_product_83484/blackberry_lime</a> </p> <p>I have a jQuery script that runs to replace the h1 tags with a background image. It works great when the doc...
asp.net jquery
[9, 5]
46,930
46,931
JavaScript - ASP.net - Loop through all controls on an asp pannel
<p>Is there any way for me too loop though all controls on an asp.net pannel, and for each of the controls check the type to see if it is of asp type TimeInput?</p> <p>The JS basicly needs to replicate this serverside VB.net code</p> <pre><code> 'this is checking that something has been entered into at least one of t...
asp.net javascript
[9, 3]
1,793,702
1,793,703
How to improve the rendering of a custom 'data calendar' in asp.net
<p>I've been asked to improve a ASP.Net C# page. It currently shows a years worth of daily prices for a product. The page looks similar to a wall planner, with each input control showing a price for that day. </p> <p>The page will be used to change the price of this product for that year. Currently the 'wall planner' ...
c# asp.net
[0, 9]
1,994,876
1,994,877
How to get the values of sub objects of json objects while using object.key method?
<p>By using an api and getting a response .In response, i have got the list of objects in deals named object and the count of these object is 19 .I have used the below function to get the 'keys' and 'values' of each object.But some keys which is ultimately an object has sub object that contains keys and values ,i have ...
javascript jquery
[3, 5]
2,986,488
2,986,489
News Bar with jQuery
<p>I need to make a horizontal "breaking-news" style bar with jQuery. I pick new from the server (the easy part) and I need some way to make them continually scroll from left to right. Any jQuery plugin to help me? thanks</p>
javascript jquery
[3, 5]
2,205,900
2,205,901
Lock tab key with javascript?
<p>Hey guys.. How to lock or disable and again the tab key with javascript</p>
javascript jquery
[3, 5]
3,493,354
3,493,355
Passing data through a hyperlink WITHOUT include the data in the URL
<p>I know how to pass data through a URL and how to receive the data using <code>$_GET</code> but I don't want the variables to show up in the URL.</p>
php javascript
[2, 3]
1,866,606
1,866,607
Is it possible to run Android 2.2 app on Android 2.2+ Platforms (Gingerbraid, Ice Cream Sandwich etc.)
<p>I was wondering if it's possible because I am interested in developing applications for the Android platform, but I'm just starting.</p>
java android
[1, 4]
2,780,918
2,780,919
PHP Jquery DropDownSelectList Multiple Variables with same name
<p>I am using the Select->DropDownCheckList from <a href="http://dropdown-check-list.googlecode.com/svn/trunk/src/demo.html" rel="nofollow">http://dropdown-check-list.googlecode.com/svn/trunk/src/demo.html</a>... with a PHP back end...</p> <p>This checklist submits (on form post) each selection as an individual variab...
php jquery
[2, 5]
1,017,725
1,017,726
problem with jquery move image
<p>how can get x,y when mousedown in image and then mouse move in the image and then mouseup get x,y</p> <p>(2 x,y 1-x,y when mouse down 2-x,y when mouse up) all the event in the one image. and language jquery</p> <p>this my code by this not working(image stick to mouse and only mouse_d called)</p> <p>var mx1; var m...
javascript jquery
[3, 5]
1,891,110
1,891,111
Changing Selected Option Select menu .attr
<p>I am trying to pre-fill a form that containes select menu's, using JSON, i am using the key as the #id tags for the select menu's but i cant seem to get it to work i have tried different selectors but still no luck,</p> <p>here is my code</p> <pre><code> $(document).ready(function () { var p = { "we...
javascript jquery
[3, 5]
2,393,036
2,393,037
Automated copy of selected text in pdf file loaded using web browser control in c#.net
<p>This is what I have done:</p> <ol> <li>I have loaded a pdf file in web browser,</li> <li>Now I want to select text from that file and paste into a text box.</li> </ol> <p>Can anyone help me?</p>
c# asp.net
[0, 9]
3,881,705
3,881,706
Organizing Levels of Abstraction
<p>I have an SQL Server database with tables.</p> <p>On top of this, I have a class for each table that uses LINQ and has Add, Remove, Get, Update functions.</p> <p>On top of that I want to have more project specific methods.</p> <p>For example, one of my highest level function is to Assign a task to an employee.</p...
c# asp.net
[0, 9]
5,102,103
5,102,104
jQuery form processing: require vs. not required
<p>I'm building a form system with jquery and using <em>basic</em> validation (if a form has the required values and is of the required type) as a front line system (I validate at the backend too) for validating as the user submits, this is to prevent useless requests when possible (eg: submitted a completely empty for...
javascript jquery
[3, 5]
2,355,350
2,355,351
How do I save text input into preferences with onSaveInstanceState?
<p>This app is simple and all I want it to do is just keep the text in the text field even after I close the app. I looked through some tutorials but I can't seem to figure out how to get it to save with <code>onSaveInstanceState</code> and <code>onRestoreInstanceState</code>. How can I do it?</p> <p>Here is notes.jav...
java android
[1, 4]
3,521,206
3,521,207
Should I use telerik radgrid or windsor container for developing .NET applications
<p>I recently was given some code in c# ASP.NET and I was going through it and it seems as though the person who coded this before me used telerik radgrid and windsor container. I looked these up and I understand what telerik radgrid does (http://www.telerik.com/help/aspnet/grid/grdataglance.html), but If i am just st...
c# asp.net
[0, 9]
921,582
921,583
Android javax.naming.* replacement?
<p>I am trying to find an API for my android application that will replace the javax.naming package for DNS look up information. The java.net.InetAddress gives me some of the information that I need for my DNS tool, but fails to look up the MX and NS records.</p> <p>Does anyone have a suggestion on the API's I should...
java android
[1, 4]
3,467,411
3,467,412
Close was never explicitly called
<p>I have a listview that is sourced by an sqlite db. I call fillData() at several different points to update the listview.</p> <pre><code>private void fillData() { mDbHelper.open(); Cursor c = mDbHelper.fetchAllNotes(table, columns, selection, selectionArgs, null, null); startManagingCursor(c)...
java android
[1, 4]
1,892,988
1,892,989
How to add 3 functions in javascript using noConflict()
<p>I am using three different js plugins for three functions 1. Slide show 2. Smooth Scroll (to a id or a link inside the page) 3. Photo pop-up similar to light box </p> <pre><code>I used the following *jQuery.noConflict()(function(){ // code using jQuery }); // other code using $ as an alias to the other libr...
javascript jquery
[3, 5]
905,240
905,241
How does else if work in javascript
<p>Is this correct?</p> <pre><code>if(condition) { } elseif(condition) { } else { } </code></pre>
javascript jquery
[3, 5]
5,308,430
5,308,431
android fromhtml cannot recognize all HTML tag
<p>As far as I know, fromhtml of Android can recognize a few HTML tags like "<code>&lt;b&gt;</code>, <code>&lt;i&gt;</code>, <code>&lt;u&gt;</code>, <code>&lt;a&gt;</code>" and so on. But I cannot convince how to render following HTML code for android with fromhtml attribute.</p> <pre><code>String html = "&lt;code sty...
java android
[1, 4]
3,868,461
3,868,462
How to reset a fragment's view?
<p>If I have a fragment where I dynamically set a view with onCreateView(), how would I go about calling it again? </p> <p>I want to implement some kind of "refresh" where the view changes based on the JSON response. I tried making a new function that does midnightSV.removeAllViews(), but how can I call onCreateView()...
java android
[1, 4]
4,302,115
4,302,116
Detecting loss of connection between server and client
<p>How will the server know of client connection loss? does this trigger an event? is this possible to store code (server side) so that it can execute before the connection loss happen?</p> <p>This connection loss can happen if:</p> <ul> <li>being idle for too long. </li> <li>client side terminated.</li> </ul> <p>et...
java php
[1, 2]
2,822,847
2,822,848
JavaScript/jQuery - textchange
<p>I have a html- <code>input type="text"</code>, and I want to add this tag an event handler that will work when the text is changes. The problem is that this input is getting his value from antoher javascript function and then the event handler isn't working.</p> <p><em>For example</em></p> <p>This is the event:</p...
javascript jquery
[3, 5]
963,717
963,718
jquery preloading multiple images
<p>I managed to do preloding of 1 image like this:</p> <pre><code>var img = new Image(); $(img).load(function () { //do something after }).attr('src', response.image1); </code></pre> <p>How can I make the same for multiple pictures. Let's assume that my response is a json object which has several image sources. ...
javascript jquery
[3, 5]
4,575,535
4,575,536
jquery trigger function is not working no error nor correct result
<p>hey guys i have the ff code,it gives alert msg when i <strong>manualy</strong> do it.<br> bt i want to do it programatically using jquery as follows:<br> the html code: </p> <pre><code> &lt;input type="text" id="inpt" /&gt; </code></pre> <p><strong>js code:</strong> </p> <pre><code> $("#inpt").keypress(fun...
javascript jquery
[3, 5]
126,058
126,059
How to get the object reference inside a JQuery callback function?
<p>Let's say that we have a javascript object called aObject and the test() function is used as a callback function in JQuery</p> <pre><code>var aObject = { aVariable : 'whatever value', test : function() { // Trying to access property. But doesn't work as expected since I am getting the DOM element, n...
javascript jquery
[3, 5]
724,350
724,351
Reload when setTimeout function finishes
<p>I want to reload window after a this custom function finishes:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function(){ setTimeout(function () { $('#order_form').dolPopupHide({}); }, 3000); //window.location.reload(); }); &lt;/script&gt; </code></pre> <p>Is there a way...
javascript jquery
[3, 5]
4,394,362
4,394,363
Android - Sending pdf
<p>I am trying to send a .pdf file to Google Cloud print, using Google Docs as printer. Google docs get the document, but it appears empty, do somebody know the possible problem?</p> <p>For send the pdf, I read it as an string and:</p> <pre><code>str = URLEncoder.encode(pdf); OutputStream out = urlConnection.getOutpu...
java android
[1, 4]
2,261,693
2,261,694
position of div in particular div
<p>i have one card window div in which</p> <pre><code> &lt;div id="cards_window" class="popup_window ui-dialog ui-corner-all" title="Cards"&gt; &lt;div id="cards_title"&gt; Cards &lt;div id="cards_window_close" class="ui-button ui-icon ui-icon-circle-close popup_close"&gt;&lt;/div&gt...
javascript jquery
[3, 5]
549,132
549,133
Jquery chaining a click event does not trigger
<p>My hover events are triggered, if I removed the hovered events, click still does not get triggered. What could be the problem?</p> <pre><code>items = '&lt;li&gt;&lt;/li&gt;';//some html content list.html(items); list.show().children(). hover(function () { alert('hover'); }, function () { a...
javascript jquery
[3, 5]
2,844,697
2,844,698
search and replace text in all java files in a package
<p>I am using a few functions in my application which i want to replace with other functions (to make it backward compatible) My question : is it possible to find &amp; replace some specific text in all java files in a package with some tool, or do i have to do it manually on every java file? I have a LOT of java files...
java android
[1, 4]
5,984,674
5,984,675
use of jquery next() in this queue function
<p>I was reading about jquery <code>queue()</code> <a href="http://stackoverflow.com/a/3314877/1252748">here</a>. The first answer is pretty comprehensive:</p> <pre><code>var theQueue = $({}); // jQuery on an empty object - a perfect queue holder $.each([1,2,3],function(i, num) { // lets add some really simple func...
javascript jquery
[3, 5]
5,956,154
5,956,155
jQuery event delegation with non-trivial HTML markup?
<p>I have two DIVs, first one has a link in it that contains the id of the second DIV in its HREF attribute (<a href="http://jsbin.com/azimo/edit" rel="nofollow">complete setup on jsbin</a>). </p> <p>I want to animate the second DIV when user clicks on the first - anywhere on the first. I also want to use event delega...
javascript jquery
[3, 5]
3,654,166
3,654,167
What is the best way to keep track of the id of an element selected from an auto-suggest textbox?
<p>I have an auto-suggest textbox. A user can either pick an already existing item in the database of type in a new one.</p> <p>How do i keep track of the id if item was selected (Store the id of the list of items coming from the db)?</p>
javascript jquery
[3, 5]