Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
3,787,998 | 3,787,999 | How to Iterate through TreeView | <p>I have TreeView Web Control like</p>
<pre><code>1
1.1
2
2.1
2.1.1
2.1.1.1
2.1.1.2
3
3.1
3.1.1
</code></pre>
<p>If i have checked [CheckBox] 2.1.1.2 node , how can i get the result like 2,2.1,2.1.1 and 2.1.1.2
<br/>
I have tried to use this <a href="http://msdn.microsoft.com/en-... | c# asp.net | [0, 9] |
4,889,598 | 4,889,599 | how to call a code behind button_click in jquery | <p>I opened a Popup using Jquery dialog it contains all asp.net controls [ submit,textbox]</p>
<p>When i click submit on popup no action is performing.....how can i call that action with jQuery </p>
<p>i am beginner..can u explain in detail...if possible with sample code.......</p>
| jquery asp.net | [5, 9] |
2,826,834 | 2,826,835 | What might $.event.handle.apply mean in jQuery code? | <p>What might $.event.handle.apply mean in jQuery code?</p>
| javascript jquery | [3, 5] |
1,928,870 | 1,928,871 | How to display the current page even after clicking browsers back button | <p>Is it possible to keep displaying the same page even after the user click's the browsers back button?</p>
<p>Its like a multiple-step form which on submit makes a redirect to the resulting page and once the form has been submitted I don't want the user to be able to navigate back to any of the previous pages using ... | javascript jquery | [3, 5] |
3,097,651 | 3,097,652 | How Do I return a javascript variable from a function that contains a $.get() request | <p>I've tried Googling this but could not reslove it. It may seem like a really simple issue to others but I'm baffled by it. I have the below code in which I get undefined for the first alert but I still get the correct values in the 2nd alert. BUT if I comment out the first alert (just the line with alert) then the 2... | javascript jquery | [3, 5] |
2,900,893 | 2,900,894 | Is this a valid test to check if a URL refers to an Image in JS/jQuery | <pre><code>$(function() {
$("<img>", {
src: "http://goo.gl/GWtGo",
error: function() { alert("error!"); },
load: function() { alert("ok"); }
});
});
</code></pre>
<p>Got inspiration from <a href="http://stackoverflow.com/questions/3744266/how-can-i-test-if-a-url-is-a-valid-image-i... | javascript jquery | [3, 5] |
283,329 | 283,330 | Adding several input boxes based by a select box value | <p>I have a select box:</p>
<pre><code><select id="steps_number">
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="... | javascript jquery | [3, 5] |
1,686,579 | 1,686,580 | javascript attributes store this | <p>Is something like the following possible?</p>
<pre><code>var obj = {
data:'some data',
init:function(){
console.log(this.data);
console.log(obj.data);
}
}
obj.init();
</code></pre>
<p>Here, <code>console.log(this.data)</code> and <code>console.log(obj.data)</code> both return the same v... | javascript jquery | [3, 5] |
1,185,698 | 1,185,699 | how to redirect user from login page to next page base on their Role in Asp.net C# | <p>I am using built-in asp.net Role and membership provider in my website.</p>
<p>when user login to my system they are redirected to hompage.</p>
<p>how should i code it. that when he click on login button page check its role and then decide where to redirect.
Suppose user login with name John and "john" is "Admin" ... | c# asp.net | [0, 9] |
4,171,363 | 4,171,364 | jQuery, script doesn't recognize newly appended elements | <p>I have a short script that styles form radio buttons. Check working example <a href="http://jsfiddle.net/YJRsk/" rel="nofollow">http://jsfiddle.net/YJRsk/</a>. </p>
<p>This works great when radio buttons already exist in DOM. So when page load, they get styled properly. </p>
<p>The problem is when i add radio butt... | javascript jquery | [3, 5] |
2,782,863 | 2,782,864 | jQuery AJAX Calls - Is it possible to cancel unwanted calls? | <p>I just wanted to ask. I have text input to allow users to type their city.</p>
<p>jQuery has a <code>keyup</code> event linked to this input and sent an AJAX call after each character change.</p>
<p>I find however many unrequired AJAX calls are sent as the person is typing and depending on the number of results th... | php jquery | [2, 5] |
4,439,835 | 4,439,836 | jquery control a dropdown from a checkbox | <p>i have </p>
<pre><code><input type="checkbox" id="checkbox_1" name="artist" value="Yes">
<select id="dropdown">
<option value="All" selected="selected">- Any -</option>
<option value="0">No</option>
<option value="1">Yes</option>
</select>
</code></pre>
<p>how... | javascript jquery | [3, 5] |
1,717,474 | 1,717,475 | Replay the hint sound | <p>In my drag and drop game there is a grid that is populated with words that are hidden from the user. The aim of the game is to spell these words with the aid of a sound and a picture.</p>
<p>When the user is spelling the word they should be able to replay the sound to help them. I had it working before but it has s... | javascript jquery | [3, 5] |
1,999,177 | 1,999,178 | Make a container div disabled | <p>I have a HUGE dynamic form with lots of fields. If one of the parameters is missing I should make all fields disabled (read not clickable). I was wondering if I can instead make the container div disabled using jQuery/JavaScript?</p>
| javascript jquery | [3, 5] |
5,389,457 | 5,389,458 | Sending information to API using Android | <p>I am trying to contact an API and get the response. As part of my debugging I want to insure that the response is being recorded, it should be an xml response.</p>
<p>Here's what I have:</p>
<p>public class http extends Activity {</p>
<pre><code>public void httpMethod(){
HttpClient httpclient = new DefaultHtt... | java android | [1, 4] |
3,390,461 | 3,390,462 | Boolean object in javascript returns true for "false" parameter | <p>I have a little problem.</p>
<p>I have situations where my ajax calss returns a string.</p>
<p>sometimes that string is "false"
i want to always convert that string value into a boolean
i tried : new Boolean(thatValue)</p>
<p>but it returns true even for "false" as a paremter</p>
<p>is there anyway to solve this... | javascript jquery | [3, 5] |
2,142,843 | 2,142,844 | perform a function when form values change | <p>Im trying to call a function when the value of any form value changes.</p>
<p>This is my code:</p>
<pre><code>function reload()
{
tmp = findSWF("chart");
x = tmp.reload("chart.php", false);
}
function findSWF(movieName) {
if (navigator.appName.indexOf("Microsoft")!= -1) {
return window["ie_" + movieNam... | javascript jquery | [3, 5] |
1,388,501 | 1,388,502 | Javascript time selection like google analytics | <p>I am looking for a time range selector like the draggable google analytics time line section element. </p>
<p>Google provides the time line selection via a three block. This can be achieved with Jquery UI and many others. But the draggable timeline selection seems to be more difficult to achieve.</p>
<p>[ Shame ab... | javascript jquery | [3, 5] |
122,581 | 122,582 | How do i keep divs in particular order? | <p>I have this fiddle here: <a href="http://jsfiddle.net/maniator/MUa7P/" rel="nofollow">http://jsfiddle.net/maniator/MUa7P/</a></p>
<p>In this example a user picks a certain number of clients for an account and is able to remove the clients and add clients.</p>
<p>Each account can have at a max 3 clients.</p>
<p>Ho... | javascript jquery | [3, 5] |
5,385,386 | 5,385,387 | cms to implement survey module | <p>I haven't worked with content management systems .. As per my project requirements There are questionnaires added at back end and user takes up the survey and answers the questionnaire.. The questions added at back end needs to be versioned.. can anyone suggest a cms which suits the requirement preferably in java or... | java php | [1, 2] |
4,222,387 | 4,222,388 | targetting an update panels post back | <p>I was wondering if there was a way to determine when a post-back occured in an update panel. Looking for something similar to (IsPostBack).</p>
<p>I'm using ASP.NET, with C#.</p>
| c# asp.net | [0, 9] |
1,619,278 | 1,619,279 | jQuery ordered actions | <p>Does anybody know how to make a jQery function that has more than one action and every action will be fired only after its precedent is complete like:</p>
<pre><code>$('#myelement').addClass('loading').load(loadUrl).removeClass('loading');
</code></pre>
<p>here the first action which is adding the class name is ok... | javascript jquery | [3, 5] |
4,185,758 | 4,185,759 | Use jQuery to insert a script which includes a function? | <p>I am trying to append a line of JavaScript to a div dynamically, but it seems that when I run the .append() call, the browser sees a function() call within that line as an actual function instead of an actual string:</p>
<pre><code>var startDate = 0
...
function insertCalendar(){
var divName = "div[name=StartDa... | javascript jquery | [3, 5] |
1,150,133 | 1,150,134 | Write one app for sdk versions: 4-15 | <p>I'am writing simple app. I want to run this app on many android devices (from 1.6 do newest).
I have minSdk version in manifest: 4 and target 15. </p>
<p>Everything is ok until I change target version to 1.6. Then I have errors for example on this line </p>
<pre><code><style name="AppTheme" parent="android:Them... | java android | [1, 4] |
4,227,533 | 4,227,534 | jquery onmouseover function | <p>i need to rotate an image onmouseover function using Jquery</p>
<p><strong>file.js</strong></p>
<pre><code>$("#logo").rotate({
bind:
{
mouseover: function ()
{$(this).rotate({ animateTo: 180 })},
mouseout: function ()
{$(this).rotate({ animateT... | javascript jquery | [3, 5] |
3,283,130 | 3,283,131 | JQuery isn't recognising a #id selector, seems to be dependent on the URL | <p>I'm writing a Ruby on Rails app. The following jQuery code is included in the head tag of the index.html.erb file, which is the template for all pages on the site.</p>
<pre><code><script>
$(document).ready(function() {
$("#select_mailshot").click(function () {
alert('mailshot');
document.loc... | javascript jquery | [3, 5] |
2,851,625 | 2,851,626 | Identify the perfect square in the string | <p>A perfect square is taken in binary and some bits are replaced with "?" for example 1??, the number would be 4.(or 1????000???0000)</p>
<p>I need to find that perfect square.(there will be only such possible number)</p>
<p>number of '?'s in the string be n</p>
<p>To find that number what I am doing is iterating t... | c++ python | [6, 7] |
1,872,148 | 1,872,149 | populate drop down list with month/year | <p>I have a date and I need to populate a drop-down with the months/years between that date and today. For instance, if that date is 10/14/2010 then the drop-down should contain October 2010, November 2010, December 2010, January 2011.</p>
<p>The way I'm thinking of doing this is to pass that date to a function, loop ... | c# asp.net | [0, 9] |
4,251,857 | 4,251,858 | javascript stack data structure library to implement undo/redo functionality | <p>I need to implement an Undo/Redo system on a rather complex web application (which is using jQuery). Whilst I can quite happily implement a custom solution myself using an array of objects holding state and push/pop calls etc., is there any particularly good library of a data structures available for javascript whic... | javascript jquery | [3, 5] |
5,425,624 | 5,425,625 | retrieving comments saved to a .php | <p>I am creating a website as a school project and our professor has asked for us to implement a java script comment box. He wants us to be able to display those posts/comments on another page. I am using the following for my comment box:</p>
<pre><code> <textarea id="mytextbox"></textarea>
<script la... | php javascript | [2, 3] |
711,965 | 711,966 | How to show confirm when browser window got closed or navigated to another website in JS | <p>As the title says ....</p>
<p>Sorry that some ppl got question wrong...</p>
<p>I want to show confirmation on these cases only:</p>
<p>1.Browser window is closed.</p>
<p>2.There is a redirect <strong>to different domain</strong></p>
<p>thanks</p>
| javascript jquery | [3, 5] |
2,263,199 | 2,263,200 | How can i add a vibrate event to onLongClick() method? | <p>How can i add a vibrate event to onLongClick() method? anybody know ,please help me.thx!</p>
| java android | [1, 4] |
2,148,819 | 2,148,820 | How to Copy file in Server page with out reading | <p>Friends.,
I get some file from android device i want to save that file to my web server without reading that file(it may be mp3,mp4,mpeg format) I use Struts2(Java) in my web server how can i do that...?</p>
| java android | [1, 4] |
3,678,196 | 3,678,197 | Changing font color runtime Android | <p>I am using EditText for getting userInput but the problem i am
facing is that i want to change the font color at runtime but in the
same Edittext as i am able to change the font type but as i change the
font color it changes for the whole editext but i need to change the
color for specfic text only . </p>
<p>An... | java android | [1, 4] |
2,866,753 | 2,866,754 | Submitting the Name of a Particular Button Through a Form | <p>I have a form that contains several buttons. I want to have the form submit whichever button was clicked (their name attributes will all differ) but since they are all of type submit, I'm not sure how to check which one was clicked. Is there a way to do this? Each button will look like this example:</p>
<pre><code>... | php javascript | [2, 3] |
4,863,930 | 4,863,931 | Format number with locale specific settings | <p>I want that JS or jQuery formats my number by locale.</p>
<p>So for example number 999666555444333.22</p>
<p>might be as</p>
<pre><code>999'666'555'444'333.22
</code></pre>
<p>or </p>
<pre><code>999.666.555.444.333,22
</code></pre>
| javascript jquery | [3, 5] |
3,933,445 | 3,933,446 | Serialization, is it bad to have many methods in a serialized object | <p>Can someone tell me how serialization work for an object. I tried googling but for so reason I always get lost in details. I just need to know when you serialize an object whose class has private/public variables, static variables and private/public methods. Does everything get serialized or just the variables? Like... | java android | [1, 4] |
3,299,902 | 3,299,903 | DropDownList not registered with any event handler is triggering a different dropdownlist's selectedindexchanged handler | <p>I'm not sure why this is occurring but I have a breakpoint in the eventhandler which is only registered to dropdownlist A and every time dropdowlist B changes its selected index and causes a postback, the breakpoint is activated.</p>
<p>Dropdownlist B is should not have any event handlers registered to it.</p>
<p>... | c# asp.net | [0, 9] |
4,291,678 | 4,291,679 | hide tr that has th and colspan | <p>I'm trying to alter the background of "table tr" if it has a "colpan" and if it contains "th" but this below wont work.</p>
<pre><code>$("#mytable tr").contains('th').attr('colspan').hide();
</code></pre>
<p>Can you help?'</p>
| javascript jquery | [3, 5] |
5,965,537 | 5,965,538 | bold html string from code behind asp.net | <p>i want the message to be in bold when it is presented in the alert box . I am using ClientScript.RegisterStartupScript to for creating javascript alert box</p>
<p>I tried using b tag in the string , but its not working , asp.net does not translate it into its html equivalent</p>
| c# asp.net | [0, 9] |
5,297,795 | 5,297,796 | Trying to pass dynamic values to a parameter in an SQL Data Source control | <p>I have some values that are being passed to a ASP.NET page using C# but I need those values to be set as parameters for an SQL datasource. I am just getting started with C# and ASP.NET so any help will be appreciated.</p>
<p>The data source code I have is as follows:</p>
<pre><code><asp:SqlDataSource ID="SqlDat... | c# asp.net | [0, 9] |
1,532,355 | 1,532,356 | Which is faster, int or long if targeting 32 and 64 bit platforms | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6903235/will-using-longs-instead-of-ints-benefit-in-64bit-java">Will using longs instead of ints benefit in 64bit java</a> </p>
</blockquote>
<p>I have an algorithm that needs to be optimised as much as possible... | java android | [1, 4] |
621,318 | 621,319 | highlighting text according to output of a text to speech. in Asp.net c# | <p>i am trying to highlight words read by the text to speech but its not working. until now i made:</p>
<pre><code> string startSpan = "<span style=" + "background-color:Yellow" + ">";
string endSpan = "</span>";
//button onclick
protected void speak_Hope(object sender, EventArgs e)
{
... | c# asp.net | [0, 9] |
5,092,104 | 5,092,105 | Create working form inside div using JUST code | <p>I have a div:</p>
<pre><code><div id="test">Text to be removed</div>
</code></pre>
<p>How can I add this complete form into the div, using JUST code (starting from nothing, meaning the form element does not exist anywhere in the page):</p>
<pre><code><form name="input" action="html_form_action.asp"... | javascript jquery | [3, 5] |
3,059,447 | 3,059,448 | Detect font size in pixels using jQuery | <p>How can I detect font size using jQuery? If I am using <code>em</code> and i need to detect font size in pixels</p>
<pre><code><h1 style="font-size: 5em">Size of font in pixels?</h1>
</code></pre>
| javascript jquery | [3, 5] |
5,061,750 | 5,061,751 | Reduce lines of code | <p>I'm not a JavaScript guru (yet). I am trying to figure out a way to cut down the number of lines below...are there any shortcuts for lets say the if statements?</p>
<pre><code>function showDialog(divID)
{
var dialogDiv = $("#" + divID);
var height = 500;
var width = 400;
var resizable = false;
... | javascript jquery | [3, 5] |
5,162,850 | 5,162,851 | See if field exists in class | <p>I have a class with various variables</p>
<pre><code>public class myClass{
public int id;
public String category;
public String description;
public String start;
public String end;
}
</code></pre>
<p>Is there a way to check, either by creating an internal function or checking from the calling ... | java android | [1, 4] |
1,405,834 | 1,405,835 | Android: Prompt user to save changes when Back button is pressed | <p>I have an activity that contains several user editable items (an EditText field, RatingBar, etc). I'd like to prompt the user if the back/home button is pressed and changes have been made that have not yet been saved. After reading through the android documentation, it seems like this piece of code should go in th... | java android | [1, 4] |
87,228 | 87,229 | Add a table in codebehind, getElementById it using javascript? asp.net | <p>If you create a table and add it, the ClientID property in the code behind doesn't reflect the ID in the actual file, so document.getElementById doesn't work.</p>
<p>How can I add a control, and be able to access it using Javascript, with only its ID (such as 'table1')?</p>
| asp.net javascript | [9, 3] |
4,398,304 | 4,398,305 | Java Mobile Application | <p>Can any one tell me the book which can help me developing the application for Android ( java based), Please tell me about the IDE as well so that I can read and try myself.</p>
| java android | [1, 4] |
748,191 | 748,192 | jQuery's serialize() function only returns the last selected checkbox value and not all of them! | <pre><code>$('form').serialize();
<label>Check what applies:</label>
Laptop Owner: <input type="checkbox" name="applicable" value="laptop owner" /> <br />
Samsung Tv Lover: <input type="checkbox" name="applicable" value="Samsumg tv lover" /> <br />
Animae Watcher: <input type="ch... | php jquery | [2, 5] |
4,438,094 | 4,438,095 | Declare Connection Variable | <p>I want to know which is safe & better way to use Connection variable of following.</p>
<p>First : Connection as class member variable of class</p>
<pre><code>class MyClass
{
Connection conn;
public MyClass(Connection conn) {
this.conn = conn;
}
public void myMethod(){
//Do som... | c# java php c++ | [0, 1, 2, 6] |
2,000,988 | 2,000,989 | How can I simplify this Javascript function? | <p>I'm trying to scale this but I'm a little green when it comes to creating JS functions. I managed to get this far on my own, but alas...</p>
<p>When a span gets a value of whatever (in this case, a city name), I want the select box to automatically match it. And I want to scale this by getting rid of all these else... | javascript jquery | [3, 5] |
3,046,619 | 3,046,620 | Running my activity on wake like default pattern lock | <p>I have a custom lock kind of like the default pattern lock I want to have launch like the default pattern lock, after I slide to unlock in widgetlocker. It also has to block the home and back keys. What's the easiest way to do this?</p>
<p>Edited:</p>
<p>Sorry, it's an Archos 43. I'm running UrukDroid 1.0 which is... | java android | [1, 4] |
3,434,922 | 3,434,923 | Favorite and unfavorite button in Jquery is not working | <p>I need to develop a button that helps users favorite or un-favorite an article. When the user clicks on the button, the color of the button or the background needs to change to Orange, and when he un-favorites the article, the color on the button should go away. </p>
<p>Here's my current implementation in Jquery, b... | javascript jquery | [3, 5] |
5,024,451 | 5,024,452 | Browsed Time Problem | <p>I want to display the browsed time of a user, But when i refresh it, it will be again start from 0:0:0.
How can it handle?</p>
<pre><code><?php
$total_mints=($live_match['match_name']) * (60);
?>
<script language="javascript">
display_c(<?=$total_mints?>,'ct');
</script>
<script type=... | php javascript | [2, 3] |
4,858,093 | 4,858,094 | MapPath strange error | <p>I have the following code:</p>
<pre><code>string path = "~/Others/Muzica/Demo/"+interpret+"_"+album+"/";
CMSUtils.CreateFolder(MapPath(path));
</code></pre>
<p>where CreateFolder method is like:</p>
<pre><code> public static void CreateFolder(string path)
{
if (!System.IO.Directory.Exists(path))
{
... | c# asp.net | [0, 9] |
4,292,618 | 4,292,619 | The name 'someControl' does not exist in the current context | <p>I have some weird problem with asp.net controls.</p>
<p>I am editing a (previously) working page, but when I add a new control, and try to run it, it says:"The name 'xxx' does not exist in the current context".</p>
<p>Also when I rename a working control, on both markup, and code-behind file, it will also give thi... | c# asp.net | [0, 9] |
5,700,259 | 5,700,260 | Retrieve value of element on dom on page reload | <p>I have the following JavaScript function which is used to keep users from inundating our server with Ajax requests:</p>
<pre><code>var validateZip = function () {
var lastSuccessful = parseInt(jQuery('#mailingZip').val(), 10);
return {
validate: function(zip) {
var is5DigitNumber = /^\... | javascript jquery | [3, 5] |
411,211 | 411,212 | Different behaviour of @Override in OnPreferenceChangeListener.onPreferenceChange method of Android 2.2 application depending on source code level | <p>I'm developing Android 2.2 application and I'm going to use <em>Preference.OnPreferenceChangeListener</em> interface.</p>
<p>I've added the following piece of code to my preference activity:</p>
<pre><code>Preference somePref = findPreference(SOME_PREF);
somePref.setOnPreferenceChangeListener(new OnPreferenceC... | java android | [1, 4] |
2,026,274 | 2,026,275 | session timeout message popup before 5mins of actual session timeout? | <p>I need to show a timeout popup window 5 mins before the session timeout. So far I have got</p>
<p></p>
<pre><code><script type="text/javascript">
function Timeout(intMilsec) {
setTimeout("window.focus(); alert('Your session will timeout in 5
minutes')", intMilliseconds);
}
</... | c# javascript | [0, 3] |
3,865,791 | 3,865,792 | Approximate percentage in ASP.net | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3920553/round-up-value-c-sharp">round up value C#</a> </p>
</blockquote>
<p>I want to approximate percentage in ASP.net, for example I had a percentage 72.72727272727% I want it to be approximated to 73%, how ca... | c# asp.net | [0, 9] |
3,310,525 | 3,310,526 | Change style using children() | <p>I want to change the "b" color to red with using children. Why doesn't the example above work? How can I make it work?</p>
<pre><code><div id="wrap">
<div class="parent1">
<div class="parent2">
<b>Text</b>
</div>
</div>
</div>
</cod... | php javascript jquery | [2, 3, 5] |
2,257,707 | 2,257,708 | Facebook-like JavaScript popup help | <p>If you look at the following screenshot:</p>
<p><img src="http://i.stack.imgur.com/xLrIx.png" alt="">
You will see a popup box <strong>(NOT THE MODAL)</strong> with some content that says 'Security Check' which is basically some helpful information that the user can invoke by clicking a link. I know how to create s... | javascript jquery | [3, 5] |
5,119,740 | 5,119,741 | Compare Div Values | <p>I want to create a webpage where if Chelsea has a greater goal count than Arsenal, Chelsea's score increases by 1, and vice versa. It is not working and I am not sure why - then again I only started learning JS/JQ a couple of days ago.</p>
<p>What's wrong with the code? Also note, nothing is ever logged in the cons... | javascript jquery | [3, 5] |
56,576 | 56,577 | 180 first characters of a string ending with a word | <p>I need to shorten a string down..</p>
<p>Lets say we have a string with the length 500.</p>
<p>I only want the first part of it - <strong>max 180 characters</strong>, ending with the <strong>last word</strong> before reaching the 180. I don't want to cut the string short in the middle of a word.</p>
<p>How is thi... | c# asp.net | [0, 9] |
4,030,689 | 4,030,690 | If parent div is animated by jquery is it possible to prevent some child elements from animating? | <p>I wonder if its possible to keep child elements from being animated. like in the following example: ( <a href="http://jsfiddle.net/JsfMF/6/" rel="nofollow">http://jsfiddle.net/JsfMF/6/</a> ) </p>
<p>
</p>
<pre><code><head>
<meta charset="utf-8" />
<title>test</title>
<script ... | javascript jquery | [3, 5] |
4,347,824 | 4,347,825 | How can I execute php from a javascript function? | <p>How would I go about executing a php-script from a javascript-function?</p>
<pre><code><?php if ( isset( $results['errorMessage'] ) ) { ?>
<script type="text/javascript>somemethod(<?php echo $results['errorMessage'] ?>) </script>
<?php } ?>
</code></pre>
<p>Sorry for the bad f... | php javascript | [2, 3] |
2,999,335 | 2,999,336 | Why isn't this jQuery working to hide the image? | <p>jQuery:</p>
<pre><code>$('.resume-header').hover(
function() {
$('resume-header img').css('display', 'none');
$('resume-header img').attr('src', 'media/resume-icon-download.png');
$('resume-header img').fadeIn(400);
},
function() {
$('resume-he... | javascript jquery | [3, 5] |
1,075,995 | 1,075,996 | jQuery 'fade in' on page load without using 'display:none' in the css | <p>Should hopefully be a simple one...</p>
<p>So I'm after a basic fade in on page load on my site, similar to what this site has... <a href="http://jack-hughes.com/" rel="nofollow">http://jack-hughes.com/</a></p>
<p>The problem I've got is that the standard jQuery fadeIn function seems to require 'display:none' on t... | javascript jquery | [3, 5] |
4,992,631 | 4,992,632 | Change class of links with default values with jQuery | <p>I have three links on which I manually set classes: One defaults to <code>.active</code> and the others default to <code>.inactive</code>. I have some jQuery that I'm using to toggle the class of the links when they are clicked for CSS purposes. This works for the <code>.inactive</code> links - they switch to <code>... | javascript jquery | [3, 5] |
3,219,265 | 3,219,266 | How do I toggle a table row display? | <p>I would like to toggle my table row on an .change function in jquery. The desired row is being displayed in this code, how do I hide the other rows at the same time?</p>
<pre><code>$(document).ready(function() {
$('#ddlSelect').change(function() {
var ddlId = $('#ddlSelect').val();
alert(ddlId); ... | c# jquery | [0, 5] |
80,429 | 80,430 | Conversion from a Grid View to PDF file | <p>I am trying to convert a Grid View to a PDF file. I tried to implement this using the code below, but it results in an error saying that</p>
<blockquote>
<p>no pdf exists</p>
</blockquote>
<p>Does anyone know what might be going wrong, or how I could approach this?</p>
<pre><code>Response.ContentType = "applica... | c# asp.net | [0, 9] |
3,750,355 | 3,750,356 | How do I access a public property of a User Control from codebehind? | <p>I have a user control in a repeater that I need to pass data to during the databound event, so I've created two public properties in the control. How do I access these properties from the page's codebehind class?</p>
| c# asp.net | [0, 9] |
1,797,016 | 1,797,017 | html content into docx file | <p>I am taking data from <code>stringBuilder</code> and putting it into .docx file. For .doc extension we can do using <code>stringBuilder</code> directly. But for .docx file there is a problem.</p>
<p>Like this. But its corrupting the .docx file.</p>
<pre><code>strBuilder.Append("".ToString()); strBuilder.Append("".... | c# asp.net | [0, 9] |
4,118,301 | 4,118,302 | Saving a canvas to Bitmap then saving the Bitmap | <p>This is surrounded in a try, catch for the writing part, but if it isn't in a try catch methods, the app seems to crash in the emulator.
I'm trying to save the canvas as a bitmap, then saving the bitmap to the storage...</p>
<pre><code>screenshot = Bitmap.createBitmap(screenshot, 0, 0, 0, 0);
Canvas can = new Canva... | java android | [1, 4] |
5,637,272 | 5,637,273 | ASP.NET page 'Page_Load' firing before Master Page's 'Page_Load' event? | <p>On my Master Page, I have a little method in the <code>Page_Load</code> event that checks to see if a user is logged in, and redirects them to the Login page if not. </p>
<p>The problem is that for some of my pages the <code>Page_Load</code> events presume a users logged are in, and these events seems to fire befor... | c# asp.net | [0, 9] |
4,874,638 | 4,874,639 | How can I fire jQuery outside document.ready block? | <p>The common method of starting jQuery is putting it in</p>
<pre><code>$(document).ready(function() {
// put all jQuery stuff here
});
</code></pre>
<p>But what if I have a complicated site which uses basic jQuery in <code><head></code> <strong>and</strong> some custom functions that depend on the page typ... | javascript jquery | [3, 5] |
1,620,340 | 1,620,341 | Collapsible areas in front-end? | <p>I have a lot of front-end code that would be more readable if I could use collapsible areas like #region in C#. Is there a way to do that in the front-end?</p>
| c# asp.net | [0, 9] |
2,371,987 | 2,371,988 | How would you tackle this php/mysql | <p>I am building a dynamic (food) menu system for a website. Users will be able to add and remove menu items as they like and alter price etc. If the menus were static then I would have a static form for example </p>
<pre><code><form id="order_form" action="order.php" method="POST" class="form">
<ul>
<l... | php javascript | [2, 3] |
3,214,388 | 3,214,389 | How can I attach a change event handler to a variable? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1759987/listening-for-variable-changes-in-javascript-or-jquery">Listening for variable changes in JavaScript or jQuery</a> </p>
</blockquote>
<p>How can I track if this variable has changed?</p>
<pre><code>var ... | javascript jquery | [3, 5] |
2,819,937 | 2,819,938 | Save all the key pressed in a textarea and sent it to a PHP server? | <p>The task is to save all the key pressed in a text area and their timestamp. When a button is pressed the values will be sent to the server for processing. I have the javascript that detects the key. I understand I will probably have to do an ajax request to send the data from the client to the server.</p>
<p>I'm no... | php javascript | [2, 3] |
5,031,307 | 5,031,308 | set value to hidden input with jquery | <pre><code><INPUT Type="hidden" value="" name="testing" />
</code></pre>
<p>I'm trying this : </p>
<pre><code>var test = $("input[name=testing]:hidden");
test.value = 'work!';
</code></pre>
<p>But its not working =\ What's wrong with my code ?</p>
| javascript jquery | [3, 5] |
6,020,670 | 6,020,671 | Jquery - how to use $() | <p>How do I convert the following javascript to using JQuery?</p>
<pre><code>document.getElementById("asc").removeAttribute("href");
document.getElementById("asc").onclick = "";
document.getElementById("asc").style.textDecoration = "underline"
</code></pre>
<p>I think I'm close using the below code but this doesn't q... | javascript jquery | [3, 5] |
5,465,106 | 5,465,107 | Any thoughts: page called/loaded 700 times | <p>This might be a long shot, but I'm going to put it on here anyway. </p>
<p>I have a (very, very rarely occurring) problem in my application, particularly when users send e-mail (but that might be because that's the most-used feature). The page that actually sends the e-mail in my application is sometimes (has only ... | php javascript | [2, 3] |
81,797 | 81,798 | How do you set a session variable in JavaScript? | <p>Can this be done with a PageMethods call? I need to save some variables in a control so that they can be used by a control on another page at a later time. Is there a way to do this via JavaScript?</p>
| javascript asp.net | [3, 9] |
2,299,809 | 2,299,810 | how to conver date like 01 mar 2011 to only mar 2011 | <p>how to conver date like 01 mar 2011 to only mar 2011 in javascript or jquery</p>
| javascript jquery | [3, 5] |
3,915,213 | 3,915,214 | multiple default values for input field | <p>I would like to have a search box input field that flashes multiple default values when not in focus. As in <em>"New York"</em> for 3 seconds, then <em>"Los Angeles"</em> for 3 seconds, etc. or to simulate typing of these would also be nice.</p>
<p>What i have done is this</p>
<p><a href="http://jsfiddle.net/5aD7W... | javascript jquery | [3, 5] |
5,481,510 | 5,481,511 | Execute javascript | <p>I have used a script I have found. Where it should do some thing when the mouse hovers over the element</p>
<pre><code> $this.hover(
function () {
tip.html("<p>" + tTitle + "</p>");
setTip(tTop, tLeft);
setTimer();
},
function () {
... | javascript jquery | [3, 5] |
3,231,502 | 3,231,503 | How to alert box on save functionality success with msg "Saved successfully" from code behind | <p>Hello All,
I have to show an alert box on a successful save operation.
Please help me.
Thanks in advance.</p>
| c# javascript asp.net | [0, 3, 9] |
6,006,223 | 6,006,224 | get application version programatically in android? | <p>as the title says, is there a way to get the android app version from code? Is it possible to do so?</p>
<p>Thanks in advance</p>
| java android | [1, 4] |
2,970,100 | 2,970,101 | Changing the ID of all "div" elements (Javascript) | <p>As the title says, I'm trying to change the ID of all elements with the tag "div". Here's my current script, which does not work:</p>
<pre><code>function setIDs() {
var divs[] = new Array();
for(i in document.getElementsByTagName('div'))
divs[i] = document.getElementsByTagName('div')[i];
for(idN... | javascript jquery | [3, 5] |
340,853 | 340,854 | My screen freezes after changing the text | <p>I'm trying to use the addChangeTextListener but my screen freezes when I click on a key.
Here is the code:</p>
<pre><code>email = (EditText) findViewById(R.id.email);
email.addTextChangedListener(new TextWatcher()
{
@Override
public void afterTextChanged(Editable s)
{
... | java android | [1, 4] |
773,439 | 773,440 | how to get attribute from any selected object in jquery | <p>for example</p>
<pre><code><a href="http://stackoverflow.com" class="selected">stackoverflow</a>
</code></pre>
<p>my jquery is here</p>
<pre><code>alert($('.selected').attr('href'));
</code></pre>
<p>but this don't work</p>
<p>How to get attribute from selected object?</p>
| javascript jquery | [3, 5] |
504,412 | 504,413 | Image servlet file delivery completion event | <p>Suppose there is a 4.3 mb png file.I used Balus c Image servlet to show the image inline in my jsp page.But the file being 4.3mb in size takes time to download.I would like to show a loading gif in the meantime and keep the image hidden by setting its style as "display:none;".The question is how do i know that the i... | java javascript jquery | [1, 3, 5] |
1,678,594 | 1,678,595 | replace jquery's run only after DOM is loaded functionality | <p>I am trying to remove dependence on jQuery. I have stolen a couple of functions I needed from underscore.js, but still need my code to run after the DOM is loaded in the same way as jQuery</p>
<h3>Original</h3>
<pre><code>$(function(){
// all my code
})
</code></pre>
<h3>Desired</h3>
<pre><code>var afterload =... | javascript jquery | [3, 5] |
1,058,987 | 1,058,988 | get query string in popup window | <pre><code><a href="tags.php" onclick="return popitup('tags.php')">tags</a>
</code></pre>
<p>I have this line of code that runs the javascript to open new mini popup window,and it mostly works.</p>
<p>Now how could i add current query string attributes so that my popup window has url something like this "... | php javascript | [2, 3] |
45,533 | 45,534 | Javascript - If statement with conditions dependent on 2 separate form id | <p>I'm trying to hide a div, depending on the answers of 2 questions above. Both need to be "N" to hide. But struggling to figure out how to get both IDs as variables within the script.</p>
<p>Hope you can help...</p>
<pre><code><div><table><tr>
<td><input name="v2_1a" type="radio" id="v2_1... | php jquery | [2, 5] |
4,083,780 | 4,083,781 | observe other field blur event | <p>i want to observe other field blur event.
Suppose i have</p>
<pre><code><input type="text" name="age" id="age">
</code></pre>
<p>whose value is observe by other field like</p>
<pre><code><select name = "married" id = "married" someEvent = "function(par1, par2);">
<option value = "Yes">Yes<... | javascript jquery | [3, 5] |
4,171,125 | 4,171,126 | toggle two images by fading | <p>How can I toggle two images by fading using jQuery <code>.fadeToggle</code> method.</p>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.