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,936,069
1,936,070
How can I programmatically monitor the activity on an already opened serial port?
<p>Is there a library or code sample (preferably C# or Java, but not required) that allows to "sniff" what is happening on a serial port which is being used by another application? Like this software does:</p> <p><a href="http://www.eltima.com/products/serial-port-monitor/" rel="nofollow">http://www.eltima.com/product...
c# java
[0, 1]
2,115,035
2,115,036
JS: Selecting div's href's and applying the text of href to an input
<p>I have a <code>div</code> named #div1 which gets a random values of <code>href</code>. For example:</p> <pre><code>&lt;div&gt; &lt;a href="#"&gt; Apple &lt;/a&gt; &lt;a href="#"&gt; Orange &lt;/a&gt; &lt;a href="#"&gt; Lemon &lt;/a&gt; &lt;a href="#"&gt; Banana &lt;/a&gt; &lt;/div&gt; </code></pre> <p>How is it po...
javascript jquery
[3, 5]
3,603,058
3,603,059
Run javascript function after Server-Side validation is complete
<p>Ok, I've got a lightbox with a small form (2 fields) in it, inside an UpdatePanel, and I want to close this lightbox (must be done via javascript) when the 'Save' button is pressed.</p> <p>However, there is a need to have a server-side CustomValidator on the page, and I only want to close the lightbox if this retur...
c# asp.net javascript jquery
[0, 9, 3, 5]
2,027,078
2,027,079
Gridview editing without postback
<p>I am using Gridview with Edit option. When i click on Edit button row becomes editable with Update &amp; cancel button. But this process causes a postback which degrades performance in my scenario. Is there any other way available to make row editable without causing a postback(maybe using javascript)?</p>
javascript asp.net
[3, 9]
2,353,596
2,353,597
jQuery $_GET Variable
<p>I have a modal window that uploads files to server. Works great. Upon completion of the upload I am refreshing a div on the parent page. Almost works. What I need in order for it to work is to be able to grab $_GET['edit']. Hopefully my layout of the code will help show my issue.</p> <p>Modal Window: upload complet...
php jquery
[2, 5]
3,605,446
3,605,447
Jquery: pass attr, destroy attr
<p>How do I turn this: </p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;a href="Menu1"&gt;Menu 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="Menu2"&gt;Menu 2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="Menu3"&gt;Menu 3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>Into this:</p> <pre><code>&lt;ul&gt; &lt;l...
javascript jquery
[3, 5]
3,793,548
3,793,549
Code behind does not recognize my control variable on its aspx page
<p>I have apsx page that has the following simple code:</p> <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Team.master" AutoEventWireup="True" Inherits="Lib.team" Codebehind="team.aspx.cs" %&gt; &lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"&gt; &lt;asp:GridVie...
c# asp.net
[0, 9]
992,615
992,616
How to refresh page after focus?
<p>I would like to refresh a page after it got back into the focus. For the refreshing part I thought I might just use:</p> <pre><code>location.reload(); </code></pre> <p>The tricky part is how do I determine when to refresh?<br> First the window has to loose the focus (which could be determined through <em>.blur()</...
javascript jquery
[3, 5]
4,726,863
4,726,864
Display a loading bar before the entire page is loaded
<p>I would like to display a loading bar before the entire page is loaded. For now, I'm just using a small delay:</p> <pre><code>$(document).ready(function(){ $('#page').fadeIn(2000); }); </code></pre> <p>The page already uses jquery.</p> <p>Note: I have tried this, but it didn't work for me:</p> <p><a href="ht...
javascript jquery
[3, 5]
2,029,269
2,029,270
jQuery How to affect Single element on mouseOver
<p>As I'm still learning, this question might seem to be very simple to answer, but I still need to ask.</p> <p>How do I need to change this script, so it will not display all the tooltips?</p> <p>What is happening now is whenever I hover on <code>.pink-nose a</code> all the <code>.tooltip</code> are fading in at thi...
javascript jquery
[3, 5]
4,502,764
4,502,765
Edit serverside files in JS
<p>i am making some script for some personal use. Now i tend to keep my CD collection list in a html file which has some sleek design, but i am tired of editing the list by "hand" and that means that i don't want to edit the code everytime i add new CD. So is there a way that i can use JS or JQuery so i could add/read ...
javascript jquery
[3, 5]
4,844,001
4,844,002
Issue with file manager behavior when using an intent
<p>I am having the issue with the following code. I am using the button in my app to go directly to the sub directory Bookme in the SD CARD. It gets me to the Bookme directory, however if I press on a picture or video file in that sub directory it takes me back to the activity where I started from and does not give m...
java android
[1, 4]
2,315,569
2,315,570
OnClientClick preventing OnClick event?
<p>I have a button, I need to fire an onclick event, and an onclientclick event. The onclientclick would be something like this:</p> <pre><code>(function($){ $.fn.validate = function() { var option = $('#&lt;%=LblWarnings.ClientID%&gt;').html(); if (option == "option1_OK" || option == "opti...
c# jquery asp.net
[0, 5, 9]
865,179
865,180
JQuery - grab parent of event-object
<p>I bound a function as a closure to an anchor like this:</p> <pre><code>jQuery('#mydiv').find('#mya').bind('click', function(e){ myotherfunction(e); }); </code></pre> <p>In my function <code>myotherfunction(obj)</code>, <code>obj</code> is an event, how do I get the parent-Element? </p>
javascript jquery
[3, 5]
3,039,953
3,039,954
How to give a permision to the user to enter only number between 1 to 100 using jquery or javascript
<p>I need to restrict the user to enter only number between 1 - 100 suppose if he is entering 101 i should give a popup message says please enter any number between 1 - 100?</p> <p>Using jquery or javascript</p> <p>thansk</p>
javascript jquery
[3, 5]
2,414,560
2,414,561
Upgrading .NET Framework
<p>I want to update my project from .net framework 2 and asp.net 2 to the newest versions. Is there any possible issues I may have?</p>
c# asp.net
[0, 9]
2,497,664
2,497,665
web browser set javascript variable value
<p>Is there a way for me to get and set the values of JavaScript variables in a win form web browser so it can communicate with my application. The only way I can think of accomplishing this is by using a proxy of an invisible element such as a div that will have an attribute or inner HTML set to the value I want to re...
c# javascript
[0, 3]
2,468,729
2,468,730
Can I make an Android library which contains resource files?
<p>I want to make an Android library which contains drawable resource files. But I wonder if the library's resource IDs might conflict with the application resouce IDs. Is it possible to make such a library?</p>
java android
[1, 4]
3,915,224
3,915,225
Converting char to integer representation c#
<p>When I try to run the following code it always spits out the hex representation, not the integer representation. Most of the examples I found on MSDN said this should work. What am I missing?</p> <pre><code> var stringBuilder = new StringBuilder("8"); int j = 0; foreac...
c# asp.net
[0, 9]
4,087,155
4,087,156
Basic jQuery understanding
<p>What is the <code>event</code></p> <pre><code> $(document).ready(function(){ $("a").click(function(event){ alert("Thanks for visiting!"); }); }); </code></pre> <p>and also this one </p> <pre><code> $(document).ready(function(){ $("a").click(function(){ alert("Thanks for visiting!"); }); })...
javascript jquery
[3, 5]
2,090,961
2,090,962
Adding comma as thousands separator (javascript) - output being deleted instead
<p>I am attempting to dynamically adjust a numerical value entered to include thousand separators</p> <p>Here is my code:</p> <pre><code>function addCommas(nStr) { nStr += ''; x = nStr.split('.'); x1 = x[0]; x2 = x.length &gt; 1 ? '.' + x[1] : ''; var rgx = /(\d+)(\d{3})/; while (rgx.test(x1))...
javascript jquery
[3, 5]
353,562
353,563
JQuery apply bind to all children
<p>I have:</p> <pre><code>$(document).ready(function(){ $("#eventsContent").children().each(function(){ $(this).bind("mouseenter", function(){ $(this).css("background","#F5F5F5"); }); }); }); </code></pre> <p>I have tried this a couple different ways, but this is the jist of what i've done. </p> <p>I have...
javascript jquery
[3, 5]
4,123,732
4,123,733
Jquery slidetoggle question
<p>How can I get one script of jQuery to start after another one has finished (or time it when you want it to start)? I have a content area that fades in on page load:</p> <pre><code>$(document).ready(function() { $("#content").hide(); $(window).load(function() { $("#content").fadeIn(3000); }); ...
javascript jquery
[3, 5]
3,755,353
3,755,354
Detect if link opens in a new window/tab or the current window
<p>I want to add AJax-like transitions to my links if a link opens in the current window. However, I don't want the transitions to execute if the link is opened in a new window/new tab. Is this possible?</p> <p>P.S. I have jQuery loaded.</p>
javascript jquery
[3, 5]
1,528,402
1,528,403
cant change variable
<p>I'm trying to make a navigation area and am trying to switch tabs with the active variable. This is just for the nav button, but later I'd like to make a rotator too by switching the variable.</p> <p>Here is my code:</p> <pre><code> active = 1; function hover() { $(nav1).live(...
javascript jquery
[3, 5]
4,554,385
4,554,386
Redirect page using javascript
<p>I have question,I want to redirect page using javascript which the code is to detect country id.After I looking it on google,I found a way to do it.</p> <p>on the html in <code>&lt;head&gt;</code>tag,I insert the window.location = language,language is variable that will detect country id from geoapi_country_code he...
php javascript
[2, 3]
5,219,323
5,219,324
Highlighting rows of a GridView on hover - How to pass GridView as a paramter into separate JavaScript file?
<p>I am learning jQuery and I am doing practise. <strong>My task is: Highlighting GridView row on hover</strong> I have written the following code in .aspx page</p> <p></p> <pre><code>&lt;script src="Scripts/HighlightGridViewRow.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; ...
jquery asp.net
[5, 9]
2,325,490
2,325,491
Automatically fill username password into windows prompt using asp.net or jquery
<p>There's a third party site that many of our users access. I have the username and passwords already stored in our DB. Is it possible to programmatically enter the username and password once this site' URL prompts the user and click the submit button? Anyway of even doing this on the server side?</p> <p>Thanks for ...
c# jquery asp.net
[0, 5, 9]
5,113,828
5,113,829
BufferedReader sample code in android
<p>I want to develop a mobile learning that contain many texts. I would like to ask on how to create BufferedReader ?</p>
java android
[1, 4]
5,562,888
5,562,889
Spinner onItemSelected() executes when it is not suppose to
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5124835/android-spinner-onitemselected-called-erroneously-without-user-action-on-openin">Android Spinner OnItemSelected Called Erroneously (without user action on opening spinner)</a> </p> </blockquote> <p>Does ...
java android
[1, 4]
4,459,361
4,459,362
how to get id from .html() in jquery
<p>following is my code i want to access "course-type" id from .htm() method how to access that id</p> <pre><code> $("#question-type").html("&lt;option&gt;Select&lt;/option&gt;&lt;option&gt;Excel Sheet&lt;/option&gt;&lt;option&gt;One by One&lt;/option&gt;"); $("#question-type").change(function(){ $("#course").htm...
javascript jquery
[3, 5]
2,802,410
2,802,411
Emulate Google Chat's "Person says..." In title
<p>I'm making a RSS client and i think it would be really cool if the title of the page could update with an alert of a new item. So if the user in on a different tab to my site, the tab's content would change to "New" or whatever. This is emulating Google's Chat system where it updates with "Joe Says..." in the title/...
javascript jquery
[3, 5]
511,761
511,762
Unexpected submit on "submit" button click
<p>If I make submit button active (with <kbd>Tab</kbd> button), and then press <kbd>Enter</kbd>, keypress handler will fire, and will generate click event on button. But <code>OnClick</code> and Submit handlers will not fire. It'll just silently post the form. Why?</p> <pre><code>&lt;script src="../js/jquery.js" type=...
javascript jquery
[3, 5]
4,840,540
4,840,541
.on and .off not working in jquery
<p>I have attached an click event of span in this way. the span is with in a table.</p> <pre><code> $("#tblImport").find("span").each(function () { $(this).click(function () { appendData(this); }); }); </code></pre> <p>This event "appendData" makes an aj...
javascript jquery
[3, 5]
5,133,971
5,133,972
why shouldn't we put any javascript code between the <script> tag if we only want to include external js file?
<p>i don't really understand why the author in the "Javascript &amp; Jquery: the missing manual , second edition" advise the sentence below:</p> <blockquote> <p>When adding the src attribute to link to an external JavaScript file, don’t add any JavaScript code between the opening and closing tags. If you want to ...
javascript jquery
[3, 5]
360,353
360,354
Paul Irish 'duck punching' pattern question
<p>Had a question about the 'duck punching' pattern I first encountered on Paul Irish's blog. I get the general premise... save a ref to an existing function, then replace the existing function with a conditional branch that will call a new function if condition is met, or the old version if not. My question is why ...
javascript jquery
[3, 5]
5,927,542
5,927,543
Cannot convert string to int, must be simple but i m missing somewhere
<p>here, i want to check only if the column Active is Yes, then get into the if loop. But it gives me an error "Cannot convert from string to int" for the last condition in if. What do you guys i can do. Thanks!!</p> <pre><code>if (ds != null &amp;&amp; ds.Tables != null &amp;&amp; ds.Tables.Count &gt; 0 &...
c# asp.net
[0, 9]
3,776,355
3,776,356
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]
5,641,118
5,641,119
How to control placement of control in code behind
<p>Is it possible to control the placement of a generated control in asp .net 2.0 (c#)?</p> <p>So for example in my page_load I create a new Panel() and then do Form.Controls.Add(pnl). However I'm finding it renders right at the end of the form. </p> <p>I would like it rendering as the first element in the form.</p>
c# asp.net
[0, 9]
2,763,762
2,763,763
How to get path to file using some external file managers apps Android?
<p>Is it possible to get File from sd card, which is picked using some 3rd apps (file manager) ?</p> <p>I mean that i have activity with button open file and when user press open it shows him suggestions to use some other app to open file, and when he pick open i get back to my activity with path of that file ?</p>
java android
[1, 4]
4,465,333
4,465,334
Refresh after submit and avoid message
<p>I need to refresh my page after I click on a submit button or do submit by using shortcut keys provided. I also need to avoid the message which i get from the browser. I am submitting some text so i get a message that entered data might get lost. However it does not. Below is the code for my submit.</p> <pre><code>...
javascript jquery
[3, 5]
4,455,696
4,455,697
Send BitMap object (and some other strings) via POST to a server
<p>how would i go about sending a BitMap objects (and some other strings, such as name = "kevin") to a server? Does anyone have any examples on how to do this?</p>
java php android
[1, 2, 4]
955,720
955,721
Click object by classname
<p>I am trying <code>document.getElementsByClassName('classname').click();</code>, but it doesn't fire the click on the class. Why is that?</p>
javascript jquery
[3, 5]
1,421,775
1,421,776
In Android, using java: determine string length of mix-bytes character String?
<p>There is a String variable containing ascii characters and double bytes characters(for example, the Chinese, Japanese,...). </p> <p>How to decide the total length of the String ? Also, I want to implement with the string substring/replace function. </p>
java android
[1, 4]
836,251
836,252
Call php echo from jQuery?
<p>I have a jQuery script in my header that calls a php file. </p> <p>The php file contains data pulled from a remote xspf file, and the output presented in jQuery for refresh purpose. i have 2 echo rules, one for title and one for listeners. right now jQuery calls the file itself which makes the output appear togethe...
php javascript jquery
[2, 3, 5]
1,806,225
1,806,226
call jquery functions after inserting value in database
<p>I want to execute a jquery function like button click(), after php insert a record in DB.Is there any way to acheive this?</p> <p>Thank you.</p> <p>Edit</p> <p>i tried to call jquery function like this</p> <pre><code>if($uresult ) { ...
php javascript jquery
[2, 3, 5]
1,338,291
1,338,292
How to know if a session has been set
<p>In php i used to use </p> <pre><code>session_start(); if(isset(SESSION["user"])) { //session is set } els{ // there is no session } </code></pre> <p>but do i do that in asp.net? I mean. What code can tells wheather a session is set or not</p> <p>ex: asp.net c#</p> <pre><code>//login.aspx SESSION["USER"];...
c# asp.net
[0, 9]
3,834,330
3,834,331
asp button onclick reloads the parent page
<p>I have a button and added onlcik event from the code behind. When I click on the button it reloads the parent page. What could be the problem? Please let me know.</p> <pre><code>&lt;asp:Button ID="btnReport" runat="server" Text="Report"/&gt; </code></pre> <p>Code behind:</p> <pre><code>string url = "http://www.go...
c# asp.net
[0, 9]
2,884,119
2,884,120
how to enable or disable a button on keypress event of a textbox in javascript
<p>I created a TextBox :-</p> <pre><code>TextBox ID="TxtUname" onKeyPress="ENABLE_BTN()" </code></pre> <p>Now i wrote a function :-</p> <pre><code>script type="text/javascript" window.onload = function() { document.getElementById('SSAccept').disabled = true; }; function ENABLE_BTN() { var EN=documen...
javascript asp.net
[3, 9]
1,918,266
1,918,267
Not showing the images in live server which is showing in my local host
<p>I am working on the Mailbox Module in VS2010 with C#</p> <p>I have made a control with ascx page and in that page I have created Three different gridviews for Inbox,SentItems and Deleted Items.</p> <p>In all the three gridviews I have added two columns for the Images for Reply and Forward messages which is shown w...
c# asp.net
[0, 9]
2,843,231
2,843,232
onClick does not find its method
<p>When I click a button, its method does not get called, but exception is thrown. Why?</p> <pre><code>Caused by: java.lang.NoSuchMethodException: myMethod [class android.view.View] </code></pre> <p>main.xml:</p> <pre><code>android:onClick="myMethod" </code></pre> <p>Activity:</p> <pre><code>public class MyActivit...
java android
[1, 4]
5,136,087
5,136,088
how to get previous element with jquery each()
<p>I know the each function iterates over an array. Is there way to access the indice like (this[i])? I need to be able compare current element's pubDate with the previous element's pubDate and if it's different output a new pubdate.</p> <pre><code> $(data).find('item').each(function(i, value){ var titl...
javascript jquery
[3, 5]
5,885,057
5,885,058
Help with EnumMemberAttribute?
<p>I have an enum below which I need to be able to reference by passing in <strong>"Insured Only".</strong> When I do this it says that it cannot be found as the actual enum shows as InsuredOnly. Is there anyway I can pass in the correct value i.e. <strong>"Insured Only"</strong> instead of <strong>InsuredOnly</strong>...
c# asp.net
[0, 9]
1,200,619
1,200,620
javascript function to convert date from mm/dd/yyyy to yyyymmdd
<p>In asp.net when am selecting date using calender control it displays in textbox as </p> <blockquote> <p>mm/dd/yyyy (eg.5/19/2011)</p> </blockquote> <p>format but in my sql database it is stored as varchar datatype in </p> <blockquote> <p>yyyymmdd(20110519)</p> </blockquote> <p>format without any separators '...
c# javascript asp.net
[0, 3, 9]
1,961,860
1,961,861
cache background scrolling image position for other pages
<p>I'm working on a site which has a scrolling background image. When i go to another page on the site the animation starts at the beginning. Is there a way to cache the position so that when i go to another page the animation picks up from where it left off?</p> <p>here is the code i'm using</p> <pre><code>&lt;head&...
javascript jquery
[3, 5]
55,374
55,375
Is it possible to find button by view, and not findViewById?
<p>I'm wondering if it is possible to find the button in the way I want. Because I need to make a temporary button from the button that has been clicked.</p> <p>This code gives an error:</p> <pre><code>public void onClick(View view) { Button button = (Button) findViewById(R.id.view); } view cannot be resolved ...
java android
[1, 4]
2,346,120
2,346,121
Jquery div is selected by id, choose the value of class
<p>how do i do that ? my html structure looks like this EDIT: i have updated to html so it fits the rules.</p> <pre><code>&lt;td id="1" class="LinkWrap"&gt;&lt;a href="" class="link"&gt;link&lt;/a&gt;&lt;/td&gt; </code></pre> <p>i use this code:</p> <pre><code>$(".link").click(function() { $(this).parent(); //some ...
php jquery
[2, 5]
1,675,383
1,675,384
How to reach down to these span's and concatenate their id's
<p>So I have:</p> <pre><code>&lt;li id="foo"&gt; &lt;span&gt; bar &lt;/span&gt; &lt;ul&gt; &lt;li&gt; &lt;span id="1234"&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span id="5678"&gt;&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; </code></pre> <p>I need concatenate the span ids an...
javascript jquery
[3, 5]
671,557
671,558
How to make this script perform other function
<p>I recently found this expandable table with Jquery, it is very lightweight and awesome code. However, I need to make small changes to it, but I don't know how. If you take a looks at this <a href="http://www.jankoatwarpspeed.com/post/2009/07/20/Expand-table-rows-with-jQuery-jExpand-plugin.aspx" rel="nofollow">demo</...
javascript jquery
[3, 5]
5,371,451
5,371,452
How to read an aspx page response from PHP site
<p>I am working in coordination with the pHp developer, he is sending me some username, key at my aspx page and on that basis i am checking the authenticity from the DB, if authentic user then i'll do response.write("YES"), if not then i'll do response.write("NO"). The PHP developer saying that he will read my respon...
php asp.net
[2, 9]
4,210,897
4,210,898
Float a div on a textarea?
<p><img src="http://i.stack.imgur.com/nVOKi.png" alt="enter image description here"></p> <p>I have a div which has this list of suggestions. But i need to allocate it at the caret position of the textarea. Is this possible if yes, help me to do it.</p> <pre><code>function findOffsetPosition(obj) { var posX = obj....
javascript jquery
[3, 5]
2,219,422
2,219,423
Making a web application as default page for all the PCs in network
<p>I'm making a web application that keeps a track of the computers on a network, i.e. who is using which pc for internet. For a person who wants to use the internet has to first login into my application, and then he can use the internet. So I want that my application should run every time the browser is opened. So he...
c# asp.net
[0, 9]
2,464,808
2,464,809
How to create audio player elements?
<p>I am trying to create a audio player in my codes and want to append source to the audio player. I am not using html5 so it's a bit different.</p> <p>I have </p> <pre><code>var audioPlayer=document.createElement('audio'); audioPlayer.id='audioPlayer'; audioPlayer.className='audioPlayer' var audioSour...
javascript jquery
[3, 5]
440,877
440,878
Increment COOKIE on window open
<p>All I want to do is increment a COOKIE for each opened tab. Management of the COOKIE variable will be in PHP, I've sorted that out, but I don`t really know how to test if a new window has been opened (Javascript or Jquery). Any heads up? Thank you!</p>
php javascript jquery
[2, 3, 5]
1,874,935
1,874,936
Problem in selecting multiple items in Listbox.SelectionMode
<p>I have a webpart and I want to select mulitple items in a listbox,pretty easy.I am using webcontrols namespace.So I am declaring listbox as ListBox lBox = new ListBox(); lBox.ID="lbox"; lBox.SelectionMode="Multiple";</p> <p>But it is not accepting that . The error I m getting is cannot convert string type to listbo...
c# asp.net
[0, 9]
4,403,066
4,403,067
How do I reliably check if a textarea element has any inner text in jQuery?
<p>Apparently,</p> <pre><code>if (!($('#myTextArea').html())) alert("Textarea empty"); </code></pre> <p>doesn't work.</p>
javascript jquery
[3, 5]
3,424,862
3,424,863
+18 sites accurate location
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/283016/know-a-good-ip-address-geolocation-service">Know a good IP address Geolocation Service?</a> </p> </blockquote> <p>I don't understand how they can accurate locate me (the porn sites). Is there a database a...
php javascript
[2, 3]
4,682,940
4,682,941
jQuery not stopping form from beign submitted
<p>i have a form that when submitted, if any field is empty id like to prevent the submission and add a class to the field.</p> <p>For some reason I cant seem to get it too work, Ive added a fiddle, can anybody point out where im goign wrong?</p> <p><a href="http://jsfiddle.net/yycqW/" rel="nofollow">http://jsfiddle....
javascript jquery
[3, 5]
2,195,209
2,195,210
Checking to make sure the same item can't be clicked twice in a row with jQuery / jScript
<p>So, I have a script I've been working on it can be seen here: <a href="http://xeo.tryptamine.tv/lookbook2/" rel="nofollow">http://xeo.tryptamine.tv/lookbook2/</a> Now if you play around with that script you will see if you click the image it's already on it still gets that fade effect. I need to know how to properly...
javascript jquery
[3, 5]
4,710,470
4,710,471
how to submit the values in the form in javascript when there are 2 submit values?
<p>I have one form where there are 2 inputs those are submit type of inputs like this.</p> <pre><code>&lt;form&gt; &lt;input type="text" name="payee" value=""&gt; &lt;input type="text" name="amount" value=""&gt; &lt;input type="text" name="date" value=""&gt; &lt;input type="submit" name="deposit" value...
javascript jquery
[3, 5]
5,279,037
5,279,038
Using Java Client and PHP web backend server to upload a file
<p>Hi i am stuck with one of my project requirement and i am seeking some guidance on the same. So my project is as follows:</p> <p>I need to create a client using java program to upload a file to the Web backend server. I should use php programming language to design and implement a web backend server that will enabl...
java php
[1, 2]
632,483
632,484
Is there any option for making a horizontal line in listview?
<p>I am using a listview and i need to group items showing as a group. So i need a separator to separate the listitems of the same list.</p> <p>But i need this separator to set dynamically(means through java code)</p>
java android
[1, 4]
5,910,153
5,910,154
Should Javascript be separated into files by page or consolidated into one file?
<p>Should I be separating my js for each page assuming there is no overlap and putting references on each page instead of having one master file? what is typical practice? thanks</p>
javascript jquery
[3, 5]
2,782,526
2,782,527
Icon Not fit to Button Control in asp.net application
<p>In my Asp project,.. </p> <p>I have used Icon file in Button. But those Icons not fit to Buttons. It half of the height only visible. </p> <p>My Code is..</p> <pre><code> &lt;asp:Button ID="btnCoverPlus" runat="server" style="background-image: url('Images/plus.ico'); background-repeat:no-re...
c# asp.net
[0, 9]
4,975,297
4,975,298
Find substring with Jquery?
<p>How would our group find out if a particular string contain the scertain substring? Only with the help of Jquery, please.</p>
javascript jquery
[3, 5]
2,934,621
2,934,622
Is there a way to modify a startup script previously registered with RegisterStartupScript?
<p>I have a control that must emit a javascript array of data, which is accumulated throughout the page lifecycle.</p> <p>The control does not know when the data is finished being accumulated, so there is no single point where it knows when to call <code>RegisterStartupScript</code>.</p> <p>How do I accomplish this t...
javascript asp.net
[3, 9]
4,956,081
4,956,082
How is it possible to have ClassCastException after instanceof returns true
<p>I am getting the following code snippet from <a href="http://code.ohloh.net/file?fid=-0F0FCOc_Dgka3ovb86Swu0zffI&amp;cid=OpnM-8VCwHE&amp;s=Pair.java%20Android&amp;browser=Default#L44" rel="nofollow">Android's Pair.java</a></p> <pre><code>public boolean equals(Object o) { if (o == this) return true; if (!(o ...
java android
[1, 4]
522,698
522,699
How can I get an array of all elements within a specific class using javascript and/or jQuery?
<p>I'm trying to get an array of all elements with the class "sampleclass". For example, withing my document I have three divs:</p> <pre><code>&lt;div class="aclass"&gt;&lt;/div&gt; &lt;div class="sampleclass"&gt;&lt;/div&gt; &lt;div class="anotheraclass"&gt;&lt;/div&gt; &lt;div class="sampleclass"&gt;&lt;/div&gt; </c...
javascript jquery
[3, 5]
5,334,461
5,334,462
Multiple dropdown select with jquery and mysql
<p>I'm building a search function in PHP and jQuery. I have 3 dropdowns that are loaded from a MySQLdatabase. When a user selects 1 of the dropdowns it has to affect the other dropdown values. </p> <p>I made it working for the seperate values but I'm stuck when they select 2 or 3 dropdowns. I worked with the &amp;&amp...
javascript jquery
[3, 5]
1,206,352
1,206,353
What JavaScript code can I use to open in a new window, and not the window I previously opened
<p>I am new to JavaScript. Here is the scenario; I have an imagebutton that changes every 10 seconds and when I click it opens a link in a new window and when the image changes and I click on the new image, its link replaces the link in the same child window. However I want it to open the link in a completely new windo...
c# javascript asp.net
[0, 3, 9]
1,201,528
1,201,529
How to execute Javascript code from a PHP function?
<p>Ok, what I'm doing right now is just echoing an script tag. For example:</p> <pre><code>echo '&lt;script&gt;alert("Hello world")&lt;/script&gt;'; </code></pre> <p>Is this the right way to do this? or is there a better way?</p>
php javascript
[2, 3]
2,785,902
2,785,903
Permanently Closeable jQuery pop-up
<p>I have a moveable and closable jquery pop-up notification box. It works well aside from the fact that it pops up every time the page is loaded. What method would I need to implement to allow a user to permanently (or at least semi permanently) close the pop-up box?</p> <p>If I need to use cookies how would I tie a ...
php javascript jquery
[2, 3, 5]
3,671,682
3,671,683
Scrolling down recipients scroll bar in chat script
<p>My previous chat script worked perfect at sender side. When ever a new message is added from textbox to databinder the scroll bar used to come down with the help of javascript but the issue is it is unable to scroll down the recipient's side chat script. I interfaced scroll down code to button using <code>OnClientCl...
javascript asp.net
[3, 9]
5,849,499
5,849,500
jQuery stopPropagation is ignored
<p>My goal is to prevent all the click events (hiding/showing of elements in the HTML when clicked) unless a certain condition is met (the user has a certain word in an input element).</p> <p>So i tried to add that logic to the click handler of the document or "html" but the click handler of the other element fired fi...
javascript jquery
[3, 5]
1,876,024
1,876,025
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]
4,283,886
4,283,887
Map the PHP date format into Javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/847185/convert-a-unix-timestamp-to-time-in-javascript">Convert a Unix timestamp to time in Javascript</a> </p> </blockquote> <p>I have been storing the user's date format preference in the database as a string o...
php javascript
[2, 3]
1,062,782
1,062,783
tab switch in js ,which is faster?
<p>I always romoving 'current' class of all siblings then add 'current' class to my clicked one. I want to know will it be faster only removing 'current' class of which has 'current'.seems to be a simple question, but I really want to know. </p> <p><img src="http://i.stack.imgur.com/R6vXc.png" alt="enter image descrip...
javascript jquery
[3, 5]
1,850,870
1,850,871
sort gridview with dynamic linq
<p>I have a gridview with several columns, 3 of which I'd like to sort. The source for the data is held in the session.</p> <pre><code>protected void MyGridHistorySort(object sender, GridViewSortEventArgs e) { var TheColumn = (e.SortExpression).ToString(); TheDataHistory = (List&lt;ViewDataHistoryModel&gt;)Se...
c# asp.net
[0, 9]
1,249,446
1,249,447
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]
2,482,522
2,482,523
jQuery SimpleTree: Add a node programatically
<p>I'm trying to add a new node to an jQuery <a href="http://news.kg/wp-content/uploads/tree/" rel="nofollow">SimpleTree</a>, but all I seem to be able to get is "sTC.addNode is not a function"... </p> <pre><code>var simpleTreeCollection = $('.simpleTree').simpleTree({ animate:true, drag:false, autoclose: false, a...
javascript jquery
[3, 5]
2,582,951
2,582,952
Update variable on new month without fail
<p>I have a variable that needs to be updated the first time my app is started after a new month has begun. It needs to be reliable. Any idea on the simplest way to handle this?</p>
java android
[1, 4]
240,415
240,416
C# DateTime to Javascript DateTime
<p>I'm using the following code to pass to my javascript code</p> <pre><code>sb.Append("start: new Date(" + Convert.ToDateTime(appointment.AppointmentDate).Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds.ToString() + "),"); </code></pre> <p>The problem is that it's not including the time along with the date. How...
c# asp.net
[0, 9]
4,850,981
4,850,982
Abort a shutdown event in Android wait for an Activity completed
<p>I have the following code to listen to any Broadcast event related to any Android shutdown event. Can I abort the shutdown event (or have it wait), and kick off an Activity. Only shutdown after when that Activity is completed. If not, any workaround for this?</p> <p>Thanks</p> <p>AndroidManifest.xml</p> <pre><cod...
java android
[1, 4]
4,506,999
4,507,000
Android onFocusChanged function never called
<p>I have created a custom button in extending <code>View</code> class as specified in this tutorial:</p> <blockquote> <p><a href="http://kahdev.wordpress.com/2008/09/13/making-a-custom-android-button-using-a-custom-view/" rel="nofollow">http://kahdev.wordpress.com/2008/09/13/making-a-custom-android-button-using-a-c...
java android
[1, 4]
3,912,491
3,912,492
How Do I Change Div's Content With jQuery To Different PHP Files - Using Hyperlinks - No Refresh Of Page
<p>How Do I Change Div's Content With jQuery To Different PHP Files - Using Hyperlinks - No Refresh Of Page</p> <p>Lets say I have a div with the id of statsdiv</p> <p>Then Lets say I have These Pages:</p> <p>page1.php page2.php page3.php</p> <p>And 3 links.</p> <p>page1 | page2 | page3</p> <p>I need it to preloa...
php jquery
[2, 5]
4,011,249
4,011,250
Language options in Android
<p>I am developing an android application in which there is a drop down button,drop down is having 3 languages as option,on selecting a particular language,the entire application should change to that language.My application is ready with drop down button having 3 languages as its option,but i don't know how to change ...
java android
[1, 4]
4,636,714
4,636,715
Replace only occuring in first element
<p>Can someone help on why this is only replacing the '[m]' in the first LI? The rest of them stay as '[m]'</p> <pre><code> aData[2] = "&lt;li&gt;1[m]&lt;/li&gt;&lt;li&gt;2[m]&lt;/li&gt;&lt;li&gt;3[m]&lt;/li&gt;" $.html( aData[2].replace('[m]','[media]') ) </code></pre>
javascript jquery
[3, 5]
1,754,829
1,754,830
Fade in and out same time
<p>I want to fade in/out at the same time. I have the following:</p> <pre><code>visiblePanel.fadeOut(FU.featureTiming.transition, function () { visiblePanel.next().fadeIn(FU.featureTiming.transition, function () { visiblePanel.next().find('img').removeClass('displayNone') }); }); </code></pre> <p>How ...
javascript jquery
[3, 5]
200,241
200,242
Jquery post with umlauts
<p>I read about the special characters and umlauts in javascript is a bit tricky and I couldn't find the right answer for my problem. </p> <p>For example:</p> <pre><code> $.post('test.php','club=Fc Köln', function(response){ /*--- do something from database...
php javascript jquery
[2, 3, 5]
4,546,686
4,546,687
How to set margin with jquery?
<p>I am doing this:</p> <pre><code>var sId=id.toString(); var index=sId.substring(3); var mrg=index*221; var el=$(id); el.css('margin-left',mrg+'px'); and el.css('marginLeft',mrg+'px'); </code></pre> <p>el is the element i want to set the margin to (correctly retrieved) and mrg is the value of the new margin</p> <p>...
javascript jquery
[3, 5]