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
4,679,140
4,679,141
jquery swap content between two DOM elements
<p>I have two span tags. I'd like to swap the content between them once the user clicks on one of them. If the user clicks once more, swap the content again and so on.</p> <pre><code>$(".sectionTitleText").livequery("click", function () { var editor = $(this).attr("data-edit-id"); var viewer = $(this)....
javascript jquery
[3, 5]
3,910,838
3,910,839
Go back a page onload?
<p>Is there a way for a page to go back a page onload using javascript or php?</p>
javascript jquery
[3, 5]
3,446,056
3,446,057
How to set page title in single page site
<p>Hi I have a single page ajax website the single page is basically loading all the pages I would like to set the page title depending on the current view.</p> <p>I have tried using this </p> <pre><code>&lt;title&gt;&lt;!--TITLE--&gt;&lt;/title&gt; &lt;? $pageContents = ob_get_contents (); // Get all the page's ...
php jquery
[2, 5]
235,866
235,867
Get parent class property
<p>I have a javascript class that has a method that uses jQuery to send an Ajax request and handle the response.</p> <p>The problem I am having is that I can't figure out how to get the properties of the initial, parent class from within the jQuery functions. I have tried <code>$(this).parent()</code> but this doesn't...
javascript jquery
[3, 5]
5,598,671
5,598,672
replace all instances of letters in the alphabet with another
<p>I have the english alphabet:</p> <pre><code>abcdefghijklmnopqrstuvwxyz </code></pre> <p>I have another alphabet:</p> <pre><code>ypltavkrezgmshubxncdijfqow </code></pre> <p>If i have a string. I want to replace every character with the equivalent in the new alphabet. </p> <p>So if the string was abcde the new st...
javascript jquery
[3, 5]
1,534,838
1,534,839
replace function in jquery
<p>I am using following code </p> <pre><code>$.post("insertPrivateMessage?action=sendchat", { to: GroupUserArray[count], message: message, username: $("#author").val(), GROUP: chatboxtitle } , function(data){ message = message.replace(/&lt;/g,"&amp;lt;").replace(/&gt;/g,"&amp;gt;...
javascript jquery
[3, 5]
164,911
164,912
Passing a JavaScript object using addJavascriptInterface() on Android
<p>Is it possible to pass a JavaScript object from JavaScript to Java using addJavascriptInterface()? Something along these lines:</p> <pre><code>var javaScriptObject = {"field1":"string1", "field2":"string2"}; JavaScriptInterface.passObject(javaScriptObject); </code></pre> <p>How would such a call be captured on the...
java javascript android
[1, 3, 4]
776,118
776,119
How to handle Confirm() of Javascript as per my following requirements?
<p>My Requirement is this. Steps:-</p> <ol> <li>On Client Click (button)</li> <li>Disabled the Button. </li> <li>Then it should prompt for OK or CANCEL.</li> <li>If OK then fire the OnClick event (Code Behind). </li> <li>If CANCEL then don't make a server-side trip and enable the button.</li> </ol> <p>Following is th...
javascript asp.net jquery
[3, 9, 5]
3,042,888
3,042,889
I want to cancel page submit ,on cancel action of confirm using C# in asp.net4.0
<p>I want to stop page submit on cancel action of confirm .</p> <p>What I want to achive is , I have a form with server validation, if user submit the form without entering any fields, it should validate the form and no confirm window should open. But now if user have filled all the fields and go on submit the form, I...
c# javascript asp.net
[0, 3, 9]
5,401,274
5,401,275
jQuery Height Altimeter
<p>I would like to know it would be possible to create a sort of altimeter / counter display that dyamically changes the counter as you scroll.</p> <p>For example when you are in the top of the page it displays 10 000 and as you scroll down it decreases, until it reaches to 0 when you have scrolled to the bottom of th...
javascript jquery
[3, 5]
20,867
20,868
Android - how to close notification in service started by startForeground?
<p>Say I start a notification via the following in a service of my app:</p> <pre><code>notification = new Notification(R.drawable.icon, getText(R.string.app_name), System.currentTimeMillis()); Intent notificationIntent = new Intent(this, mainActivity.class); PendingIntent pendingIntent = PendingIntent.getA...
java android
[1, 4]
3,636,686
3,636,687
use of IPC in Cpp in Android
<p>after having a bit exploring at Android2.2 source code,I get to know Android Framework works with large number of IPC mechanisms written in Cpp, such as CameraService,MediaService and etc.</p> <p>I also see those many key classes drive these IPC mechanisms, such as IInterface, BpInterface, BnInterface, Binder, IBi...
c++ android
[6, 4]
2,377,279
2,377,280
How to enable filtering on an ObjectDataSource with FilterExpression when bound to a List<object>.
<p>Does anyone know how to use <code>FilterExpression</code> with an <code>ObjectDataSource</code> when it is bound using a select method that returns a list of entity objects?</p> <p>I get the following error when I attempt it:</p> <p>"The data source 'testODS' only supports filtering when the SelectMethod returns a...
c# asp.net
[0, 9]
5,404,062
5,404,063
Listbox not scrolling up automatically to show selected item
<p>I have two listboxes, countries and states. When I select a country, first state that belongs to the country should be selected in the states listbox. I get the selected countryid and then set the first state that belongs to the country as selected. This works fine in IE8, but in chrome I have a problem. when I firs...
javascript jquery
[3, 5]
30,802
30,803
Check if javascript is already attached to a page?
<p>Is there any way to check if javascript file is already attached to the page by its file name.</p> <p>For eg : </p> <pre><code>if ("path-to-script/scriptname.js") already embeded { call related function } else { Append '&lt;script src="path-to-script/scriptname.js" type="text/javascript"&gt; &lt;/script&gt; ' call...
javascript jquery
[3, 5]
1,146,381
1,146,382
javascript jQuery - Given a comma delimited list, how to determine if a value exsits
<p>given a list like:</p> <pre><code>1,3,412,51213,djdd@asdasd.net, blahblah, 123123123123 </code></pre> <p>which lives inside of a input type"text" as a value:</p> <pre><code>&lt;input type="text" value="1,3,412,51213,djdd@asdasd.net, blahblah, 123123123123, wow@wow.com" /&gt; </code></pre> <p>How can I determine ...
javascript jquery
[3, 5]
2,870,071
2,870,072
Button.Click event is not firing up
<p>I am new in JQ. I have created this fiddle here: <a href="http://jsfiddle.net/SZ6mY/7/" rel="nofollow">http://jsfiddle.net/SZ6mY/7/</a></p> <p>All I want to do is to show an "ALERT" message when "C" button is clicked. Also I want to know that if you click "7" how you grab the value 7 in a variable in JQ?</p> <p>An...
javascript jquery
[3, 5]
210,429
210,430
Android Ldap with Sasl Security
<p>I am making application on android in which my server is windows server 2008.I am using LDAP Protocol for accessing detail from my app.For it I am using unboundid.jar for making connections.I am using various security mechanism like ssl Tls Sasl Digest MD5,Genric sasl.SSL Tls working fine on Android but Sasl is not ...
java android
[1, 4]
3,388,015
3,388,016
OnTouchListener() will only execute once while button is pressed and held down
<pre><code>brown = (Button) findViewById(R.id.brownButton); brown.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_DOWN) { count++; Log.d("count", "" + count); ...
java android
[1, 4]
6,031,940
6,031,941
How to get content of div which contains JavaScript script blocks?
<p>I have the following HTML</p> <pre><code>&lt;div id="example"&gt; ...some text... &lt;script type="text/javascript"&gt; ... some javascript... &lt;/script&gt; &lt;/div&gt; </code></pre> <p>How to get content of <code>#example</code> but also with the JavaScript?</p> <pre><code>$("#example").html(), $("#...
javascript jquery
[3, 5]
2,221,016
2,221,017
Build modal dialog from scratch with JavaScript for IE and Firefox
<p>I am trying to build a modal dialog box in JavaScript. I have it working in Firefox but not IE with some code like this...</p> <pre><code>$(window).bind('scroll resize', function (e) { var $this = $('.popup'); var d = document; var rootElm = (d.documentelement &amp;&amp; d.compatMode == 'CSS1Compat')...
javascript jquery
[3, 5]
3,210,669
3,210,670
How to get current time elapsed percentage of today?
<p>Im trying to get the current time elapsed percentage of todays time. It can be either javascript or php. How can I do that ?</p>
php javascript jquery
[2, 3, 5]
2,586,768
2,586,769
Highlight search text in textarea
<p>I have to highlight the search terms in the text area.</p> <p>I have one text Filed,search Button and text area.</p> <p>Quote ...</p> <pre><code>After i have enter the search string in the text field whenever i click the search button it highlight the search terms which is available in the text area and focus the...
javascript jquery
[3, 5]
4,495,731
4,495,732
How to open a page in a new window or tab from code-behind
<p>So I have a webapplication where I select a value from a dropdownlist. When this value is selected, I want to load another page in a new window.</p> <p>I tried this:</p> <pre><code>ScriptManager.RegisterStartupScript(Page, typeof(Page), "OpenWindow", "window.open('Default.aspx', '_blank');", true); </code></pre> ...
c# asp.net
[0, 9]
3,130,383
3,130,384
To prevent back once the application runs correctly in asp.net
<p>Hi I have created quiz application. once login entered by user then test will start after he will submit the test then results will appear. If user clicks back button in toolbar then again earlier questions appears, it should not appear as he already given the test. Asp.net c# Thank you.</p>
javascript asp.net
[3, 9]
3,140,480
3,140,481
Jquery - More than 1 "$(document).ready" = dirty code?
<p>is it OK to use the </p> <pre><code>$(document).ready(function () { // some code }); </code></pre> <p>more than 1 time in the javascript code?</p> <p>Thanks in advance! Peter</p>
javascript jquery
[3, 5]
2,437,000
2,437,001
Android viewflow validation
<p>Currently I have a few forms using this horizontal sliding view.</p> <p><a href="https://github.com/pakerfeldt/android-viewflow" rel="nofollow">https://github.com/pakerfeldt/android-viewflow</a></p> <p>Is their a way to prevent the user from sliding to the next screen when the form is filled in incorrectly? e.g. d...
java android
[1, 4]
2,024,628
2,024,629
How to get the response from Confirm box in the code behind
<p>I am new to asp.net/C# .I am trying to create a web application.</p> <p>Below is my requirement.</p> <p>I am trying to save a record on button click. Before saving the record,I will be checking if that record exist in the database or not(in the code behind).If it exist,then I need to show an alert to the user as "...
c# asp.net
[0, 9]
1,779,993
1,779,994
Convert attribute/value pairs of a DOM element into a Javascript object?
<p>Is there a shortcut function that converts a DOM element and its various attribute/value pairs to a corresponding Javascript object?</p> <p>E.g convert this in the HTML page:</p> <pre><code>&lt;div id="snack" type="apple" color="red" size="large" quantity=3&gt;&lt;/div&gt; </code></pre> <p>to an object in Javascr...
javascript jquery
[3, 5]
2,018,257
2,018,258
Java to c# convertor
<p>looking for a java to c# converter. the project is about 100 classes. what is the best program for this?</p>
c# java
[0, 1]
2,057,166
2,057,167
Hide a single DIV out of multiple DIV with same id using javascript
<p>I want to hide a DIV in my page but there is no id for the DIV. There is only class for the div which is common to other DIV too .</p> <p>Please help me how i can hide only a single DIV based on the 'for' attribute of the label tags</p> <p>below is the DIV</p> <pre><code>&lt;div class="field-group aui-field-versi...
javascript jquery
[3, 5]
645,002
645,003
Change the background of all the activities in the app
<p>I'm trying to define a background as default for all the activities in the app. So I have used:</p> <pre><code>&lt;style name="testStyle" parent="@android:style/Theme.NoTitleBar"&gt; &lt;item name="android:background"&gt;@color/app_background_color&lt;/item&gt; &lt;/style&gt; </code></pre> <p>and then in the m...
java android
[1, 4]
3,103,395
3,103,396
select a row after page reload
<p>Is it possible to select a row after page reload?</p> <p>I try to get this effect: <a href="http://jsfiddle.net/yg4n6/2/" rel="nofollow">http://jsfiddle.net/yg4n6/2/</a> I mean that the user can get the row highlight when he clicks. But the problem comes when I have to reload the page to do other things with php. T...
php jquery
[2, 5]
2,737,307
2,737,308
dataadapter fill missing parameter
<p>I recieve the following error when I try to execute this code. But I added it to my commands. Can someone point out the step that overlooked? Thanks.</p> <p>Procedure or function 'usps_getContactDetails' expects parameter '@aspContactID', which was not supplied. </p> <p>SqlConnection conn = new SqlConnection(...
c# asp.net
[0, 9]
4,870,150
4,870,151
Replacing &ndash; character using Javascript or JQuery
<p>I need to replace the dash in a title on by site with a span tag and line break to break to title over two lines. Unfortunately I don't have access to do this in the PHP :(</p> <p>The below statement seems to do this. Although with bugs as it's making this change to the character throughout the page.</p> <pre><cod...
javascript jquery
[3, 5]
471,274
471,275
Server Error in '/' Application, The resource cannot be found
<h2>Server Error in '/' Application.</h2> <p>The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. </p...
c# asp.net
[0, 9]
759,493
759,494
navigation menu not show up on mobile browsers
<p>I am trying to find out why my navigation window not showing up when I visit my page using mobile devices and iPad?</p> <p>Any idea please that can help?</p> <p><a href="http://egycotravel.com/trips.html" rel="nofollow">http://egycotravel.com/trips.html</a></p> <p>Thanks </p> <p>sorry : this link have the naviga...
javascript android
[3, 4]
5,777,426
5,777,427
Adding a Javascript listener that triggers when an element has a certain Y position
<p>Is there a way to add a listener that triggers a function when an element is at a certain y-position?</p> <p>On click, I have an element animating up with jQuery.</p> <p>During that animation, the elements y-position will reach 0 (and go past it). When it reaches 0, I'd like to trigger another function that displ...
javascript jquery
[3, 5]
2,368,227
2,368,228
Multiple User Controls with Javascript
<p>I am trying to emulate a simple timepick user control with a combo box and a little image of a clock. In the user control I type in the code:</p> <pre><code>function SetFocus() { var comboBox = $find("&lt;%=cboTime.ClientID %&gt;"); var input = comboBox.get_inputDomElement(); input.focus(); } </co...
c# asp.net javascript
[0, 9, 3]
2,629,003
2,629,004
Getting number of a clicked div - and out of dynamic written group of divs - in jQuery
<p>I have a html like shown bellow. What im trying to achieve is, after I click on a specific div, to get clean number out of that div(id) as a var in a jQuery. Just a number.</p> <p>PHP is writing html like this.. ability to delete via label id jquery code is even more welcome (so ie. level does not need to be numera...
php jquery
[2, 5]
3,765,464
3,765,465
Is this the best way to load google-analytics and jQuery
<p>I don't need jQuery to be available immediately on page load:</p> <p>So far I have the following: </p> <pre><code>&lt;script type="text/javascript"&gt; var _gaq = _gaq || []; _gaq.push(['_setAccount', '...']); _gaq.push(['_trackPageview']); (function () { var ga = docume...
javascript jquery
[3, 5]
1,113,068
1,113,069
Jquery methods?
<p>I keep seeing codes like this:</p> <pre><code> $(document.documentElement).keyup( function(event) { var slides = $('#slides .pagination li'), current = slides.filter('.current'); switch( event.keyCode ) { case 37: // Left arrow if ( slides.filter(':first').is( current ) ) { ...
javascript jquery
[3, 5]
2,417,606
2,417,607
Save image from Image.Control to website directory
<p>Is there a way to save an image from a .net Image Control to the server's directory?</p> <p>It's a barcode image that gets generated on Page_Load:</p> <pre><code>Image1.ImageUrl = "~/app/barcode.aspx?code=TEST" </code></pre> <p>The barcode image displays just fine on the webpage, but I wnated to save it to a dire...
c# asp.net
[0, 9]
3,798,350
3,798,351
Letting others off-server use my forms java script or php
<p>I was wondering if anyone could offer me some suggestions as to the best method to accomplish the following:</p> <p>I have a few html forms that simply post a php page for processing of data.</p> <p>What would be the best method of letting other people implement my form on their website OFF of my server? (importan...
php javascript
[2, 3]
3,980,387
3,980,388
Datakey values of a grid view using Jquery
<p>Hii... How can i get the data key values of a gridview using Jquery?If there any method please share .... thanks in advance</p>
jquery asp.net
[5, 9]
1,990,821
1,990,822
Cannot read property 'img' of null
<p><a href="http://bvh.delineamultimedia.com/?page_id=2" rel="nofollow">http://bvh.delineamultimedia.com/?page_id=2</a> -> I'm getting an error on this page with the Superbox.js script located here. <a href="http://bvh.delineamultimedia.com/wp-content/themes/bvh/js/portfolio/superbox.js" rel="nofollow">http://bvh.delin...
javascript jquery
[3, 5]
189,692
189,693
How to identify button click from array of buttons
<p>I have a table with 1 button in each row, on click of button tax shown in that row will be applied to the client and i need to show some indication to end user. I want to change the button css(color, txt ect.) on click for that purpose. Below is the code -</p> <pre><code>&lt;table class="data report_table"&gt; ...
javascript jquery
[3, 5]
1,160,901
1,160,902
implements OnClickListener VS. new Button.OnClickListener() {};
<p>I have a question about implementing OnClickListeners for developing with the ADT. I'm unsure of which way is more efficient, can anyone please provide me with pro's and con's of each approach?</p> <pre><code>class x extends Activity implements OnClickListener { button.SetOnClickListener(this); OnclickListener(...
java android
[1, 4]
534,270
534,271
Get Country, GMT, City by IP address using PHP
<p>I have tried to get the <strong>Country</strong>, <strong>City</strong>, and <strong>GMT</strong> using <code>js</code> by set it to cookies, and then I fetch it with <code>PHP</code> to save into <code>Database</code>. But the method I used, is does not work sometimes, So, is there anyway to get them by using PHP a...
php javascript
[2, 3]
1,955,015
1,955,016
action button after the second click
<p>I have a button in my form. I need my form to be processed after the first click (or pressing Enter) on the button, and after that, if some conditions would be true, I do something like submitting the form by the second click or pressing Enter key on the button.</p> <p>What do you think I have to do?</p>
javascript jquery
[3, 5]
972,915
972,916
ajax calling some other javascript
<p>i need to call text.php on clicking the table content but its returning some other file in xmlhttp.responseText a page with in that is displaying. its returning some page even though i kept blank at xmlhttp.open </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type='text/javascript'&gt; function text1() { var x...
php javascript
[2, 3]
3,963,550
3,963,551
Asp.Net : How to provide email preview for the different email providers
<p><p>In my asp.net application I need to show the email preview of created email, like with gmail the email will display some different formatting &amp; with hotmail it will some different formatting...</P></p> <p> So, How to provide email preview for the different email providers like gmail, hotmail rediffmail etc.....
c# asp.net
[0, 9]
2,533,960
2,533,961
Weird behavior in Android's "if" block
<p>It walks like a bug, it chirps like a bug.... I need someone to confirm that it's a bug.</p> <p>I was trying to get phone numbers from the address book with this code:</p> <pre><code>public JSONObject getAllPhones() throws JSONException{ String mPhoneNumberProjection[] = new String[] { Contacts.Phones.NAM...
java android
[1, 4]
5,867,425
5,867,426
How to overwrite JQuery plugin function?
<p>How to overwrite a function which is from a JQuery plugin? I am trying to overwrite a function in csv2table plugin called mkTable() in my own javascript file. Is it possible? Here is the original definition:</p> <pre><code>$.fn.csv2table= function(url,setting) { function mkTable(id,rowsAry){ ... } } </code>...
javascript jquery
[3, 5]
5,513,219
5,513,220
Browser support for stopImmediatePropagation?
<p>IE support for <code>stopPropagation()</code> is lacking, and <a href="http://stackoverflow.com/a/387750/165673">requires workarounds</a>, but I can't tell if the same thing is true for <code>stopImmediatePropagation()</code>- is it safe for all browsers, or does it requires its own set of workarounds?</p>
javascript jquery
[3, 5]
3,257,384
3,257,385
jquery replace text with image, help
<pre><code>("*").each(function () { if ($(this).children().length == 0) { $(this).text($(this).text().replace('basketball','test')); } }); </code></pre> <p>i'm only able to change the text to another string of text, but how can I pass an image?</p>
javascript jquery
[3, 5]
2,273,317
2,273,318
Putting an image and variables in an HTTP Post (Not using FileUpload Control)
<p>Following on from my post..</p> <p><a href="http://stackoverflow.com/questions/1411670/saving-an-image-from-http-post-not-using-fileupload-control">Saving an image from HTTP POST (Not using FileUpload Control)</a>. Where I kind of came to the assumption that I could just use Request.Files..</p> <p>To test the savi...
c# asp.net
[0, 9]
2,640,479
2,640,480
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]
4,806,703
4,806,704
hide source error (lines of code) when throwing exception
<p>How can I hide line of source throwing an exception in yellow screen of death? For example, consider following screen of potential dangerous request:</p> <p><img src="http://i.stack.imgur.com/Sn9yC.png" alt="enter image description here"></p> <p><strong>In above example, source lines are not displayed. Whereas, if...
c# asp.net
[0, 9]
4,856,908
4,856,909
How to get last sms from the device?
<p>I have been developing the application which must recognize SMS commands. So, I need to know how I can get the last sms. I know that I need to use BroadcastReceiver (and I use it), but I don't know how I can get the last sms in this class. Please, help me with it, I hope you can do it. Thank you in advance. </p>
java android
[1, 4]
4,904,267
4,904,268
Dynamically creating concentric div given the inner div
<p>I have 2 divs as :</p> <pre><code>&lt;div id="outer"&gt; &lt;div id="inner"&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>The inner div has some fixed height(H) and width(W) . Initially the "outer" div doesn't<br> have width and height.Also has same top and left values.(same origin) </p> <p>How can I...
javascript jquery
[3, 5]
81,365
81,366
Unexpected token Illegal
<p>I know there are other similar question related on stack overflow, but none seemed to correct my problem. This error occur on every browser (although I used webkit error name).</p> <p>I need to add javascript using PHP. This cause the error "Unexpected token illegal" to appear. I tried this <a href="http://stackove...
php javascript jquery
[2, 3, 5]
30,962
30,963
selecting classes using wildcard not exact class name
<p>I have several classes that I want to select .group1-1 .group1-2 .group1-3, each one of these has 50 elements under it. </p> <p>Is there a way to select all classes that start with group1 (so I end up selecting group1-1, group1-2, group1-3), something like <code>$(".group1"+*)</code></p>
javascript jquery
[3, 5]
2,099,383
2,099,384
bind callback parameter
<p>I have this code to set "State Machine" in view of a javascript application:</p> <pre><code> var Events = { bind: function(){ if ( !this.o ) this.o = $({}); this.o.bind(arguments[0], arguments[1]) }, trigger: function(){ if ( !this.o ) this.o = $({}); th...
javascript jquery
[3, 5]
4,411,615
4,411,616
jQuery - Controlling div visibility with a Select Box
<p>Updated: I would like to control the visibility of the bottom divs based on the value of the top SELECT..</p> <p>i.e </p> <pre><code>selected = dogs:: only bulldog, pitbull visible selected = fish:: GOLDFISH! visible </code></pre> <p>etc..</p> <p>Appreciate it.. Sorry I didn't do a better job of explaining my qu...
javascript jquery
[3, 5]
5,596,588
5,596,589
How to change the LinkButton forecolor in C#?
<p>I am doing project for a mobile company.<br> Where the home page will display all the mobile's with LinkButton<br> which will take us to respective mobile's detail when we clicks that.<br> the thing is i want to change the forecolor of the selected linkbutton using C# codings. </p> <p>Eg : </p> <p>asp.net : <...
c# asp.net
[0, 9]
636,568
636,569
How do I get a simple jQuery code to replace my current Javascript
<p>Goal : When click a link on my navigation will show spinning image until script fully loaded.</p> <pre><code>function ahah(url, target) { document.getElementById(target).innerHTML = '&lt;img src="loading.gif" /&gt;'; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject)...
javascript jquery
[3, 5]
361,923
361,924
Can i pass the ID name in an onChange event for a textbox?
<p>I have 3 textboxes to do a check on the entered date. The code I originally had was for one textbox. Is there a way to pass an ID name to the onChange event</p> <pre><code>&lt;asp:TextBox ID="txtDate" runat="server" Width="110px" onChange="checkEnteredDate('txtDate')"&gt;&lt;/asp:TextBox&gt; function checkEntere...
asp.net javascript
[9, 3]
280,164
280,165
User Specific Aceess to the menu in asp.net with C#
<h2>ASP.NET with C#</h2> <p>I want to create user through my registration page.</p> <p>While creating the user i should be able to provide which menu or links the user should be able to access.</p> <p>According to the registration, when the user will login then it should get the menu which are given to him.</p> <p>...
c# asp.net
[0, 9]
2,101,804
2,101,805
Jetbrains PHPStorm 5.0.4 tells me I have a Duplicated jQuery Selector
<p>This is the piece of jQuery I wrote,</p> <pre><code>$('#editUser').click(function(){ if ($(".selectedTR")[0]){ if($('.form-actions').is(':visible')){ $('.form-actions').slideUp('slow',function(){ $('.form-actions &gt; h3').text("Edit"); }).css(...
javascript jquery
[3, 5]
4,510,177
4,510,178
RegisterStartupScript on master page not working. Alternatives?
<p>I have tried using RegisterStartupScript and ScriptManager.RegisterClientScriptBlock to no effect. both are failing to send my list of javascript arrays.</p> <p>I am doing this on the masterpage's page load and can only assume the fact that I'm doing it on a master page is the problem.</p> <p>I have the exact same...
c# javascript asp.net
[0, 3, 9]
1,117,407
1,117,408
ConcurrentModificationException when iterating on LinkedList
<p>I am not sure why this part of my code causes error but I know that if I remove an item from a list and I am just iterating through it at the same time I get this exception. I read that syncronizing would be another idea, but it is not always the right apporach. LogCat shows the ConcurrentModificationException for ...
java android
[1, 4]
2,481,395
2,481,396
How to set textview text using javascript android
<p>I want to set text in textview in my android class using a javascript which contains a same named variable as in the class for textview to which I want to assign some text. Something like this:</p> <p>In js:</p> <pre><code>function validClick() { fromJS.append("vikrant"); valid.performClick(); document.getEl...
javascript android
[3, 4]
2,138,167
2,138,168
Multiple JavaScript files, combine into one
<p>I am developing in ASP.NET MVC and using multiple JavaScript files. E.g. jQuery, jQuery UI, Google Maps, my own JavaScript files, etc.</p> <p>For performance, should I combine these into one? If so, how?</p>
javascript asp.net
[3, 9]
745,763
745,764
Is there an elegant way to overload a jQuery method inside of a plugin only?
<p>I am having a bit of a <em>dull</em> moment today, where I can't think of an elegant solution for this problem.</p> <p>I have inherited a plugin, and I need to modify it to allow passing a <em>enabled</em> or <em>disabled</em> state to it, to have it detach all of its events, show the <em>disabled</em> state, etc.<...
javascript jquery
[3, 5]
3,689,082
3,689,083
Double Space text on button from code behind C#
<p>I need to add text on a asp.net button depending on a virtual keyboard status</p> <p>if the keyboard is visible the button text must be Hide Keyboard and if the Keyboard is not visible the text must be Show Keyboard. the button width is too short for the text i need to do a double space text inside the button i had...
c# asp.net
[0, 9]
5,299,645
5,299,646
How do I call a defined variable with jQuery?
<p>I'm kinda stuck.</p> <p>I defined three variables:<pre><code>var part1 = &quot;&lt;form&gt;&lt;input type='button' value='Open Window' onclick='window.open('http://jsfiddle.net/ &quot;; var part2=&quot;5Xket,&quot; var part3 = &quot;'toolbar=no',menubar='no')&gt;&lt;/form&gt;&quot;;</code></pre></p> <p>My aim is t...
javascript jquery
[3, 5]
5,579,843
5,579,844
Hide window when creating new process
<p>I am starting a new process with the following code:</p> <pre><code>Process n; n = Process.Start("D:\\Update"); </code></pre> <p>When the process starts, it is visible on the desktop. Is there any way to ensure that the new process will start in the background?</p>
c# asp.net
[0, 9]
3,798,697
3,798,698
How to get last sms from the device?
<p>I have been developing the application which must recognize SMS commands. So, I need to know how I can get the last sms. I know that I need to use BroadcastReceiver (and I use it), but I don't know how I can get the last sms in this class. Please, help me with it, I hope you can do it. Thank you in advance. </p>
java android
[1, 4]
1,712,822
1,712,823
google map find latlng
<p>I used the google map api to find the co-ordinates of addresses. I used this function</p> <pre><code>function searchLocations() { var address = document.getElementById("addressInput").value; var geocoder = new google.maps.Geocoder(); geocoder.geocode({address: address}, function(results, status) { ...
php javascript
[2, 3]
2,039,791
2,039,792
Using jQuery 1.4.4 This simple method fails for some reason
<pre><code>$.get($(this).attr('rel'), function(response){}, 'script') .error(function(){ alert('this failed')}); </code></pre> <p>I get. <code>.error is not a method</code> . But it was added in version 1.4.3</p> <p><a href="http://api.jquery.com/error/" rel="nofollow">http://api.jquery.com/error/</a></p> <p>Is ther...
javascript jquery
[3, 5]
4,433,370
4,433,371
How to avoid calling implements at 2 activites?
<p>I have two activities: <code>MainActivity extends ListActivity</code> and <code>Preferences implements BillingController.IConfiguration</code>.</p> <p>Now I need to call <code>BillingController.someMethod(this)</code> at <code>MainActivity</code>. Such call can be made only if <code>MainActivity implements BillingC...
java android
[1, 4]
4,652,104
4,652,105
Jquery limit text in text field copy safe
<p>Here is a mind Boggling question i am having trouble with. I have a text field. This text field needs to accommodate U.S mobile numbers with 4 formats </p> <ol> <li>XXX-XXX-XXXX </li> <li>XXXXXXXXXX</li> <li>X-XXX-XXX-XXXX</li> <li>XXXXXXXXXXX</li> </ol> <p>When the last character is entered it needs to do a check...
javascript jquery
[3, 5]
3,313,704
3,313,705
System.Diagnostics.Process.Start not work with IIS, but on ASP.NET Development Server
<p>I am using VS2008 C# and testing on my local XP Pro PC with local IIS, I have wrote a web service to call a third party software .exe file to use svn checkout commands to insert data into a folder, which use System.Diagnostics.Process.Start . The same codes did work when I use VS2008 build-in ASP.NET Development Ser...
c# asp.net
[0, 9]
453,154
453,155
need to add before and after disconnected html code like /div to an object
<p>got a simple question! i have a code with structure like that:</p> <pre><code> &lt;a class="adv_link" target="_blank" href=""&gt;Link 1&lt;/a&gt; text here 1 &lt;div class="adv_separator"&gt;&lt;/div&gt; &lt;a class="adv_link" target="_blank" href=""&gt;Link 2&lt;/a&gt; text here 2 &lt;div c...
javascript jquery
[3, 5]
5,910,634
5,910,635
onblur doesn't work when i clone input
<p>I want to change input type text to password. But it doesn't work in ie8. I found a solution; clone and replace input but onblur doesn't work after clone.</p> <p>The debugger doesn't break OnBlur function. Can somebody show me?</p> <p>Here is js code : </p> <pre><code>$(document).ready(function () { var input...
javascript jquery
[3, 5]
4,457,425
4,457,426
Jquery getting information from php
<p>I need to get information from a php file and put the information in jquery and i also need to know if the information has changed</p>
php jquery
[2, 5]
562,691
562,692
Javascript code in php variable
<p>I want to put javascript code to php variable, after that save it to mysql database and after that echo it on page. I have problem with save javascript code to php variable and echo it on page.</p> <p>I tried to save javascript code to php variable this way but got errors:</p> <pre><code>$parameter = "&lt;script l...
php javascript
[2, 3]
4,094,380
4,094,381
How to get confirmation box along with the input value values entered in the form?
<p>I am designing a web application, in which I set and give lot of input values. On button click I want to get a brief details of what I have done on a confirmation window.</p> <pre><code>&lt;asp:Button ID="DONE" runat="server" onclick="DONE_Click" Text="DONE" OnClientClick="return confirm('Are you sure, you wish to...
c# asp.net
[0, 9]
639,468
639,469
how to check whether the link button visible in jquery
<p>how to check the link button visible in jquery. Below code is not working?</p> <pre><code> if ($('id*="LnkBtn"').is(':visible')) { // check visibility if (!Validatechecked("SrvRgnMDD")) { $('#&lt;%=Valid.ClientID%&gt;').html("*"); passtest = false;...
jquery asp.net
[5, 9]
3,613,928
3,613,929
Disable redirection script
<p>We have a redirect script on our site that detects mobile devices and redirects users to a subdomain which goes to the mobile site folder. But now we need a mechanism that gives the visitor a button on the page that then reloads the page and bypasses this check. The goal is if a smartphone user wants to see the full...
php javascript jquery
[2, 3, 5]
2,721,433
2,721,434
Defining a variable in a js file, from a php file
<p>I have a javascript file that needs a value from a variable in a php script in which the JS file is being called.</p> <pre><code>&lt;? $sid = session_id(); ?&gt; &lt;html&gt; &lt;head&gt; &lt;script src="javascript.js" type="text/javascript"&gt;&lt;/script&gt; ... </code></pre> <p>How can i get $sid into the js fi...
php javascript jquery
[2, 3, 5]
59,990
59,991
Clear dynamic UserControl container
<p>How can I make _dynamicMaterials empty or clear the viewstate?</p> <p>When the user clicks on submit I want to reset the container so all textboxes are empty.</p> <p>Any ideas how I can work this out? </p> <pre><code> private materials[] _dynamicMaterials; // Container for dynamically added UserControl "m...
c# asp.net
[0, 9]
935,870
935,871
android transaction notification from webserver
<p>I have made a website about online shopping, I want each transaction order provide alarm notification to my android application. What is needed to make this and how to get started?</p>
php android
[2, 4]
4,842,499
4,842,500
Using jQuery, how do I get the index of an element found in XML?
<p>I have an XML file setup like so:</p> <pre><code>&lt;entry name="bob"&gt;&lt;/entry&gt; &lt;entry name="ryan"&gt;&lt;/entry&gt; &lt;entry name="joe"&gt;&lt;/entry&gt; ... &lt;entry name="etc"&gt;&lt;/entry&gt; </code></pre> <p>Next, I have a line of code that picks out a name from the XML like so:</p> <pre><code>...
javascript jquery
[3, 5]
3,210,331
3,210,332
checked checkbox values
<p>I'm creating the checkboxes and corresponding ids for them dynamically as shown, according to the values in which I'm getting from back end.<br> Once it has been created, how could I retrieve the values of this checked checkboxes? </p> <p><strong>HTML:</strong></p> <pre><code>&lt;tr&gt; &lt;td class="valueleft"...
javascript jquery
[3, 5]
1,273,793
1,273,794
Test for empty jQuery selection result
<p>Say I do </p> <pre><code>var s = $('#something'); </code></pre> <p>and next I want to test if jQuery found #something, i.e. I want to test if <code>s</code> is empty.</p> <p>I could use my trusty <code>isempty()</code> on it:</p> <pre><code>function isempty(o) { for ( var i in o ) return false; r...
javascript jquery
[3, 5]
1,296,008
1,296,009
ADT field not being set
<p>I'm running a simple java project on Android (using Eclipse ADT). During debugging I see that a value is not set correctly. I think this screenshot says it all:</p> <p><img src="http://i.stack.imgur.com/8miyO.png" alt="debug screen shot"></p> <p>Any idea what can cause this?</p> <p>Thanks a lot, Omer</p>
java android
[1, 4]
5,240,442
5,240,443
Rebooting a computer from an ASP.Net page hosted on the computer
<p>I have a computer A which hosts different kind of things:</p> <ul> <li>A website (is developped using <code>C#</code> and <code>ASP.Net</code>)</li> <li>Applications</li> </ul> <p>Our customers have access to the website and sometimes, they will want to reboot the computer A (knowing that it will cut the website d...
c# asp.net
[0, 9]
2,767,278
2,767,279
How can I dynamically change text based on input field?
<p>How can I dynamically change a link based upon an input field in a form. For example, if I input <code>1.00</code> into the input field, I want to change the link to this:</p> <p><code>donate.php?amount=1.00</code></p> <p>Where the amount changes to the amount specified in the input field.</p> <p>I'm guessing its...
php jquery
[2, 5]