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
5,038,322
5,038,323
Can't hide labels; JQuery
<p>What am I doing wrong ? -<em>_</em>-</p> <p>Alert displays, but that's it.</p> <pre><code> &lt;asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeaderContent"&gt; &lt;script type="text/javascript"&gt; if (navigator.userAgent.match(/Android/i)) { } ...
javascript jquery asp.net
[3, 5, 9]
5,218,450
5,218,451
jquery check if string starts with 1234
<p>Thanks for taking the time to answer my question.</p> <p>I want to check if a string has exactly 7 characters and starts with "1234". How do I do that?</p> <p>I know of string.substring but am not sure if I shouold use regex or are there any other alternative. Thanks in advance!</p>
javascript jquery
[3, 5]
1,552,894
1,552,895
Is there an property value named invisible?
<p>Instead using of:</p> <p><code>if ( ! $('#XX').is(':visible) )</code></p> <p>Is there a value called <code>invisible</code> ? I tried that one , but doesn't work.</p> <p>Thanks !</p>
javascript jquery
[3, 5]
4,156,165
4,156,166
VoiceRecognition.java - No Internet connection or Airplane mode
<p>I'm looking to allow my <code>VoiceRecognition.java</code> code to start another activity if it sees that the Phone does not have a signal/internet connection/etc. Here is the code (adopted from Google).</p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceStat...
java android
[1, 4]
5,673,711
5,673,712
Why use Async HTTP post Android
<p>I currently have this running in my app. The use of this is for users to send me simple messages. A dialog is opened where they can type then when they click send button I want another dialog opened saying processing and finally one opened saying thanks if successful.</p> <p>Is the only / best way to do this by usi...
java android
[1, 4]
119,799
119,800
External js file problems
<p>I have an external js file with some simple functions. They work fine when in the aspx page. When they are in the external js file, I get an error on the dev machine that the function is not defined. After playing with this for two days in IE9, I tried it in FF and it worked fine. Then, it worked in IE9 too. I had a...
javascript asp.net
[3, 9]
6,021,587
6,021,588
javascript error when using google maps ASP.NET GoogleMaps User Control
<p>when i try to run the google maps on an asp .net page i get a javascript error saying that it doesnt like the key im using but i have the key from google</p> <p>can anyone help please?</p> <p>thanks</p> <p>Kevin</p> <p>edit this is the key that google provided ABQIAAAAcPBSoXRloZCu5tYnhpZBCBRrxSVjvAJ3kkmtcIQSxWeY...
c# asp.net javascript
[0, 9, 3]
5,072,965
5,072,966
Python Jpype integration
<p>Hi i am using JPype The following is the code i am trying to use </p> <p>from jpype import * startJVM("C:\Program Files\Java\jdk1.6.0_14\jre\bin\client\jvm.dll","-ea") java.lang.System.out.println("hai") shutdownJVM() </p> <p>It is giving error in the execution of the println statement</p> <blockquote> <blo...
java python
[1, 7]
5,717,762
5,717,763
android mobile to mobile file transfer
<p>Although it seems like a simple problem, I have really come up empty on Google. I want to take a 3gp file on one device's SD card and transfer it over WIFI to another device. Really not sure how to do this, I would appreciate if someone could provide me some references or code snippets. Do I really have to do thi...
java android
[1, 4]
5,324,167
5,324,168
Refresh parent window when the pop-up window is closed
<p>Is there any way I can refresh the parent window when a popup window is closed without adding any javascript code to the popup window?</p> <p>I have a page parent.php on which users can click "open popup" to open a popup window. This popup window shows some flash content and its not possible for me to add something...
javascript jquery
[3, 5]
3,250,601
3,250,602
Isn't the jQuery text() function cross browser?
<p>I want to get the text that contains the element inside a td. Even not knowing what's inside this td using the jQuery <code>mytd.text()</code> returns the text successfully in IE8.</p> <p>However I noticed that this function <code>text()</code> <strong>may be not cross browser</strong> since it returns me diferent ...
javascript jquery
[3, 5]
550,072
550,073
Building your own sources on Android
<p>I have coded a new provider and now want to get this into android working. I changed security.properties and Security.java files in android under libcore directory.</p> <p>Now how do I build the files?</p> <p>I simply did a make on android sources and I already see the main provider file that I have written.</p> ...
java android
[1, 4]
3,676,061
3,676,062
Conflicting javascript
<p>I've got a bunch of jquery/javascript running on a new site I'm building, and of course I've run into a conflict. I can't figure out where it's coming from as I'm not that great with js. There is a sticky relocate function that's supposed to show a navigation bar when you start scrolling the page but since I've adde...
javascript jquery
[3, 5]
3,749,039
3,749,040
Custom jQuery scrollbar inside jQuery tooltip
<p>I'm using nanoscroller.js and tiptip.js , although for my question I'm not sure specific libraries matter that much (but they may).</p> <p>I have a working tool tip, I have a working scrollbar. When used seperately.</p> <p><strong>My goal</strong> is to have a working custom scrollbar inside the tooltip.</p> <p><...
javascript jquery
[3, 5]
1,521,008
1,521,009
How to get parameters from a link that callls a jQuery function?
<p>I have a link that looks like this:</p> <pre><code>&lt;p class="half_text"&gt; &lt;?php echo $upvotes; ?&gt; &lt;strong&gt;&lt;a class="vote_up" style="color: #295B7B; font-weight:bold;" href="#"&gt;Vote Up&lt;/a&gt;&lt;/strong&gt; | &lt;?php echo $downvotes; ?&gt; &lt;strong&gt;&lt;a class="vote_do...
php javascript jquery
[2, 3, 5]
2,704,429
2,704,430
Test app in release mode
<p>How do I test an app while in release mode? I tried <code>ant release test</code>, but it gave this error</p> <pre><code>test: [echo] Running tests ... [exec] INSTRUMENTATION_STATUS: id=ActivityManagerService [exec] INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.kizbit.s...
java android
[1, 4]
4,571,329
4,571,330
Webview in android able to run php
<p>I am working on a Android Application that has web view where i need to load html, jquery and js and php also. Now i am able to load html jquery css javascript , But my problem is i am unable to load php in web view in offline is there any way to execute php in web view Please Help Me Thanks In Advance</p>
php android
[2, 4]
3,449,762
3,449,763
How can I reference a non-global function with window[functionName]?
<p>I'm making something like a framework for JS. I want the users to be able to add functions to a specific action, just like in wordpress plugins:</p> <pre><code>add_action("wp_head", "functionName"); </code></pre> <p>I looked at other questions, and the most appreciated answer was</p> <pre><code>window['functionNa...
javascript jquery
[3, 5]
4,314,502
4,314,503
Javascript onclick and escapes
<p>If my onclick event looks like:</p> <pre><code>&lt;input .... onclick="someEvent('blah', '/some/folder/?a=1')" /&gt; </code></pre> <p>Should the <code>?</code> character be escaped?</p>
javascript jquery
[3, 5]
1,970,352
1,970,353
jquery div fadeout on child form event
<p>I'm new in jquery/javascript and couldn't google for any solution.</p> <p>I have number of divs generated automatically from cycle. Each of them contains form as a child element. So on form submit I'd like the corresponding parent div to fadeout.</p> <p>I am using Ajax for form submission. Basically, now I have a...
javascript jquery
[3, 5]
5,981,593
5,981,594
Jquery modal dialog and form submit
<p>I have a form where I need to display a confirm dialog to the user before saving.</p> <p>I have done this by intercepting the form submit function as follows:</p> <pre><code>$("#my_form").submit(function(e) { if ($("#id").val() &gt; 0) { var $dialog = $('&lt;div&gt;&lt;/div&gt;') .html('Are...
javascript jquery
[3, 5]
2,378,265
2,378,266
how to refresh my index page after form submission?
<p>I am having a dynamic content in my jsp pages that has to be refreshed once my form is submitted.Form submission is not done via ajax.I have tried with data-cache=never,rel=external. They ddnt work for me.</p>
javascript jquery
[3, 5]
1,819,192
1,819,193
Store session value in a datatable in C#
<p>I have created a session which store multiple value using Hashtable.</p> <pre><code>string productCode = lblProductId.Text; string mrp = lblPrice.Text; string quantity = txtQuantity.Text; Hashtable htPdt = new Hashtable(); htPdt.Add("pdtId", "" + productCode + ""); htPdt.Add("price", "" + mrp + ""); htPdt.Add("quan...
c# asp.net
[0, 9]
1,151,395
1,151,396
Any ways to detect CSS changing?
<p>I have this tags:</p> <pre><code>&lt;div&gt; &lt;h1&gt; &lt;/h1&gt; &lt;/div&gt; </code></pre> <p>Then I have a javascript lib that changes font-size of the <code>&lt;div&gt;</code> tag, but <code>&lt;h1&gt;</code> has its own CSS. Then text in <code>&lt;h1&gt;</code> does not change. I just want resizing fo...
javascript jquery
[3, 5]
5,327,722
5,327,723
Get the return confirm popbox value in asp .net C#
<p>How can i get the value that was pressed in the confirm box?</p> <pre><code> &lt;script type = "text/javascript" language = "javascript"&gt; function confirm_proceed() { if (confirm("Are you sure you want to proceed?")==true) return true; else ...
c# javascript asp.net
[0, 3, 9]
2,036,138
2,036,139
Creating home screen browser shortcuts from android app
<p>I have a php site, which is basically like a site directory, what I want to achieve is to create a home screen shortcuts from when I click a URL in an application, meaning: I need to first, intercept the url, decode it, and create a browser shortcut to a parameter within the url.</p> <p>Thanks in advance, Itai.</p...
java android
[1, 4]
5,151,726
5,151,727
WebBrowser InvokeScript
<p>I have a Webrowser with some settings that are changed using javascript. I'm trying to use the example <a href="http://msdn.microsoft.com/en-us/library/cc452443%28v=vs.100%29.aspx" rel="nofollow">here</a> but can't get the correct syntax</p> <p>the script looks like this</p> <pre><code> &lt;div class="Displ...
c# javascript
[0, 3]
3,145,927
3,145,928
Launch / Check application
<p>I have the following script which I am using in an intranet environment:</p> <pre><code>function LaunchApp(the_app) { var ws = new ActiveXObject("WScript.Shell"); ws.Exec(the_app); } </code></pre> <p>This allows me to pass it an exe path to launch directly from a web page as long as internet explorer's int...
javascript jquery
[3, 5]
1,337,938
1,337,939
Password remember does not work as needed
<p>On the website I am working on it has been deployed but the problem I am facing is that when I enter a username and password and click on the check box to remember...It remembers the password for sometime.. wen I login in after 5 or 10 minutes it remembers the password but aftr a long period of time like about 2hour...
c# asp.net
[0, 9]
5,058,448
5,058,449
How to set an empty string as a default value for a DataSource parameter in ASP.NET?
<p>This doesn't work. I've got an exception from SQL databse that column does not allow nulls.</p> <pre><code>&lt;asp:SqlDataSource ID="MyDataSOurcet" runat="server" ConnectionString="&lt;%$ ConnectionStrings:MyConnectionString %&gt;" InsertCommand="INSERT INTO MyTable(Name) VALUES (@Name) WHERE Name...
c# asp.net
[0, 9]
830,122
830,123
toggle two images by fading
<p>How can I toggle two images by fading using jQuery <code>.fadeToggle</code> method.</p>
javascript jquery
[3, 5]
2,303,166
2,303,167
Does JavaScript/jQuery always have the latest element or version of that element?
<p>I am writing a userscript that grabs an element with something like: </p> <pre><code>var theElement = $('div.someClass:last'); </code></pre> <p>To grab the last element in the class <code>.someClass</code> so I can parse it. </p> <p>This is where my question comes in. There is another script on this page dynam...
javascript jquery
[3, 5]
4,451,048
4,451,049
cant figure out null pointer expection
<p>okay, so ive been trying to find a solution to this for hours but i cant find one. Heres me code that the log cat has said the null pointer expection is:</p> <pre><code>import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; publ...
java android
[1, 4]
4,260,178
4,260,179
Is there a way i can disable the information bar for ActiveX controls using JavaScript or XHTML?
<p>I save this file as test.html and when I opened this file in IE, I am getting Information Bar for ActiveX Controls, Is there any way we can disable this thing using javascript code or jQuery code?</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;h1&gt;My First Web Page&lt;/h1&gt; &lt;script type="text/javascript"&gt; i...
javascript jquery
[3, 5]
3,624,921
3,624,922
How to reset specific form element in a search form?
<p>I have a search form that has different elements in it, checkboxes, selects, text fields etc. Each change is accompanied by an ajax call that gets the number of results as a sort of counter. I would like to reset only the previous element that caused the counter to return a value of 0.</p> <p>I was thinking about k...
javascript jquery
[3, 5]
4,503,347
4,503,348
jQuery triggers out event even though it should be still in
<p>I am facing a rather awkward problem. I register two event handlers, one for <code>mouseenter</code> and one for <code>mouseout</code> for the <code>li</code> elements on the page. It has multiple <code>div</code> areas inside it. When I leave the <code>li</code> element it calls the <code>out</code> handler, which ...
javascript jquery
[3, 5]
408,404
408,405
auto tab with exception
<p>I have a form where I primarily input single digit numbers. I want to auto tab to each input field, however, sometimes, there is a need for a two digit number. The two digit number will always start with "1". So I would like to auto tab on all single digit numbers except 1 and if a 1 is entered the auto tab is disab...
javascript jquery
[3, 5]
4,938,092
4,938,093
Pass jQuery Variable into ASP.NET Code Behind Using HiddenField
<p>I'm experiencing problems passing the physical size of a div (height and width) into an ASP.NET variable using a hidden field and jQuery.</p> <p>This is my code, but it is not working:</p> <pre><code>$("&lt;%=hfAdvertHeight.ClientID %&gt;").val($("#Advert_Container").attr("height")); </code></pre> <p>Any ideas?</...
c# jquery asp.net
[0, 5, 9]
5,997,728
5,997,729
Endless loop in jQuery and PHP. What should I change to make it work?
<pre><code>&lt;? if($_POST['begin']) { while(1) { echo "1"; sleep(2); } die(); } ?&gt; &lt;span class="answer"&gt;&lt;/span&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $.ajax({ type: "POST", url: "exp.php", data: ...
php javascript jquery
[2, 3, 5]
4,161,293
4,161,294
Call A Function On ScrollExtend - jQuery
<p>How to call a function on scrollExtend. I need the code like below but its not working fine. How to make it work?</p> <pre><code>$(document).ready( function() { $('#scrollBox').scrollExtend(function() { //alert('scroll extend working'); //functionCall(); }); } ); </co...
javascript jquery
[3, 5]
24,648
24,649
Why I am not able to control Media volume when the alert dialog is shown in Android?
<p>I am controlling media volume programmatically from my app. I am setting alert dialog when the media volume is below certain range. When this alert is displayed at this point if I try to adjust the volume controller buttons the ringer volume will get adjusted not media volume. Why is this happening?</p> <p>I am us...
java android
[1, 4]
2,066,276
2,066,277
Convert C++ enum to python int
<p>I have a python wrapper for a C++ function that returns an enum.</p> <p>When I do the following:</p> <p>returnValue = mylibrary_py.getRole() # this returns an enum</p> <p>I get the following error when I load my web page:</p> <pre><code>No to_python (by-value) converter found for C++ type: mynamespace::MyRole </...
c++ python
[6, 7]
1,920,899
1,920,900
jQuery dynamic event binding
<p>I think this is a pretty basic question, but I'm struggling with this problem.</p> <p>On my form I have an option to dynamically add a new row to the table, which is simple enough to do with jQuery. On one of the elements, I need to bind an event, also relatively straightforward. The part I'm having problems with i...
javascript jquery
[3, 5]
1,654,864
1,654,865
remember a variable's history
<p>Let's say I have a page that slides right and left and loads new content using ajax. A variable gets set to leftslide or rightslide depending on the slide direction.</p> <p>When you click the back button in the browser the html5 popstate event enables and loads the last page using ajax. Now using the variable I can...
javascript jquery
[3, 5]
154,941
154,942
How to access some row databound functions in row updating event
<p>I have this code in row data bound event :</p> <pre><code> if (e.Row.RowType == DataControlRowType.DataRow &amp;&amp; (e.Row.RowState &amp; DataControlRowState.Edit) == DataControlRowState.Edit) { string CCC = (string)DataBinder.Eval(e.Row.DataItem, "COLUMN"); DropDownList DropDownList1 = (DropD...
c# asp.net
[0, 9]
684,414
684,415
Get elements width and height
<p>How can i get <code>height</code> and <code>width</code> of element which doesn't a part of <strong>DOM</strong> yet?</p> <p><strong>For example:</strong></p> <pre><code>var t = $('&lt;div style="position:absolute;height:100px;width:100px;background-color:steelblue;" &gt;lalala&lt;/div&gt;'); var height = t.heig...
javascript jquery
[3, 5]
3,818,434
3,818,435
jQuery/JS random image positioning using Math.random() and .css?
<p>I'm new to programming. Right now I'm using jQuery + jqueryrotate to rotate my images randomly so it looks like they are scattered. I managed to make them rotate randomly, but I am a little stuck on how to make the position random. I made all the images <code>position: absolute</code> in a <code>position: relative</...
javascript jquery
[3, 5]
4,244,655
4,244,656
Android: Where to store Selector (xml) file for customed design controls
<p>I tried to make a custom LinearLayout and Button styles.</p> <p>I'm just wondering where to place my Selector xml files?</p> <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item&gt; &lt;shape&gt; &lt;gradient android:angle="90" a...
java android
[1, 4]
4,400,229
4,400,230
How to manage back end data layer class instance throughout site
<p>I'm new to web dev. and I'm using asp.net/C# to build a website. I currently have a class called <code>DataLayer</code> that I'm using to perform all of my database functions, and also store some queried information. I initially had this class as static, because that's how I wanted it to behave, but then realized th...
c# asp.net
[0, 9]
2,834,435
2,834,436
im getting "function not defined" in firebug. help please
<p>I am using an external javascript file to call a function and it will not. i get function not defined in firebug too. the name of the external js file is getpic.js in the html, i put this in the header:</p> <pre><code>&lt;script src="getpic.js" type="text/javascript"&gt; &lt;/script&gt; </code></pre> <p>php:</p> ...
php javascript
[2, 3]
2,640,521
2,640,522
How can I create my custom properties on xml for Android?
<p>We have in our project a keyboard with "Key" elements, this Key elements have attributes such as android:codes="119", android:keyLabel="w" and so on.</p> <p>My question is how can I include an custom attribute like a "android:alternativeKeyLabel" to do something else.</p>
java android
[1, 4]
5,561,958
5,561,959
Android: Is it possible to put an ArrayList<myObject> in a bundle?
<p>I am creating an app to manage homework, and have a class called Assignment. I wish to add an ArrayList to a bundle, how should I do this?</p> <p>Is it something to do with serialisable/parsable data, if so, all the data contained within an Assignment is simple data such as Strings and Integers (with the exception ...
java android
[1, 4]
784,960
784,961
Need help with jQuery
<p>This my script:</p> <pre><code>&lt;script type="text/javascript"&gt; var auto_refresh = setInterval( function () { $('#alert_div').load('/check_messages.php?timestamp=&lt;?php echo TIMESTAMP2;?&gt;').fadeIn("slow");}, 180000); $("html,body").scrollTop("alert_div",0); &lt;/script&gt; </code></pre> <p>Actually, ever...
javascript jquery
[3, 5]
566,320
566,321
regex for validating time in asp.net
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/884848/regular-expression-to-validate-valid-time">Regular expression to validate valid time</a> </p> </blockquote> <p>i wrote this code for validating time in asp.net *</p> <p>what are the errors if i use "[0-9...
c# asp.net
[0, 9]
5,729,713
5,729,714
Reload parent window from child window
<p>How can i reaload my parent window from child window using jquery?</p> <p>Please help.</p>
javascript jquery
[3, 5]
5,728,510
5,728,511
check if file exist in javascript?
<p>i have to display auto-generated images from a folder in html.</p> <p>how can i check if file exist in javascript/jquery so i can do a for-loop and display them all. they will be numbered 1.jpg, 2.jpg and so on.</p>
javascript jquery
[3, 5]
5,356,630
5,356,631
if user pastes 32 characters into the license text-box first split textbox
<p>if user pastes 32 characters into the license text-box first split textbox, the method will place 8 characters into each of the 4 text boxes</p> <p>see i have 4 text box ... max length (8)</p> <pre><code>&lt;input type = "text" size = "8" maxlength="32" name = "LicenseNumber1" id="LicenseNumber1"&gt; &lt;input...
javascript jquery
[3, 5]
2,702,244
2,702,245
How do I show a circle when touched on android?
<p>I am trying to make an android app and I can't seem to find anywhere how to make a simple activity where a circle shows up when anywhere on the screen is touched. It doesn't have to link with the coordinates with the click, just a circle in the middle of the screen. I have the frameview and everything set up, I just...
java android
[1, 4]
1,184,898
1,184,899
Jquery Tmpl Rendering Array of Objects
<p>I'm using jQuery Tmpl Plugin -> <a href="https://github.com/jquery/jquery-tmpl" rel="nofollow">https://github.com/jquery/jquery-tmpl</a></p> <p>What's the correct way of rendering an array of objects?</p> <p>Please consider these codes:</p> <pre><code> var html = template.tmpl(showDetailsData); // Show details...
javascript jquery
[3, 5]
5,277,851
5,277,852
Download File From Another Sever With Save as Dialogue Box
<p>I want to download a file from another server with save as dialog box... I tried 1 example to download file from our server which worked but i don't know how to work for files which are hosted on another server.</p> <p>If I try to download then i am getting It is not valid virtual path</p> <p>Response.WriteFile(Co...
c# asp.net
[0, 9]
4,072,511
4,072,512
serialized generic collections
<p>I have serialized XML file. I am reading the contents which is of type <code>Dictionary&lt;string,string&gt;</code> and <code>List&lt;int&gt;</code>.</p> <p>How can I retrieve these 2 objects. I tried to use ArayList to hold these 2 objects ,but since arraylist is not generic type, it gave exception.Please help..</...
c# asp.net
[0, 9]
1,751,233
1,751,234
get selected value from checkbox and put it on a row in a table
<p>Hy all,</p> <p>I'm developing a web application and I'm trying to use a checkboxlist. I want that for each selected item in that checkboxlist to create a new row in a table.So if I have 5 items and i check 3, I want a table to appear with 3 rows and in each row the selected items.This is how i get what items are ch...
c# asp.net
[0, 9]
1,783,485
1,783,486
resizing gridview column manually
<p>I have a gridview that I am displaying email html in. The columns are very wide because of the way the html is formated. How can I manually set the size of the column in the gridview? I tried</p> <p>Item-Style width = </p> <p>Header-Style width =</p> <p>but none of those change the column width, any ideas woul...
c# asp.net
[0, 9]
4,174,256
4,174,257
Banner changer issue
<p>I have the lines of code for a banner changer and whenever i add a link to any of the banners, it goes blank "The banner space goes blank." every now and then. </p> <pre><code> $(function(){ $('#banner img:gt(0)').hide(); setInterval(function(){$('#banner :first- chi...
javascript jquery
[3, 5]
5,677,149
5,677,150
JS Player --- Err : My Return false doesnt work with IE10 but work with all other browser
<p>Hi ive made a mp3 player using javascript, its working perfectly on everybroswer except IE10</p> <p>Ex of page : <a href="http://www.mupiz.com/noon" rel="nofollow">http://www.mupiz.com/noon</a> (try to click on a song)</p> <p>But IE10 follows the link and ignores the script before...</p> <p>Here's My script : </p...
javascript jquery
[3, 5]
5,094,872
5,094,873
binding jquery onclick even to this tooltip
<p>I'm using this <a href="http://cssglobe.com/lab/easytooltip/03.html" rel="nofollow">great tooltip</a> which displays the tooltip (title of an anchor element with .tooltip function called on it) upon hover. This time around, I want it to display upon click so I did this:-</p> <pre><code>$(document).ready(function(){...
javascript jquery
[3, 5]
577,358
577,359
How can I show asterisks instead of characters when a textbox reaches maximum length?
<p>I have a textbox whose <code>maxlength</code> attribute is 13. When the user reachers 13, I must hide all the characters and show asterisk symbols (*).</p> <p>How do I do that?</p>
javascript jquery
[3, 5]
3,718,612
3,718,613
js script with yes/no in asp.net site
<p>I have a button on my asp.net site which activates javascript through <code>OnClientClick</code> property which is set to <code>potwierdzenie()</code>. The script:</p> <pre><code>&lt;script type="text/javascript"&gt; function potwierdzenie() { var answer = confirm("Do you want to delete it") ...
c# javascript
[0, 3]
48,752
48,753
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]
4,142,384
4,142,385
How can I check if a checkbox is checked on click?
<p>I need to trigger some code when I click a checkbox based on if a checkbox is checked or not. But for some reason, <code>.is(':checked')</code> is always triggered.</p> <p>This is my code.</p> <pre><code> jQuery('#selectlist input[type=checkbox]').live('click',function(){ var select_id = jQuery(this).attr('i...
javascript jquery
[3, 5]
5,629,324
5,629,325
handling event bubling in jquery
<p>iam having links as shown below</p> <pre><code>&lt;a item='1' href='javascript:void(0)'&gt;&lt;img class='icon1' /&gt;&lt;span&gt;text1&lt;/span&gt;&lt;/a&gt; &lt;a item='1' href='javascript:void(0)'&gt;&lt;img class='icon2' /&gt;&lt;span&gt;text2&lt;/span&gt;&lt;/a&gt; &lt;a item='1' href='javascript:void(0)'&gt;&...
javascript jquery
[3, 5]
3,556,242
3,556,243
How to find the control of textbox inside the grid
<p>I am using ASP.NET and I have one <code>GridView</code> that has a <code>TextBox</code> within an editTemplate, but I am not able to find the control; whenever I try to assign the value to <code>TextBox</code> of <code>GridView</code> I'm getting a <code>NullReferenceException</code>. </p> <p>My code is as follows:...
c# asp.net
[0, 9]
1,442,121
1,442,122
Download and save aspx page
<p>I saved aspx page as html it worked in my local machine but after published on the server its showing an error that "the access to the path is denied"... I tried giving access permission then also it doesn't work.. can anyone help with it? or else is there any other way to save the page in C# asp.net?...</p> <pre><...
c# asp.net
[0, 9]
1,836,026
1,836,027
Is there a better way to redirect and pass parameter
<p>I have this table</p> <pre><code>&lt;table id="tableDg" border=1&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td &gt;&lt;input type="hidden" id="path" readonly="true" value="{path}"&gt;{path}&lt;/input&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="checkbox" class = "chkbCsm" &gt;&lt;/input&gt;&lt;/td&gt; &lt;td &gt;&lt;input ...
javascript jquery
[3, 5]
5,158,318
5,158,319
Why would jquery not pollute global namespace?
<p>It is said here:</p> <p><a href="http://briancrescimanno.com/2009/09/24/how-self-executing-anonymous-functions-work/" rel="nofollow">http://briancrescimanno.com/2009/09/24/how-self-executing-anonymous-functions-work/</a></p> <blockquote> <p>Take a look at the source code of jQuery and you’ll see that the whole...
javascript jquery
[3, 5]
1,054,351
1,054,352
how do I find the value inside of a td upon clicking a checkbox in another td but within the same tr?
<p>I have a table with a few columns and a few rows. When I click a checkbox at the beginning of each row, I'd like to store the value of a particular cell into a variable and use it in a comparison for something else.</p> <p>How would I go about getting data from a cell in the same row as the clicked checkbox?</p> <...
c# jquery asp.net
[0, 5, 9]
3,739,327
3,739,328
Tooltip over different cells of a table
<p>I need to display tooltip on different cells of table. Basically what I want is a new layer of tool tip over that cell. It is necessary the cell can be anywhere I have seen some jquery library that apply tooltip to last column of table which wont work for me so tooltip should appear any where in mid of table or in t...
javascript jquery
[3, 5]
2,834,232
2,834,233
Download and save aspx page
<p>I saved aspx page as html it worked in my local machine but after published on the server its showing an error that "the access to the path is denied"... I tried giving access permission then also it doesn't work.. can anyone help with it? or else is there any other way to save the page in C# asp.net?...</p> <pre><...
c# asp.net
[0, 9]
4,541,034
4,541,035
Removing an Element on Certain Location
<p>Let's say the window's location is on <code>htt://stackoverflow.com/index.php</code>, I want to remove an element in the index page with jQuery. This is what I have and it's not working:</p> <pre><code>$(document).ready(function() { var location = window.location; var locQuery = /index/i; if (...
javascript jquery
[3, 5]
5,118,488
5,118,489
how to update gridview based on dropdownlist item
<p>I am creating a web page that contains one Dropdownlist and Gridview. </p> <p>Query is Dropdownlist will contains SQL Server database table list. When I select a table name from dropdownlist the Gridview needs to show entire table data and able to perform <code>edit, update, delete, cancel</code> actions.</p> <p>W...
c# asp.net
[0, 9]
663,999
664,000
how to create new line between dateformat
<p>i m creating date format like this :</p> <pre><code>SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE, h:mm a"); </code></pre> <p>i need a new line between date, month and time something like this </p> <pre><code>thus ,sep 6 4:25pm </code></pre> <p>so i made the following changes :</p> <pre><code>SimpleDat...
java android
[1, 4]
3,996,309
3,996,310
Convert Datatable to PDF
<p>Can I get a code for converting datatable to pdf in Asp.net Web application. I want to have functionality to export <code>datatable</code> into <code>PDF</code>. I found <a href="http://www.aspsnippets.com/Articles/Export-DataSet-or-DataTable-to-Word-Excel-PDF-and-CSV-Formats.aspx" rel="nofollow">this</a> article ...
c# asp.net
[0, 9]
4,573,924
4,573,925
Best practise for displaying multiple controls which require an extended class?
<p>If I want to display a <code>MapView</code> inside my <code>Activity</code> I would have to extend my <code>Class</code> from <code>MapActivity</code>. If I want to display a <code>Tabbed</code> interface I would have to extend my <code>Class</code> from <code>TabActivity</code>. Similar is the case with some other ...
java android
[1, 4]
4,027,296
4,027,297
Calling javascript from a code behind vs. calling a code behind from javascript
<p>I have a web application that will need to access code behind methods as well as javascript methods. For this particular implementation it doesn't really matter which order they are called in from a program flow perspective.</p> <p>I'm looking for insight into when it would be appropriate to use a code behind to c...
c# asp.net javascript
[0, 9, 3]
3,591,288
3,591,289
Bind DropDownlists with JQuery in Asp.Net
<p>I have 3 dropdownlists for Country,State and Metro. I want to when user seclect <strong>Country</strong> then <strong>State</strong> dropdownlist fill Jquery and when select <strong>Sate</strong> then <strong>Metro</strong> dropdownlist fill(like cascading dropdownlist of ajax).These process i want to do with JQuer...
asp.net jquery
[9, 5]
292,620
292,621
Add Item from Dropdownlist to ListBox using JQuery
<p>How can i add anything user selected from dropdownlist to listbox using JQuery? and when i post the page i should be able to retrieve <strong>"id, name"</strong> from the listbox.</p> <pre><code>&lt;asp:DropDownList ID="ddlPerson" DataSourceID="ods_person" DataValueField="Id" DataTextField="Name" r...
asp.net jquery
[9, 5]
1,097,950
1,097,951
table structure is not coming properly in FF with jQuery
<p>I have one table having 10 rows.Now on page load lets say first 7 rows are showing and I have blocked last 3 rows using jQuery. Now on click of a span I want to show last 3 rows..its working fine in IE but not in FF. in FF, when I am loading last 3 rows , the first 7 row css stops working , I mean from 2 nd col, it ...
javascript jquery
[3, 5]
4,032,343
4,032,344
Javascript hide control in Repeater
<p>How to hide a table row in repeater control in ASP.NET?</p>
javascript asp.net
[3, 9]
2,443,946
2,443,947
jQuery - Get a element class based on a prefix
<p>What's the fastest way possible to get a string like "fade" from the classes in the element below?</p> <pre><code>&lt;div class="MyElement fx-fade"&gt; ... &lt;/div&gt; </code></pre>
javascript jquery
[3, 5]
503,992
503,993
set value to hidden input
<p>Can anyone tell me what am I doing wrong. The hiddenvalue is being kept all the time null without any value assigned to it. </p> <p>The following is the code;</p> <p><strong>Javacript</strong></p> <p>This is intended to occur on a click event on a map</p> <pre><code>var str = "ryan"; document.getElementById("hid...
c# javascript asp.net
[0, 3, 9]
4,793,326
4,793,327
Remove all but the three word from a sentence and add three dots after that three sentence using jquery
<p>I want to Remove all but the three word from a sentence and add three dots after that three sentence using jquery. example if the sentence is " We evaluate our borrowers on a periodic basis. See our evaluations " so in that remove "<em>borrowers on a periodic basis. See our evaluations See our evaluations</em>" and ...
javascript jquery
[3, 5]
2,553,119
2,553,120
Need to bind DataList with Two DataSources
<p>I am displaying some information in DataList. Can i bind the DataList to two DataSources.?? since i am facing a situation in which the two rows needs to be populated from two different Tables. Below is what i am trying to do.</p> <pre><code>&lt;asp:DataList runat="server" id="myDataList"&gt; &lt;ItemTemplate&gt;...
c# asp.net
[0, 9]
2,042,925
2,042,926
jquery - Custom event doesn't trigger
<p>In the first script tag I have</p> <pre><code>var foo = function(){ $.ajax({ url: foo.com, dataType:'json', success: function(data,status,jqXHR){ $("#bar").trigger("custom"); }, }); } var intervalID = setInterval( foo , 15000 ); </code></pre> <p>In second I ha...
javascript jquery
[3, 5]
4,349,034
4,349,035
JavaScript: distinguish DOM element objects and Event objects
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object">Javascript isDOM &mdash; How do you check if a Javascript Object is a DOM Object?</a> </p> </blockquote> <p>I have the following s...
javascript jquery
[3, 5]
3,837,316
3,837,317
How to Convert an array of jQuery Objects to an HTML String
<p>In the jQuery Infinite Carousel, it uses <code>.clone()</code> to do the infinite effect. This works great unless the code it's cloning has HTML5 Elements. IE7 and IE8 have trouble applying HTML5 Element-specific CSS rules to cloned or otherwise post-page-load inserted elements.</p> <p>The <a href="http://jdbartl...
javascript jquery
[3, 5]
3,841,445
3,841,446
Hiding divs with javascript collapse all
<p>I'm making divs with holds content and my problem is how to get all divs to collapse. Problem here is that the code needs to be dynamic since we don't know how many divs going to be made.</p> <p>First here is my javascript:</p> <pre><code>function pageLoad() var j = 1; while(j&gt;0) collapseAll($('div'+j,'divx...
javascript jquery
[3, 5]
1,432,130
1,432,131
Currency conversion
<p>Does anyone know of a web service(pay or free) that will convert one currency to another based on current market value?</p> <p>Thanks in advance</p> <p>ADDITION</p> <p>I am not looking for a screen scrapeing solution. I am looking for something that I can setup and walk away from not something that I will have to...
c# asp.net
[0, 9]
3,571,765
3,571,766
Changing style of context menu in Android
<p>In one Android activity I have added a context menu to an <code>ImageView</code> with only one menu item: 'Close' (in order to hide the image). However, the context menu does not look precisely nice when shown, expanding a big white rectangle occupying almost all the wide of the screen. Is there a way to reduce the ...
java android
[1, 4]
390,334
390,335
jquery & php: saving some data without reload
<p>I have three buttons and need to save some data. I have a idea, I have to set an ID to every button and then let the JS determinate witch button that has been pressed, like:</p> <pre><code>$("#mySpecifikButton").click(function() { ....some code here... }); </code></pre> <p>but then Im stuck. For example I have 9 u...
php jquery
[2, 5]
2,270,226
2,270,227
Multiple javaScript libraries | Emerging standards - compare to C++
<p>It seems like there are many different styles to write JavaScript, in fact I've heard that JavaScript is an expressive language.</p> <p>But the point of code is functionality (function) not expression (form).</p> <p>Is there a library that will be adopted into the ECMA standard the way the STL and Boost Library we...
c++ javascript
[6, 3]