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
2,096,927
2,096,928
Creating methods and updating strings
<p>I am relatively new to Android development but I do have a pretty good understanding of Java and xml etc. so excuse me if this is an easy question and I just can't put two and two together.</p> <p>Anyway, I am trying to have a user input a few characters into an EditText field. When they press a Button, it will cal...
java android
[1, 4]
981,423
981,424
Find and remove text in div
<p>I have a rss-feed where every post ends with a link wrapped in a paragraph. I want it deleted.</p> <p>Example: </p> <pre><code>&lt;p&gt;I want to keep this&lt;/p&gt; &lt;p&gt;I want to &lt;strong&gt;find&lt;/strong&gt; and &lt;a href="#"&gt;remove&lt;/a&gt; this string&lt;/p&gt; </code></pre>
php javascript jquery
[2, 3, 5]
2,017,756
2,017,757
JQuery - Select menu - OnChange Reevaluate Value
<p>I have a select menu with a list of country names. I'm using jquery to get the value of the currently selected option. I'm appending this to the url of the remote source file that I am using to populate the autocomplete field. </p> <p>I need to update the value of the select menu within the function onchange of ...
javascript jquery
[3, 5]
4,100,637
4,100,638
Trigger function on $(window).resize and $("#foo").scroll
<p>Would like to trigger the same function on $(window).resize and on $("#foo").scroll.</p> <p><a href="http://jsfiddle.net/ySukf/1/" rel="nofollow">http://jsfiddle.net/ySukf/1/</a></p> <p>Need <code>#stick</code> to stick to the top of <code>#foo</code>. The problem is that the position of <code>#stick</code> gets a...
javascript jquery
[3, 5]
5,958,889
5,958,890
Change label across pages
<p>I'm working on an application that connects to a serial port. I have experience in C#, but not so much in asp.net.</p> <p>I have a Label on an aspx page which displays the status of the connection. When I click a button, a new page opens which let's you select the serial port you want to use. When you press the OK ...
c# asp.net
[0, 9]
2,944,637
2,944,638
How to page refresh, if $_POST variable exists?
<p>I have some post form. On click submit button, turn to another page. I need refresh page once time, if some $_POST variable exists.</p>
php javascript jquery
[2, 3, 5]
3,446,985
3,446,986
Jquery chat how track user session
<p>We have implemented a Jquery chat in our company for internal communications.it is working fine. We are saving user status on data base, when a user logged in save his status on DB, when he logged out change status as log out.</p> <p>Issue is that if any user does not click the logged out button and close the windo...
php jquery
[2, 5]
3,978,613
3,978,614
How to set an interval, but then stop it after 20 minutes
<p>Currently on my webpage I have a timer that runs a function every 30 seconds:</p> <pre><code>setInterval("someFunction(userId)", 30000); </code></pre> <p>This works fine, but the problem is if 100's of users leave their browser open (say when they go for lunch), it will poll our system and increase the load on ...
javascript jquery
[3, 5]
3,844,166
3,844,167
Local Storage using Javascript / Jquery (Without using HTML5)
<p>I want to replicate Local Storage concept (similar to HTML5) in javascript or jquery.</p> <p>But unfortunately I don't have idea, how to start this.</p> <p>Can any one suggest how to implement local storage using javascript or jquery (Without using HTML5)?</p>
javascript jquery
[3, 5]
5,804,420
5,804,421
Adding and Removing Multiple Classes
<p>I want to add/remove three css classes plus a default classes. Example: When I click on the first anchor it adds a new class called style1 and removes the default style, when I click on the second anchor it removes style1 and adds style2, and the same for anchor3.</p> <p>The problem is if I start by clicking on an...
javascript jquery
[3, 5]
1,808,568
1,808,569
Hyperlink a column in gridview
<p>I'm using boundfield to display columns:</p> <pre><code>&lt;Columns&gt; &lt;asp:BoundField DataField=”AccountCode” HeaderText=”Account Code”&gt; &lt;ItemStyle Font-Size=”Large” /&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField=”AccountName” HeaderText=”Account Name” FooterText=”Enter Fo...
c# asp.net
[0, 9]
5,677,344
5,677,345
ASP.NET Session Problem
<p>1st Query...... I have a session variable cityId through which i find all the record. When i leave my application unattended for sometime then session expires &amp; it does get the value for city &amp; then throws exception. How I can redirect to a error page when session expires like this.</p> <p>2nd Query</p> ...
c# asp.net
[0, 9]
2,054,351
2,054,352
How to check if an item exists in more than one listbox? ASP.NET/C#
<p>I have three sets of listboxes, I move items from lb1 to lb2, from lb3 to lb4 and from lb5 to lb6. The listboxes on the left contains the same items and I don't want the user to be able to submit the page if one or more items from the left listboxes is added to more than one listbox to the right. For example, item A...
c# javascript asp.net
[0, 3, 9]
5,065,505
5,065,506
Want to pass php variable as argument in javascript function?
<p><br> i want to pass my php variable in one javascript function.<br> i know it seems simple but i don't know where am i missing something?</p> <pre><code> &lt;?php while($gg=mysql_fetch_array($lg)) { ?&gt; &lt;td id="add_td"&gt; &lt;?php $id = $gg['p_id']; echo ...
php javascript
[2, 3]
4,301,271
4,301,272
Caching asp.net pages
<p>I am bulding an app and I tried YSlow and got Grade F on most of my practices. I have loads of jscript that am working on reducing. I want to be able to cache some of these because the pages get called many times.</p> <p>I have one master age and I wanted to cache the scripts and css files.</p> <p>How do I achieve...
c# asp.net
[0, 9]
873,393
873,394
Disable click if class ="X", jQuery
<p>Im trying to build a tabbed content box, and im wondering if its possible that i can disable 1 link with a specific class, such as 'disabled' </p> <p>I read somewhere about a function called preventDefault, would this work?</p> <p><a href="http://jsfiddle.net/Ssr5W/" rel="nofollow">http://jsfiddle.net/Ssr5W/</a></...
javascript jquery
[3, 5]
5,128,213
5,128,214
How to get location.href on either secure or non-secure http request
<p>I have the following statement to get the href location of my iframe window...</p> <pre><code>var mbackwindow = document.getElementById("mframe").contentWindow.location.href; </code></pre> <p>depending on how I load the initial page, the console.log(mbackwindow) will show me either <code>http://something/page/stu...
javascript jquery
[3, 5]
4,925,977
4,925,978
Backwards Compatible Android/Java Code
<p>I'm writing some code that is going to be used by some partners that maintain SDKs. The SDKs are used by developers on Android 1.5 through 2.3.7. My code uses features that are only available on 2.2 and later. How can I write my code so developers using the partner SDKs don't get compile errors on Android &lt; 2....
java android
[1, 4]
2,806,339
2,806,340
How do I pass a JSONObject from Android application to a PHP file?
<p>I want to send a simple JSON object to PHP server,but when i try to retrieve that object on the server side,there is nothing i mean my $_POST variable is empty. The server side is PHP 5.2 and I'm using android emulator 10...Could someone have a look on my code and tell me what is going wrong? Thanks a lot</p> <pr...
java php android
[1, 2, 4]
3,153,395
3,153,396
call method in code behind from JQuery
<p>I am trying to execute a method in ASP.NET from Jquery</p> <pre><code>$.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "MyMessages.aspx?id=66&amp;epslanguage=sv/test", data: "{}", dataType: "json", error: function(xhr, err) { alert("...
c# asp.net jquery
[0, 9, 5]
4,116,224
4,116,225
ASP.net user control doesn't call a javascript function
<p>I am developing asp.net web application, I have a repeater that call a registered user control, I have in the user control a button that I want to call a javascript function that make Ajax call to do some action on server. this button doesn't call the javascript method, I don't know why? and when I view source I fou...
c# javascript asp.net
[0, 3, 9]
5,915,285
5,915,286
Declare a reference that extends a class and implement other
<p>I'm implementing a game and I have some clases like:</p> <pre><code>GameObject (Abstract) CircularGameObject RectangularGameObject </code></pre> <p>They basically store the position (x,y) and the different shapes for checking collisions.</p> <p>Now I want to implement the classes <strong>Wall</strong> (Rectangula...
java android
[1, 4]
473,261
473,262
javascript-php var post get
<p>That code work:</p> <pre><code>startSlideshow(&lt;?php echo json_encode(glob("photos-animaux/*.jpg"))?&gt;); </code></pre> <p>that code dont : </p> <pre><code>$.post("",{'folder':'animaux'}); startSlideshow(&lt;?php echo json_encode(glob("photos-".$_GET["folder"]."/*.jpg"))?&gt;); </code></pre> <p>WHY ?, what i ...
php javascript
[2, 3]
1,096,564
1,096,565
Web for open in new tab with closing button dynamically using jQuery
<pre><code>&lt;script type="text/javascript"&gt; $(function() { var total_tabs = 0; // initialize first tab total_tabs++; addtab(total_tabs); $("#addtab, #litab").click(function() { total_tabs++; $("#tabcontent p").hide(); addtab(total_tabs);...
c# asp.net
[0, 9]
3,567,982
3,567,983
applying same function to many elements (in order)
<p>any better way to do that (assuming I have 10 <code>a</code> elements, for instance)?</p> <pre><code>$('#id &gt; a:nth-child(1)').click(function() { changeP(1); return false; }); $('#id &gt; a:nth-child(2)').click(function() { changeP(2); return false; }); $('#id &gt; a:nth-child(3)').click(function() { changeP(3);...
javascript jquery
[3, 5]
5,704,044
5,704,045
How can a servlet receieve a web request and send a response back?
<p>A servlet that is able to receive a web request containing some values and respond with some other values. Eg. It should be able to receive a web request containing a value “HELLO” and respond with “GOOD DAY”.</p>
java android
[1, 4]
1,360,742
1,360,743
How to show credit card number as star (*) while user is inputting the number?
<p>I want to show all the input as stars when the user types in the credit card field except the last four digits which I want to show as numbers. I used jQuery masking but it is not giving me desired result.</p>
javascript jquery
[3, 5]
5,435,246
5,435,247
FileUpload .net control
<p>I want to make various actions on the uploaded file once it is on the server, question is how do I catch the event the upload is done? Currently when I try to access the file I get an error that it does not exists, I assume because the upload has not finished. (I tested the upload seperately and it worked)</p> <p>T...
c# asp.net
[0, 9]
341,392
341,393
MaxLength property for textbox in code behind?
<p>I am trying to use MaxLength function for the textbox in code behind.</p> <p>How is it possible for textbox txttabname here, which is created dynamically. Any idea? Thanks a lot in advance!!</p> <pre><code>for (int i = 0; i &lt; additionalPageCount; i++) { if (i == 0) { this.pnlProf...
c# asp.net
[0, 9]
5,284,549
5,284,550
JS/jQuery: Get depth of element?
<p>What's the easiest way to get the depth of an element in pure JavaScript or jQuery? By "depth" I mean how many elements deep is it nested, or how many ancestors does it have.</p>
javascript jquery
[3, 5]
5,690,401
5,690,402
Indentation vs alignment in code formatting
<p>I was reading this thread <a href="http://stackoverflow.com/questions/268538/tab-versus-space-indentation-in-c-sharp">Tab versus space indentation in C#</a> reagrding Tab versus space indentation. The moral of the thread leads to "Tabs for indentation, spaces for alignment." Can you explain me with some code example...
c# java php asp.net
[0, 1, 2, 9]
4,023,867
4,023,868
Anatomy of an Android Run Loop
<p>I can't seem to find any documentation on the details of an Activity's run loop for Android.</p> <p>Apple documents the "<a href="http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#//apple_ref/doc/uid/10000057i-CH16-SW20" rel="nofollow">a...
java android
[1, 4]
4,335,492
4,335,493
Setting screen resoltion in ASP.NET
<p>I am new to ASP and I am creating a web application and I want to set web page's layout [of entire website] to 1024x768.</p> <p>Is there a way to achieve this using C# or JavaScript? </p>
c# javascript asp.net
[0, 3, 9]
4,494,715
4,494,716
Elegant way of retrieving query string parameter
<p>I am retrieving one query string parameter, and for that my code is </p> <pre><code> &lt;a href="Default2.aspx?Id=1&amp;status=pending&amp;year=2010"&gt;Click me&lt;/a&gt; </code></pre> <p>Now I want to retrieve "status=pending" and for that I am doing </p> <pre><code> var qString = window.location.search.substri...
javascript jquery
[3, 5]
4,267,245
4,267,246
I draw diagrams, but I see old image on the new page
<p>I am developing a C# web project. I run it on the local web server. I draw. I show image as follows:</p> <pre><code>bitmap.Save(Server.MapPath("diagram.jpg"), ImageFormat.Jpeg); Image1.ImageUrl = ResolveUrl("diagram.jpg"); </code></pre> <p>I don't see new image. Only old one, which I had after changing image name ...
c# asp.net
[0, 9]
2,547,388
2,547,389
Jquery: stylize elements, which loads after some actions
<p>I have a form-configurator. When I choose some element from a dropdown, the page loads other elements of the form via AJAX. jQuery can't stylize those new elements. For example:</p> <pre><code>$('select').selectmenu({style: 'dropdown'}); </code></pre> <p>It would be nice to use the "ready" or "load" events for the...
javascript jquery
[3, 5]
2,305,374
2,305,375
Inputing results to inArray from .html (or innerHtml) and making it work
<pre><code>$("form").submit(function () { if ($.inArray($("input:first").val().toUpperCase(), ["UNITED STATES", "USA", "AMERICA"]) &gt; -1) { //function here }); &lt;div class="answers"&gt;"UNITED STATES", "USA", "AMERICA"&lt;/div&gt; $("form").submit(function () { if ($.inArray($("input:first").val().toUpperCase(), ...
javascript jquery
[3, 5]
2,006,033
2,006,034
Android Load image on ImageView using arraylist
<p>This might be a problem that I might overlooked again but if you could help me solve it, I will be very thankful. Using this code to get images from drawable and sending it to Imageview.setImageResource (in which my Imageview is inside a gridview);everything works well</p> <pre><code>private Integer[] imageIDs = ...
java android
[1, 4]
1,318,213
1,318,214
javascript: how i can define is object jQuery object or something else object?
<p>So, i have two objects:</p> <pre><code>var object1 = $('div'); var object2 = {}; </code></pre> <p>How i can define is this jQuery object, or not?</p> <p>for javascript version &lt; 1.4</p>
javascript jquery
[3, 5]
1,315,116
1,315,117
When to use a webservice, page Method?
<p>Just starting with JQuery. I have a couple of questions</p> <ol> <li><p>When to use webmethods ,webservices , page methods , ashx files in an ASP.NET 2.0 website ? </p></li> <li><p>If I were designing an application where I'd use the webmethods on multiple pages should I replace them with a webservice ?</p></li> <l...
asp.net jquery
[9, 5]
2,222,410
2,222,411
Jquery Map function with TD and Input
<p>I am trying to combine the words in td and input text entered in the textbox. </p> <pre><code>&lt;table width="100%"&gt; &lt;tr&gt; &lt;td class="CommentWords" width="25%"&gt;jsakldjs &lt;/td&gt; &lt;td class="Label" width="85%"&gt; &lt;input class="Textcomment" id="txtCommentWords_3" type="text" width="550...
javascript jquery
[3, 5]
5,068,466
5,068,467
script reference causes conflict
<p>I have code 1 which executes with this in the head:</p> <pre><code>&lt;link class="jsbin" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" /&gt; &lt;script class="jsbin" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/sc...
javascript jquery
[3, 5]
535,084
535,085
Any idea why using jquery-ajax some img src are preppended with '%20'?
<p>After a .load() call some content (with images) some of the user's profile image path get broken...</p> <p>And i am not sure if is a coincidence but it will only happen with the opengraph's ones:</p> <p>one example;</p> <p>Iam trying to recive <code>&lt;div class="user"&gt;&lt;img src="https://graph.facebook.com/...
php jquery
[2, 5]
1,363,951
1,363,952
SqlDataSource used with ListView
<p>I am a newbie and I have spent well over 100 hours trying to find a solution to my question:</p> <p>I have a Recipes db which is displayed in Recipes ListView that gives 13 rows of data. The Recipes db loads into Recipes ListView just fine and the Recipes db has a relational db named RecipesDirections. Each db ha...
c# asp.net
[0, 9]
5,117,806
5,117,807
ASP.NET|Process Class- Runing And Stoping Process
<p>few days ago, my freind asked me to build him a proagram that start and stop process.</p> <p>so, as easy as it is. i did the next code:</p> <pre><code>(using System.Diagnostics) Process process; process = Process.start("SOMEONE.exe"); Process.Kill(); </code></pre> <p>Now, thats it the easy part. everything works...
c# asp.net
[0, 9]
329,448
329,449
Javascript variable not working in a different file
<p>I have this script in <strong>index.php</strong> file:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function(){ $('#ads').load('output.php').fadeIn('slow'); }); &lt;/script&gt; </code></pre> <p>And the <strong>output.php</strong> file contains a hidden input by which I pass a php vari...
php javascript
[2, 3]
2,313,587
2,313,588
Android Account Sync Provider
<p>I'm trying to add a Sync Provider account and all was going well until i click the account within the account settings. I'm getting the following error below in the LogCat.</p> <p><img src="http://i.stack.imgur.com/vD2iI.png" alt="LogCat"></p> <p>As you can see it is trying to get a 'resource' but what though? I h...
java android
[1, 4]
1,016,415
1,016,416
Set cookie domain with Javascript variable
<p>Im taking the domain from the HTML of the page using jQuery:</p> <pre><code>domainUrl = $("p.domain").text(); </code></pre> <p>for the purposes of testing:</p> <pre><code>&lt;p class="domain"&gt;.vl3.co.uk&lt;/p&gt; </code></pre> <p>Which is also the domain Im testing the script on.</p> <p>This then give an ale...
javascript jquery
[3, 5]
608,344
608,345
How to hide a DIV that is produced by an AJAX call?
<p>I have a simple script that closes a DIV. An example is here: <a href="http://jsfiddle.net/22fTm/3/" rel="nofollow">http://jsfiddle.net/22fTm/3/</a></p> <p>My problem however, is that the DIV "box" is only produced after an ajax call, which is part of a search php script. </p> <p>Any idea what I need to make this ...
javascript jquery
[3, 5]
2,081,465
2,081,466
Remove/change Internal styles sheet styles with JavaScript/jQuery
<p>I want to be able to remove/change the internal style sheets values through JavasScript. It has to be through JS because I cannot edit the html since I am using an application that does not allow me to, but I can use JS. How can I change the value for the background or remove it completely? Or is there another way t...
javascript jquery
[3, 5]
3,488,882
3,488,883
java.lang.NoClassDefFoundError on Android after changing a class file
<p>I have a jar library. I used Java Class File Editor (CE) to modify one class in this library. In this class, I changed a variable from "private static final" to "public static." Afterwards, I put the newly modified class file into same jar library using WinRAR.</p> <p>However, running the app on Android produces th...
java android
[1, 4]
4,077,335
4,077,336
jQuery rich text editor with word counter
<p>I need a rich text editor like this one used on this site, with a word counter on it, i will love to restrict the total work count like on twitter, preferrably written with jQuery, please any tip, i will greatly appreciate it.</p>
javascript jquery
[3, 5]
1,407,908
1,407,909
i want to show message once every fields has value using jquery
<p>my html:</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;input type="text" id="name" name="name" placeholder="First Name" /&gt; &lt;label for="name"&gt;First Name &lt;/label&gt; &lt;button id="submit" src="images/button.png" width="100" &gt;Submit&lt;/button&gt; &lt;/body&gt; &lt;/html&gt; </code></pre...
javascript jquery
[3, 5]
4,185,899
4,185,900
Execute particular code on confirmation of user but confirm box must be activate during the php code not onsubmit form
<p>After validating user data from database I want to update some values in the Database using php code.</p> <p>I have tried </p> <pre><code>var answer = confirm("Do you want to Checkout?"); if(answer==true) { &lt;?php MY UPDATE COMMAND ?&gt; } </code></pre> <p>but update command execute even if answer==false</p> <...
php javascript
[2, 3]
2,607,694
2,607,695
Best Books that shows how to use jQuery with ASP.NET
<p>I have searched the stackoverflow site to find if someone has recommended any good books that show how jQuery can be used with asp.net. All the threads lead to only good jQuery books. </p> <p>Can anyone recommend me a good book that shows how to use jquery with asp.net? Any upcoming books are also ok</p>
asp.net jquery
[9, 5]
4,314,236
4,314,237
jQuery buggy setTimeout animation
<p>I'm experiencing a bug with animated elements. When you <code>right-click</code> on a group its name-field expands downwards so that it is revealed along with 2 other groups on the line. And then a animation puts it on the default state triggered with <code>setTimeout()</code> after a few seconds. However if you st...
javascript jquery
[3, 5]
4,114,201
4,114,202
Is ASP.NET HttpPostedFile.SaveAs a blocking call?
<p>I was wondering whether <code>HttpPostedFile.SaveAs</code> function in ASP.NET C# is a blocking call.</p>
c# asp.net
[0, 9]
5,098,369
5,098,370
The best way to write a jQuery plugin - If there is such a way?
<p>There are quite a few ways to write plugins i.e. <a href="http://stackoverflow.com/questions/2352077/writing-a-better-jquery-plugin/2352112#2352112">here's a nice example</a> and what I've seen quite a lot of lately is the following code pattern and it's used by Doug Neiner <a href="http://starter.pixelgraphics.us/"...
javascript jquery
[3, 5]
2,447,133
2,447,134
drag & drop w/ reordering - reordering 2 side-by-side elements at once
<p>I have had no luck figuring out how to do this. I was originally using jQuery UI sortable, but I am not sure it will work with this workflow:</p> <p>I have a table with multiple columns. I want to be able to drag an element in column A AND the element next to it in column B at once and drop them into a different ...
javascript jquery
[3, 5]
2,230,300
2,230,301
Possibility to switch over to java from .net
<p>Today I am going to ask one off bit question. Sorry for that. Right now I am an MCA fresher and will be working on dot net for next few month(almost 10-12 months). After that I want to switch over to java. How is the possibility that I can switch over to it. What type of preparation I am supposed to do. I am also pl...
java asp.net
[1, 9]
2,647,638
2,647,639
Client-side validation Javascript or Server Side validation PHP
<p>I have a form which submits data which is entered in the database. Is is recommended to perform both client side and server side validation ?</p>
php javascript
[2, 3]
488,785
488,786
Why won't jQuery's load event fire on dynamically inserted script elements?
<p>I'm dynamically inserting a script element using jQuery. The script loads as expected, but the load event does not fire.</p> <pre><code>jQuery('&lt;script/&gt;').attr({ type : 'text/javascript', src : 'http://platform.twitter.com/widgets.js' }).appendTo('body').load(function(){ /* This alert does not fi...
javascript jquery
[3, 5]
2,205,602
2,205,603
converting integer to float with precision 2 using Javascript or Jquery
<p>I want to convert the integer to floating number with precision 2. ie. - </p> <p>11 => 11.00</p> <p>45 => 45.00</p> <p>Please help me.</p> <p>Thank you.</p>
javascript jquery
[3, 5]
4,051,679
4,051,680
Create a unique ID for a page in an ASP.Net Application
<p>I have an ASP.Net app with a lot of pages in it. My problem is to uniquely identify every page in my app. now the app might have pages with just the page name eg: home.aspx and can have pages with query strings eg: testPage.aspx?q1=1&amp;q2=2. </p> <p>what i have been thinking is since every URL in my app is unique...
c# asp.net
[0, 9]
4,503,240
4,503,241
how to disappaer radio button on item slect from spinner
<pre><code>rb1=(RadioButton)findViewById(R.id.radioButton1); rb2=(RadioButton)findViewById(R.id.radioButton2); rb3=(RadioButton)findViewById(R.id.radioButton3); rb4=(RadioButton)findViewById(R.id.radioButton4); rb5=(RadioButton)findViewById(R.id.radioButton5); spiner1=(Spinner)findViewById(R.id.spinner1); spiner2=(Sp...
java android
[1, 4]
2,039,188
2,039,189
How to use JavaScript to print the contents on a div?
<p>I would like to use the print() function to print the contents of a <code>&lt;div class="pagecontent"&gt;&lt;/div&gt;</code></p> <p>I know you can do something like <code>onClick="window.print()"</code> but this prints the entire window...I only want the contents of <code>.pagecontent</code> to be printed.</p> <p>...
javascript jquery
[3, 5]
4,215,135
4,215,136
Clone a div and then clone again from the child
<p>I have the following simple code, where I double click a div (with class <strong>container</strong>) and it's simply clones itself inside another div (with id <strong>containment-wrapper</strong>):</p> <p><strong>html</strong></p> <pre><code>&lt;span class="container"&gt;div one&lt;/span&gt; &lt;div id="containme...
javascript jquery
[3, 5]
1,236,719
1,236,720
How to write unit test methods for aspx.cs files in VS 2008?
<p>How to write unit test methods for VS 2008? - On Submission of User Name and Password, i have called the method which is .aspx.cs file.I need to write the unit test for the methods which are defined in .aspx.cs file. -From .aspx.cs file, i have called the methods which is in separate file. - So i need to cover the c...
c# asp.net
[0, 9]
4,248,798
4,248,799
on click get all <area> elements mouse is within based on coords
<p>I'm using the jquery maphilight plugin and have a large number (hundreds) of overlapping elements on my image map. I've noticed that when hovering over the image map, maphilight will highlight the first element it finds for those coordinates, so overlapping can become an issue.</p> <p>I'm looking to be able to cli...
javascript jquery
[3, 5]
695,530
695,531
Access asp:lable value which set using jquery?
<p>I am making web application in asp.net, I have one label control in my .aspx page. I have to set label text value using jquery. want to access this value in my .cs file.</p> <pre><code>&lt;asp:Label ID="lbltext" runat="server" Text=""&gt;&lt;/asp:Label&gt; </code></pre> <p>By using this am able to change label tex...
c# javascript jquery asp.net
[0, 3, 5, 9]
1,186,267
1,186,268
How to assign Textbox value to the other textbox using jquery
<p>I have two textboxes in my view,</p> <p>My requirement is when I enter some text in the first textbox automatically that value should be assigned to second text box when I leave first textbox. using jquery or javascript.</p> <p>thanks for your help</p> <p>EDIT:</p> <p>For Some reason this code is not inserting t...
javascript jquery
[3, 5]
4,488,531
4,488,532
Select div text next to clicked button within table row
<p>Here is a sample table. </p> <pre><code>&lt;table class="table table-bordered"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;tr&gt; &lt;td&gt;Stuff&lt;div id="ParentID" style="display:none"&gt;145689&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;button class="btn btn-small"&gt;Send&lt;/button&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbod...
javascript jquery
[3, 5]
2,554,548
2,554,549
Number of folder inside a directory
<p>How do i know the number of folder inside a directory?</p> <p>I try using <code>System.IO.Directory</code> but no luck!!</p> <p>thanks, Pedro</p>
c# asp.net
[0, 9]
4,382,963
4,382,964
javascript setTimeout function does not work
<p>I am trying to update a variable every one second. For that reason I am using setTimeout. But it does not update the variable. It logs out 0 just once. Here is my code</p> <pre><code>var yes=0; setTimeout(function () { console.log(yes); yes++; }, 1000);​ </code></pre>
javascript jquery
[3, 5]
4,983,822
4,983,823
javascript send one way message to php
<p>How can I use javascript to send a one way message to php? I would like to get the browser information from javascript and just send it to php in the background. I know I can get some of this from php, but I'd rather use javascript. Is there a way to do this without a framework like jquery?</p>
php javascript
[2, 3]
5,603,452
5,603,453
external link icon
<p>Using a script, that works great. It pops in a external link icon next to external links. Whoopydoo... and also adds a target="_blank" attribute.</p> <p>The issue I have is, I dont want it to work on IMAGES.</p> <p>Only on text links , so any sugestions.</p> <p>The jquery is:</p> <pre><code>(function(a){ a.fn.li...
javascript jquery
[3, 5]
4,002,024
4,002,025
Target individual class function instead of the whole class group
<p>I have a script that shows more info when clicked and when clicked again it hides the info. The problem is that when clicked it shows and hides information of all the div's with the same class name instead of only the one that was clicked. I was looking around and I would think that I need to add "this" somewhere in...
javascript jquery
[3, 5]
1,342,822
1,342,823
C++ Serve PHP documents?
<p>I am writing a small web server, nothing fancy, I basically just want to be able to show some files. I would like to use PHP though, and im wondering if just putting the php code inside of the html will be fine, or if I need to actually use some type of PHP library?</p> <p><a href="http://www.adp-gmbh.ch/win/misc/w...
php c++
[2, 6]
365,485
365,486
JavaScript engine development book or article
<p>im looking for a book to learn more about the development of a JavaScript engine (if that exist), i would appreciate any info about this topic, thanks beforehand.</p> <p>- Or any articles about Javascript Engine development! :)</p>
javascript c++
[3, 6]
3,258,760
3,258,761
jquery check if string starts with 1234
<p>Thanks for taking the time to answer my question.</p> <p>I want to check if a string has exactly 7 characters and starts with "1234". How do I do that?</p> <p>I know of string.substring but am not sure if I shouold use regex or are there any other alternative. Thanks in advance!</p>
javascript jquery
[3, 5]
2,976,080
2,976,081
converting 2012-07-04T17:30:52+00:00 to 2012-07-04T17:30:52Z
<p>as far as I know both<br> <code>2012-07-04T17:30:52+00:00</code> and<br> <code>2012-07-04T17:30:52Z</code> are dates in <strong>iso8601</strong> format with time zone UTC.</p> <p>I am using prettyDate jquery plugin. It accepts date only in the format <code>2012-07-04T17:30:52Z</code></p> <p>i am getting dates in t...
javascript jquery
[3, 5]
4,605,214
4,605,215
ASP.NET: Custom SetFocusOnError behavior for RequiredValidators
<p>Is there a way I can override the default scrolling using when SetFocusOnError = true? Right now it pops the user up the page so that the top of the control is at (0,0). The problem is that our labels are above the controls, so the user can't see the label without scrolling up a little more. I'd like to make it c...
asp.net jquery
[9, 5]
2,635,462
2,635,463
Jquery: help to get values from data attributes
<p>I have the following markup</p> <pre><code>&lt;a href='#' id="remove_user_from_group" data-user-id="a9a4ae36-c6cd-11e1-9565-910084adb773" data-group-id="e4d66f80-d046-11e1-89b6-16f96811a1bd"&gt;x&lt;/a&gt; </code></pre> <p>And I want to get the data from <code>user-id</code> and <code>group-id</code>.</p> <p>For ...
javascript jquery
[3, 5]
3,870,369
3,870,370
problem with checked all checkbox?
<p>When someone clicks on first <code>input:checkbox</code>, I want my code to check all checkboxes, but my code doesn't work correctly: <p></p> <p><strong>EXAMPLE:</strong> <a href="http://jsfiddle.net/cQYVE/" rel="nofollow">http://jsfiddle.net/cQYVE/</a></p> <pre><code>$('.table_show tr input:first').live('click',f...
javascript jquery
[3, 5]
3,357,374
3,357,375
If jquery.html() doesn't work in xhtml because innerHTML is messy and not a good practice, why do jquery.prepend() etc work?
<p>Wouldn't allowing users to input xhtml manually create the exact problem removing <code>innerHTML</code> was supposed to solve?</p>
javascript jquery
[3, 5]
1,043,588
1,043,589
window.showModalDialog is not working
<p>I have the following code to showModalDialog popup:---</p> <p>.aspx code is:-</p> <pre><code>function ShowPopup(path) { window.showModalDialog(path, '', 'dialogWidth:700px; dialogHeight:530px; Center:yes'); } </code></pre> <p>My aspx.cs code is:--</p> <pre><code>switch (e.CommandName.ToLower()) { case "...
javascript asp.net
[3, 9]
4,209,984
4,209,985
Dump facility in C++ like var_dump() in PHP?
<p>When I was in college i did some C/C++, but in near future i was working in PHP, and now I wish to put more time in learning C/C++.</p> <p>In PHP i was using print_r() or var_dump() in order to display datas from structures or arrays. Do I have such a default functionality in C, in order to see what do i have in a ...
php c++
[2, 6]
4,910,865
4,910,866
Render Rtf text stored in database as bytes using Microsoft.Office.Interop.Word dll to word
<p>I am storing Rtf text from Windows RichTextBox control as Bytes into Database.</p> <p>I want to Render that Rtf data stored in the database to Word using Microsoft.Office.Interop.Word dll.</p> <p>How to render Rtf data into work document.</p>
c# asp.net
[0, 9]
1,332,289
1,332,290
if input field has a value found in array, do this (jQuery/Javascript)
<p>I've got a page with a handful of input fields.</p> <p>I need to find the fields with an array of values, and if so, <code>.remove()</code> the <code>closest('tr')</code></p> <p>The markup is similar to this</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt; &lt;input type="text" value="this"&gt; ...
javascript jquery
[3, 5]
5,479,909
5,479,910
Capturing Ctrl-Alt-Del in JavaScript/jQuery
<p>While just playing with jQuery/JavaScript I ran across this problem. I could capture <kbd>Alt</kbd> and <kbd>Ctrl</kbd> keys but NOT <kbd>Del</kbd> and certainly not all of them together.</p> <pre><code>$(document).ready(function() { $("#target").keydown(function(event) { if (event.ctrlKey &amp;&amp; ev...
javascript jquery
[3, 5]
1,184,750
1,184,751
How to retrieve a number (ID) inside a image path using js/jquery?
<p>Here is the sample path, assuming the format is fixed</p> <p>For the 4th image, the path is '<code>demo/medium/Web081112_P004_medium.jpg</code>' </p> <p>so if the image is the 100 th ,then </p> <p>'<code>demo/medium/Web081112_P100_medium.jpg</code> '</p> <p>Is there any way to get the number in this format, I ...
javascript jquery
[3, 5]
2,463,647
2,463,648
JQuery .GET call/function
<p>Ok so trying to get a page together that needs to connect to our SQL database. So on the javascript page I have functions that will autocomplete a textbox with data out of our mysql DB and then I need to send it to other functions and classes so that it will then look in our SQL DB and return some data. The problem ...
php javascript jquery
[2, 3, 5]
3,648,599
3,648,600
JQuery: How to determine if Slide event is up or down?
<p>I have the following code:</p> <pre><code>$('a.btn-slide').toggle(function() { $("#DivToSlide").slideUp("fast"); // ... }, function() { $("#DivToSlide").slideDown("fast"); // ... }); </code></pre> <p>Later in my code, I want to find out if <code>#DivToSlide</code> is in either the <strong>up</stron...
javascript jquery
[3, 5]
4,120,535
4,120,536
System.Web.HttpException was unhandled by user code
<p>I have been using </p> <pre><code>protected void Application_Error(Object sender, EventArgs e) { HttpException ex = Server.GetLastError() as HttpException; Exception ex_T = ex; Session["Ex"] = ex; Session["Ex_T"] = ex_T; Response.Redirect("~/errorPage.aspx" ); } </code></pre> <p>function for e...
c# asp.net
[0, 9]
5,930,294
5,930,295
Append data to css class - jQuery string operation
<p>Please take a look at the following html. EDIT: UPDATED THE HTML PART</p> <pre><code>&lt;div id="html_editor"&gt; &lt;head&gt; &lt;style type="text/css" &gt; .blog { border:2px solid grey; width:auto; } &lt;style&gt;{customcss}&lt;/style&...
javascript jquery
[3, 5]
4,425,706
4,425,707
jQuery popeye don't want to work
<p>Hello guys I can't provide the code but you can see it on the web. <a href="http://bestinvest.ge/en/?transaction=3&amp;minrooms=1&amp;maxrooms=100&amp;minprice=&amp;maxprice=" rel="nofollow">Here is the Link</a></p> <p>All scripts work correctly on the web but I can't configure the popeye and find the problem... Ca...
javascript jquery
[3, 5]
4,902,305
4,902,306
Reading a text file with jQuery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1981815/jquery-read-a-text-file">jquery - Read a text file?</a> </p> </blockquote> <p>I want to read a local text file, using jQuery. So I try this:</p> <pre><code>$.get('file_to_read.txt', function(data) { ...
javascript jquery
[3, 5]
4,933,635
4,933,636
Webview doesn't download files
<p>I'm trying to navigate to a download url with the webview, and it doesn't download the file... I tried other links, and the problem is the same... I tried something like 20 direct link... nothing works... Does someone knows what might be the problem?</p>
java android
[1, 4]
550,925
550,926
Open Element on Click
<p>I apologise in advance for the poor quality of this question but here goes:</p> <p>I simply want an element to slide open on mouse click! That's it!</p> <p>Specifically, i want a single menu item which, when clicked, will slide open to reveal a form. </p> <p>What i'm after is almost exactly like an accordion menu...
javascript jquery
[3, 5]
4,584,582
4,584,583
trying to add variable for div id. is it possible?
<p>i am trying to use variable inside body. just see below sample code</p> <pre><code>&lt;body&gt; &lt;div class="demo"&gt; &lt;script&gt; var count = 4; for(i=1;i&lt;=count;i++){ var varSlid = "A"+i; $('.demo').append('&lt;div id= varSlid &gt;&lt;/div&gt;&lt;/br&gt;'); } ...
javascript jquery
[3, 5]