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,902,133
4,902,134
loop through li elements up the dom
<p>I have li elements</p> <pre><code>&lt;ul class=""&gt; &lt;li class="current-rating" id="current-rating" style="width: 0px"&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" title="1 star out of 5" class="one-star star star-rating stars-1"&gt;1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" title="2 ...
javascript jquery
[3, 5]
4,006,376
4,006,377
Variable scope in anonymous function
<p>I'm trying to populate an array in JavaScript using an anonymous function in the jQuery <code>getJSON()</code> function as follows.</p> <pre><code>$(document).ready(function() { function Link(url, title) { this.url = url; this.title = title; } var links = []; $.getJSON("http://redd...
javascript jquery
[3, 5]
4,093,695
4,093,696
How do i get selected radiobuttonlist in asp.net?
<p>I am using following code for a radiobuttonlist with default value of yes.</p> <pre><code> &lt;asp:RadioButtonList ID="RadioButtonList1" runat="server" onselectedindexchanged="radiobtnlist_SelectedIndexChanged"&gt; &lt;asp:ListItem Selected="True"&gt;YES&lt;/asp:ListItem&gt; &lt;asp:ListItem&gt;NO&lt;/asp:L...
c# asp.net
[0, 9]
3,839,969
3,839,970
Unable to give focus to specific fields with jQuery
<p>I'm validating a simple form with jQuery:</p> <pre><code>$('input:text').blur(function(){ if ($(this).val() == "") { $("#" + $(this).attr("name") + "_error").show(); $(this).css("border", "2px solid red"); $(this).focus(); return false; } }); </code></pre> <p>The <code>$(this).focus();</c...
javascript jquery
[3, 5]
1,117,887
1,117,888
ASP.NET, The status code returned from the server was: 500
<p>A customer using a ASP.NET program I have just sent them is experiencing the error below, I had personally tested the program on 4 web server IIS6, 7, and 7.5, on 4 different networks and I never got this, the customer is using IIS6 with .Net 2.0 (as required). The program uses Windows authentication which may or ma...
c# asp.net
[0, 9]
1,261,312
1,261,313
How to use method get value in "input[type=radio]"
<pre><code>&lt;script&gt; $(document).ready(function(){ $('#btnSubmit').bind('click', function(){ var option = $('#form input[type=radio]').val(); if(!option){ alert('Answer empty'); return false; } $('#form').submit(); }); }); &lt;/script&gt; &lt;form id="for...
php jquery
[2, 5]
3,764,256
3,764,257
Are zero length timers still necessary in jQuery?
<p>I am finally getting around to really implementing some jQuery solutions for my apps (which is seeming to also involve a crash course in javascript).</p> <p>In studying examples of plugins, I ran across this code. I'm assuming the author created the zero length timer to create some seperation of the running code, s...
javascript jquery
[3, 5]
128,391
128,392
select a range of dom elements based on index
<p>I need to select a specific grange of jquery elements based on there index using <code>:eq()</code> (or something else if you have a better solution)</p> <p>my html structure is the following:</p> <pre><code>&lt;ul&gt; &lt;li&gt;slide0&lt;/li&gt; &lt;li&gt;slide1&lt;/li&gt; &lt;li&gt;slide2&lt;/li&gt; &lt;...
javascript jquery
[3, 5]
5,405,552
5,405,553
how to prevent $(document).ready(function() {} from calling a function
<p>i have a simple but bit complicated problem. what i want to do is that in my php page i have added this</p> <pre><code>$(document).ready(function() { $("a[rel^='prettyPhoto']").prettyPhoto({social_tools:false,overlay_gallery:false}); }); </code></pre> <p>now this page get call through ajax too.normal call of pa...
javascript jquery
[3, 5]
1,235,532
1,235,533
Use jquery to fire off my timer
<p>I have a timer on my web app called Timer1 and the <code>enabled = false</code>. I want to use jquery to fire off my timer. I thought that <code>$("Timer1").enableSelection('True');</code> would work but it doesnt appear to be working. </p> <p>Any suggestions here? </p> <p>Thanks guys!</p> <p>My jquery code: </p...
c# jquery
[0, 5]
2,184,757
2,184,758
ASP.NET Login, Convert.ToInt32();
<p>I'm making a login script and can't get the <code>Convert.ToInt32()</code> to work for me.</p> <p>The error: Error </p> <blockquote> <p><em>'System.Convert.ToInt32(object)' is a 'method' but is used like a 'type'</em></p> </blockquote> <p>snippet:</p> <pre><code> con.Open(); string mysql; // genera...
c# asp.net
[0, 9]
4,292,821
4,292,822
ASP:Checkbox Bind Issues
<p>I am using a MSsql Database and trying to bind a checkbox to one of the fields. The field in the DB is a Bit so it is looking for a 1 or 0, but the asp:checkbox deals with Boolean values. How do I go about doing this binding?</p>
c# asp.net
[0, 9]
1,599,847
1,599,848
Add chars on line break
<p>Hi I have list (ul) and in it some "li".</p> <p>With Javascript (jQuery) how do I detect when line breaks and add some chars on beginning.</p> <p>So for example:</p> <pre><code>I have a very looooong text in 200px width li. </code></pre> <p>Result is:</p> <pre><code>I have a very looooong text in 200px width l...
javascript jquery
[3, 5]
1,946,626
1,946,627
How to open URI in the native browser (android)
<p>I want to open the page ya.ru in the native browser. That's what I have</p> <pre><code>list.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub String url = "http://ya.ru"; Intent intent1 = new Intent(Intent.ACTION_VIEW); ...
java android
[1, 4]
1,259,093
1,259,094
Move focus from one control to another control just pressing enter key by Jquery
<p>suppose i have many html control in the page and all the control has a sequentially tab stop set.so if i press tab then focus move properly but i want to move focus just by pressing enter key instead of tab. so please tell me how could i programatically press tab when user will press enter key in my web page just by...
javascript jquery
[3, 5]
1,270,403
1,270,404
C# Rollback sendemail
<p>I wrote a code to recover passwrod in my website.The user enter his email address and we send a new password to him.In additcion,we also change his password in DB to newest password.</p> <p>Problem: If code for send mail fails,i cant change his password in DB,and if code to change password fails i cant send mail.</...
c# asp.net
[0, 9]
3,296,558
3,296,559
GridView Records are inserted / not
<p>I have a 3 GridvViews : <strong>To</strong>, <strong>Cc</strong>, and <strong>Bcc</strong>. After entering the values to Grids, I want to save those Records.</p> <p>My question is: at the time of saving, how do I check if there is there in 3 Grids or not? e.g. If I insert records for <strong>To</strong>, but not fo...
c# javascript
[0, 3]
4,215,161
4,215,162
Change Enter from submission to Tab?
<p>Users don't like the fact that the Enter key submits the page. So I am tasked with preventing the submission and changing the Enter key to a Tab to the next field.</p> <p>I have tried many javascript snippets found on the net but none have worked so far. The only one that has even come close to having an effect w...
javascript asp.net
[3, 9]
769,554
769,555
Loading Content best practices
<p>I am sort of new to JavaScript and something has been bugging me. Say I have some code like this:</p> <pre><code>$('button').on('click', function() { var id = $(this).attr("id") // id being a file name sans extension $('.content').load(id + '.php'); }); </code></pre> <p>Everything works just fine, but some...
javascript jquery
[3, 5]
4,755,117
4,755,118
How to work with JSON
<p>Okay I'm really sorry if this question has been asked, but I can't seem to find any good help on this. </p> <p>I coded myself a little API for my android app using PHP and Codeigniter. It works through GET requests, so I'll send it some info and it'll return something. When I send it a login request, I want it to v...
java android
[1, 4]
1,800,065
1,800,066
Using variable in a regex
<p>say i have the following variables:</p> <pre><code>myId; //Email_PDF currentHoverOnItem; //Email_PDF_english of Email_PDF_Dutch or ... </code></pre> <p>So the first value is "Email_PDF" and the second is "Email_PDF_english". What i want i when currentHoverOnItem contains myId, then something can be executed. This ...
javascript jquery
[3, 5]
5,475,062
5,475,063
javascript: completing action only if a div is visible
<pre><code>$.swapImage.swapOut = function() { if ($(this).find('.popup').is(':visible') !== true) { alert(ASDASD) $.swapImage.swap(this, "sout"); } </code></pre> <p>I am trying to find if the div "popup+this" (example popup1) is visible before completing the action. Any i ideas?</p>
javascript jquery
[3, 5]
3,748,361
3,748,362
Reading custom format files in C#
<p>I would like to fetch n bytes from specific place in a file into my specific data structure (a struct). </p> <p>The old C - application (which we are porting) uses fseek() and fread().</p> <p>Is where a comparable solution in C#/.Net, without using the Win32-API?</p>
c# c++
[0, 6]
5,347,251
5,347,252
String manipulation - getting value after the last position of a char
<p>How I can get the value after last char(. ; + _ etc.): e.g.</p> <blockquote> <p>string.name+org.com</p> </blockquote> <p>I want to get "com". Is there any function in jQuery?</p>
javascript jquery
[3, 5]
5,205,544
5,205,545
How to load image from a website in android?
<p><a href="http://www.bestandroidblog.com/android-phones/which-android-phone-will-take-the-title-of-the-best-android-phone-of-2012/" rel="nofollow">This</a> site contains more than one image. But in a webview I just want to load any one of these images. How to do it?</p>
java android
[1, 4]
4,650,795
4,650,796
How to create Notification which avoid TaskManager's killing?
<p>I want to create Notification in Android. But, If I kill the application via TaskManager, it terminate the Notification too.. It is the code-snipet.</p> <p>it is the caller.</p> <pre><code>Intent intent = new Intent(myActivity, NotificationReciever.class); String appName = myActivity.getTitle().toString(); Calenda...
java android
[1, 4]
452,613
452,614
Access $('selector').data in functions/objects
<p>How do I access values set by $.data() inside a function or object</p> <pre><code> $('#timers').data('firsttimer', 100); //prints 100 document.write($('#timers').data('firsttimer')); function blah(){ //Prints nothing document.write($('#timers').data('firsttimer')); } blah()...
javascript jquery
[3, 5]
1,242,219
1,242,220
Print content from a list with a delay in Javascript/jQuery
<p>I have a list of strings in Javascript that I would like to print into a HTML div. This is the Javascript code:</p> <pre><code>$(document).ready(function(){ list = ["One","Two","Three"]; for (var i = 0; i &lt; list.length; i++){ $("#content").html(list[i]); } }); </code></pre> <p>Which print into the HTML div ...
javascript jquery
[3, 5]
1,702,485
1,702,486
PHP and JQuery Question
<p>Is there a way I can pass a PHP variable from a PHP page to a JQuery page and back to a PHP page?</p>
php jquery
[2, 5]
4,526,730
4,526,731
Open Image from assets using external program
<p>I've wrote content provider to open a png file in my app package with an external application (standard image viewer of Android). Image is stored in asset folder.</p> <p>I cannot understand where is a problem, but it doesn't work for me.</p> <p>openFile of ContentProvider:</p> <pre><code> @Override public Pa...
java android
[1, 4]
5,739,352
5,739,353
HttpContext.Current.Session vs Context.Session
<p>Are they the same thing? Or are they different?</p> <p>I'd read this SO <a href="http://stackoverflow.com/questions/7954844/what-is-the-difference-between-these-two-httpcontext-current-session-and-session">post</a> and <a href="http://stackoverflow.com/questions/940742/difference-between-session-and-httpcontext-cur...
c# asp.net
[0, 9]
3,230,403
3,230,404
Remove leading and trailing spaces in object keys and values
<p>Using the following function:</p> <pre><code>// remove multiple, leading or trailing spaces function trim(s) { s = s.replace(/(^\s*)|(\s*$)/gi,""); s = s.replace(/[ ]{2,}/gi," "); s = s.replace(/\n /,"\n"); return s; } </code></pre> <p>removing the leading and trailing whitespaces in the value is n...
javascript jquery
[3, 5]
4,795,632
4,795,633
Hide all the id in JavaScript
<p>I need to hide all the tags which has the ID 'media'</p> <p>E.g.:</p> <pre><code>`&lt;div id='media'&gt;contents&lt;/div&gt;` `&lt;div id='media'&gt;content&lt;/div&gt;` </code></pre> <p>How to do this using JavaScript?</p>
javascript jquery
[3, 5]
4,781,898
4,781,899
not able get message in chat application when successfully logs in
<p>I want to make a simple chat application.. I have used the below link <a href="http://www.codeproject.com/Articles/17617/Create-a-Chat-System-using-Ajax-and-ASP-NET" rel="nofollow">http://www.codeproject.com/Articles/17617/Create-a-Chat-System-using-Ajax-and-ASP-NET</a></p> <p>After writing below code able to redi...
c# asp.net
[0, 9]
49,788
49,789
login to site and download a file?
<p>I have implanted a login code to a site , after that I want to download a file from a server . </p> <pre><code> HttpWebRequest http = WebRequest.Create(@"http://www.website.com") as HttpWebRequest; // http.Connection = "Keep-alive"; //uncertain http.Method = "POST"; http.ContentType = "applicatio...
c# asp.net
[0, 9]
3,349,694
3,349,695
How can I trigger on URL change in jQuery?
<p>How can I trigger a function when the URL changes? I try something like:</p> <pre><code>$(windows.location).change(function(){ //execute code }); </code></pre> <p>So my URL is something like <code>http://www.mysite.com/index.html#/page/1</code>. How can I execute jQuery or JavaScript code when the URL becomes s...
javascript jquery
[3, 5]
261,430
261,431
getting content of a span in jquery
<p>I have a structure as follows and I want to get content of spans using jquery. How can I do it? Thanks. </p> <pre><code>&lt;div id="question"&gt; &lt;span id="question_zone_0"&gt; &lt;span class="myclass"&gt; &lt;span id="myword0"&gt;myword0&lt;/span&gt; &lt;/span&gt; &lt;spa...
javascript jquery
[3, 5]
1,564,906
1,564,907
How to get soap address location attribute from wsdl document in JavaScript
<p>How can I get or retrieve the address location from this tag in JavaScript and Java?</p> <pre><code>&lt;soap:address location="http://www.webservicex.net/geoipservice.asmx"/&gt; </code></pre> <p>I am using this WSDL: <a href="http://www.webservicex.net/geoipservice.asmx?wsdl" rel="nofollow">http://www.webservicex....
java javascript
[1, 3]
5,758,376
5,758,377
encoding empty array in JavascriptSerializer using custom JavascriptConverter
<p>I'm using a custom converter to encode an object model. On the client, I need an empty array but I don't want to include this array in the object model on the server because the array is only used client-side.</p> <p>This is what I have:</p> <pre><code>public override IDictionary&lt;string, object&gt; Serialize(ob...
c# asp.net
[0, 9]
2,690,055
2,690,056
Retrieving DataGrid Cell value
<p>I Have just started learning ASP.Net. Last night i was working on Grid View in which i fill data by directly giving command to database. I haven't defined any template field for my grid and i have set AutoGenerated edit button to true. Data is getting displayed corrrectly but While trying to handle update event i'm ...
c# asp.net
[0, 9]
5,689,651
5,689,652
Javascript alert() after Response.Redirect
<p>I am calling this in my code behind: </p> <pre><code>(test.aspx) Response.Redirect("~/Default.aspx"); </code></pre> <p>I want to include a javascript alert after/before being redirected to Default.aspx, is it possible? I'm doing this because I'm passing a value to another page (test.aspx) and that page checks the ...
c# javascript jquery asp.net
[0, 3, 5, 9]
5,172,558
5,172,559
How to use modalDialog to display pop-up which can work in all browser
<p>I just tried to create pop-up window but its parent window get active while pop-up is still open , in Chome. My code is as blow</p> <pre><code>&lt;script language="javascript" type="text/javascript"&gt; function showModalWindow() { window.showModalDialog('URL, "Sample.jpg", "resizable: yes"); } &lt;/sc...
javascript jquery
[3, 5]
4,809,353
4,809,354
over text mark another text
<p>I'm looking for js code (maybe jquery) that will mark some text when I overmouse on another text (they both will have the same ID)</p> <p>I have number of URLs and I want that overmouse on them will change table cell color</p> <p>for example: </p> <p>overmouse on url1 will mark cell ID 20</p> <p>overmouse on url...
javascript jquery
[3, 5]
3,825,122
3,825,123
Disabling parent page while displaying MessageBox.Show
<p>I created an alert using MessageBox.Show method. But I'd like to forbid the editing of the controls in the page which is still accessible behind the messagebox. If I try to disable every control manually before firing the messagebox the controls are disabled only after picking a choice in the messagebox.</p> <p>Ple...
c# asp.net
[0, 9]
4,939,741
4,939,742
Search gridview based on the value typing in textbox?
<p>I am using ASP.NET and C#.This is my code.</p> <pre><code>&lt;asp:UpdatePanel ID="gridSearch" runat="server"&gt; &lt;ContentTemplate&gt; &lt;asp:GridView ID="jobcardSearch" runat="server"&gt; &lt;Columns&gt; &lt;asp:TemplateField&gt; ...
c# javascript jquery asp.net
[0, 3, 5, 9]
3,053,261
3,053,262
jQuery reversing the direction of an effect
<pre><code>$("#left_image1").delay('1000').animate({width:'toggle'}, 1000); </code></pre> <p>This causes the element to collapse in such a way that it appears to be moving off the LEFT side of the screen. How can I reverse the effect so that the element appears to be moving off the right side of the screen?</p>
javascript jquery
[3, 5]
4,383,441
4,383,442
How to stay within a 'instance' using JQuery
<p>I'm currently learning JavaScript/JQuery, but have an issue at work that I'm running into.</p> <p>I've assigned a class of 'question' to an<code>&lt;a&gt;</code>tag, and 'answer' to a<code>&lt;div&gt;</code>. When a user clicks on the question, the answer will slide down. However, the problem I'm running into is th...
javascript jquery
[3, 5]
969,927
969,928
alternative to onbeforeunload
<p>I want to update database when user leave the site. I am using php for my site. I am using javascript function onbeforeunload and call php through ajax to update database. </p> <p>Now the problem is that the function onbeforeunload is not supported by Opera and Safari, and so the entry should be deleted from databa...
php javascript
[2, 3]
4,907,871
4,907,872
Convert php to java/android arrays
<pre><code>$tagArray = array( "apples" =&gt; 12, "oranges" =&gt; 38, "pears" =&gt; 10, "mangos" =&gt; 24, "grapes" =&gt; 18, "bananas" =&gt; 56, "watermelons" =&gt; 80, "lemons" =&gt; 12, "limes" =&gt; 12, "pineapples" =&gt; 15, "strawberries" =&gt; 20, "coconuts" =&gt; 4...
java php
[1, 2]
4,080,702
4,080,703
calling a Asp.net web API from c# with multiple of parameters
<p>I have a web api that has parameters. I am trying to call the api from another application. This is not a problem on the client side using, but i cannot find a way to do it on the server side in c#. Thanks for any advice.</p>
c# asp.net
[0, 9]
5,605,989
5,605,990
How to retrieve rowId from javascript postBack
<p>Hi I bound in my gridview, <code>OnRowCreated</code> event to each row following javascript code</p> <pre><code>e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.GridViewCategory, "Select$" + e.Row.RowIndex); </code></pre> <p>And now my question is how can I retrieve this <code>rowIndex</c...
c# asp.net
[0, 9]
5,718,059
5,718,060
C# - asp.net - Couple questions on this coding
<p>1) It loads extremely slow, takes over 20 seconds, but it does load the DataBase. Is that normal?</p> <p>2) I put the hello and bye response to test if it connected well. It writes hello and bye numerous of times like hellohellohellohello...byebyebyebye... is this normal? I was thinking this has something to do ...
c# asp.net
[0, 9]
2,807,175
2,807,176
post data and get back response in asp.net
<p>i am trying to post a data to a website and get the response back from the server. This is the code that i am using:</p> <pre><code> // Create a request using a URL that can receive a post. WebRequest request = WebRequest.Create("http://www.indianrail.gov.in/train_Schedule.html"); ((HttpWebRequest)reque...
c# asp.net
[0, 9]
5,761,340
5,761,341
How to set drop down list option up to specific value
<p>If I have valvo that obtain from database, How can I set volvo option status into active(checked) by using JQuery?</p> <pre><code>&lt;select name="car"&gt; &lt;option value="volvo"&gt;Volvo&lt;/option&gt; &lt;option value="saab"&gt;Saab&lt;/option&gt; &lt;option value="mercedes"&gt;Mercedes&lt;/op...
javascript jquery
[3, 5]
4,059,267
4,059,268
Passing variables in a multi-project solution
<p>I am working with a progaram called aspdotnetstorefront. This is a shopping cart program The solution has 7 projects in it</p> <p>There is a file in the web project that is called checkout1.cs that has the checkout1.aspx file</p> <p>The checkout1.aspx file has a field for state. In the solution, there is project c...
c# asp.net
[0, 9]
5,853,276
5,853,277
Can I have a raised edge on a layout or component box?
<p>I am writing an Android application and I have a box within a box on my UI. I changed the color of the backgrounds so the user can differentiate them. However, I want to know if I can have a raise edge or different color "edge" of a layout. </p> <pre><code>+_____________+ | _______ | | | | | | | ...
java android
[1, 4]
1,954,074
1,954,075
jQuery find - What order does it return elements in?
<p>I have been using jQuery's <code>find</code> method and it's been very useful. </p> <p>However, I came across an example where the <code>find</code> seemed to be duplicating things and not returning elements in the order they appeared in the document. (I'm not sure if find is supposed to do this - I doubt it). </p>...
javascript jquery
[3, 5]
3,526,813
3,526,814
Cons of external JavaScript file over inline JavaScript
<p>What are some of the disadvantages of using an external JS file over including the JS as a part of the ASPX page?</p> <p>I need to make an architectural decision and heard from coworkers that external JS does not play nice sometimes.</p>
asp.net javascript
[9, 3]
5,845,140
5,845,141
How to control RIL daemon?
<p>I'm trying to write an application which will be able to show you <code>available network operators</code> and <code>select</code> one you choose. I don't want to send user to <code>network settings</code> from <code>my app</code>. I want to do that in my application. At the moment I'm able to <code>import com.andro...
java android
[1, 4]
995,491
995,492
how to get users from SharePoint user profile db using jquery
<p>I just want to know, is there any way to get a SharePoint user using javascript / jquery from default SharePoint 2010 user profile db?</p> <p>My requirement is to form an array of all SharePoint site users (user name) and use this array in a java function (that run behind the page at client side ) as a data source ...
javascript jquery
[3, 5]
2,470,618
2,470,619
Drop down list issue
<p><strong>Html</strong></p> <pre><code> &lt;a id="btn" class="btn" href="#."&gt;&lt;/a&gt; &lt;div id="main-dropdown" class="hide"&gt; &lt;ul id="dropdown"&gt; &lt;li&gt;&lt;a href="/"&gt;Back &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/foo"&gt;Foo &lt;/a&gt;&lt;/li&gt; &lt;...
javascript jquery
[3, 5]
5,334,271
5,334,272
Displaying Progress Bar in a Multi-Branch Wizard
<p>I am creating a wizard. One of the requirements is to display where the user is in the workflow (ie: Step 1 of 5). My problem is at any point the steps remaining could change depending on what the user answers. Let me highlight with an example.</p> <p>Q1: What is your name?</p> <p>Q2: What is your age? </p> <...
c# asp.net
[0, 9]
4,394,189
4,394,190
browser compatibility
<p>How can i check which fuctions of javascript the browser support which i am using.It can be any browser. Thank you in advance.</p>
javascript jquery
[3, 5]
4,092,753
4,092,754
how to dynamically assign numbers to several ids?
<p>This seem like long way of doing things, is it possible to dynamically assign numbers to ids?</p> <pre><code> $(function () { $('#Button1').click(function(){ $('#RegularExpressionValidator1, #RegularExpressionValidator2, #RequiredFieldValidator1, #RequiredFieldValidator2, #RequiredFieldVali...
javascript jquery
[3, 5]
6,021,966
6,021,967
Int values get automatically converted into float values on Binding the text values in gridview
<p>I am getting int values from the stored procedure. But when i bind this datasource with the gridview i am seeing the values being converted into float. i am using <strong>Text='&lt;% # Bind("Quantity") %'</strong> <br/> I wanna that to be displayed as int, with out zero's eg: let the value be 233, when i bind that ...
c# asp.net
[0, 9]
829,106
829,107
How can I write below programming in jquery
<pre><code>function abc(a,b,c) { alert('a :'+a+' b:'+ b); xyz(c); } function xyz(c) { alert('c :' + c); } &lt;a href="javascript:abc(1,2,3)" &gt;click here to check value of abc &lt;/a&gt; </code></pre>
javascript jquery
[3, 5]
5,316,613
5,316,614
Can I remove inline event handlers using jQuery?
<p>I have some HTML with an <code>onclick</code> attribute. I want to override that attribute using jQuery. Is there any way to remove the click handler using jQuery? Using <a href="http://jsfiddle.net/qu5zZ/1/" rel="nofollow">unbind doesn't work</a>.</p>
javascript jquery
[3, 5]
4,403,451
4,403,452
Jquery and SQL data table
<p>Learning Jquery here and I would like to show my SQL table on my webpage. I have the "shell" of my jquery that matches the SQL table and my web.config is setup correctly but my jquery doesnt load data. Where it says <code>url: 'ConnectionString',</code> I would like for it to point to my table or the web.config file...
jquery asp.net
[5, 9]
248,956
248,957
How to create simple javascript/jquery client side captcha?
<p>How to create simple javascript/jquery client side captcha? </p>
javascript jquery
[3, 5]
2,916,899
2,916,900
Is using ObjectDataSource a good practice?
<p>In my company few of the employees are using ObjectDataSource. Example snippet is :</p> <pre><code>&lt;asp:ObjectDataSource ID="odsRequirement" runat="server" EnablePaging="True" MaximumRowsParameterName="intMaxRows" SelectMethod="GetAll" StartRowI...
c# asp.net
[0, 9]
1,905,171
1,905,172
jquery update page when db update
<p>I've a page that show data inserted in a mysql db; I'd like (if it is possible) that this view page automatically update when a record is added to the db (data are not inserted from the same page or may be inserted from another user).</p> <p>thanks in advance ciao h.</p>
php jquery
[2, 5]
4,758,246
4,758,247
Unable to Access the Dynamic control
<p>I have created Views for Multiview dynamically . In the view control I have a Gridview control which has a checkbox control. I have a button in the main aspx page on click of which it will check(if checked or not) for all the checkbox and fetch the corresponding row from the gridview. The view is for tabbed menu. In...
c# asp.net
[0, 9]
4,199,413
4,199,414
loading image before switching div background in jquery
<p>I have a web page where I want to switch the background image of a div in response to user interaction. What I have so far is:</p> <pre><code>function updateImg() { imgurl=buildImgURL(); // constructs a URL based on various form values $('#mainImage').css("background-image", "url("+imgurl+")"); } </code></p...
javascript jquery
[3, 5]
2,220,612
2,220,613
File upload and delete
<p>I'm trying to upload a file, and have the name of the uploaded file displayed along with a "remove" link to remove the uploaded file (in order to uploaded another one). <a href="http://jsfiddle.net/kTNuB/2/" rel="nofollow">Here</a> is what I've got so far. Everything works fine except that when I remove the uploaded...
javascript jquery
[3, 5]
3,221,867
3,221,868
Call a jQuery function with input data that comes from a PHP script
<p>I have this function <a href="http://jsfiddle.net/wnFsE/" rel="nofollow">http://jsfiddle.net/wnFsE/</a> . As you can see every time the user writes a languages on the textfield and then hits the button <em>add</em> a new language is added to the list. Then when the user hits save, all the info is sent with <strong>P...
php jquery
[2, 5]
235,323
235,324
How to renable document.write after jQuery ajax has completed
<p>I have to grab a snippet of JS that has document.write in it - this causes the page to go blank once the document.write renders. I was able to work around this by redefining document.write and pass the response of the script to a function that I use to output the response from the getScript() jQuery function. I am h...
javascript jquery
[3, 5]
1,159,419
1,159,420
How to detect the key code while keyboard key pressed by using java script
<p>I am developing a website, in order to do some security measures, i need to detect some key-code while key board key is pressed.Any one please help me to solve this problem by using java script or any other method...</p> <p>Thanks in advance..</p>
c# javascript asp.net
[0, 3, 9]
3,429,281
3,429,282
JavaScript alert boxes combined with PHP
<pre><code>echo "&lt;td&gt;&lt;a href='delete.php?id=$row[id]&amp;&amp;category=$a' onclick='return confirm(\'are you sure you wish to delete this record\');'&gt;delete&lt;/a&gt;&lt;/td&gt;"; </code></pre> <p>Above is the code I am trying to use. Every time it does nothing and I cannot see how I can use 'proper' JavaS...
php javascript
[2, 3]
2,828,582
2,828,583
JQuery - add value to the hidden input
<p>How can add value to the hidden input filed? In this case input is being created as variable, and latter on inserted into the DOM if needed. The code:</p> <pre><code>&lt;script&gt; var forma = $('form#mali_oglas'), pomoc = $('div[role=pomoc]'), div = $('.mali_oglas_pomoc'), input = forma.find('input...
javascript jquery
[3, 5]
3,865
3,866
Services used to store user info and photo
<p>So recently i am building an app that will use some social functions such as users making friend request, and having a profile photo. The user will be able to create a profile and i need a service to use that will store the information of each unique user, and there photo. I am not sure how i will manage the users s...
java android
[1, 4]
2,167,228
2,167,229
When does function order matter?
<p>I understand that JS does a pre-compilation of functions before it executes code. So function order does not matter. But, function order somehow becomes a problem when linking *.js files.</p> <p>For example,</p> <pre><code>&lt;script src="@Url.Content("~/Scripts/Personal/MyJScript.js")" type="text/javascript"&gt...
javascript jquery
[3, 5]
3,726,984
3,726,985
Giving html list elements that only contain a specified text a background color using Jquery
<p>I have the following html script:</p> <pre><code>&lt;ul&gt; &lt;li class="container"&gt; &lt;div class="age"&gt;24&lt;/div&gt; &lt;div class="married"&gt;no&lt;/div&gt; &lt;/li&gt; &lt;li class="container"&gt; &lt;div class="age"&gt;27&lt;/div&gt; &lt;div class="married"&gt;yes&lt;/div&gt; &lt;/li&gt; &lt;li clas...
javascript jquery
[3, 5]
1,135,816
1,135,817
Jquery | Function inside same function. It bad practice?
<p>I am using this function for easiness, as I am going to use fadeTo a lot:</p> <pre><code>function fade_to(div, speed, opacity, after_fade) { $(div).fadeTo(speed, opacity, after_fade); } </code></pre> <p>Then I am calling the same function for after_fade parameter:</p> <pre><code>fade_to('#div', 3000, 1, funct...
javascript jquery
[3, 5]
3,968,551
3,968,552
Where is file after create in android, where it is?
<p>I create a file in android emulator, after that I try it on phone but I don't have the same dir. Where can I find my file on PHONE?</p> <pre><code>public void costam (String text) { try { FileOutputStream fOut = context.openFileOutput("samplefile.txt", ...
java android
[1, 4]
5,900,411
5,900,412
jQuery: How to handle submit callback with upload control in dialog?
<p>In a modal jQuery dialog I have form with inputs among them I have upload control. Due above thing form is marked by enctype = "multipart/form-data". Form action refers to controller action that will return partial view that should be placed on a page on callback handling.</p> <p>To handle submit callback was tryin...
javascript jquery
[3, 5]
2,436,228
2,436,229
Facing Issue in my Image Gallery
<p>I am creating a thumbnail gallery with images and videos. I am having a thumbnail gallery and when I click on any of the thumbnails, then that particular thumbnail should pop out and then display whatever was in it.</p> <p>Every thing is working fine but I added an extra new div for video part its not working fine,...
javascript jquery
[3, 5]
40,763
40,764
How to trigger an alert in Javascript from PHP
<p>PHP newbie here...</p> <p>I am trying to trigger an alert in JavaScript from PHP, but it doesn't seem to work. :</p> <pre><code>if(isset($_POST['save-text'])){ // get form data, making sure it is valid $submit_date = date('Y-m-d H:i:s'); $content = mysql_real_escape_string(htmlspecialchars...
php javascript
[2, 3]
1,747,777
1,747,778
Cross-Page Posting a GridView
<p>I have a problem with Cross-Page Posting a GridView.</p> <p>The error I'm getting is the following: <strong>Object reference not set to an instance of an object.</strong></p> <p>Steps I took:</p> <ol> <li>Create the new Page and add a GridView</li> <li><p>Create a button with PostBack to the new page.</p> <pre><...
c# asp.net
[0, 9]
5,893,759
5,893,760
Prevent validation when using __doPostBack
<p>I am using __doPostBack manually in JavaScript, however it is triggering my validation on the server side. When the page refreshes, it has validated the fields on the page and is displaying the errors in the ValidationSummary control.</p> <p>Is there a way to prevent this? </p> <p>I am not calling Page.Validate() ...
javascript asp.net
[3, 9]
1,060,092
1,060,093
Log into website and retrieve data
<p>I wanted to make a C++ or Java program that logged me into a <a href="https://portal.bvsd.org/campus/portal/boulder.jsp" rel="nofollow">website</a> and retrieved data (or, more specifically, my grades). The grades are in an HTML tag, but they are also being retrieved from a database (obviously). I don't care how th...
java c++
[1, 6]
175,307
175,308
How to get label control value from gridview templatefield
<p>I have a gridview and sqldatasource.</p> <p>I have a templatefield column and below the textbox of edit item template I have a simple label .</p> <p>Is there any way of getting the label value in ROW UPDATING event?</p> <p>I've tried : <code>String llbl = ((Label)row.Cells[6].FindControl("label1")).Text;</code> H...
c# asp.net
[0, 9]
2,306,710
2,306,711
How to connect servlet
<p>I am doing client server process. I dont know how to connect with Servlet . In servlet i have JDBC that collects data from oracle. I want to connect servlet and to show all the details from oracle database in android. </p>
java android
[1, 4]
3,714,652
3,714,653
dropdownlist auto post back errors
<p>there are some item in my database,on page load, my dropdownlist will load all the item from db, what i want to achieve is whenever user selected any item from dropdownlist, there are some output will be display</p> <p><strong>item inside my db</strong></p> <p>a</p> <p>b</p> <p>c</p> <p>once i set dropdownlist ...
c# javascript jquery asp.net
[0, 3, 5, 9]
1,596,241
1,596,242
Is programming for Android completely different fron programming for iPhone?
<p>I have made apps for the iPhone, but want to also code for the Android but want to know if it is first worth my time, second worth my having to learn another language, and third worth the effort in the sense that am I going to make a profit from this. Also if in any way Android code is similar, then will it be hard ...
iphone android
[8, 4]
1,911,584
1,911,585
How to package apk with external library to android mobile
<p>I have added the external library using eclipse. Everything is fine in the emulator. However, when I tried to install the apk file in real android mobile, it cannot be installed. Actually, I followed this steps to add external library.</p> <p><a href="http://developer.android.com/guide/appendix/faq/commontasks.html...
java android
[1, 4]
4,222,983
4,222,984
opening a new page?
<p>in my web application I have a button when I click I want to open a new page, the page should width 220, height 300 like this please help me thank you.</p>
c# asp.net
[0, 9]
3,837,648
3,837,649
asp.net unable to locate a resource file
<p>Im attempting to utilize some custom script and css files within an asp page. In Visual Studio 2010 I am not getting any warnings or errors as to the status of these files, but when I attempt to run the page, and I open the javascript console I get the error: </p> <pre><code>Failed to load resource: the server res...
javascript asp.net
[3, 9]
5,366,053
5,366,054
Jquery append to (dynamic by id)
<p>Lets say i have function with id paremeter and two select box</p> <pre><code>&lt;select id="one" onchange="Fill(2)"&gt;&lt;/select&gt; &lt;select id="two" onchange="Fill(3)"&gt;&lt;/select&gt; &lt;select id="three"&gt;&lt;/select&gt; </code></pre> <p>My function</p> <pre><code>function Fill(id){ //some manupula...
javascript jquery
[3, 5]
2,022,022
2,022,023
Jquery help repeated ajax call
<p>When I submit my form, a repeated ajax call is made it never stop.</p> <p>Here is my Jquery for the ajax call on form submit:</p> <pre><code>$('form#formgo').submit(function(e) { e.preventDefault(); $('#comparecontent').empty().html( '&lt;p style="text-align:center;"&gt;' + '&lt;img src="....
javascript jquery
[3, 5]
147,447
147,448
content not showing when clicking nav
<p>I'm trying to figure out why my jquery isn't working correctly. I click on my navbar link and the content space shows for .0923202 of a second and goes back to be hidden. Thank you.</p> <pre><code>$(document).ready(function() { $(".content").hide(); $("a").click(function() { $(".content").show(); ...
javascript jquery
[3, 5]