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,028,598 | 2,028,599 | Set Selectbox value after refresh with Jquery / Javascript? | <p>I'm have a problem with this code not working when it probably should be:</p>
<pre><code><script language = "javascript">
$(document).ready(function() {
$('#dept').change(
function() {
var datas = $(this).val();
$.cookie("deptdata", datas);
var urlDept = 'catch.cf... | javascript jquery | [3, 5] |
227,875 | 227,876 | How to append the HTML results of a URL call to the DOM? | <p>I have a URL that resides on another domain, like this:</p>
<pre><code>http://ads.adserver.com/ad?site=1233&zone=45435
</code></pre>
<p>When you type this URL in the browser, the result is HTML like this:</p>
<pre><code><a href="http://www.google.com" target=""><img src="htt://ads.adserver.com/i/imag... | javascript jquery iphone | [3, 5, 8] |
400,650 | 400,651 | Is there a way to revert the Jquery drag-drop draggable to its original position if it fails validation? | <p>I am trying to understand how to get this to work and I am unsure...</p>
<p>I have multiple parent divs (the droppables) and multiple child divs (the draggables).</p>
<p>The child divs contain a form and the form contains many input tags.</p>
<p>All of the input elements are required and I want user to enter a va... | javascript jquery | [3, 5] |
6,017,759 | 6,017,760 | different small js files per page VS. 1x site-wide js file? | <p>Different pages of my site have different js needs (plugins mainly), some need a lightbox, some dont, some need a carousel, some dont etc.</p>
<p>With regards to pageloading speed should i </p>
<p><strong>option 1 - reference each js file when it is needed:</strong></p>
<p>so one page might have:</p>
<pre><code>... | javascript jquery | [3, 5] |
32,970 | 32,971 | button toggles between states | <p>I was wondering if anyone knew of some code which implements two buttons where one is just plain text and the other is say a link. When the user clicks on the link the other text becomes a button and vice versa when the user clicks the link again.</p>
<p>Think of it like this: One link is active the other isn't. On... | javascript jquery | [3, 5] |
4,604,369 | 4,604,370 | can't call String.isEmpty() in android | <p>In my android application I can't use <strong><em>String.isEmpty()</em></strong> function which is situated in JDK 1.6. Android 2.1 lib doesn't have this function in java.lang.String class</p>
<p>I tried to input JRE System library to my project, because it has this function, but there was no effects.</p>
<p>How c... | java android | [1, 4] |
3,810,429 | 3,810,430 | InvalidOperationException - Can you get more information out of it? | <p>I am trying to track down and error that a user had on an ASP.NET 3.5 web page. The whole error is the standard "Could not find a row that matches the given keys in the original values stored in ViewState. Ensure that the 'keys' dictionary contains unique key values that correspond to a row returned from the previ... | c# asp.net | [0, 9] |
2,795,154 | 2,795,155 | Force picker view to pop up using Javascript on iPhone | <p>When you touch on a menu item in a web page on the iPhone, a picker view appears that allows you to select from the values that are in the menu.</p>
<p>I have a web page with a menu, but I'm trying to get the picker view to appear programmatically rather than have the user touch it first. This is my form </p>
<pre... | javascript jquery iphone | [3, 5, 8] |
1,259,933 | 1,259,934 | How to read html content of Ajax based site | <p>I would like to know how the HTML source of ajax based sites can be read using HttpWebRequest / HttpWebResponse (That is reading the contents of a website at server side). The problem that I'm facing is that I'm unable to read parts of the webpage which uses Ajax or stuffs like UpdatePanel.</p>
<p>My application is... | c# asp.net | [0, 9] |
1,279,320 | 1,279,321 | jQuery posts version in AJAX call | <p>I have a simple script that gets the value of a textarea and posts this via AJAX. If I post "??" I get strange values. If I log out the value it retrieves before posting it all is correct. But the POST data my script receives includes the jQuery version number. My code and results are are below. Should I be escaping... | php javascript jquery | [2, 3, 5] |
2,076,093 | 2,076,094 | i want to make function for 6 edittext boxes in android which includes all properties of edittext so that i can just simply call function | <p>i have 6 edittext boxes i want to make a function for that 6 edittext boxes so that i can simply call that function instead of defining edittext boxes all the times. here is d code of edittext boxes ....</p>
<pre><code>TableLayout t1=(TableLayout)findViewById(R.id.table_layout01);
TableRow tr1=new T... | java android | [1, 4] |
4,481,914 | 4,481,915 | Store and retrieve arrayList from internal memory? | <p>I'm building a home replacement app. I need to store the ArrayList with the apps the user picked to show on the launcher in the internal memory. I mean the array mustn't be deleted when the app is closed.</p>
<p>I'm very close to finishing the app and I don't think I'll work a lot more on Java, I'm not a programmer... | java android | [1, 4] |
4,274,370 | 4,274,371 | variable not accessible outside success function | <p>this function gets a question from a database and is supposed to return it.
The database is a Parse object(https://www.parse.com/docs/js_guide). As indicated in the comments in the code the question is accessible from within the success function of the db call but not from outside it and simply putting the return st... | javascript jquery | [3, 5] |
1,034,038 | 1,034,039 | Multiple grep for a single array/ Faceted search | <p>I have a long array with multiple items per object and I have to start to exclude items depending on what someone selects as a check box, you can see a basic idea working here</p>
<p><a href="http://jsfiddle.net/caseybecking/QwtFY/" rel="nofollow">http://jsfiddle.net/caseybecking/QwtFY/</a></p>
<p>My question is h... | javascript jquery | [3, 5] |
4,656,534 | 4,656,535 | australia post tracking API integration | <p>we are developing online shopping site and we are using australia post as our shipping method. so we are also using tracking system for australia post.</p>
<p>Can any one tell me how can i integrate australia post API for tracking.</p>
<p>Thanks in advanced,</p>
| c# asp.net | [0, 9] |
1,896,360 | 1,896,361 | How do you move html from one div to another with Jquery without breaking javascript | <p>I have two divs for different sections of my webpage, a working and a reference section. One is fixed size, the other is variable sized and they are vertically stacked. I am trying to design it so that if you want to work on something in the reference pane, you click a link and it swaps all the data between the tw... | javascript jquery | [3, 5] |
5,721,503 | 5,721,504 | Finding an element in a javascript array and returning the position of the matched element | <p>I'm plucking my brain away at this but was hoping someone could help after several failed attempts.</p>
<p>I have an HTML list like this:</p>
<pre><code><ul>
<li><span class="current"></span></li>
<li><span class="normal"></span></li>
</ul>
</code></pre>
... | javascript jquery | [3, 5] |
4,490,401 | 4,490,402 | Check username and password in Login Form (jQuery) | <p>I use jQuery to check username and password in Login form. I use GET method. Doing so well?</p>
| javascript jquery | [3, 5] |
3,652,704 | 3,652,705 | When I moved from study of JavaScript to study jquery | <p>Which is better, learn the basics of JavaScript, and then jQuery</p>
<p>Or master JavaScript and then learn jQuery</p>
<p>Now I know the basics well But I did not write many exercises of javascript</p>
<p>thanks</p>
<p>sorry about My bad English</p>
| javascript jquery | [3, 5] |
2,393,360 | 2,393,361 | How to add a new field each time a button is clicked | <p>I want to create a new fileupload field each time i click on a button.
i have a form in a page and i want to add the fields to that form.
i tried to save an array of fileupload fields in a session but it deosnt seem to work.</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostB... | c# asp.net | [0, 9] |
1,514,497 | 1,514,498 | jquery - save image as specified filename | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7717851/save-file-javascript-with-file-name">Save file Javascript with file name</a> </p>
</blockquote>
<p>Here is jsfiddle: <a href="http://jsfiddle.net/WwDdr/3/" rel="nofollow">http://jsfiddle.net/WwDdr/3/</a>... | javascript jquery | [3, 5] |
677,708 | 677,709 | Javascript asp.net c# multi objet pass to Js code file | <p>I have code on html page and it is working:</p>
<pre><code>document.getElementById('<%=IdOstan.ClientID %>').options.length = 0;
</code></pre>
<p>it is part of a function. Object is found and code run.
But if I move code to a seperate js file, then call the file using :</p>
<pre><code><script src="../../... | c# javascript asp.net | [0, 3, 9] |
5,637,963 | 5,637,964 | How to show a jquery ui dialog at page reload? | <p>I want to show a jquery ui dialog , if user will reload, close the browser. I tried :</p>
<pre><code>$(window).bind('beforeunload', function () {
$("#confirm").dialog({ width: 500, modal: true,
buttons: {
"Ok": function () {
// let the page reload
},
"Ca... | javascript jquery | [3, 5] |
953,132 | 953,133 | Layout orientation? | <p>I made 2 layout , the first one for android 2.1 ( I need it only in <code>portrait</code>) and second one for android 3 ( I need it only in <code>landscape</code>) and these 2 layout use one class . now how can i set these two layout on landscape and portrait? if i set it in <code>AndroidManifest</code> , i can just... | java android | [1, 4] |
2,997,663 | 2,997,664 | how to get stored procedure's batches query in different dataset | <p>I'm trying to fetch all the data from one stored procedure for different different Dataset in a single page.</p>
<pre><code>CREATE PROCEDURE [dbo].[usp_Details](@status int, @Id int)
AS
begin
Select u.Id,u.FName,u.ImageName,u.ImagePath,u.Sex FROM [User] as u
where u.Id IN (SELECT MyId as Id FROM Friends WHERE Fr... | c# asp.net | [0, 9] |
5,945,651 | 5,945,652 | Calling a method in parent page from dynamically generated user control | <p>I have a problem similar to <a href="http://stackoverflow.com/questions/623136/calling-a-method-in-parent-page-from-user-control">Calling a method in parent page from user control</a>, except that my user control is dynamically generated at page creation.</p>
<p>I tried the preferred solution in the answer above, b... | c# asp.net | [0, 9] |
2,066,340 | 2,066,341 | jquery asp load content | <p>(I work in asp.net)
I'm looking for a way to have a div with a jquery.toggle ( plus/less button)</p>
<p>the content of the div need to load only when the div is visible (need to be hide on page load).</p>
<p>Did I "NEED" to have a page with the content of my div</p>
<p>Or I can use an updatepanel inside the div. ... | jquery asp.net | [5, 9] |
4,407,124 | 4,407,125 | How can I give control back (briefly) to the browser during intensive JavaScript processing? | <p>I have read the post <a href="http://www.julienlecomte.net/blog/2007/10/28/">here</a> about using setTimeout() during intensive DOM processing (using JavaScript), but how can I integrate this function with the below code? The below code works fine for a small number of options, but when the number of options gets to... | javascript jquery | [3, 5] |
96,320 | 96,321 | Updating an ImageView with an image from a URL | <p>Within my android application, I'm wanting to update an ImageView, with an image specified from a URL. This URL has been fetched via an API as part of an AsyncTask.</p>
<p>I have defined the ImageView as follows:</p>
<pre><code><ImageView
android:adjustViewBounds="true"
android:scaleType="fitCenter"
... | java android | [1, 4] |
4,496,476 | 4,496,477 | How do i modify an ArrayList from one Activity in a separate Activity | <p>How do i add more <code>Cars</code> to my <code>ArrayList<Car></code> from a separate <code>Activity</code>?</p>
<p>Because I have something like this :</p>
<pre><code> private List<Car> getData() {
List<Car> cars = new ArrayList<Car>();
cars.add(new Car("Dodge", "Viper"));
cars.add(new... | java android | [1, 4] |
2,385,455 | 2,385,456 | Getting php session using c# | <p>I know how to get the source code but the website that I have been working on uses PHP session, this mean that you will need to login(which I have) and use the session ID that the server send back. How do I do this?</p>
| c# php | [0, 2] |
4,658,690 | 4,658,691 | Java primitive type bit size on Android | <p>In a Java program running on the JVM, primitive data types have guaranteed bit size. e.g. </p>
<pre><code>byte 8-bit
short 16-bit
int 32-bit
</code></pre>
<p>et cetera.</p>
<p>Are these bit sizes guaranteed on Android as well? I've been looking for documentation on Android Developers for confirmati... | java android | [1, 4] |
3,893,764 | 3,893,765 | Dynamically generated buttons, on click not being executed | <p>I need to generate a dynamic list of buttons, I already did, with an event handler attached to it.</p>
<p>However the event handler is not being executed.</p>
<pre><code>private void GetOptions(EcoBonusRequest request)
{
var ecobonuswworkflow = WorkflowFactory.CreateEcobonusWorkflow();
... | c# asp.net | [0, 9] |
5,387,769 | 5,387,770 | Execute a function at the end of the last effect of a Jquery.queue | <p> I would like to use fx and functions
I have a animation, and i would like to, at the end of the queue, do an ajax call. <br/>
I can't seem to make it work... <br/>
I have absolutely no idea how to procede... </p>
<p>that would a very very rough example, but</p>
<pre><code>$('... | javascript jquery | [3, 5] |
3,431,396 | 3,431,397 | how to edit column value before binding to gridview after retriving from database? | <p>After i retrieved a set of datatable from database, i need to edit the rows value before binding to the gridview.
for example, a set of datatable is retrived from database. </p>
<p>eg: [userid], [userEmail] --> 1 , james@hotmail.com</p>
<p>i would like to change "james@hotmail.com" to "james" then bind it to grid... | c# asp.net | [0, 9] |
4,029,930 | 4,029,931 | jquery/javascript caching question | <p>i was wondering - when using jQuery (or any other javascript include) in my web,
does the browser cache it after the first download for all all pages (i assume yes) or will it download it every time?</p>
<p>2nd, when the user quits the browser and starts it again (for loading my website), will the jquery js file st... | javascript jquery | [3, 5] |
2,752,034 | 2,752,035 | team foundation error in VS 2010 | <p>I get this error when opening code in VS. I am not sure what its' looking for or where to check in the code.</p>
<p>Go offline. The team foundation server default collection <a href="http://www.win-m2axnpi3m6v8080/ts/defaultcollection" rel="nofollow">http://www.win-m2axnpi3m6v8080/ts/defaultcollection</a> is curren... | c# asp.net | [0, 9] |
3,262,711 | 3,262,712 | putting source of all images into an array | <p>What is the cleanest way to put the source attribute string of all images within a div into an array?</p>
<p>I was hoping this would work - </p>
<pre><code>var imageSourceArray = $("#leDiv img").attr('src');
alert(imageSourceArray[3]); //not alerting the source, boo hoo.
</code></pre>
<p>Do I need to loop throug... | javascript jquery | [3, 5] |
4,294,009 | 4,294,010 | jQuery doesn't get loaded in client's office | <p>I have a strange problem that is only happening in a single location. I am using jQuery and my page is working fine in my machine as well as in other locations. In a single location the page isn't working. I shamelessly asked the client to use Firefox and install Firebug and I am surprised to find that a "jQuery is ... | javascript jquery | [3, 5] |
4,831,621 | 4,831,622 | GridView is not shown in the content page | <p>I have a gridview in my Master page.I have taken an item template inside it. I have given some text to the controls initially.
In the design view of the content page gridview is visible but while running the page it's not showing gridview.
when i deleted gridview and put some simple text in place of it ,it's working... | c# asp.net | [0, 9] |
1,421,648 | 1,421,649 | Android intent bundle always null? | <p>I am running the below code. There are two snippets. The first is how I am setting the bundle and the second how I am retrieving it. For some reason every time i check the bundle it returns as null.</p>
<p>Any advice on why this is or what I have done wrong would be greatly appreciated.</p>
<pre><code> Intent i... | java android | [1, 4] |
2,087,332 | 2,087,333 | ASP.NET Login box positioning | <p>I am using VS2005 C#. I have a login box in my .aspx page, but I can't find the parameter I have to set too position it in the middle of my webpage.</p>
<p>I have tried using <code>&nbsp;</code> but it did not work as well.</p>
<p>Below is my code for my login box:</p>
<pre><code><asp:login id="Login1" run... | c# asp.net | [0, 9] |
4,115,744 | 4,115,745 | Proxy setings for web service(client or service hosted server) | <p>I am trying to add the a web service through Web reference, i am able to find the service while trying to add it, not able to add, the option is disabled. I suspect this is because of the proxy settings, What do you suggest? While mentioning he proxy in the the client application which proxy should i mention,the pro... | c# asp.net | [0, 9] |
4,758,268 | 4,758,269 | jquery/js: OnFocus OnBlur? | <p>Hey, i wish to make an ajax call if it has lost the focus from my site for 1 minute, so when it's onfocus again it send an ajax call?
How can i do that?</p>
| javascript jquery | [3, 5] |
3,675,575 | 3,675,576 | Single reusable function to open a single instance of form | <p>I am trying to create a reusable function that can open a single instance of form. Means if a form is not already open it should create and show the new form and if already open it should bring the existing form to front.</p>
<p>I was using the following function,</p>
<pre><code>if (Application.OpenForms["FPSStora... | c# asp.net | [0, 9] |
1,717,444 | 1,717,445 | Reading custom format files in C# | <p>I would like to fetch n bytes from specific place in a file into my
specific data structure (a struct). </p>
<p>The old C - application (which we are porting) uses fseek() and fread().</p>
<p>Is where a comparable solution in C#/.Net, without using the Win32-API?</p>
| c# c++ | [0, 6] |
1,554,592 | 1,554,593 | How to upload a file without refreshing page? | <p>I want to upload files in server folder but while uploading i dont want to refresh aspx page.
I mean to say i dont want refresh page while i click on upload button.
So how can i do??</p>
| c# asp.net | [0, 9] |
2,404,568 | 2,404,569 | Jquery repeat function every 60 seconds | <p>Using setTimeout() it is possible to launch a function at specified time, e.g.:</p>
<pre><code>setTimeout(function, 60000);
</code></pre>
<p>But what if I would like to launch the function multiple times? Every time a time interval passes, I would like to execute the function (every 60 seconds, let's say).</p>
| javascript jquery | [3, 5] |
2,690,933 | 2,690,934 | jquery.backstretch.min.js pulling image from databse or variable | <p>here the problem that nobody seems to know the answer, </p>
<p>i got </p>
<p>i want use jquery.backstretch.min.js to resize image variable from database ,but it's not working???</p>
<p><strong>PHP</strong></p>
<pre><code>$usr = $_SESSION['user'];
$q10 = "SELECT * FROM `users` WHERE `user` = '$usr'";
$result10 ... | php javascript | [2, 3] |
722,771 | 722,772 | Retaining select box based values on page refresh | <p>I have one form where in select box in which I have two options "oui" and "non":</p>
<ul>
<li>When "oui" is selected "hello" is displayed</li>
<li>When "non" is selected "not valid" is displayed</li>
</ul>
<p>My problem is when I refresh page after submitting form, "oui" or "non" is properly selected but not the v... | php jquery | [2, 5] |
2,731,534 | 2,731,535 | Scroll tabs with jQuery? | <p>I have a horizontal tab menu. These tabs are all li elements. I show always 5 of them at once. To the left and right I have buttons which scrolls these tabs to either side. I am just not sure how to achieve that. Can I put the next 5 tabs in a different div which will be shown on click? That wouldnt be the best solu... | javascript jquery | [3, 5] |
1,802,663 | 1,802,664 | How send C# DateTime object into Javascript? | <p>I want to send C# DateTime object into Javascript. How can I accomplish that?</p>
| c# javascript | [0, 3] |
4,244,330 | 4,244,331 | jQuery scrollTo accordion end position | <p>I have multiple accordions on a page which have large amounts of text inside each. Only one accordion can be opened at once. I have scrollTo plugin and I'm animating the scrollTo when an accordion is clicked to align with the top of the accordion. If I have too much text, the scrollTo doesn't align to the accordi... | javascript jquery | [3, 5] |
4,341,883 | 4,341,884 | Jquery fade in fade out issue | <p>Here is the page I'm working on: <a href="http://dsa.dartmouth.edu/" rel="nofollow">http://dsa.dartmouth.edu/</a>. Below the slideshow are four panels that change colors on hover. The background color works fine, but the title color never turns back to its dark color after turning white. Below is the javascript cont... | javascript jquery | [3, 5] |
4,312,656 | 4,312,657 | 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] |
3,619,169 | 3,619,170 | Why aren't my dynamically-added form inputs posting? | <p>I'm working on a form where I need to dynamically add inputs whenever the user clicks a "more widgets" button. There's a hidden div inside the form, and I append the inputs to it with jQuery, like this:</p>
<pre><code>$('div#newwidgetinputs').show().append(newInputs);
</code></pre>
<p>They show up, are properly na... | php jquery | [2, 5] |
3,743,008 | 3,743,009 | jQuery UI dialogs and TinyMCE in fullscreen mode | <p>I'm using tinyMCE and jquery-ui in the same application. The problem is, when tinyMCE is switched to fullscreen mode, it hides all the jquery-ui dialogs. Any ideas on how it is possible to keep the dialogs on top of the editor even when its in fullscreen mode?</p>
| javascript jquery | [3, 5] |
2,547,823 | 2,547,824 | Android emulator queues clicks? | <p>The problem i'm facing at the moment is that the android emulator seems to queue the clicks i do on the button below. If i click in a regular speed, it's no problem what so ever. But whenever i so to say, spam-click the button, it seems that it recieves all clicks and does that number of operations. </p>
<p>Example... | java android | [1, 4] |
2,401,004 | 2,401,005 | improveddown causing scrollbar flickering | <p>I have used improveddropdown jquery plugin... my page has 10-20 dropdowns.. when the page loads the vertical scrollbars starts flickering.. it flickers because the improveddrodown jquery runs on dropdowns which takes some time... how to avoid this flickering of the scrollbar?</p>
| jquery asp.net | [5, 9] |
1,226,325 | 1,226,326 | jquery slide delay for jooml yt megamenu plugin | <p>I have a working joomla extension (YT Mega menu). I want to make some updates to the existing code.</p>
<p>Here is the code for mouseenter and mouseleave,</p>
<pre><code> li.addEvent('mouseenter', function (e) {
//if (objectReference.hasOpenning) return;
log('enter parent of ' + (ul ? ul.id ... | javascript jquery | [3, 5] |
2,031,553 | 2,031,554 | use of twitter apis in android | <p>i spent my time mainly as a graphic/web designer. I realize that there is no really beautiful designed twitter client for android. So, I designed the UI myself and its quiet impressive I have to say. The problem is, I never went past the android tutorials on the developers website because Im about to start college a... | java android | [1, 4] |
4,834,454 | 4,834,455 | jQuery function call not working | <p>I am trying to add and remove a class within a <code><span></code>, but the removeClass is not working though the function is being called. </p>
<pre><code>setInterval(changeClass,4000);
var spanId=1;
function changeClass(){
$('#'+spanId).addClass("hilite");
setTimeout(remove, 1000);
spanId++;}
fun... | javascript jquery | [3, 5] |
3,598,172 | 3,598,173 | Why do some JS objects get displayed as arrays in the console? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7261670/what-makes-a-jquery-object-show-up-as-an-array-in-chromes-developer-tools">What makes a jQuery object show up as an array in Chrome's Developer Tools?</a> </p>
</blockquote>
<p>I would like to know w... | javascript jquery | [3, 5] |
2,839,913 | 2,839,914 | Android ListView Filtering Without Repeatedly Instantiating ArrayAdapters | <p>I have a ListView filled with twitter tweets. I made a custom Tweet class so I could store a special type number. So, I have the Tweet class and custom ArrayAdapter:</p>
<pre><code>class Tweet {
private int typeNumber; // My unique type number which does not come from Twitter
private String message;
// ... | java android | [1, 4] |
4,121,281 | 4,121,282 | The process cannot access the file because it is being used by another process while deleting image | <p>I am trying to delete original image after thumbnail create but original image cannot be deleted. It throws the exception </p>
<blockquote>
<p>The process cannot access the file because it is being used by another process.</p>
</blockquote>
<p>Here is my code </p>
<pre><code>public static string deleteImage(str... | c# asp.net | [0, 9] |
1,238,086 | 1,238,087 | jQuery $.Get not working correctly | <p>I'm having a problem with $.get that I've never had before, and can't seem to be able to fix it. When calling the following function:</p>
<pre><code>function getDefinition (word) {
var toget = "http://www.stands4.com/services/v1/defs.aspx?tokenid=TOKEN&word=" + word;
jQuery.support.cors = true;
$.get(toget, fun... | javascript jquery | [3, 5] |
315,626 | 315,627 | jQuery insertAfter doesn't work in some situations | <p>I want to add a hidden input after some element.
I am using this code:</p>
<pre><code>$("<input type="text">").insertAfter(".addProduct");
</code></pre>
<p>It doesn't work. But if I replace to it works.</p>
<pre><code>$("<span>ddd</span>").insertAfter(".addProduct");
</code></pre>
<p>It works... | javascript jquery | [3, 5] |
3,130,843 | 3,130,844 | jQuery .hover() auto return to previous state | <p>I am wondering if there is a simple solution where after the user un-hovers, the data will return to its original state? My current solution is to save the original state, and load this data once the user has un-hover. This can become tedious as each hover changes alot of text fields, and it is a hassle to store all... | javascript jquery | [3, 5] |
3,969,470 | 3,969,471 | Can I run some custom script after ASP.NET client side page validation fails? | <p>I'm trying to run some client side script if, <em>and only if</em>, the client side Page validation fails, and can't figure out where I can hook it in.</p>
<p>If i bind my JavaScript function to the OnClientClick of the button that submits the form, it runs before the client side validation. If I bind it to the OnS... | javascript asp.net | [3, 9] |
1,561,316 | 1,561,317 | Unable to catch the Dropdown selected value in a textbox inside a repeater | <p>I have a <code>DropDownList</code> inside a repeater and whenever the selected text is changed, I have to show it in a <code>TextBox</code> but I'm getting <code>Object reference not set to an instance of an object</code> error</p>
<pre><code>protected void Ddl_SelectedIndexChanged(object sender, EventArgs e)
{
... | c# asp.net | [0, 9] |
2,785,227 | 2,785,228 | Java Request Codes in constant variables | <p>According to the docs for this function: <a href="http://developer.android.com/reference/android/app/Activity.html#startActivityForResult%28android.content.Intent%2C%20int%29" rel="nofollow">startActivityForResult()</a></p>
<p>I'm seeing that there is a request code that it accepts. If I understand correctly I'll ... | java android | [1, 4] |
2,689,541 | 2,689,542 | How to insert into a specific location in a list with jQuery? | <p>I have a list of form-field divs inside a containing div. </p>
<pre><code><div id="container">
<div class="form-field">
// Data
</div>
<div class="form-field"> // selected item
// Data
</div>
<div class="form-field">
// Data
... | javascript jquery | [3, 5] |
5,501,957 | 5,501,958 | How to change the position of div during run time? | <p>I want to change the position of div during run time. i have taken two div. id is Div1 and Div2.
Div2 is by default false.
whenever user click on div1 div2 is visible and after user press the mouse down key on Div2 and drag, then position of the div2 will be change.
position will be similar to cursor position. When... | javascript asp.net | [3, 9] |
5,150,630 | 5,150,631 | custom calendar in Android | <p>I have created a custom calendar(Date for starting of the year is to be entered by the user).</p>
<p>For example,if a user sets date as 13th May, then his year must be set to 13-May to 12-May.Now I need to calculate the difference between 13th may and todays date(duration between 13th may- 24 sep)in number of days.... | java android | [1, 4] |
5,153,772 | 5,153,773 | Jquery Editable Table: How can i Make certain cells editable? | <p>I am building an editable table in jquery for fun.</p>
<p>Here is my table:</p>
<pre><code><table id="horiz-min" summary="Indices">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">ID</th>
<th scope="col">Description</th>
... | javascript jquery | [3, 5] |
522,393 | 522,394 | Sending JSON to server, using jQuery | <p>I am trying to send simple data to theservre, and I need a "rough and ready" way to do this.</p>
<p>This is what I have so far:</p>
<pre><code>var emails = ['a@123.com', 'b@123.com', 'c@123.com'];
var ruff_json = "{ 'emails': [";
for (i in emails)
ruff_json += ((i == 0) ? '' : ', ') + '\''+emails[i]+'\'';
ru... | php jquery | [2, 5] |
363,359 | 363,360 | Get HREF property | <pre><code><a class="some" id="1" href="/s/1/2">link 1</a>
<a class="some" id="2" href="/s/2/3">link 1</a>
<script>
$(document).ready(function() {
$('.some').click(function() {
var id = this.id;
var link = $(this).css('href');
alert(id);
alert(link);
... | javascript jquery | [3, 5] |
147,513 | 147,514 | Why does this while loop make the browser crash? | <p>I'm trying to compare the differences between similar snippets with javascript and C++. Here's my snippet:</p>
<pre><code>var i = 0;
while (i<=10)
{
document.write('Hello<br />');
//i++;
}
</code></pre>
<p>With C++, if I write an equivalent snippet, I recall the console prints that line forever u... | javascript c++ | [3, 6] |
1,307,567 | 1,307,568 | How to call a code behinds button click event using javascript | <p>Is it possible to call a server side buttons click event using javascript or jquery
If yes then how to do it</p>
| javascript jquery | [3, 5] |
4,223,212 | 4,223,213 | jQuery centering div to window vertically resizing issue | <p>I am using this method to center a div vertically on my page:</p>
<pre><code>$(window).resize(function() {
$('.container').css({
top : ($(window).height() - $('.container').outerHeight()) / 2
});
});
$(window).resize();
</code></pre>
<p>But the code doesn't work initially. I couldn't figure out wha... | javascript jquery | [3, 5] |
3,125,978 | 3,125,979 | How to make the 'Are you sure you want to navigate away from this page' warning message in browser? | <p>I have a web page that contains a textbox and a submit button. When the user edits the text in the textbox and clicks another link (not the submit button) how do I display the 'Are you sure you want to navigate away from this page' popup message?</p>
<p><strong>I have researched this on the net</strong> and found a... | c# javascript asp.net | [0, 3, 9] |
2,939,575 | 2,939,576 | What is the best way to encode/protect a javascript-code? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript">How can I obfuscate JavaScript?</a> </p>
</blockquote>
<p>I want to "protect" my Javascript code. Are there any good, recommended ways which are very difficult to hack?</p>... | javascript jquery | [3, 5] |
3,997,890 | 3,997,891 | Do I have to create a thumb file for each picture? | <p>I have a website where there's a gallery, in this gallery there are thumbs that when clicked take you to an ad from linkbucks. Then when you wait for 5 secs then you can see the picture in its real size. The problem is, the user can skip this ad by just clicking on the thumb with the right button of the mouse, then ... | php javascript jquery | [2, 3, 5] |
2,385,437 | 2,385,438 | How to prevent page reload after alert box on key down event? | <p>I want to prevent page reload after clicking ok on alert box. click search button is ok. But now I meet problem in enter key down event. Someone help me please.</p>
<p>This is my html</p>
<pre><code><div id="email">
<input type="text" id="txtSearchEmail" name="email" onkeydown="Javascript: if (event.key... | javascript jquery | [3, 5] |
2,896,391 | 2,896,392 | how to latebind click handler after ajax call without using callback | <p>we are trying to create a custom cms where when inside anchor tag you put a rel attribute and a target position and it automatically attach a click that can fetch data from specified location in rel tag. again new content(came through ajax) can have anchor tag with rel attribute.</p>
<p>how can i achieve it withou... | javascript jquery | [3, 5] |
1,098,678 | 1,098,679 | .prev(selector) not working | <p>Here's the problem (<a href="http://jsfiddle.net/vWafe/1/" rel="nofollow">live copy </a>):</p>
<p>CSS:</p>
<pre><code>div {
border: 1px solid black;
}
</code></pre>
<p>HTML:</p>
<pre><code><div>.</div><br>
<div>.</div><br>
<div class="test">Should have a blue border&... | javascript jquery | [3, 5] |
4,351,346 | 4,351,347 | jqAlert Line Breaks? | <p>I'm being unsuccessful creating an alert with line breaks. I'm new to jQuery so I'm sure I'm missing something simple, which I'm also not finding via web searches.</p>
<pre>
jqAlert({ text: 'The item:\n\n ' + item.description + '\n\nhas already been added.', title: 'Duplicate Entry' });
</pre>
<p>I have also tried... | javascript jquery | [3, 5] |
2,248,402 | 2,248,403 | Android getWindow to set the background of my activity according to Listpreference | <p>I've basically created a ListPreference where user would be able to choose from a list of options. After they have chosen one of the available option,the app will return to the main activity and the background image will change accordingly,however,it seems my app would't be able to detect the change in preference an... | java android | [1, 4] |
2,497,538 | 2,497,539 | Timer.schedule not work in power save mode? | <p>timer.schedule not work in power save mode why ?</p>
<p>Android</p>
| java android | [1, 4] |
4,327,146 | 4,327,147 | ANDROID:How to format text that has to be saved in textfile | <p>I have an app in which I can choose data from a database and then I show the result in a TableView. Next thing I want to do is save the chosen data (currently shown in the TableView) into a textfile, so it can copied onto a PC and printed out on to paper. What I'm trying to achieve is equal spaces between each colum... | java android | [1, 4] |
1,940,252 | 1,940,253 | How to: If fadeIn do not fade again (jQuery) | <p>I have this simple code that when you press a key it fades in a div. When I press it twice, it fades it twice. Is it possible you can prevent this with a simple line or two? Like if fadein do not fadeIn again or something?</p>
<p>The code looks like:</p>
<pre><code>jQuery(document).bind('keydown', 's',function (ev... | javascript jquery | [3, 5] |
5,135,921 | 5,135,922 | sorting elements in a javascript multidimensional array | <p>Doing some work in javascript
I have a multidimensional made up in this format ( I know it’s not an actually array object, bit it gives you an idea of the format</p>
<pre><code>[
[[“ip-address”][timestamp]],
[[“ip-address”][timestamp]],
[[“ip-address”][timestamp]],
[[“ip-address”][timestamp]]
]
</code></pre... | javascript jquery | [3, 5] |
1,620,430 | 1,620,431 | Image upload Input: 1 input that will take up to 4 uploads | <p>I am right now working with this image upload from <a href="http://dondedeportes.es/uploader-previewer/" rel="nofollow">HERE</a>. Instead of having 3 separate image upload inputs is there a way to just have one that will take maximum 4 requests? </p>
<pre><code><script>
(function($) {
$(document).ready(func... | php jquery | [2, 5] |
6,021,372 | 6,021,373 | how to kill the session when user closed the brower without logout | <p>I am developing one aspnet application in that i am using Sessions. if user login into the application and click on logout here i am closing session. </p>
<p>suppose if the user doesn't click on the logout and he close the browser. how to kill the session when user closed the brower without logout</p>
<p>Regards
k... | c# asp.net | [0, 9] |
492,158 | 492,159 | Dynamically generated html elements stop working | <p>In the following code I have some comments in an array which are displayed in a div using jQuery. Each comment has an options button which works fine until I post a new comment. I tried using unique IDs for each element but it didn't work either.</p>
<p>When the page loads, the options buttons work; but when I subm... | javascript jquery | [3, 5] |
1,417,304 | 1,417,305 | jQuery - Imitate Click | <p>I want to imitate an anchor click when a user clicks on the containing <code><TD></code> but having problems.</p>
<p>This is the JS part:</p>
<pre><code>$('contactTab').click(function() {
$('contactTabLink').trigger("click");
});
</code></pre>
<p>And this is the HTML part:</p>
<pre><code><td class="... | javascript jquery | [3, 5] |
6,005,883 | 6,005,884 | Need help with string manipulation please | <p>If my string has values as :-</p>
<pre><code>myString = "Good Morning,Good Night";
</code></pre>
<p>and I want to reverse the values in it like as follows:-</p>
<p>I want the final values in the myString as:-</p>
<pre><code>myString = "Good Night,Good Morning";
</code></pre>
<p>How do I achieve this? Any help w... | c# asp.net | [0, 9] |
3,156,831 | 3,156,832 | How to get values from templatefields in Grdiview SelectedIndexChanged | <p>I have a gridview and sqldatasource.</p>
<pre><code>protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow row = GridView1.SelectedRow;
TextBox rrdp = (TextBox)row.FindControl("name");
txt1.Text = rrdp.text.ToString()
}
</code></pre>
<p>But I'm getti... | c# asp.net | [0, 9] |
280,024 | 280,025 | android : getting installed application's default methods | <p>Is there any default methods to perform backup process. Tell me if anyone knows. Thanks in Advance.</p>
| java android | [1, 4] |
79,156 | 79,157 | add web Reference in webservices issue | <p>i have developed a web servcies in my local system with name (inbox service).
when i did add web reference
i got like this in my web service descpition file</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<discovery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w... | 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.