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,858,400 | 1,858,401 | Let user know of long operation when initiating request to download file | <p>I have some routine code which downloads a file (as below). However, while this is processed (there is lag time between the request to download the file and the save dialog box coming up), I want to add some sort of JavaScript modal alert to let the user know of the pending operation. How could I easily do this from... | c# asp.net | [0, 9] |
1,359,216 | 1,359,217 | Why does my dynamic form submit not use the jQuery-replaced button label value? | <pre><code><button class="gocrazy" label="1"/>
<button class="gocrazy" label="2"/>
<button class="gocrazy" label="3"/>
<form id="crazyform" method="POST" action="/crazyform">
<input type="hidden" id="crazyreplace" value="REPLACE WITH BUTTON LABEL ON CLICK">
</form>
$(".gocrazy").bu... | javascript jquery | [3, 5] |
2,138,446 | 2,138,447 | does not close android app by pressing back button | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2354336/android-pressing-back-button-should-exit-the-app">android pressing back button should exit the app</a> </p>
</blockquote>
<p>I am trying to close an app using mobile's back button. Currently I am overrid... | java android | [1, 4] |
5,978,695 | 5,978,696 | jQuery Slider/Carousel update content after DOM | <p>guys.</p>
<p>I have searched for an jquery slider/carousel plugin where i can update your content after DOM-ready, with AJAX call or something like that. Anyone knows an plugin where this is possible? Add new jquery slide after her ready?</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
5,292,885 | 5,292,886 | How to access element id and other attributes using jQuery? | <p>I have JavaScript method which acts when a particular class (mcb) of forms are submitted:</p>
<pre><code>function BindCloseMessage() {
$(".mcb").submit(function(event) {
alert("closing..."); //Here I want to get the id of form
event.preventDefault();
});
}
</code></pre>
<p>In place of alert... | javascript jquery | [3, 5] |
662,034 | 662,035 | is there any function which can help escape all meta-characters contained in jquery‘s selector? | <p>Straight from jquery docs: </p>
<p>If you wish to use any of the meta-characters (such as <code>!"#$%&'()*+,./:;<=>?@[\]^&a{|}~)</code> as a literal part of a name, you must escape the character with two backslashes: \. For example, if you have an element with <code>id="foo.bar"</code>, you can use th... | javascript jquery | [3, 5] |
1,479,136 | 1,479,137 | jQuery how to set a Binding Order | <p>is there a way to set a binding over, precedence? </p>
<p>I have a link like so:</p>
<pre><code><a href="" class="popItUp" data-track"stuff"> </a>
</code></pre>
<p>popItUp binds to take the url and open in a popup.</p>
<p>data-track is another binding that is used to send event tracking data. </p>
<... | javascript jquery | [3, 5] |
2,855,353 | 2,855,354 | drag and drop in php | <p>A <strong>drag and drop</strong> work in <strong>firefox</strong> but when see <strong>ie</strong>(internet explore) <strong>drag and drop</strong> is not work a code in php</p>
<p>please help me.</p>
<p>I use jquery ui librey ui.droppable.js but in some error</p>
<p>$.ui is undefined
[Break On This Error] </p>... | php javascript | [2, 3] |
4,007,933 | 4,007,934 | How to invoke a function onChange of an atrribute value in Jquery | <p>I'm trying to invoke a function <code>onChange</code> of an attribute value.
What I'm trying is, When the user clicks on one of below div</p>
<pre><code> <div id="selected" class="vblock">
<div class="vblock">
<div class="vblock">
<div class="vblock">
<div class="vblock">
</code><... | javascript jquery | [3, 5] |
2,776,935 | 2,776,936 | Scoping to a DOM element | <p>I'm just trying to clean up some jQuery, and can't quite figure out what the call is to scope jQuery calls to a specific dom element. To give an example, I have the following code:</p>
<pre><code>$('#outer-element .first-class').html('wanna');
$('#outer-element .second-class').html('scope');
$('#outer-element .thir... | javascript jquery | [3, 5] |
5,076,151 | 5,076,152 | How to select all elements except the ones with a given class, using jQuery? | <p>I want to select all elements in my page except those with the class "searchBox".</p>
<p>How can I do that?</p>
<p>I want to disable text selection on all elements except input elements</p>
| javascript jquery | [3, 5] |
5,511,939 | 5,511,940 | Setting a variable using the value of multiple selects, each time any of the selects is changed | <p>I have a list of items that I'm trying to "filter" with a set of 4 selects by matching the value of the select options to the classes I have applied to the list items. Right now, I have it working so that each time you choose a new option with any of the 4 selects, the entire list is reset, and only those items wit... | javascript jquery | [3, 5] |
3,511,648 | 3,511,649 | facebook login code | <p>In facebook..when u enter correct email address but incorrect passwd..they send u an email with an Instant login button..user can login using that instant login link only once..How did they implement this ? Where can i find its code? I mean how do they find out Instant Login link has been clicked only once ??</p>
<... | c# asp.net | [0, 9] |
3,085,484 | 3,085,485 | passing variable to PHP through javascript | <p>I'm kinda new to working with JS and PHP and stumbled upon a little problem. Im trying to pass the ID of a textbox I clicked through to PHP and then query a database with that ID. I tried the following code to check if the variable gets passed on, but nothing is alerted:</p>
<pre><code><script type="text/javascr... | php javascript | [2, 3] |
1,588,450 | 1,588,451 | How to get the value of a CSS property using JQuery? | <p>I am trying to set a box A to jump to the same x-position as box B. How do I do this? I tried the following but it does not work (the second line):</p>
<pre><code>$("#boxa").animate({
left: $("#boxb").left
}, 1000, function() { });
});
</code></pre>
<p>Thanks,</p>
<p>Sam</p>
| javascript jquery | [3, 5] |
288,252 | 288,253 | Porting C++ Project to Android | <p>I have a big C++ application developed on windows,I need to port it to Android to run it as galaxy tab application.</p>
<p>I read many tutorials about NDK but it seems difficult to embed C++ files into Android.</p>
<p>Can I develop "DLL" using NDK? and invoke DLL from DLL?</p>
<p>any help would be highly appreci... | c++ android | [6, 4] |
5,948,785 | 5,948,786 | Add events in the background with jquery | <p>I have an html ul list of 10,000+ elements and want to add custom hover tooltip events and do some other processing to each one. To do this on document.ready takes 2-3 seconds and freezes the browser. How can I do this asynchronously so that the browser doesn't freeze?</p>
<p>I've been reading about setTimeout, jQu... | javascript jquery | [3, 5] |
4,587,654 | 4,587,655 | Best way to group all your C# classes in 1 class | <p>What's the best way to have all your classes in 1 class, and accessing this 1 class can allow you to access all the other classes, so this</p>
<pre><code>using Student.Classes.TextFileHandler;
using Student.Scripts.Constants;
using Student.Classes.Common;
using Student.Classes.Enum;
</code></pre>
<p>would all be i... | c# asp.net | [0, 9] |
4,697,591 | 4,697,592 | Reset the Value of a Select Box | <p>I'm trying to reset the value of two select fields, structured like this,</p>
<pre><code><select>
<option></option>
<option></option>
<option></option>
</select>
<select>
<option></option>
<option></option>
<option><... | javascript jquery | [3, 5] |
1,257,959 | 1,257,960 | Is there an open source live support application | <p>I have 5-10 support reps who use Google Apps including Google Talk and Skype application</p>
<p>I want to provide a "Live Support" option on my web site.</p>
<p>When one or more employees log in to Google Apps the live support option should become available.</p>
<p>Ideally the live support feature should simply e... | java php | [1, 2] |
4,026,506 | 4,026,507 | Trying to change a url on a page after a user enters specific text into a field | <p>I'm using jquery right now to change some text on my page when a user enters a specific word into a field on that page. I've changed text on the page by putting that text in a span and then using this code at the top of the page. This code is activated when the user enters the appropriate text in the field.</p>
<... | javascript jquery | [3, 5] |
4,192,278 | 4,192,279 | FileInputStream to byte array in Android application | <p>I have a FileInputStream created using <code>Context.openFileInput()</code>. I now want to convert the file into a byte array. </p>
<p>Unfortunately, I can't determine the size of the byte array required for <code>FileInputStream.read(byte[])</code>. The <code>available()</code> method doesn't work, and I can't cre... | java android | [1, 4] |
2,885,982 | 2,885,983 | Embedding javascript object in dynamically created html | <p>I have a js function that recieves an array of items. The function itself creates html content dynamicly using a call to jquery html function. The problem is that I don't remember how to embed correctly the array inside the appended html. For example,</p>
<pre><code>var ErrorsNotifier = {
init: function(items) {... | javascript jquery | [3, 5] |
5,917,425 | 5,917,426 | Update page without trigger or event | <p>I'm implementing a twitter like news system on my website. It loads all news items on page load with an ajax call fine. But how do I show a new item without having a trigger like a page load or a click on something? So when a new item is added to the database, It should automatically be added to an open page, like a... | php jquery | [2, 5] |
4,040,163 | 4,040,164 | get #var from url in php code error | <p>i want to get <code>#var</code> value from url like my url is <code>mydomain.com/index.php#1</code> so i want to get has(#) value from url which is <code>1</code> after some research i got this article <a href="http://www.stoimen.com/blog/2009/04/15/read-the-anchor-part-of-the-url-with-php/" rel="nofollow">http://ww... | php javascript | [2, 3] |
5,415,175 | 5,415,176 | How to pass all requests to handler using Visual Studio Development server? | <p>I've got an empty ASP.NET project with single HttpHandler, saved in Index.ashx. I want all requests to go through this, </p>
<pre><code>public void ProcessRequest(HttpContext context)
</code></pre>
<p>I've modified my project project properties so that it loads that handler by default. However, if I type a differ... | c# asp.net | [0, 9] |
4,047,558 | 4,047,559 | replace spaces with randam values | <p>I have a paragraph ..i want to spaces are replace with some randam values.
for example</p>
<p>$string="Kapa dim nen ma sibilol sebire rola lunie. Ifosamac rapieco him oku, vimeror eralerie puredus elacecos tusorop gobas oliw gepalar."</p>
<p>and
$result="Kapa[rand2]dim[mailingid]nen[rand2]ma[rand1]sibilol[rand1][... | php javascript | [2, 3] |
2,323,182 | 2,323,183 | Ajax request cross domain json data and display? | <p>I have a function to get JSON data from another domain, but I don't know what is wrong with it. It never fires the success function and and no errors are returned.</p>
<pre><code>$.ajax({
url: "http://other-domain.com/sample/Json.aspx",
dataType: "jsonp",
type: 'get',
crossDomain: true,
jsonp: '... | javascript jquery | [3, 5] |
3,693,400 | 3,693,401 | Additional Emulator Command Line Options is not showing on my eclipse? | <p>Additional Emulator Command Line Options is not in my eclipse, why, and how can i add it?
I need it for creating sd card for emulator in android.</p>
| java android | [1, 4] |
3,417,155 | 3,417,156 | Handle the httpmodule in iis | <p>If you see the yahoo site, when you enter www.yahoo.com, the yahoo server gets your IP, and redirects you to the specific domain (yahoo.ca,yahoo.us,....)</p>
<p>Now, I want do this,Not for special site, I want to get any request send to iis
(www.1.com,www.2.com,www.3.com) and with the algorithm, redirect user to ... | c# asp.net | [0, 9] |
5,810,341 | 5,810,342 | Detecting when the @ key is pressed | <p>I am trying to detect when a user pressed the @ key in a text box. I can use JQuery to handle the keyup event like so...</p>
<pre><code>$('#target').keyup(function(event) {
});
</code></pre>
<p>But what do I do from here to test for the @ character? I know I can use <code>event.which</code> to get a key code. But... | javascript jquery | [3, 5] |
213,557 | 213,558 | Best server side technology | <p>What is the best server side technology to learn ?</p>
| php asp.net | [2, 9] |
4,343,341 | 4,343,342 | How to add alphanumeric check to jQuery validation plugin? | <p>This exact question was asked here:</p>
<p><a href="http://stackoverflow.com/questions/1053618/using-the-jquery-validation-plugin-how-can-i-add-a-regex-validation-on-a-textbox">using the jquery validation plugin, how can I add a regex validation on a textbox?</a></p>
<p>But unfortunately the solution posted isn't ... | javascript jquery | [3, 5] |
3,907,181 | 3,907,182 | Searching through large list of ordered strings | <p>Right now as part of my android app I have a .csv file that contains aobut 15,000 lines stored on the sd card of the phone. Every time my app launches it reads in those 15,000 lines into two parallel arrays. I do this for 3 files so in total I have 6 arrays storing 15,000 elements each. I need to search through thes... | java android | [1, 4] |
4,653,255 | 4,653,256 | How do I send a stream from a Java applet to an ASP .NET web site? | <p>I would like to be able to send a stream of binary data to an asp .net website from a java applet hosted in the same website.</p>
<p>I found <a href="http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html" rel="nofollow">this link</a> which talks about this issue, but I am unsure how to actuall... | c# java asp.net | [0, 1, 9] |
1,846,181 | 1,846,182 | jQuery: how to refresh javascript value on select event? | <p>I have such code:</p>
<pre><code>var regions = [{'label': 'array', 'value': '1'}]; //default values
$("#auto1").select({
regions = jQuery.parseJSON( //updating process
$.ajax({
type: 'POST',
url: '/ajax/place/',
data: { country: value }
})
);
re... | javascript jquery | [3, 5] |
1,470,123 | 1,470,124 | Remove items from the DOM that have been added with Javascript and jQuery? | <p>I am working on a JavaScript/jQuery project that adds a set of divs and input fields to a page when a button is clicked, there is another button that removes these items from a page when that button is clicked.</p>
<p>My problem is it does not delete items from the page that have been added to the page after the pa... | javascript jquery | [3, 5] |
193,620 | 193,621 | Retrieve value of cookie from another page in JavaScript or jquery | <p>I am working on a form <a href="http://evmyf.vzhgw.servertrust.com/Articles.asp?ID=257" rel="nofollow">http://evmyf.vzhgw.servertrust.com/Articles.asp?ID=257</a></p>
<p>On the form I have a link called upload logo. It opens a window to upload an image. I have stored the image name that is uploaded in the window in ... | javascript jquery | [3, 5] |
1,663,650 | 1,663,651 | Getting complex attribute value of object | <p>Given json like this :</p>
<pre><code>{ "rss": {
"page": 1,
"results": [{
"type": "text",
"$": 10
}],
"text": [{
"content": "Lorem ipsum dolor sit amet.",
"author": {
"name": "Cesar",
"email": "cesar@evoria.com"
},
},
{
"content": "Tema Tis rol... | javascript jquery | [3, 5] |
1,484,030 | 1,484,031 | AsyncSocket writeData issue | <p>I am connecting to a server socket using the following code:</p>
<pre><code>- (void)viewDidLoad {
[super viewDidLoad];
asyncSocket = [[AsyncSocket alloc] initWithDelegate:self];
NSError *err = nil;
//[asyncSocket connectToHost:@"192.168.0.200" onPort:8000 error:&err];
if(![asyncSocket conne... | c# iphone | [0, 8] |
3,847,523 | 3,847,524 | I want to learn C# and C++ and other such langurages...What is the best way? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/17988/how-to-learn-python">How to Learn Python</a> </p>
</blockquote>
<p>I have recently started a new job and knowing a few more programming languages would be VERY helpful! any ideas where/how to learn C#, C++... | c# c++ | [0, 6] |
3,995,918 | 3,995,919 | Custom Map Shortest Path | <p>I have a custom map designed in Illustrator .
I need to find shortest path beetween two places in Map and i should highlight the path.The Map is designed in such a way that Roads are represented by yellow lines,Houses by Red,Grass by green,water by blue. Map size is 2000 X 3000 pixels resolution.</p>
<p>To find Sho... | c# java | [0, 1] |
982,401 | 982,402 | Android-Close Other Apps | <p>I have some code that will launch a different application using intents but what can I do to close or kill the other app?</p>
<p>Here is the launch code (works great):</p>
<pre><code>Intent i = new Intent();
i.setAction(Intent.ACTION_MAIN);
i.addCategory(Intent.CATEGORY_LAUNCHER);
i.setFlags(Intent.FLAG_ACTI... | java android | [1, 4] |
1,729,789 | 1,729,790 | Trying to get flattened data out of map() | <p>I'm currently trying to create an object to be used in a Json request, based on the controls on the page and their values.</p>
<p>I'm using the jquery <code>map()</code> fuction to get the keys and values out of the controls like so</p>
<pre><code>var data = $("fieldset > div.section").map(function (i, e) {
... | javascript jquery | [3, 5] |
3,706,058 | 3,706,059 | Problem with removing child | <p>I have two drop down forms. When the first is "changed" the second is populated with some data via ajax.<br>
It's work but the value of the second drop down is not cleared on every request (I'm using $('#second_drop_down').children().remove();)</p>
<p>Here is sample code</p>
<pre><code>$('#first_drop_down').live(... | javascript jquery | [3, 5] |
1,536,239 | 1,536,240 | javascript in asp.net | <pre><code><asp:RadioButtonList ID="RdoBtnHasNotified" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="RdoBtnHasNotified_SelectedIndexChanged">
<asp:ListItem Value="1">Yes</asp:ListItem>
<asp:ListItem Value="0" Selected="True">No</asp:ListItem&g... | asp.net javascript | [9, 3] |
2,386,083 | 2,386,084 | Inverted comma - php to javascript | <p>Consider this line of JavaScript</p>
<pre><code>str += "onclick=runTest(" + field + "," + atom[0] + ",'" + atom[1] + "');
</code></pre>
<p>In the browser, it renders as:</p>
<pre><code>onclick="runTest(104,213,'Orsan" Miller');
</code></pre>
<p>There is an inverted comma between Orsan and Miller although in fa... | php javascript | [2, 3] |
1,042,620 | 1,042,621 | Onload click the link | <p>At the moment the following code will load only when the users clicks the link.</p>
<p>I want on load of the page this to happen without the user having to click.</p>
<pre><code><script>
$(document).ready(function() {
// Support for AJAX loaded modal window
$(document).on('click', '.btn-modal', funct... | javascript jquery | [3, 5] |
4,132,854 | 4,132,855 | Leverage .Net to deal with 133 textBoxes? | <p>I have a 19 X 7 table with a textBox in each cell. Some textBoxes need to be read only, depending on the data that is loaded into them. On saving I have to examine each textbox and see if the value needs to be saved. Having to list 133 textboxes by hand takes a long while. I would be ecstatic to get it down to a row... | c# asp.net | [0, 9] |
345,421 | 345,422 | Associative style arrays in Javascript? | <p>I'm trying to assign an object in the style of an associate array in JS but it's failing, saying 'task.id' is undefined. Why is this?</p>
<pre><code>var response = Object();
$('.task-list').each(function() {
response[this.id][$('#' + this.id).sortable('toArray')];
});
</code></pre>
| javascript jquery | [3, 5] |
629,193 | 629,194 | Comparing shared_ptr to managed language references | <p>Could someone explain to a C++ programmer most important differences between Java (and C# as well) references and shared_ptr (from Boost or from C++0x).</p>
<p>I more or less aware how shared_ptr is implemented. I am curious about differences in the following ares:</p>
<p>1) Performance.
2) Cycling. shared_ptr can... | c# java c++ | [0, 1, 6] |
4,367,658 | 4,367,659 | How to define distance in time in words in pure javascript? | <p>I would like to include very common feature in my web application. I would like the times/dates be written as the distance of time from now in words, for example (2 hours ago). </p>
<p>Rails have excellent implementation of this functionality, but I need something like that written in pure javascript. The problem i... | javascript jquery | [3, 5] |
1,395,020 | 1,395,021 | Calling javascript and C# on button/link click | <p>I currently have a Gridview with a itemTemplate which acts as a link which calls a javascript function:</p>
<pre><code> <ItemTemplate>
<a href="javascript:;" onclick="simpleCart.add( 'name=<%# Eval("Name") %>' , 'price=<%# Eval("Price") %>' , 'quantity=1' );">Add To Cart</a>... | c# javascript asp.net | [0, 3, 9] |
4,082,768 | 4,082,769 | $.post not firing | <p>I have some script like this:</p>
<pre><code>$("#button").click(function () {
alert("before");
$.post("doAction.aspx?id=hotel", {},
function (response) {
});
alert("after");
return false;
});
</code></pre>
<p>the <code>$.post</code> is not firing. I really don't... | jquery asp.net | [5, 9] |
6,032,435 | 6,032,436 | file Uploader plugins not working when master page linked? | <p>Hi i have jquery file upload plugin,it is working proper but when i link master page it is not working.below is code please help me
ma aspx page</p>
<pre><code><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderForMainInfo" runat="server">
<script type="text/javascript" src="../Scripts/... | javascript jquery asp.net | [3, 5, 9] |
271,347 | 271,348 | jquery hint disappears when i click submit | <p>when user1 and user2 do not select anything from radio box the jquery validation triggers but removes the jquery hint from the 'fav food' textbox. how do i prevent this?</p>
<p>working example: <a href="http://jsfiddle.net/NevcG/1/" rel="nofollow">http://jsfiddle.net/NevcG/1/</a></p>
| javascript jquery | [3, 5] |
3,178,091 | 3,178,092 | using iPhone as android application development, testing phone | <p>Can i use my iPhone for android application development testing?</p>
| iphone android | [8, 4] |
1,746,631 | 1,746,632 | How to reset select box using jquery | <p>i have two select boxes in html .I need to reset one select box when i select other</p>
<pre><code><select id="name" >
<option value="">select all</option>
<option value="1">Text 1</option>
<option value="2">Text 2</option>
<option value="3">Text 3<... | javascript jquery | [3, 5] |
5,701,693 | 5,701,694 | Add a new linkbuton on gridview for viewing row details view | <p>I have a gridview and SqlDataSource to bind data to gridview!</p>
<p>I need to add a link button called "Details" near the link buttons on the gridview : edit,select,delete and then it will bring the details view with the information for the row that where the Details button was clicked.</p>
<p>For example:
I have... | c# asp.net | [0, 9] |
5,190,020 | 5,190,021 | Could you please explain this sort of JavaScript syntax from Jquery for me? | <p>As an example, here is a screenshot from jQuery1.8.
<img src="http://i.stack.imgur.com/7BDkX.png" alt="enter image description here"></p>
<p>Why can I do something like this from the perspective of jQuery source code ?
Is <code>addClass</code> jquery's method? But what i saw was from <strong>jQuery.fn.extend</stron... | javascript jquery | [3, 5] |
5,825,931 | 5,825,932 | how to grab uri values | <p>i had set a uri like this by java script</p>
<pre><code>location.href="biling.php?itemsize="+value5+"&"+value6;
</code></pre>
<p>and now i want to take this value5 and value6 into php.
think </p>
<pre><code>if value5 = 5 and value6=mg
</code></pre>
<p>then i want to take those values in to php variable
as 5... | php javascript | [2, 3] |
3,191,813 | 3,191,814 | JQuery server side method call internal | <p>i often call my aspx server side method with the help of jquery....like</p>
<pre><code>$.ajax({
type: "POST",
url: "login.aspx/Authenticate",
data: JSON.stringify(DTO),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: ... | javascript jquery asp.net | [3, 5, 9] |
2,758,550 | 2,758,551 | How to render images in real-time | <p>I am looking for a solution\software that I can use in order to render buttons in real time.
That is, I have an image and text, and I want them to be an image altogether in realtime.</p>
<p>Thank you</p>
| c# javascript | [0, 3] |
4,569,447 | 4,569,448 | how to use jquery .live() | <p>I've an input element with id newline. I'm using <code>$('#newline').elastic();</code> to make it elastic using a jquery plugin. The <code>input#newline</code> can also be appended through an ajax call in which case the code <code>$('#newline').elastic();</code> doesn't work and I've to use something like .live() to... | javascript jquery | [3, 5] |
4,311,404 | 4,311,405 | display dropdownlist box option on jgrid | <p>I have a drop down list box where i display timezone with gmt hours.<br>
Now I want to display this option in Jgrid. Is it possible?</p>
<pre><code>for(..)
{
<option value=<%=tzone.getTimeZoneID() %> > <%=tzone.getTimeZoneName() %> </option>
}
</code></pre>
<p>In js file, i use </p>
<... | java jquery | [1, 5] |
3,380,778 | 3,380,779 | How to know the element that triggered the event in hover jquery? | <p>is there a way to get the element? i.e:</p>
<pre><code>$('#obj').hover(function() { },function() { /* here, i need to know the element that triggered this out event. */ });
</code></pre>
<p>thanks.</p>
| javascript jquery | [3, 5] |
3,635,943 | 3,635,944 | Create Email Account From C# | <p>Is there any web hosting email service that has an API for creating email account from code? </p>
| c# asp.net | [0, 9] |
1,988,874 | 1,988,875 | How to check if checkbox is checked inside a particular form? | <p>I created a jQuery function to check if a checkbox is checked like so:</p>
<pre><code>if ($('input:checkbox:checked').length > 0){ }
</code></pre>
<p>I have two set of check boxes in two separate forms. When I use above code it checks for checkboxes in both forms. I want the <code>if</code> condition only for o... | javascript jquery | [3, 5] |
1,924,188 | 1,924,189 | Help changing content on the page using both php and javascript | <p>So I am trying to have a dynamic tabs kind of thing using both php and javascript. To make it much easier to understand, remember the two choices on facebook (Recent news and most recent) or something like that, when you click on one of them it just changes the content that you see in the middle without updating the... | php javascript | [2, 3] |
3,149,491 | 3,149,492 | Bug with Asp.Net 3.5? - Is it fixed in 4.0 or still need reporting? | <p>If I have a Request.PathInfo such as the url </p>
<p><code>http://localhost/default.aspx/test</code> </p>
<p>and a Button with no PostBackUrl set (aka it is "") and I click it, </p>
<p>it changes the url to <code>http://localhost/default.aspx/default.aspx</code></p>
<p>Is this a bug/feature and if it is a bug, w... | c# asp.net | [0, 9] |
3,334,185 | 3,334,186 | not set focus on element | <p>If to log out and press F5 several times focus don't set.</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
setTimeout(function() {
var logonField = document.getElementById('UserName');
if (logonField) {
logon... | javascript asp.net | [3, 9] |
3,305,336 | 3,305,337 | Convert.ToString not handling null | <p>I've read that Convert.ToString should handle null, but it doesn't work when it's passed a null object in my code</p>
<p>In this case the object "Name" is null.</p>
<pre><code>var name = Convert.ToString(Name.LastName);
</code></pre>
<p>I get Object reference not set to an instance of an object.</p>
| c# asp.net | [0, 9] |
870,434 | 870,435 | Simply javascript jQuery code working in Chrome, not Firefox, Safari, IE | <p>I have a simple bit of jQuery code:</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
// fade in content.
$('.coming_soon').fadeIn(5000);
});
</script>
</code></pre>
<p>Website: <a href="http://test3.chuprinastudios.com" rel="nofollow">Classic Car Gallery Test</... | javascript jquery | [3, 5] |
56,335 | 56,336 | Byte type is weird | <p>I need to send some bytes over UDP Protocol the start squence is 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF</p>
<p>When I define like this:</p>
<pre><code>byte [] begin = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
</code></pre>
<p>I get an error saying I need to cast those to byte type. Far as I know 0xFF doesn't exced the byte type s... | java android | [1, 4] |
4,908,118 | 4,908,119 | Writing data to a file | <p>I want to create a folder from inside my app. Inside the folder, I want to create just one file (say <em>recents</em>) where the app will keep writing data line by line on each launch. </p>
<pre><code>private void saveForRecents(String phoneNumber) {
//Need to open File and write the phonenumbers that has bee... | java android | [1, 4] |
2,810,034 | 2,810,035 | Practical point of view: Why would I want to use Python with C++? | <p>I've been seeing some examples of Python being used with c++, and I'm trying to understand why would someone want to do it. What are the benefits of calling C++ code from an external language such as Python?</p>
<p>I'd appreciate a simple example - Boost::Python will do</p>
| c++ python | [6, 7] |
3,079,817 | 3,079,818 | making php response to remain visible when page refresh | <p>It is all working fine in my login-script. I get the right responses in my div (id=login_reply) and the session starts. But whenever I refresh the page, the login_reply is gone. How am I able to keep the login_reply? Thank you!</p>
<p>Here is the php: </p>
<pre><code>if (isset($_POST['username'], $_POST['passwor... | php jquery | [2, 5] |
2,068,328 | 2,068,329 | Is self.location clearing the session? | <p>There is a search form <code>search.php</code>. After clicking the <code>Search now</code> button I go to <code>search_result.php</code> page and the data brought through the POST value are set in the session.</p>
<p>There is a button called <code>"Edit Ur search"</code> in the <code>search_result.php</code> page.... | php javascript | [2, 3] |
544,967 | 544,968 | Why does my dynamic form submit not use the jQuery-replaced button label value? | <pre><code><button class="gocrazy" label="1"/>
<button class="gocrazy" label="2"/>
<button class="gocrazy" label="3"/>
<form id="crazyform" method="POST" action="/crazyform">
<input type="hidden" id="crazyreplace" value="REPLACE WITH BUTTON LABEL ON CLICK">
</form>
$(".gocrazy").bu... | javascript jquery | [3, 5] |
2,134,443 | 2,134,444 | Is there any way to keep information safe in an Android apk? | <p>AFAIK Android decompilation allows one to extract every bit of information from an apk.
How can I store information like ftp passwords or other confidential strings in Java or any other XML file? Is there any way other than calling a service?</p>
<p>EDIT Problem:</p>
<pre><code>String uname = "mks";
String par... | java android | [1, 4] |
2,800,622 | 2,800,623 | hide various divs -jquery | <p>It is possible join this code, in something less redundant?</p>
<pre><code>$('#x').hide();
$('#y').hide();
$('#z').hide();
</code></pre>
<p>i already tried <code>$('#x', '#y', '#z').hide();</code> but didn't work.</p>
<p>thanks</p>
| javascript jquery | [3, 5] |
241,228 | 241,229 | Is it possible to add a JavaScript variable into JQuery .html() statement? | <p>bit of an odd question but is it possible to add a variable in the middle of a JQuery .html statement. </p>
<p>IE can I do something like.</p>
<pre><code>var x = 150;
$("#sandbox").html("<div id='toannimate" + x + "' style='width:100px;'></div>");
</code></pre>
<p>I want to create a div with a new na... | javascript jquery | [3, 5] |
2,208,245 | 2,208,246 | Why doesn't Jquery let me do this | <pre><code>document.getElementById("main").src = '02.jpg';
</code></pre>
<p>works</p>
<p>but</p>
<pre><code>$('#main').src = '02.jpg';
</code></pre>
<p>doesn't</p>
| javascript jquery | [3, 5] |
3,673,777 | 3,673,778 | gridview_RowCommand firing two times | <p>I am performing database update call by clicking on a button which resides on a gridview.
It works fine it updates the database properly but the problem is that when i refresh the page it again perform the same operation(db update) i.e again call the RowCommand Event of Gridview. </p>
<p>Here is my short code view... | c# asp.net | [0, 9] |
4,638,993 | 4,638,994 | Time controls in Android | <p>I'm building my <code>Main()</code> method for a game I am developing in Eclipse, and I wanted to know if there are any time related classes already created in the Android SDK. </p>
<p>What I wanted to do was to make my <code>Main()</code> method loop through a <code>While</code> loop then wait 100 milliseconds, th... | java android | [1, 4] |
1,563,328 | 1,563,329 | Add URL variables with Server.Transfer in asp.net | <p>I am currently trying to add a variable to the url using Server.Transfer. I need to use Server.Transfer as I need to keep form post data which is why I can't use Response.Redirect.</p>
<p>I am using <code>Server.Transfer("add_account.aspx?error=userNotFound");</code> but the variable is not being added to the URL. ... | c# asp.net | [0, 9] |
4,760,498 | 4,760,499 | FireFox - element referenced by id name in the global scope. use w3c standard. | <p>I am getting this message for this part of my code.</p>
<pre><code>$(window).scroll(function () {
if ($(window).scrollTop() + $(window).height() == $(document).height()) { }
}
</code></pre>
<p>I cant seem to fix it. Can anybody help or shed some light?</p>
| javascript jquery | [3, 5] |
5,862,530 | 5,862,531 | Need assistance in editing javascript to add options to a slider so it will loop | <p>I have slider content (images) within tags in html and need my js to loop through all the inner divs or basically return to the beginning when it hits the last one. I won't know how many total images there are but it should detect and do a continuous loop. Currently, the user clicks to advance and I'd like to keep ... | javascript jquery | [3, 5] |
1,124,004 | 1,124,005 | Detect which child element is clicked | <p>I am trying to find out what values the users pick for my element.</p>
<p>in my variable <code>var1</code>. it contains.</p>
<pre><code><select>
<option value='1'>1</option>
<option value='2'>2</option>
<option value='3'>3</option>
</select>
<input type=... | javascript jquery | [3, 5] |
5,506,355 | 5,506,356 | PHP and JQuery Question | <p>Is there a way I can pass a PHP variable from a PHP page to a JQuery page and back to a PHP page?</p>
| php jquery | [2, 5] |
1,377,009 | 1,377,010 | What is the equivalent of Master Page and Web User Control in PHP? | <p>Assume that I have some advertisments that I want to put in specific area of my pages. In ASP.NET I would use Web User Control for this pupose. What about in PHP? The same question for Master Page.</p>
| php asp.net | [2, 9] |
5,089,723 | 5,089,724 | Setting DefaultValue to first and last date of current month | <p>How can I set the <code>DefaultValue</code>'s in the following code to the start date <em>(first ControlParameter)</em> and last date <em>(second ControlParameter)</em> of the current month?</p>
<pre><code><SelectParameters>
<asp:ControlParameter ControlID="txtFromDate" Name="ExpenseDate" PropertyName=... | c# asp.net | [0, 9] |
5,675,973 | 5,675,974 | "getElementById returns undefined" when accessing asp:HiddenField in JavaScript? | <p>I have MasterPage/ContentPage, where in <code>ContentPage.aspx</code> file i have <code>java-script</code> code. I want to move the java-script code out of <code>ContentPage.aspx</code> to a separate js file and do the following:</p>
<p>//in ContentPage.aspx</p>
<pre><code><script type="text/javascript" src='&l... | javascript asp.net | [3, 9] |
3,028 | 3,029 | passing value to another page using javascript | <p>Hello every I want to pass a message from php to JavaScript function and then redirecting to another page i want to show that message . Plz help me out . here is the sample code</p>
<pre><code>Php
if ($result){
$success = "New Page has been added successfully.";
} else {
$error = "Unable to process at this time."... | php javascript | [2, 3] |
1,933,821 | 1,933,822 | Remove similar element in other class | <p>How can remove similar element(ul) in class <code>.makhzan</code> after click on one of <code>111</code> Or <code>222</code> Or <code>333</code> by jquery in html?</p>
<p><strong>Demo:</strong> <a href="http://jsfiddle.net/nkNbc/" rel="nofollow">http://jsfiddle.net/nkNbc/</a></p>
<p>My try:</p>
<pre><code>$('.cla... | javascript jquery | [3, 5] |
4,233,131 | 4,233,132 | insert content to the first selector | <p>I created a checkbox which I want to insert before a cloned phrase and list.</p>
<pre><code>
$("p:contains('text'), ul:last",e).clone().prepend(myCheckbox);</code></pre>
<p>My checkbox is now inserted before each phrase and each list.
I just want to insert the checkbox before the phrase.
Is that possible?</p>
<p>... | javascript jquery | [3, 5] |
1,453,739 | 1,453,740 | calculate height of container with absolutely positioned children | <p>How to calculate the height of a container which has children positioned absolutely? We can assume only direct children are positioned absolutely. Children have the same classes (no IDs) and are rotated, some are positioned using padding, like this:</p>
<pre><code><div class=my-view style="position: relative";&g... | javascript jquery | [3, 5] |
1,778,272 | 1,778,273 | find control in panel in datalist | <p>I had Datalist and inside it panel and inside panel label and I want to find label inside panel inside datalist.I did my code but it didnot work well</p>
<p>
protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
{</p>
<pre><code> Label LblHead = e.Item.FindControl("Label1") as Label... | c# asp.net | [0, 9] |
4,588,223 | 4,588,224 | Page losing formatting | <p>On my page a I have a few textboxes, AJAX tabpanel and a gridview.
On Page_Load event, textboxes are filled in; gridview is populated and so on.
My griedview has a button:</p>
<pre><code><Columns>
<ItemTemplate>
<asp:Button ID="btnRedirect"
Text="Click me"
CommandArgument='<... | c# asp.net | [0, 9] |
2,949,608 | 2,949,609 | JQuery and JS variables | <p>a little misunderstanding with JQuery and JS variables. Simple example:</p>
<pre><code>function someFunc(){
var flag = true;
$(function(){
$.post("/some/address/", {} ,function(data){
if( data == false){
flag = false;
}
});
});
if(... | jquery javascript | [5, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.