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
442,796
442,797
problem with window scrolling with asp.net button control
<p>In web application, i tried scrolling the window vertically by increasing a y axis height to 500 with a javascript that is attached to OnClientClick event of a asp.net button control with id Button1.</p> <p>The script i have used is</p> <pre><code>&lt;script language="JavaScript"&gt; function scrollToWindow() { ...
javascript asp.net
[3, 9]
2,437,740
2,437,741
More convert jquery object to string
<p>Yes I have see the post <a href="http://jquery-howto.blogspot.com/2009/02/how-to-get-full-html-string-including.html" rel="nofollow">here</a></p> <p>And I tried that but the problem is, my jquery object looks more like this:</p> <pre><code>var $foo = $('&lt;ul&gt;&lt;li id="' + line.id + '" label="' + label + '" r...
javascript jquery
[3, 5]
2,472,695
2,472,696
Jquery click function effect
<p>I have a jquery code, but I'm a little bit confused on how can I put a css on this:</p> <pre> $(document).ready(function () { $('span.account-menu').click(function () { $('ul.menu').slideToggle('medium'); }); }); </pre> <p>I wanted to add this css in the click function.</p> <pre> border: 1px solid #99...
javascript jquery
[3, 5]
880,114
880,115
How to extend ListItem to be able to have childs inside BulletList
<p>Using asp.net C#. I have BulletList, and I would like to add ListItem that will render with childs. That is, inside every <code>&lt;li&gt;</code> I can add more controls to be rendered.</p> <p>How can I achieve that?</p> <p>thanks</p>
c# asp.net
[0, 9]
2,293,190
2,293,191
Cleaner way of checking values of textboxes
<p>I have a table that lists items and has a quantity textbox column that starts with an initial value of 0.</p> <pre><code>item name | price | quantity item1 | $1.00 | 0 item2 | $1.00 | 0 item3 | $1.00 | 0 </code></pre> <p>I want to check if all of the rows have 0 as their value.</p> <p>I'm cur...
javascript jquery
[3, 5]
2,066,707
2,066,708
Using Page.ClientScript.RegisterClientScriptBlock not working
<p>I am trying to fire a pop up as shown below, but it is not working. Please help</p> <pre><code>public void btnSubmit_Click(Object o, EventArgs e) { if (checkFileExists(Convert.ToString(fileInfo))) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Msg", "&lt;script type=\"text/javascript...
c# asp.net
[0, 9]
2,779,595
2,779,596
How to access the upper and lower element of a given element in jquery
<p>I have some div elements in a sequence, like :</p> <pre><code> &lt;div id="a"&gt;&lt;/div&gt; &lt;div id="b"&gt;&lt;/div&gt; &lt;div id="c"&gt;&lt;/div&gt; &lt;div id="d"&gt;&lt;/div&gt; </code></pre> <p>Suppose i have id of 3rd position div which is <code>c</code>. Now i want to access the div element which pl...
javascript jquery
[3, 5]
2,841,904
2,841,905
Call Javascript from code behind function in asp.net
<p>How to Call Javascript function from code behind after button click event;</p> <pre><code> string popupScript = "&lt;script language='javascript'&gt;" + "alert('hai');" + "&lt;/script&gt;"; ClientScript.RegisterStartupScript(Page.GetType(), "script", ...
c# javascript asp.net
[0, 3, 9]
3,921,195
3,921,196
In my android project there are two classes and there is a button on first class,i need to view next page when i click on the button.
<p>In my android project there are two classes and there is a button on first class,i need to view next page when i click on the button. </p> <p>package com.example.restaurantapp;</p> <pre><code>import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; i...
java android
[1, 4]
5,068,504
5,068,505
C#: Is there a faster way to check if an external web page exists?
<p>I wrote this method to check if a page exists or not:</p> <pre><code>protected bool PageExists(string url) { try { Uri u = new Uri(url); WebRequest w = WebRequest.Create(u); w.Method = WebRequestMethods.Http.Head; using (StreamReader s = new StreamReader(w.GetResponse().GetResponseS...
c# asp.net
[0, 9]
5,650,346
5,650,347
GridView ASP if the table is empty
<p>How can I display a message in the place of the GridView if there is no results come from the database ? </p> <p>Thanks in advance .. </p>
c# asp.net
[0, 9]
3,760,420
3,760,421
Uploading video content whilst still recording
<p>This is a bit of a weird question but, with the functionalities of C++, c# and objective C as we speak is there any possible way for video content to be uploaded whilst its recording. So as you record the video it would be being compressed and uploaded to a website.</p> <p>Would this involve cutting the video into ...
c# c++
[0, 6]
4,556,512
4,556,513
how to upgrade ajaxcontroltoolkit version from 3.0.20820.0 to version 3.5.40412.2
<p>i am working in webapplication in asp.net using c#. I have a problem that currently i am using ajaxcontroltoolkit version 3.0.20820.0 but in this toolkit i don't have Editor Ajax control so i want to upgrade it with new version ajaxcontroltoolkit version 3.5.40412.2</p> <p>When i upgrade it then my old ajax control...
c# asp.net
[0, 9]
1,155,864
1,155,865
jquery selects returning undefined value - asp.net webform
<p>simple bit of jquery. I have a div with clss linklist, inside it has several linkbuttons</p> <pre><code>&lt;script type="text/javascript"&gt; $(function () { $('#linklist a').each(function () { alert(this.text); }); }); &lt;/script&gt; </c...
jquery asp.net
[5, 9]
4,375,079
4,375,080
Issue with %0A replace in android
<p>how can i remove %0A from this string :- this is enter key code, which i need to remove from entire string. so how can i do this? </p> <p><strong>input:-</strong></p> <p>"NA%0A%0AJKhell this is test %0A"</p> <p><strong>Output:-</strong></p> <p>NAJKhell this is test </p> <p>i have tried</p> <pre><code> String ...
java android
[1, 4]
118,780
118,781
efficiency of cloning dom nodes
<p>I'm building an application where I end up with a fairly long list of repeated elements that need to be configured based on some objects I'm getting via AJAX. I'm thinking about creating one of these elements in html and leaving it hidden on the page and then cloning this element and using jQuery to modify it based ...
javascript jquery
[3, 5]
1,708,326
1,708,327
Loading complete Html-page in contentpane of aspx-page
<p>here at home I have different projects and libraries for which I've created an helpfile with Sandcastle. Now Sandcastle provides also the possibility to create a website.</p> <p>What I would like to do is to create an aspx-page where I can dynamically create a menu and where the existing helpfile-websites can be so...
c# jquery asp.net
[0, 5, 9]
1,970,451
1,970,452
Add external javascript to user control... but put the file reference at the bottom of the page
<p>I need to be able to add an external js file for a user control (using</p> <pre><code> this.Page.ClientScript.RegisterClientScriptInclude("SuggestionSearch", "~/Secure/Shared/SuggestionSearch.js"); </code></pre> <p>syntax)</p> <p>But it puts the javascript file on the page too early... is there a way to put t...
javascript asp.net
[3, 9]
841,929
841,930
remove text from string array with javascript/jquery
<p>Using <code>.each()</code> to go through an array, and trying to use <code>replace()</code> to find all the "<code>&lt;br&gt;</code>" and replace with " " (pretty simple) but nothing happens - no errors, it just doesn't replace.</p> <pre><code>//get values of each td in row var values = ''; var tds = $(this).find('...
javascript jquery
[3, 5]
823,658
823,659
jQuery.inArray not behaving as expected
<p>I'm trying to loop through a list of numbers and check if that number is part of another list of numbers using jQuery.each and jQuery.inArray. jQuery.inArray does not seem to be behaving as expected.</p> <p>Here is my code:</p> <pre><code>var some_numbers = [1, 2]; var more_numbers = [0, 1, 2]; $.each(more_number...
javascript jquery
[3, 5]
950,360
950,361
Replacing commas in textareas with jquery or javascript
<p>I have a form with multiple text areas. </p> <pre><code>&lt;textarea name="datasetname_1" cols="40" rows="5" id="datasetname_1" class="validate[required] text-input"&gt;&lt;/textarea&gt;&lt;br&gt; &lt;textarea name="datasetname_2" cols="40" rows="5" id="datasetname_2" class="validate[required] text-input"&gt;&lt;/t...
javascript jquery
[3, 5]
5,007,813
5,007,814
how to do a relative path redirection using javascript?
<p>I'm working on javascript/jquery in a php based site, and I have to redirect the page upon an event in the page.</p> <p>lets say, on clicking the button "click me" in <code>"page1.php"</code>, the page should be redirected to "<code>page2.php</code>". This redirection has to be done using javascript/ jquery. Both p...
javascript jquery
[3, 5]
2,342,890
2,342,891
PHP __call equivalent for java
<p>Is there a Java equivalent for the <a href="http://www.php.net/__call#language.oop5.overloading.methods">__call of PHP</a>?</p> <p>It would make sense to me if that's not the case, because it would probably result in compiler errors.</p> <p>From the <a href="http://de3.php.net/manual/en/language.oop5.overloading.p...
java php
[1, 2]
5,960,092
5,960,093
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]
56,311
56,312
For a DIV with scrollbars, is it possible to make that div scroll all the way to the bottom, using JQuery?
<p>How would you do that using JQuery?</p>
javascript jquery
[3, 5]
2,175,056
2,175,057
Database Transactions in Java on Android
<p>I am trying to translate some of the code of Objective C in Java...</p> <pre><code>[_db beginTransaction]; Date now = [[NSDate alloc] init]; boolean result = [_db executeUpdate:updateQuery, [self stringToDB:account.userId], [self integerToDB:account.accountId], [self i...
java android
[1, 4]
2,197,693
2,197,694
Calling global variables in the AppSettings from a Javascript function
<p>In my javascript function I am trying to call my global variable that is currently defined in the webconfig file of my Asp.net project. What is the syntax for this? I've looked around and nothing seems to work so far. I've tried the following but I am not getting anything from it:</p> <p>web.config:</p> <pre><c...
c# asp.net javascript
[0, 9, 3]
1,170,283
1,170,284
javascript event when you hit 'back' onto the page?
<p>What event can i use to run code when a user visits another page then hits back to load my page again?</p> <p>I wrote <code>window.onload = function() { ...</code> and it works when i hit refresh but not forward then back.</p>
javascript jquery
[3, 5]
5,607,235
5,607,236
Force jQuery content slider to pause on hover
<p>I would be grateful if someone can help with with some javascript code. I have a content slider which can be found here:-</p> <p><a href="http://metalbuildinggroup.ca/humphreybuildings/" rel="nofollow">link text</a></p> <p>This works fine but I would like to change the following code so that it pauses on hover. An...
javascript jquery
[3, 5]
1,582,124
1,582,125
JScript error: Cannot assign to a function result
<p>In my application I am trying to hide a table based on a condition. I am using simple javascript function to hide the table.</p> <p>the function is failing on the following line</p> <pre><code>if ((image1.trim() = '') &amp;&amp; (image2 != '1')) { </code></pre> <p>giving error </p> <blockquote> <p>'Microsoft ...
javascript jquery asp.net
[3, 5, 9]
2,627,731
2,627,732
Add active state to <li> tag
<p>I am not sure if this is possible. If not I could add an data-state or class, right?</p> <p>Ok so my first question is... How can I add an active state on hover of <code>&lt;li&gt;</code> and remove it from previously hovered tag if new one is selected. I assume I need to use siblings for that but how do I make it ...
javascript jquery
[3, 5]
2,354,114
2,354,115
In Internet Explorer 7 preview images are not shown
<p>My code is working fine in Firefox and Internet Explorer 6 but Internet Explorer 7 is not showing images.</p> <p>Here is the code,</p> <pre><code>&lt;script type="text/javascript"&gt; function ShowImage() { //document.getElementById('videoupload').valuedocument.getElementById('videoupload').value.r...
php javascript
[2, 3]
5,279,041
5,279,042
Conditionally passing options to a jquery function
<pre><code>$.fn.demo = function(options) { var defaults = { opacity: 50, width: '250px', height: '100px', color: 'red' } } </code></pre> <p><strong>Is there any way to conditionally pass options to a function, like such:</strong></p> <pre><code>$().demo({ opacity: 60, if (div...
javascript jquery
[3, 5]
150,081
150,082
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> &lt;ItemTemplate&gt; &lt;a href="javascript:;" onclick="simpleCart.add( 'name=&lt;%# Eval("Name") %&gt;' , 'price=&lt;%# Eval("Price") %&gt;' , 'quantity=1' );"&gt;Add To Cart&lt;/a&gt...
c# javascript asp.net
[0, 3, 9]
3,124,978
3,124,979
Bitmap getWidth returns wrong value
<p>I have a jpg image in my android application drawable folder which resolution is 1000x600. I load that image to bitmap like this</p> <pre><code> Bitmap bitMap = BitmapFactory.decodeResource(getResources(), R.drawable.image); </code></pre> <p>After this I call <code>bitMap .getWidth()</code> which returns 1500. How...
java android
[1, 4]
5,945,059
5,945,060
Javascript Jquery doesn't work. $(this)
<pre><code>$(document).ready(function() { $(".delete_user_button").click(function(){ var username_to_delete = $(this).attr('rel'); $.ajax({ type:"POST", url:"/delete/", data:{'username_to_delete':username_to_delete}, beforeSend:function() { ...
javascript jquery
[3, 5]
1,768,119
1,768,120
JQuery Selector - Finding an img in a table
<p>Cant seem to get the following to find the 'skull' button when the 'heart' button is clicked...</p> <p>Here is the JQuery...</p> <pre><code> $(".voteup").click(function() { var id = $(this).attr("title"); var userID = $('[id$=HiddenFieldUserID]').val(); var...
asp.net jquery
[9, 5]
1,108,746
1,108,747
When am I ready to start using Jquery for Javascript?
<p>I was told not to use Jquery as a beginner because it would hamper my learning of Javascript. Now I've read a couple books on Javascript, read loads of sites, and made a Javascript web app. Am I ready for Jquery? If not, then how will I know when I'm ready?</p>
javascript jquery
[3, 5]
120,067
120,068
javascript: Defining "this" in the context of a function
<p>When jQuery calls a function as an event handler for a raised event, jQuery is somehow able to define "this" in the context of a function that it calls. In the following example, jQuery define this as the dom element that was clicked on.</p> <pre><code>&lt;input id="someButton" type="button" value="click me!"/&gt; ...
javascript jquery
[3, 5]
1,371,216
1,371,217
Is there a way I can get many attributes of an object all at the same time?
<p>I have the following:</p> <pre><code> link = { action: $link.attr('data-action') || '', dialogType: $link.attr('data-dialogType') || '', params: $link.attr('data-params') || '', title: $link.attr('title') || '', viewURL: $link.attr('data-href') || '', entity: $link...
javascript jquery
[3, 5]
1,454,386
1,454,387
Creating a generic data editing user control
<p>I have a user control which has a Gridview and a listview, I want to make this control generic so that I can just pass the type of the class I want to edit, which would be a linq entity, and then it would automatically do the rest, so far I havent had any success and I was wondering if anybody knows a tutorial or so...
c# asp.net
[0, 9]
1,605,569
1,605,570
Remove class using index
<p>This might be easy but I am having trouble in getting it to work. I am using .each() to iterate through a list. I was wondering if it is possible to remove a class using the index.</p> <p>eg. If there were 10 items in the list and I want to remove the class from the 5th element when I click the 8th element for exam...
javascript jquery
[3, 5]
3,798,392
3,798,393
Jquery and PHP rating function problem
<p>I know that I was already posted similar question but I just can't find the answer and figure it out how to solve this problem.</p> <p>I'm trying to customize Jquery Star Rating plugin (<a href="http://php.scripts.psu.edu/rja171/widgets/rating.php" rel="nofollow">link text</a>) but I do not know what to do to show ...
php jquery
[2, 5]
5,901,058
5,901,059
text inputs don't change when option changes
<p>I have a fiddle here: <a href="http://jsfiddle.net/ybZvv/43/" rel="nofollow">http://jsfiddle.net/ybZvv/43/</a></p> <p>The problem I have is with the text inputs not changing. Please follow steps in fiddle below so you can see what is happening:</p> <ol> <li><p>When you open fiddle, click on the "Add Question" butt...
javascript jquery
[3, 5]
4,865,731
4,865,732
Jquery slide in div keeps moving on scroll
<p>I have aa div that I want to slide in once the user scrolls down a specified amount. It initially works but after than the div keeps moving to the left a little on every scroll action instead of staying in place. Anyone has an idea why is this happening?</p> <pre><code> var opening = false; var closing = false; ...
javascript jquery
[3, 5]
1,015,783
1,015,784
JQuery onchange in tabs event
<p>Does anyone know how to fire an event when I change from one tab to the other in JQuery?</p> <p>for example:</p> <pre><code>&lt;li&gt;&lt;a href="#tab-1" onclick="submitForm();" onchange="myJSHere();"&gt;Tab&lt;/a&gt;&lt;/li&gt; </code></pre>
javascript jquery
[3, 5]
1,722,504
1,722,505
Change CSS for parent div when child element (input field) is selected
<p>I'm looking to change the class of a parent div when a child input text field is selected or the mouse moves over any of the other elements in the container. I've tried using both jQuery and some of the pseudo classes in CSS to no avail.</p> <p>Javascript:</p> <pre><code>$("input").focus(function () { $(this)...
javascript jquery
[3, 5]
511,185
511,186
is it a good idea to put all javascript file's content into one file to reduce server request and keep at bottom to increase performance?
<p>I use simple javascripts, jquery library and many plugins , should i make one file for all if yes then what we need to "just copy and paste and code from all file into one in needed order" or any thing else need to be considerd.</p> <p>as stated here <a href="http://developer.yahoo.com/performance/rules.html#num_ht...
asp.net javascript jquery
[9, 3, 5]
2,145,559
2,145,560
Declare variable in C#
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/41479/use-of-var-keyword-in-c">Use of var keyword in C#</a> </p> </blockquote> <p>Hi, I am pretty new in C#,</p> <p>I would like to know the best practices in declaring variables.</p> <p>I know it is possible ...
c# asp.net
[0, 9]
2,149,697
2,149,698
populate document using javascript pattern
<pre><code>&lt;table id="session"&gt; &lt;thead&gt; &lt;tr&gt; &lt;div class="borderContainer"&gt; &lt;div&gt;&lt;/div&gt; &lt;/div&gt; &lt;script type="template" id="thead"&gt; &lt;div class="borderContainer"&gt; &lt;div&gt;&lt;/div&gt; ...
javascript jquery
[3, 5]
753,531
753,532
Why can't I remove an attribute of all children?
<p>I have a cloned div containing input elements, all of which are disabled. I am trying to use the following JQuery code to remove the disabled attribute of each of the div's children.</p> <pre><code>clonedElement.children().removeAttr('disabled'); </code></pre> <p>I do not have a ton of JQuery experience, so I am p...
javascript jquery
[3, 5]
1,849,735
1,849,736
Execute function every nth second
<p>Total JavaScript n00b question right here:</p> <p>I've made this snippet that clicks a link after 10th second:</p> <pre><code>function timeout() { window.setTimeout(function() { $('img.left').click(); }, 1000); setTimeout("timeout()", 1000); } timeout(); </code></pre> <p>My question is, how do I...
javascript jquery
[3, 5]
150,056
150,057
Extending a UserControl
<p>I would like to extend a usercontrol by another user control. </p> <p>Say I have a user control A - Which displays text - "Control A"</p> <p>User control B : A and displays "Control B". </p> <p>When I load user control B, dynamically, only "Control B" is written on the page. </p> <p>Im using the following code t...
c# asp.net
[0, 9]
2,002,897
2,002,898
how to open android Music Player using Jquery,html5
<p>i am developing an application using html5,jquery which opens android builtin musicplayer. but i dont know the code to how to open the player.</p> <p>i tried many things in jqery file like this:</p> <pre><code>function music() { window.open("Music_player:"); } function music(){ window.open("MediaStorage:"); }...
android jquery
[4, 5]
2,005,134
2,005,135
ASP.Net conditional databinding
<pre><code>&lt;% if(Convert.ToInt32(Eval("NbrOrders"))&gt;=Config.MAX_ENQUIRY_SALES) { %&gt; ... &lt;% } else { %&gt; ... &lt;% } %&gt; </code></pre> <p>Gives me a InvalidOperationException? How do I write conditional html generation in ASP?</p>
c# asp.net
[0, 9]
740,570
740,571
Checkbox to Control Button Enabled Property - ASP.NET
<p>I would like to know how I can control the 'Enabled' property of a button based on the 'checked' value of a checkbox:</p> <pre><code>&lt;asp:CheckBox ID="chkEnableButton" runat="server" /&gt; &lt;asp:Button ID="btnLoadForm" runat="server" /&gt; </code></pre> <p>I can do this very easily on the server side - but I ...
c# asp.net javascript
[0, 9, 3]
4,543,834
4,543,835
Using JQuery/Javascript arrays to form two sided fading layout
<p>When I do sites for clients I constantly get the request to have a two sided layout, where buttons on the left cause divs on the right to fade in and fade out appropriately. For a long while I've been writing each case. (which is a bit silly and time consuming). I want to systematize that, but I've been having a h...
javascript jquery
[3, 5]
5,489,321
5,489,322
Android Drag, Pinch Scale, and Rotate Objects
<p>Does anyone have a resource or suggestion on how to learn how to do pinch scale, drag/pan, and rotation of objects on Android. I have completed an app for iOS and all of these features were seamless integrated, but I'm not sure where to start with Android.</p> <p>The purpose of the app is to simply drag images fro...
java android
[1, 4]
1,681,222
1,681,223
Embed a windows media player in a web page during runtime in c# and asp.net
<p>i want to embed windows media player in my own created web page. can any one please guide me how can i do it in c# and Asp.net. that also should be supported in all browsers.</p> <p>Thanks in advance, Arun</p>
c# asp.net
[0, 9]
5,461,043
5,461,044
Jquery related problem
<p>I have only one button and I mention what to do when user click on the button with the help of jQuery. but when I click then nothing happen just only postback happen. I don't want a postback.</p> <p>Here is my code:</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inher...
jquery asp.net
[5, 9]
5,984,340
5,984,341
How do I get the value of an input field with jQuery
<p>I am trying to set the inner html value of a field and that works fine but when I try to retrieve it it fails.</p> <p>My code:</p> <pre><code> var butId = buttonPressed.getAttribute('id'); $('#will'+butId).remove(); $('#hidDelete').html(butId); //THIS WORKS FINE ...
javascript jquery
[3, 5]
4,348,409
4,348,410
Suppose I have this HTML code...how do I bold the text inside onclick?
<pre><code>&lt;a href="" onclick="runstuff();return false;"&gt;Item&lt;/a&gt; </code></pre> <p>After executing runstuff(), I want to use JQuery to make Item <strong>bold</strong>. Will I need an "id"? What about "self"?</p>
javascript jquery
[3, 5]
1,978,033
1,978,034
Resetting countdown in javascript
<p>I want after user typing every time in input run resetting countdown, i add <code>clearTimeout</code> but it don't work. What do i do? (Please help me in my code, i don't want new code.)</p> <p><strong>DEMO:</strong> <a href="http://jsfiddle.net/qySNq/" rel="nofollow">http://jsfiddle.net/qySNq/</a></p> <p>Html:</p...
javascript jquery
[3, 5]
3,584,122
3,584,123
Calling a Function From a String With the Function’s Name in C++
<p>How can I call a C++ function from a string?</p> <p>Instead of doing this, call the method straight from string:</p> <pre><code>void callfunction(const char* callthis, int []params) { if (callthis == "callA" { callA(); } else if (callthis == "callB") { callB(params[0], params[1]); } else if (...
c# c++
[0, 6]
2,632,989
2,632,990
timedout function in jquery
<p>What is the timed out function in jquery ?</p> <pre><code>setTimeout("searchClusterAction(action)",3000); function searchClusterAction(action) { var url = action $(location).attr('href',url); } </code></pre> <p>on using timedout I'm getting error on line2</p> <pre><code>var action = "/search/perf...
javascript jquery
[3, 5]
1,572,703
1,572,704
How to use the .on() in jquery with multiple event handlers?
<p>here is my current function:</p> <pre><code>$('.EmailAddresses').on('keypress', 'focusout', $('input:text[name^="Customers[0].EmailAddresses"]'), function (e) { emailRadioBtns(e); }); </code></pre> <p>But this is not working. Does anyone know how to call the same function with multiple events using the .on()?<...
javascript jquery
[3, 5]
3,223,482
3,223,483
What is the best way to keep track of the id of an element selected from an auto-suggest textbox?
<p>I have an auto-suggest textbox. A user can either pick an already existing item in the database of type in a new one.</p> <p>How do i keep track of the id if item was selected (Store the id of the list of items coming from the db)?</p>
javascript jquery
[3, 5]
2,551,942
2,551,943
How to restore the sms backup taken to sms.db in android
<p>I have taken the backup of all sms in inbox.After that I stored the backup in JSON format in the SD card creting a file SMSJSON.txt. Now I am reading the file from the SD card and parsing the data successfully, but how to write those data again to sms.db . Plz guide me. Thanks in advance... </p>
java android
[1, 4]
1,802,470
1,802,471
hide on second click
<p>I have a bubble that pops up when you select some text on a document. Now when you select some text, the body click event fires too. On body event, I have code to hide the bubble that pops up when you select some text. The problem is, I want to show the bubble when the text is selected (even though body event has fi...
javascript jquery
[3, 5]
4,797,879
4,797,880
Jquery Frontier Calendar
<p>I'm using <a href="http://code.google.com/p/jquery-frontier-calendar/downloads/list" rel="nofollow">Frontier Jquery Calendar</a>. This calendar is using for creating events/agenda. Now I want when user create event from calendar, then these event store in DB. I don't do how to do that. Any one can guide me? thanks,<...
php jquery
[2, 5]
4,275,190
4,275,191
Is there such a thing as 'if (!Page.IsPostBack)' in jQuery or javascript?
<p>Is there a way to detect if when the page loads it is a postback or just the page loading?</p>
javascript jquery asp.net
[3, 5, 9]
3,613,174
3,613,175
What is the most efficient way to include many javascript functions (with PHP in them) in a PHP page?
<p>In one of my sites, I need to use PHP 'foreach' to keep including some Javascript code. In this code contains PHP $variables that change within the foreach loop. </p> <pre><code>foreach ($a as $b) { include("javascript.php"); } </code></pre> <p>javascript.php contains codes like this: </p> <pre><co...
php javascript
[2, 3]
4,256,957
4,256,958
finding if the selected item is in a set
<p>I am using a bit of jquery and javascript mashed up in this weird hodgepodge of code.</p> <pre><code>var SELECTED_ELEMENT; //this ends up being a JS array of ELEMENTS like the following line. SELECTED_ELEMENT.push($(this).closest(".draggable")); //Now i wanted to select stuff $(".draggable").click(function(){ v...
javascript jquery
[3, 5]
4,525,458
4,525,459
Handling page-specific JavaScript in PHP header files
<p>When designing a website in PHP, you typically have a <code>header.php</code> file that you include in every page on the site. The <code>header.php</code> file would include the <code>&lt;head&gt;</code> tag (among other things). However, I often find that I need to put page-specific JavaScript within the <code>&lt;...
php javascript
[2, 3]
5,332,311
5,332,312
How can I get returned value from JavaScript function that contain jQuery.get()?
<p>I have a JavaScript method that call JQuery.get() and i want to return value from itto callee function .. the following is the code :</p> <pre><code>function CheckExistance(userName) { $.get( "JQueryPage.aspx", { name: userName }, function(result) { if (result == ...
javascript jquery
[3, 5]
889,943
889,944
Android [string array] cannot be resolved or is not a field
<p>I'm getting an error about a string array (located in <code>strings.xml</code>) not being able to be resolved.</p> <p>I've done everything the internet says:</p> <ol> <li>Restarted Eclipse</li> <li>Deleted my R.java file inside the <code>gen</code> folder</li> <li>My <code>values</code> folder is still inside the ...
java android
[1, 4]
4,202,561
4,202,562
How to perform multiple page hyperlink clicks with ctrl key
<p>I would like to know how (if there's a way) to handle multiple link clicks via the ctrl key.</p> <p>So for example the user would go to a web page with about 3 hyperlinks on it. Then the user would hold down the ctrl key, then click one link then another. Then when the ctrl key is released, an event will occur (may...
c# javascript jquery asp.net
[0, 3, 5, 9]
5,693,994
5,693,995
Javascript, jQuery pattern to create HTML document
<p>I'm not sure if I'm asking the right question or not. But my application heavily relies on Javascript and jQuery to create HTML document. So I have a lot of this "jQuery(") and then a lot of div.attr("id","123"). </p> <p>So, is there a better way to do this, or some design pattern to deal with this? </p> <p>Thanks...
javascript jquery
[3, 5]
5,917,589
5,917,590
If statement not triggering alert box
<p>I am trying to create a if statement that triggers a alert box if there is text in the div.</p> <p>My Jsfiddle: <a href="http://jsfiddle.net/D7cPT/21/" rel="nofollow">http://jsfiddle.net/D7cPT/21/</a></p> <p>My HTML:</p> <pre><code>&lt;div id="post-preview"&gt;aasasdasd&lt;/div&gt; </code></pre> <p>MY JQUERY:</p...
javascript jquery
[3, 5]
3,105,381
3,105,382
I need to condense this javascript code
<p>I need to get the javascript code below to work with any of the following links:</p> <pre><code>&lt;a href="#" class="example1"&gt;http://example.com&lt;/a&gt; &lt;a href="#" class="test"&gt;Doesnt work now&lt;/a&gt; </code></pre> <p>The code that is displayed after the link is clicked:</p> <pre><code>&lt;div sty...
javascript jquery
[3, 5]
1,820,907
1,820,908
clone table row, append random or sequential number to ID
<p>So i have this code</p> <pre><code>$('input.clone').live('click', function(){ //put jquery this context into a var var $btn = $(this); //use .closest() to navigate from the buttno to the closest row and clone it var $clonedRow = $btn.closest('tr').clone(); //append the cloned row to end of the table ...
javascript jquery
[3, 5]
5,656,460
5,656,461
Intent new Instance private variable
<p>when I use <code>intentMap.putExtra ("id", id). addFlags (Intent.FLAG_ACTIVITY_CLEAR_TOP)</code> - I have a new instance of my class IntentMap and lose all the private variables.</p> <pre><code>public class MapaActivity extends MapActivity { ... private ArrayList&lt;Wplatomat&gt; list; //null @Override public...
java android
[1, 4]
2,439,337
2,439,338
iPhone & Android: how to take a picture and upload it to a website?
<p>I'm building an asp.net website using c# and .net 2.0. One of the pages requires to take a picture (or choose from already existing pictures), upload it to the server, add other info and save everything in the database.</p> <p>I'm using a FileUpload control and everything is working fine on a PC.</p> <p>Android gi...
c# android iphone asp.net
[0, 4, 8, 9]
3,838,761
3,838,762
validation of an 8 digit number
<p>I want to validate for a number in jquery . my requirement is first two digits and 3rd digit must be 9 and remaining 5 are digits.`</p> <pre><code>&lt;div&gt; number: &lt;input type="text" class=' posint-numeric' id="number" /&gt; &lt;/div&gt;&lt;/span&gt; </code></pre>
javascript jquery
[3, 5]
3,836,516
3,836,517
What is the best way to validate that a specific option has been selected in an asp:ListBox?
<p>I have an asp:ListBox that contains multiple values. A user is required to always select one specific item in this box as well as optionally selecting others.</p> <p>What is the best way to do this?</p> <p>Thanks in advance!</p>
c# asp.net
[0, 9]
2,085,380
2,085,381
From the last slide to the first slide with slideUp/slideDown
<p>I made my slider but it's acting wierd when it reach the last slide and have to start again on the first. Until getting to the last slide it slides <strong>upwards</strong>, but when it has to go to the first it does it <strong>downwards</strong>. And it kind a misses the first one. I mean - it shows it (even downwa...
javascript jquery
[3, 5]
724,532
724,533
ajax "busy" indicator but only for longer requests
<p>Is it possible to specify time after which I can show busy indicator?</p> <p>My code for busy indicator is quite simple:</p> <pre><code>jQuery.ajaxSetup( { beforeSend:function () { jQuery( "#busy-indicator" ).show(); }, complete:function () { jQuery( "#busy-indicator" ).hide(); ...
javascript jquery
[3, 5]
5,565,499
5,565,500
Cannot save data from pop window to database
<p>I have a screen from which a user can click on a button that brings up a popup window. When the user clicks on save from the pop up window, the data is to be save. It doesn't save anything, it is as if it does not see the database. This cannot be because I'm able to call data from it and display it.</p> <p>jQuery o...
php jquery
[2, 5]
4,149,629
4,149,630
Pass option text instead of option value to a text field
<p>I will pass value for multiple fields to a text field. There is a problem, select options, its value are 0 and 1, my question is how to make sure that it pass option text instead of 0 and 1? That mean pass MYR instead of 0 and SGD instead of 1?</p> <p><a href="http://jsfiddle.net/e2ScF/64/" rel="nofollow">http://js...
javascript jquery
[3, 5]
4,812,468
4,812,469
Importing multiple XML files that have varying fields - check isset() or some Java equiv?
<p>I'm importing multiple XML files that have the same tag names, but some of the files are without a few of the tags.</p> <p>My imports work great for all files that have every "field" (ie <code>&lt;title&gt;&lt;/title&gt;</code>), but I get <code>java.lang.NullPointerException</code> when I try to set a value of my ...
java android
[1, 4]
713,911
713,912
Calling a javascript function from Page_Load in code-behind
<p>How can I call a javascript function, that is in the aspx page, from the Page_Load method, in the code-behind?</p>
c# asp.net javascript
[0, 9, 3]
4,081,472
4,081,473
Android adding Listener with resources to many buttons
<p>I have a very weird problem with my Android project. I have a 2d array of buttons and i am trying to add action listener to those. So this is what i have:</p> <pre><code>for ( i = 0; i&lt;buttons.length;i++) { for ( k = 0; k&lt;buttons[i].length;k++) { String but = "mtp" ...
java android
[1, 4]
3,184,314
3,184,315
Refresh child window on parent window
<p>how can i refresh child page if parent window reloads? </p> <p>Suppose <strong>A.html</strong> has a link that opens <strong>B.html</strong>. <strong>B.html</strong> will automatically refresh if <strong>A.html</strong> reloads.</p> <p>Any javascript/jQuery way?</p>
javascript jquery
[3, 5]
5,256,348
5,256,349
passing values to pages
<p>What i am trying here is to pass values to other pages. When i include the following code</p> <pre><code>private void Button1_Click(object sender, System.EventArgs e) { Response.Redirect("WebForm5.aspx?Name="+txtName.Text); } if (Request.QueryString["Name"]!= null) Response.write( Request.QueryString["Nam...
c# asp.net
[0, 9]
5,000,348
5,000,349
Something is overriding some of my jigoshop widgets
<p>I'm creating my first eCommerce wordpress website which I have work on for weeks now, I'm nearly at finished but some of the jigoshop widgets and features are not working for example the price filter is not showing up and the fancy box feature isn't showing up too.</p> <p>I have a demo of the site up at <a href="ht...
php jquery
[2, 5]
67,782
67,783
Reconcile Firefox slash handling and key codes
<p>I have a webpage where users should be able to type anywhere and have their input tracked. One problem is that the slash key, "/," in firefox is a shortcut for opening the search. This is undesirable for me. I have not found a way to trap the search functionality <em>and</em> still add the input to my tracking. ...
javascript jquery
[3, 5]
944,912
944,913
sliding the divs accroding to url
<p>I am having a page here.</p> <p><a href="http://www.kharota.com/cantsay/index.html" rel="nofollow">http://www.kharota.com/cantsay/index.html</a></p> <p>What I wanted was to div slide up and down as url changes for example index.html#thisweek will slide the div which contains data of this week. Sometimes it works s...
javascript jquery
[3, 5]
4,625,164
4,625,165
How to refer to currently selected element in jQuery?
<p>I'm trying to make a script that would insert <code>img</code> element after each link to a certain site with source equal to value of <code>href</code> attribute of given link. This is what I came up with:</p> <pre><code>$("a[href*=site.com/img/]").after("&lt;img src="+$(this).attr("href")+"&gt;"); </code></pre> ...
javascript jquery
[3, 5]
4,202,050
4,202,051
how to create a gui using extended java script?
<p>how to create a gui using extended java script?</p>
java javascript
[1, 3]
1,771,067
1,771,068
call iframe function from parent window
<p>How to call a javascript function in ifram from parent window. i have a jsp page which contains an iframe. jsp page is served by "a.yenama.net" server and iframe is served "b.yenama.net" server.</p> <pre><code>&lt;iframe width="1200" height="640" name="data" id="dataId" &gt; &lt;/iframe&gt; &lt;br/&gt; &lt;inp...
javascript jquery
[3, 5]