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,756,381 | 2,756,382 | jQuery fadeout woes | <p>Using the <code>keyup</code> on jQuery, is there a way to check a what textfield <strong>currently</strong> has in it's box?</p>
<p>I mean if the textbox currently <strong>does not</strong> have the word 'apples' then <strong>do</strong> a jQuery function, then if it <strong>does</strong> have the word apples... th... | javascript jquery | [3, 5] |
3,522,950 | 3,522,951 | How to load a javascript file and run a javascript method in java? | <p>I'm using <a href="https://github.com/chjj/marked" rel="nofollow">marked</a> on the client side to render markdown code to html.</p>
<p>But now I need to do the same thing on the server side which is Java. In order to get the exact same html code, I have to use marked other than other java markdown libraries.</p>
... | java javascript | [1, 3] |
4,337,657 | 4,337,658 | Android Keyboard does not work with webpage that contains Javascript | <p>I have created an application that links to another site, this site has a form (and some javascript in the background)</p>
<p>Due to whatever javascript the page has on any Android 2.2-2.3 device tapping on an Input field does not bring up the soft keyboard and when you force it up you are unable to input anything ... | javascript android | [3, 4] |
2,212,006 | 2,212,007 | jQuery trim and remove on parent break child events | <p>Note: I have a workaround to this problem, but I'd prefer to comma-separate the values as I describe below rather than separating them with spaces (which is what my workaround does).</p>
<p>I have an ASP.NET website that allows instructors to choose from a DropDownList of preset comments and apply these comments to... | javascript jquery | [3, 5] |
3,101,884 | 3,101,885 | Formatting text in dynamicaly created textboxes | <p>I have jquery that generates textareas with different id's. Now i need to make some buttons that will format text inside that textareas. For example: when user clicks in certain textarea, enter text, and click "bold" button, only text inside of that textarea will become bold (in other will be normal). I did manage t... | javascript jquery | [3, 5] |
3,636,709 | 3,636,710 | JQuery to load external pages in DIV | <p>I am using jquery to load external pages in index.html Menu links have function -
About</p>
<pre><code>function about() {jQuery('#container').load('about.html');}
</code></pre>
<p>I am using jquery function on each child page to get the data from xml. Apparently, wen I call the jquery just once on index.html and u... | javascript jquery | [3, 5] |
2,422,674 | 2,422,675 | Use Jquery to Insert PHP content | <p>I want to use jQuery to include some PHP at a certain point in the page. When jQuery finds the class <code>#site-index .sitetopic</code> I want to append the content from a PHP file called images.php.</p>
<p>I presume I can use <code>include or file_get_contents</code></p>
<p>Something like:</p>
<pre><code>OnLoad... | php jquery | [2, 5] |
2,571,041 | 2,571,042 | What's the benefit of inline function calls? | <p>I saw this code (explicly it's in jQuery, with modification)</p>
<pre><code>(function(window,undefined){
var jQuery=(function(){
var jQuery=something;
jQuery.xxx=xxx;
//...
return jQuery;
})();
//...
window.jQuery=window.$=jQuery;
})(window);
</code></pre>
<p>While I... | javascript jquery | [3, 5] |
3,529,737 | 3,529,738 | How good is Kivy for android? | <p>Very little is written about kivy, can you please tell me how good is kivy cross platform framework for Android? </p>
| android python | [4, 7] |
2,047,094 | 2,047,095 | place cursor at the end of text in asp.net textbox using tab key | <p>I have a asp.net textbox which contains some predefined text by default.
when i move from one textbox to another using tabkey the cursor should place at the end of text. is it possible using jQuery or javascript ?
thank you</p>
| c# asp.net | [0, 9] |
4,925,628 | 4,925,629 | How can I rewrite jQuery without guard clause? | <p>How can I rewrite this jQuery to be more terse and without the guard clause?</p>
<pre><code>var myTextBox = $('#myTextBox');
if (myTextBox )
myTextBox.val("");
</code></pre>
<p>The guard clause is there simply to ensure that the element exists on the page before trying to set it's value but the code seems blo... | javascript jquery | [3, 5] |
4,393,062 | 4,393,063 | how to bypass mozilla confirm alert box | <p>When i try to go to last visited page on my website in mozilla i get this message "To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier". Can anyone tell me how to bypass this. This is so frustrating. i have used php on my... | php javascript | [2, 3] |
5,605,511 | 5,605,512 | jQuery sends to e, which I can then use e.currentTarget to grab the element on the page. How do I then use it? | <p>a jQuery event passes me e.</p>
<p>I can then use: e.currentTarget which gives me the element </p>
<pre><code><input type="checkbox" class="list_completed_checkbox" id="list_item_completed_checkbox_81">
</code></pre>
<p>But if I try doing e.currentTarget.fadeOut(); I get an error:</p>
<pre><code>68Unca... | javascript jquery | [3, 5] |
2,781,275 | 2,781,276 | Picking an element within a DIV with JQuery | <p>I have an HTML page with a variety of divs on it. For instance, something like this:</p>
<pre><code><div id="myDiv1">
<input id="myInput1" type="text" />
<input id="myInput2" type="text" />
<input id="myButton" type="button" value="Button" />
</div>
<div id="myDiv2">
<... | javascript jquery | [3, 5] |
1,157,227 | 1,157,228 | Category in which Programing languages like Perl, JavaScript ,C++ and Java fits the best | <p>I am making my CV these days and due to that i very basic question came in my mind ,
i have good enough experience with Java and C++, while i am learning and working on Java script , PHP, Mysql, HTML and XML these days..
My question is how can i categorize these languages with best heading Like Object Oriented Progr... | java php | [1, 2] |
2,289,955 | 2,289,956 | What's proper jQuery plugin practice? | <p>Don't be afraid to use any technical jargon or low-level explanations for things, please. I'm savvy enough with computer architecture and low-level programming languages to comprehend any optimizations or memory management techniques, as well as complex structures (classes, member variables, etc.)</p>
<p>My primary... | javascript jquery | [3, 5] |
3,655,930 | 3,655,931 | use php command line | <p>Like the way we can use python in command line from its command line interpreter in order to test whether small code snippets are fine or not, how can I do the same with PHP (or can I)?</p>
<pre><code>ActivePython 2.7.2.5 (ActiveState Software Inc.) based on
Python 2.7.2 (default, Jun 24 2011, 12:22:14) [MSC v.1500... | php python | [2, 7] |
5,521,493 | 5,521,494 | $(this) is not working | <p>I am using <a href="http://www.eyecon.ro/colorpicker/#about">ColorPicker Plugin.</a> I initialized the plugin with following code :</p>
<pre><code>$(".colorpic").ColorPicker({
color: '#0000ff',
onShow: function (colpkr) {
$(colpkr).fadeIn(500);
return false;
},
onHide: function (colp... | javascript jquery | [3, 5] |
5,778,756 | 5,778,757 | How to change background on every 5s | <p>I have image <code>background.jpg</code> as the background. Every 10s, how to load a new background <code>background_n.jpg</code> which stays for 100ms and then back to <code>background.jpg</code> and so on?</p>
| javascript jquery | [3, 5] |
2,293,576 | 2,293,577 | Jquery function to compare date with current date | <p>i am entering date of birth in form by entering date in separate text box ,selecting year from drop down and entering year in text box. Now i want to check that entered date must not be greater that current date in jquery. Please help how? </p>
<pre><code>var CurrentMonth = date.getDate() + '/' + date.getMonth() + ... | javascript jquery | [3, 5] |
3,842,809 | 3,842,810 | JQuery popup issue in IE | <p>IE shows scrollbars when JQuery Dialog pops up. FF doesnt show scrollbars. Whats wrong with IE CSS?</p>
<pre><code><div id="disablebg" style="display: none;overflow:hidden;">
<uc1:CreateInqGeneral ID="CreateInqGeneral1" runat="server" />
</div>
function ShowDialog() {... | javascript jquery asp.net | [3, 5, 9] |
2,868,413 | 2,868,414 | Why isn't file_put_contents overwriting? | <p>I have a page with a WYSIWYG editor the user can use. After editing, they can press a button, and the javascript should POST the current page to a save.php file and refresh the page with new information. </p>
<p>There are two problems. The first is that initially the page doesn't load with the updated file. The use... | php javascript | [2, 3] |
5,148,174 | 5,148,175 | Disadvantages to using lots of if statements | <p>Apart from code readability, why is it bad to use lots of if statements?</p>
| c# java c++ | [0, 1, 6] |
2,058,286 | 2,058,287 | Remove dynamically added element | <p>I'm trying to remove a stylesheet that is dynamically being added to the end of <code><head></code> tag</p>
<p>For some reasons, i'm forced to use javascript to remove that stylesheet tag and add my own</p>
<p>here is the code i tried - </p>
<pre><code>jQuery(document).ready(function(){
jQuery('link[href^="... | javascript jquery | [3, 5] |
2,428,617 | 2,428,618 | Java script function to hold until save evenet execution is completed | <p>I have a javascript function. In thi function i am calling a button event like below.</p>
<pre><code>$("#btnSave").trigger("click");
</code></pre>
<p>My query is , Is there any way to keep the control here on this line until the saving is done?
I have some code written underneath this line and it is being overrid... | javascript jquery asp.net | [3, 5, 9] |
1,720,123 | 1,720,124 | jquery reset load file back to default | <p>I have a 3 layer <code>select</code> use jquery load <code>option</code> into <code>sub-select</code></p>
<pre><code>country->state->city
</code></pre>
<p>so if user select usa, the 2nd <code>select</code> will load usa's state. than user can select city after select the state.</p>
<p>ex. usa->CA->LA</p>
<... | javascript jquery | [3, 5] |
2,401,540 | 2,401,541 | Null Pointer Exception while using putExtra and getExtras | <p>I'm trying to use putExtra and getExtras to pass some information in an android game I'm writing (it's a score). When I'm passing it, I use this code in the one class to put in the information:</p>
<pre><code>Intent winScreen = new Intent(context, WinScreen.class);
winScreen.putExtra("score", "123");
</code></pre>
... | java android | [1, 4] |
3,934,868 | 3,934,869 | How does jquery know which function to run? | <p>I have:</p>
<pre><code><script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
<div class="demo">
<p>Date: <input id="datepicker" type="text"></p>
</div>
</code></pre>
<p>When I click in the datepicker box the datepicker appears, as expected... | javascript jquery | [3, 5] |
3,017,479 | 3,017,480 | Using javascript/jquery, validate URL that should have http or https and www | <p>Please advice how to validate a url that should have http or https and www in it</p>
<p>Thanks
Amit</p>
| javascript jquery | [3, 5] |
1,555,802 | 1,555,803 | How to set new Id of div using its old id dynamically | <p>I want to set new id to div using its old Id?</p>
<pre><code>$("#oldId").attr("id","newId");
</code></pre>
<p>Its not working.</p>
| javascript jquery | [3, 5] |
564,340 | 564,341 | How to return multiple values from java method to java script? | <p>I want to return two values from java method to java script..can you help me.??
would be grateful for help..</p>
| java javascript | [1, 3] |
1,375,909 | 1,375,910 | How to call aspx page including server side code in jquery load with out using jquery ajax method? | <p>I have a asp calendar control, it is included in update panel. When click on the date, SelectionChanged() event is not fired. Here is the code.</p>
<p>ASPX - </p>
<pre><code><asp:Calendar ID="Calendar" runat="server" BorderColor="green" NextPrevStyle-BackColor="green"
BorderStyle="Solid" Height="414px" NextPrev... | jquery asp.net | [5, 9] |
3,214,668 | 3,214,669 | How can alter the value of every single input element, by a fixed amount, without using a loop? | <p>I want select every inputbox of type text and transform by a fixed amount, when checkbox is checked, so far I have this. However I wondered if there was a way to do this without iterating over every element ...</p>
<pre><code> $("#myID").change(function(){
if($(this).is(':checked')){
//I can'... | javascript jquery | [3, 5] |
4,233,908 | 4,233,909 | DropDownList duplicate items | <p>Hi I am trying to rebind data to a <code>DataList</code> that get's it's data from an <code>SqlDataSource</code> but I keep getting duplicate items. Here is my code:</p>
<p>
</p>
<pre><code><asp:SqlDataSource ID="CategoryDataSource" runat="server"
ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFil... | c# asp.net | [0, 9] |
4,921,056 | 4,921,057 | Sum of numeric field checkboxes in gridview | <p>I am having difficulties in assigning double value (for example 124.00) of label text in asp.net. This label is in content page of .net master page.</p>
<p>But I am having the following two problems:</p>
<pre><code><script type="text/javascript">
var totalAmount = 0; //Defined global variable;
function a... | javascript jquery asp.net | [3, 5, 9] |
3,249,506 | 3,249,507 | jQuery access to 'this' object with events and triggers | <p>I have two classes orchestrated by a main class and I would like to know how to gain access to the correct 'this' object when events are fired among these classes. Here's what I have:</p>
<pre><code>// My main class that orchestrates the two worker classes
function MainClass()
{
this.workerOne = new ChildWorker... | javascript jquery | [3, 5] |
2,916,768 | 2,916,769 | jQuery: Move element position | <p>In each div, there are two buttons: higher and lower. When 'higher' is clicked, if this div is not at the top position, then it is moved higher than original. When 'lower' is clicked, then the element will be moved lower than original. </p>
<p>The question is: How to the elements can be moved up and down of with re... | javascript jquery | [3, 5] |
4,683,602 | 4,683,603 | php and jquery cookie mixture? | <p>hey guys,
i'm confused,
i have the following jquery script in my header:</p>
<pre><code>forceAnim: <?php echo ($iphone || is_singular()) ? 0 : 1; ?>
</code></pre>
<p>which meanst, that either on the iphone or on a singular-type page forceAnim is 0.
However i want to include an additional query if a jquery co... | php jquery | [2, 5] |
3,159,433 | 3,159,434 | jquery arguments.callee | <p>I'm trying to adjust a jquery script to my needs and encountered the following lines- </p>
<pre><code> arguments.callee.eabad1be5eed94cb0232f71c2e5ce5 = function() {
_c3();
_c4();
return;
};
</code></pre>
<p>what is it?</p>
| javascript jquery | [3, 5] |
231,516 | 231,517 | What is "passive data structure" in Android/Java? | <p>From the Android developer web link: <a href="http://developer.android.com/reference/android/content/Intent.html">http://developer.android.com/reference/android/content/Intent.html</a>, you can find that it says "It (Intent) is basically a passive data structure holding an abstract description of an action to be per... | java android | [1, 4] |
4,454,524 | 4,454,525 | How to pass value from php to javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/10437703/pass-php-variable-value-to-javascript">pass php variable value to javascript</a> </p>
</blockquote>
<p>I want to create a progress bar, the value of the progress will be coming from PHP.</p>
<pre><code... | php javascript | [2, 3] |
4,980,715 | 4,980,716 | How to use .html() with a timer in jQuery? | <p>I want to replace the contents of a div with the values found in an array. I want to keep each value within the div for 3 seconds each. Here's my code so far:</p>
<pre><code> var images = ['a.jpg', 'b.jpg', 'c.jpg'];
for (i = 0; i < images.length; i++) {
$('#slideShow').html("<img sr... | javascript jquery | [3, 5] |
5,816,299 | 5,816,300 | Jquery: Add class unless there is a child of certain class | <p>I want to do an addclass, but only if it doesn't have a child of a certain class.</p>
<pre><code>$selector.addClass('addthisclass');
</code></pre>
<p>So I want:</p>
<pre><code><div class="addthisclass"><span></span></div>
</code></pre>
<p>And nothing on here.</p>
<pre><code><div>&l... | javascript jquery | [3, 5] |
3,521,122 | 3,521,123 | JQUERY - .html() can also view php | <p>The following script sends data with ajax for login</p>
<p>I want to format the data returned by using, in essence, a session variable ($ _SESSION)</p>
<p>I can do it</p>
<pre><code> $("#login").click(function(){
username=$("#user_name").val();
password=$("#password").val();
$.ajax({
type: "POST",
url: ... | php javascript jquery | [2, 3, 5] |
2,661,048 | 2,661,049 | InputStream.bytesRemaining is less than should be | <p>I have bunch of images from dozen or so sources and I am downloading them in background thread. Most of images are downloaded without problems but there are 2 sources that are causing problems. All images from them fail to load.</p>
<p>I am using following code to download (and store) images:</p>
<pre><code>File f... | java android | [1, 4] |
3,780,114 | 3,780,115 | Is there a way to detect mouse press in jQuery? | <p>I want to add a class to a link when it is clicked, but I can't use:</p>
<pre><code>$('a.someLink').click(function() {
// code
});
</code></pre>
<p>since click seems to detect when a user clicks and lets go of the mouse clicker on an element. I need to add the class as soon as the user has clicked on the elemen... | javascript jquery | [3, 5] |
5,324,832 | 5,324,833 | Page won't display images | <p>My page won't display my images from a webservice. In my jquery function I just want to display 1 image so iterates over the collection and prints out the correct amount of records but i just can't display any images. I've been playing around with the path for the src but Im not getting any where and Im also using a... | jquery asp.net | [5, 9] |
3,996,252 | 3,996,253 | Set events for checkbox | <p>I want to set events for checkbox to display content.</p>
<blockquote>
<p>If check="Twitter" -> display content of twitter If check="Facebook"
-> display content of facebook</p>
<p>If check all (twitter + facebook) -> display content of twitter +
facebook</p>
<p>Required to choose twitter or faceboo... | javascript jquery | [3, 5] |
1,734,626 | 1,734,627 | Add random number to .css so it doesn't cache | <p>I'm trying to get the styles.css to not cache as the server is having issues with the css when it caches.</p>
<pre><code><script>
var numBAH = Math.floor(Math.random()*100);
</script>
<link href="styles.css+ numBAH +" rel="stylesheet" type="text/css" />
</code></pre>
| javascript jquery | [3, 5] |
5,542,329 | 5,542,330 | Can I use ASP.NET 2.0 to create a picture scroller? | <p>I am trying to create a picture scroller. In it, I would have a large picture and several thumbnails at the bottom. If a user haover or clicks the thumbnail, it then is displayed in te large box. My plan was to create this in ASP.NET but now I'm drawling a blank on how to implement this? I know ASP.NET and some Java... | asp.net javascript | [9, 3] |
1,617,353 | 1,617,354 | Writing an ArrayList back to an XML File | <p>When my activity starts I check for an existing data file and if there isn't one I call a web service that provides a blank one to begin with. The file is read into an ArrayList collection and the user makes changes as needed. Now I am in need of advice for the best approach. </p>
<p>Should I try to match the updat... | java android | [1, 4] |
1,308,142 | 1,308,143 | asp.net login control. when enter is clicked, submit login | <p>I have an asp.net login control. It works fine but you have to press the actual button login in order to login. I would like to do it if the user presses enter as well. how can this be done?</p>
| c# asp.net | [0, 9] |
2,936,920 | 2,936,921 | Transfer from web site asp.net to android and from android to web site aps.net? | <p>How can I transfer data from website asp.net to android application and mobile to web site.
EX: I want transfer mark each student from web site to device student in application.
please: give me Example or tutorial about that and what is technical use? </p>
| c# java android asp.net | [0, 1, 4, 9] |
3,394,848 | 3,394,849 | Use jQuery to not check hidden td:s | <p>I'm using the code below to make all checkboxes checked, but the problem is sometimes the checkboxes has a parent <code><td></code> with style="display:none;" css property and should not be checked. </p>
<p>How can I modify the code below to ignore the invisible checkboxes?</p>
<pre><code>// Check / uncheck ... | javascript jquery | [3, 5] |
5,796,082 | 5,796,083 | Remove text from Image attr('src'); | <p>Im using the src of an image, however im fetching the thumbnail image src and need to manipulate the src to get the fullsize image:</p>
<p>Jquery:</p>
<pre><code>$(this).attr('src');
</code></pre>
<p>That gets me: <code>http://local/images/_w/image_jpg.jpg</code></p>
<p>I need to replace: <code>_w/</code> to get... | javascript jquery | [3, 5] |
5,307,737 | 5,307,738 | Select first children in nested list using JavaScript | <p>I am trying to select only the first children under Sally. Using JavaScript, how would I select Car, Boat, & Bike and change the font color to red?</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
var j = jQuery.noConflict();
j('#content2 ul li ul').children().css('col... | javascript jquery | [3, 5] |
345,738 | 345,739 | SharedAssemblyInfo.cs | <p>I am using a SharedAssemblyInfo file which seems to be a 'standard' technique:
<a href="http://blogs.msdn.com/jjameson/archive/2009/04/03/shared-assembly-info-in-visual-studio-projects.aspx" rel="nofollow">http://blogs.msdn.com/jjameson/archive/2009/04/03/shared-assembly-info-in-visual-studio-projects.aspx</a></p>
... | c# asp.net | [0, 9] |
5,914,645 | 5,914,646 | $.getJSON to make its result global | <p>I'm using the jQuery function <code>$.getJSON</code> to get some data from the server side and here is the code: </p>
<pre><code>function (){
$.getJSON("someURI",function(result){
//this alert works fine
alert(result.msg)
});
// this prints the data as undefined
alert(result.msg);
}
</code></pre... | javascript jquery | [3, 5] |
4,926,801 | 4,926,802 | Common Graphs library for Android and iphone | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4995114/is-there-any-chart-library-working-both-on-iphone-and-android-applications">Is there any chart library working both on iphone and android applications?</a> </p>
</blockquote>
<p>I need to find a common l... | android iphone | [4, 8] |
4,496,265 | 4,496,266 | How do I fix ASP.NET Error CS0103 | <p>What causes the ASP.NET Error CS0103? I get that error saying that <code>Label01</code> can not be found in the current context` when I try to compile the project. </p>
<p>What is causing it?</p>
| c# asp.net | [0, 9] |
4,490,900 | 4,490,901 | Destroy Static Variables in C#/ASP.NET | <p>I am forced to use static variables because of the asp.net execution path. I have to have the same variables on the master page as well as the page being called. Static variables make it very easy to carry over variables because they remain static. Unfortunately these variables hang in the ether of memory because th... | c# asp.net | [0, 9] |
5,959,293 | 5,959,294 | hiddenview inside datalist | <p>i have a datalist and inside it i bind a value in a label like this</p>
<pre><code> <asp:Label ID="hf1" runat="server" Visible="false"><%# Eval("DeptId")%></asp:Label>
</code></pre>
<p>how can i get the value of label in datalist EditCommand?</p>
| c# asp.net | [0, 9] |
4,866,832 | 4,866,833 | how to put a Location object in Parcelable | <p>I have a Location object in one of my other Venue object that implements Parcelable. How do I serialize this correctly in my writeToParcel method implementation? So here's some code:</p>
<pre><code>public class Venue implements Parcelable{
public String id;
public String name;
public String address;
... | java android | [1, 4] |
2,726,419 | 2,726,420 | oninput/onkeyup/onkeydow/onpropertychange doesn't work in IE8 | <p>As you might have noticed from the title I'm trying to make an event work properly and IE is giving me a hard time. I have tried all possible combinations, none of them seems to work.</p>
<p>I'm trying to mimic the Google suggestions list. A visitor should be able to come down in the list using the arrow keys, whic... | javascript jquery | [3, 5] |
1,322,446 | 1,322,447 | How to get different selected values in javascript? | <p>Hello everyone how can I get two values from different select boxes? I get first value in my select box but I can't get the second value from another select box.Here is my javascript code:</p>
<pre><code> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
... | javascript jquery | [3, 5] |
5,538,124 | 5,538,125 | Disable a function | <p>I have a tooltip that I want to disable. It is from <a href="http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery" rel="nofollow">this site</a> and is basically set and called as follows:</p>
<pre><code>this.tooltip = function(){....}
$(document).ready(function(){
tooltip();
});
</code></pr... | javascript jquery | [3, 5] |
1,353,808 | 1,353,809 | How to test if users has made any changes to a form if they haven't saved it | <p>Basically the same functionality as stackoverflow when posting a question, if you start writing a post then try to reload the page. You get a javascript alert box warning message. </p>
<p>I understand how to check if the form has been changed, although how do I do the next step. </p>
<p>I.E: How to I check this wh... | javascript jquery | [3, 5] |
5,682,012 | 5,682,013 | C++ setw() for Java | <p>Is there a function in Java like <code>setw(int)</code> in C++?<br>
It is needed in matrix output.</p>
| java c++ | [1, 6] |
4,642,907 | 4,642,908 | How to redirect by using jquery? | <p>I have on log in page if user enters both user name and password same then i have to forward user to next page how is it possible. </p>
<p>how do i do this?</p>
| javascript jquery | [3, 5] |
3,549,371 | 3,549,372 | Resize photo taken by camera to fit screen | <p>I'm attempting to make an app that displays the photo after its taken.
The issue is I can't seem to scale the bitmap with the same aspect ratio to the screen.</p>
<p>I've tried imageView.setScaleType(ScaleType.FIT_XY); but it doesn't keep the ratio.
Nor does any of the Android:Scale.</p>
<p>What can I do?</p>
| java android | [1, 4] |
4,030,850 | 4,030,851 | 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] |
2,177,985 | 2,177,986 | Remove divs after 20 using jQuery | <p>Divs of class=message are generated using a post which pulls data and puts it in the page. Now, I want to remove the lower divs after it reaches 20</p>
<pre><code><div class="message">test</div>
<div class="message">test</div>
<div class="message">test</div>
.
.
.
<div class="... | javascript jquery | [3, 5] |
91,899 | 91,900 | How to open a pop-up window | <p>I am working on a donations website. The particular web page works by allowing the user to enter a monetary value in a textbox and clicking on the button 'Donate Now' to perform the transaction.</p>
<p>What I would like to do is to bring up a pop-up window with an error message if the user enters an invalid value ... | c# asp.net | [0, 9] |
435,601 | 435,602 | How do I assign sequential values over a jQuery collection? | <p>I feel like a bonehead: I want to assign <code>index=i</code> to each LI I have selected, with i incrementing. It appears to assign them all at once though, and they all get <code>index=1</code>. Thoughts?</p>
<pre><code>$("#window ul li").each(function(){
var i = 1;
$(this).attr("index", i);
i++;
});
<... | javascript jquery | [3, 5] |
288,840 | 288,841 | randomize display order for controls in asp.net | <p>I would like to know how I can randomize the order in which some controls are displayed.
Basically, I have 5 hyperlinks, and I want on each load the order in which they are displayed to be randomized.
Which way I can accomplish that?
Thanks, Laziale</p>
| c# asp.net | [0, 9] |
5,411,025 | 5,411,026 | Email messages going to spam folder | <p>I have created a community portal, in which user creates his/her account. After successfull registration a confirmation mail is send on registered email address. </p>
<p>I am using the following code to send the mail -</p>
<pre><code>private void SendMail(string recvr, string recvrName, string verCode, int NewUser... | c# asp.net | [0, 9] |
1,223,217 | 1,223,218 | on selecting on li previous should not be selected? | <pre><code><li id="left-nav-li_1" value="foo">
<a href="javascript:void(0)"><p class="text-email" id="p_1">foo</p>
<input type="text" id="edit-emailer_foo" class="add-email hide" value="foo" /></a>
</li>
</code></pre>
<p>There is number of similar li where ... | javascript jquery | [3, 5] |
1,481,405 | 1,481,406 | pass php array to javascript function | <p>i am trying to get php array variable into javascript variable.</p>
<p>this is my code:</p>
<p>
</p>
<pre><code><script type="text/javascript">
function drawChart(row,day,week,month,date)
{
// some code...
}
</script>
</head>
<body>
<?php
for($counter =... | php javascript | [2, 3] |
602,241 | 602,242 | Using jQuery, hide a textbox if a radio button is selected | <p>I have 2 radio buttons, what I want is if a user selects the top radio button then hide a textbox.</p>
<p>Not sure how to bind an event to a radio button.</p>
| javascript jquery | [3, 5] |
2,456,201 | 2,456,202 | Check different date formats | <p>I have function:</p>
<pre><code>sample(date){
//operations, for example add one week (7 days)
return date;
}
var one = new Date('2012-07-16');
var two = new Date('07/16/2012');
var new = sample(one); // or sample(two)
var day = new.getDate();
var month = new.getMonth();
var year = new.gerYear();
alert(day... | javascript jquery | [3, 5] |
1,136,361 | 1,136,362 | Cookie missing when called in a class | <p>Good day..! I have some issue getting the value of my cookie when called in a class.. </p>
<p>here's my code in my default.aspx.. I can retrieve the value on the when inside the aspx page</p>
<pre><code> HttpCookie myCookie = new HttpCookie("SAMPLE");
myCookie["value"] = HttpUtility.UrlEncode(value);
myCooki... | c# asp.net | [0, 9] |
3,550,288 | 3,550,289 | TypeError is Null? | <p>This is an error in Firebug I keep seeing.</p>
<pre><code>TypeError: $("#gallery-nav-button") is null
[Break On This Error]
$('#gallery-nav-button').addClass('animated fadeOutRightBig');
</code></pre>
<p>Here is my code: </p>
<p><em><strong>JS</em></strong></p>
<pre><code>$(function() {
$("#close-gallery-na... | javascript jquery | [3, 5] |
3,370,485 | 3,370,486 | jquery, if hovering over an element injects something into the DOM, can I still reference it? | <p>if hovering over an element injects something into the DOM, can I still reference it?</p>
<p>Or do I have to use the live plugin?</p>
<p>i' using jqeury 1.3.2</p>
<p>i.e. can I do <code>$("#someItem").attr("src", "htt...")</code>; on it?</p>
<p>I am trying to do it, but I think <strong>its not working b/c its a ... | javascript jquery | [3, 5] |
4,346,810 | 4,346,811 | Why does jQuery not register my <a> click? | <p>In the example below</p>
<pre><code><html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<a href="#">test</a>
<button id="btn-add">Add</button>
<div id="placehold... | javascript jquery | [3, 5] |
1,547,548 | 1,547,549 | bridge language between PHP and Objective-C | <p>i want to show php page in iphone application. I have also used webview to display page but not able to know how to apply slide effect on page please help me...</p>
<p>i am working with one application in which i m working with php listing page and then i want to show detail page but how to show slide transition e... | php iphone | [2, 8] |
3,218,463 | 3,218,464 | Adding "pause" to the Image Slider | <p>Best way to add pause button in this jQuery image slider? I want to add Pause on clicking the orange square shapes button which is working as a timer in my image slider.</p>
<p>Here is the link with what I tried. </p>
<p><a href="http://jsfiddle.net/QNZDX/4/" rel="nofollow">http://jsfiddle.net/QNZDX/4/</a> </p>
<... | javascript jquery | [3, 5] |
3,082,619 | 3,082,620 | How to maintain ajax results on Back | <p>I have a page in which I have 3 tabs. a 3-step wizard.
on the last step - I have an AJAX call to fetch data.
once clicked on each of the items in this data, I am redirecting the user to another page.</p>
<p>I want to maintain the wizard status (including ajax results) when the user presses BACK on the browser.</p>
... | javascript jquery asp.net | [3, 5, 9] |
4,842,111 | 4,842,112 | How do I find a table of certain class with jquery selectors | <p>How do I select just a table with class d with jquery selectors. For some reason this code won't work properly...</p>
<pre><code>var dTableTags = $(".d table");
</code></pre>
<p>example table would be...</p>
<pre><code><table id="thetable" class="d">
<thead>
<tr><th>Column 1 header&... | javascript jquery | [3, 5] |
3,736,674 | 3,736,675 | Application crashes after adding a RadioGroup in Mark L. Murphy's "A Fancier Form" tutorial | <p>I'm going through the "A Fancier Form" chapter in Mark Murphy's "Android Tutorials" book (1st edition) and I can't get past step#2: Add a RadioGroup. The application compiles and installs on emulator and phone with no errors but when I try to run it I get the:</p>
<p>Sorry!
The application LunchList
(process apt.tu... | java android | [1, 4] |
4,567,432 | 4,567,433 | How can I display a string as a combination of password chars and original form in asp.net Textbox control ? | <p>I have a Textbox control in which user can add/edit/delete values through this control.It only allows 10 digit numeric value. The first 5 digits should be shown as password chars and last 5 digit should be shown as its original form. (Eg: The value 1234567890 should be shown as <em>*</em>**67890).</p>
<p>How can I ... | c# asp.net | [0, 9] |
4,357,785 | 4,357,786 | how to use jquery auto-complete to load from mysql database | <p>What I want to do is to be able to load data from the database which will show up as an auto-complete text below the textbox.
I'm using the ajax function in jquery to load data from the database. My problem now is how to put that data in the auto-suggest box.</p>
<pre><code><html>
<head>
<scrip... | php jquery | [2, 5] |
1,432,471 | 1,432,472 | js file is loading from cached temporary internet files instead of redownloading from server | <p>I have used a external js file for a upload operation in my page.. once the file get loaded in temporary folder, it gets loaded from there even if new changes are made the old version that exist in temp folder gets loaded... i have written</p>
<p><code>Response.Cache.SetCacheability(HttpCacheability.NoCache);</code... | asp.net jquery | [9, 5] |
3,357,443 | 3,357,444 | duplicate html element | <p>anyone knows of any jquery plugin that handles duplication of some random html elements? I'm looking for a way to dynamically add identical rows to a form.
I know its not hard to make, but i don't really want to reinvent the wheel here.</p>
| javascript jquery | [3, 5] |
2,618,786 | 2,618,787 | How do I put a time delay into my script? | <p>I want a 3 second delay in my script</p>
<p>However how can I do this, I don't know!</p>
<p>My script: </p>
<pre><code><script type="text/javascript">
var baslik = document.title;
$(document).ready(function () {
document.title = '(Welcome)' + baslik; // After 3 seconds
document.ti... | javascript jquery | [3, 5] |
91,781 | 91,782 | how to create a cross-browser compatible "spotlight" effect? | <p>i found a spotlight plugin for Jquery, but it is not functional in IE.</p>
<p>so is there a way to make the rest of the background fade to a dark color while selected or element of focus remains the same ?</p>
| javascript jquery | [3, 5] |
695,824 | 695,825 | What's the equivalent of passthru and system for python? | <p>Actually I'm rookie in python , as you know we have 2 methods in PHP <code>passthru</code> and <code>system</code>
What's the equivalent of passthru and system for python?</p>
| php python | [2, 7] |
1,062,704 | 1,062,705 | Android onTouchListener on LinearLayout | <p>I have a linear layout with few child components in it. I have onTouchListener on the linearlayout. I want onTouch event to trigger when I touch child components of the linear layout too.</p>
| java android | [1, 4] |
4,472,554 | 4,472,555 | How can I restrict page access by IP address range? | <p>I have a password change page in my website to which I want to restrict access to an IP range, such as 10.0.0.0 - 10.255.255.255 (10/8 prefix).</p>
<p>When a user enters the page, it will check if the user is in this IP range or not. If the user is in the range, it shows a welcome message; if not, then it will redi... | c# asp.net | [0, 9] |
979,802 | 979,803 | Easiest way to persist data on a PHP page | <p>I a web application that I am developing (being developed in PHP) when a user posts any request for service the user has to fill in a very length form.</p>
<p>Once user fills in the form and submits it another page (confirmation page) is loaded in which all values filled in by user are show. I must point out that a... | php javascript | [2, 3] |
3,146,664 | 3,146,665 | Rendering different event types in c# | <p>Ok so i have 3 different classes (types of rl events)
Each event has different properties</p>
<p>Example is Swimming class that has temperature, PH value, swimming length and so on
next event is Cycling class that has Biketype, tyre width and so on</p>
<p>Now the events all have a date, and i want to render them s... | c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.