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,886,237
4,886,238
How to get the value of radio buttons via Jquery
<p>If I have the following radios:</p> <pre><code>&lt;input name="color" id="color_blue" value="blue"&gt;Blue &lt;input name="color" id="color_red" value="red"&gt;Red &lt;input name="color" id="color_green" value="blue"&gt;Green </code></pre> <p>What's the easiest way to find out which radio the user selected? Prefer...
javascript jquery
[3, 5]
1,482,745
1,482,746
android load content for all tabs when app starts
<p>My app has a tabHost that handles 5 tabs that loads properly their activities. However, app starts with tab1 selected and tab2 and following ones are not loaded until user click into related tab! How could I previously load content to other tabs before its selection? Thank you</p>
java android
[1, 4]
1,473,287
1,473,288
jQuery tree menus won't expand!
<p>I'm using the <a href="http://wordpress.org/extend/plugins/cms-tree-page-view/" rel="nofollow">Page Tree View</a> plugin and I may have done something recently to install the latest version of JDK that screwed up my jquery in WordPress because now the menu items won't expand. They appear, and they even show the load...
jquery javascript
[5, 3]
2,969,667
2,969,668
How to pass a url to a JavaScript function as a parameter?
<p>I just want to pass the base url to a javaScript function. Function call is like as follows </p> <pre><code>&lt;img src="assets/images/c_arow_rite.jpg" onClick="nextMonth('.$bs_url.')"/&gt; </code></pre> <p>It showing an error in the Error Console like </p> <pre><code>Error: SyntaxError: identifier starts immedi...
php javascript
[2, 3]
4,277,934
4,277,935
How to use remove.attr on data-position and then print?
<p>I'm trying to write a function that will remove the footer's data-postion fixed attribute, then print the page. I have this linked with an onclick event, but it has no effect to the page. </p> <pre><code>function printpage(){ $('#footer').removeAttr('data-position'); javascript:window.print() } </code></p...
javascript jquery
[3, 5]
848,195
848,196
Get ClientID in Javascript
<p>I have a javascript file that Select a button using jQuery and check it for validation.the code is:</p> <pre><code>$(document).ready(function () { $('#&lt;%= btn_Insert.ClientID %&gt;').on("click", function (event) { if (Validate() != true) { event.preventDefault(); } }); function Validate() { ...
javascript jquery asp.net
[3, 5, 9]
5,460,577
5,460,578
Reading line from website
<p>I am making a little program thath will read data from website. String in the html file is already managed every info is divided with ; . Now i should read complete line here is example of this line:</p> <pre><code>14:47;24.02.12;18.7°C;18.7°C;285;0.5m/s; 6:48;17:37; Warm ;36;1.8;0.0; </code></pre> <p>So first how...
java android
[1, 4]
4,176,890
4,176,891
How to get substring without cutting words in between in Java?
<p>I have so many strings and i want to print them all one by one. problem is, i have limited width to print the string. so is there any way to know when the width ends and remaining string should come in next line. and words should not be cut.</p> <p>Thanks in advance...</p>
java android
[1, 4]
1,924,120
1,924,121
jquery next button focus
<p>To improve navigation on one of the pages I am tyring to set a focus on a next available(enabled) button when leaving last data entry field. </p> <pre><code>$('input[type=text], select, textarea').filter(':last').blur(function() { $('input[type=submit][type=button]:enabled:first').focus(); }); </c...
asp.net jquery
[9, 5]
1,345,022
1,345,023
Java/Android API understanding
<p>I started working on Android applications and I find little difficult to understand this piece of code:</p> <pre><code>LineNumberReader(new FileReader("/proc/tty/drivers")); </code></pre> <p>How can I know that the <em>LineNumberReader</em> function accepts <em>FileReader</em> as a new instance of the class? I...
java android
[1, 4]
3,037,542
3,037,543
Redirecting new tab OR browser on button click.(Response.Redirect) in asp.net C#
<p>Can anybody suggest how we can open the page in new window or New Browser using Response.Redirect in c#. I have used : Response.Redirect("page1a.aspx");</p> <p>but it's open in existing tab.</p>
c# asp.net
[0, 9]
813,933
813,934
Most effective way to auto detect/select language in a website?
<p>I need to implement an autodetect feature for a simple, plain html website I am working on. It has two languages and the client wants it to automatically select the language. This could be done either via the browser's language or geolocalization, both options are good.</p> <p>Can someone point me to a good script ...
javascript jquery
[3, 5]
2,932,796
2,932,797
Sending SMS via Android Application without moving to Message Box Default Application
<p>I want to ask you: 1-How can I send SMS via my applicatin without moving the user to the Messages box i just want to allow user to insert the text then he/she clicks on the send button after that directly the text message should be sent to specific number that i write in the code?</p> <p>I used this Code as show...
java android
[1, 4]
3,333,312
3,333,313
Changing a control's style based on validation (ASP.NET)
<p>I've got a very simple form with the following troubled snippet:</p> <pre><code>&lt;asp:Panel class="normal" ID="Panel1" runat="server"&gt; &lt;strong&gt;&lt;asp:Label ID="Panel1Error" class="error" Visible="false" runat="server"/&gt;&lt;/strong&gt; &lt;label for="TextBox1"&gt;&lt;em&gt;*&lt;/em&gt; Don't leave ...
c# asp.net
[0, 9]
2,781,161
2,781,162
Android displaying different measurements (imperial and metric)
<p>I have an app where I need the user to specify measurements for height width and length. I would like them to be able to input any measurement that they want e.g. mm, cm, meters, inches, feet, fractions of inches. Does anyone know if Java has a built in mechanism for displaying feet inches etc as </p> <pre><code>5'...
java android
[1, 4]
4,454,888
4,454,889
Mass Email Scripting
<p>I have a rather complicated question. Not sure if this is even possible so here goes:</p> <p>I send out masses of email at work for various occasions to a variety of different recipients. I was wondering if it was possible to automate this process. Basically, I want to be able to develop a program or script that ca...
c# php asp.net
[0, 2, 9]
52,763
52,764
How can I dynamically do write a value into a function call?
<pre><code>&lt;asp:LinkButton class="uibutton normal submit" ID="LinkButtonMAR" OnClick="MarkClientNoteRead(&lt;%# Eval("NoteID") %&gt;)" runat="server"&gt; Mark as Read&lt;/asp:LinkButton&gt; </code></pre> <p>This is all within a repeater that will return a list of notes. I want to grab the NoteID and throw this in...
c# asp.net
[0, 9]
2,383,932
2,383,933
javascript show hide div
<p>how to do show and hide div in javascript and simillarly in c# pageload how to call div based on id value.can any one help on this ?</p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;a href="#cat1"&gt;cat1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#cat2"&gt;cat2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#cat3"&gt;cat3&lt;/...
c# javascript asp.net
[0, 3, 9]
2,443,485
2,443,486
check input of textboxes
<p>I am working with asp.net and I'm using textboxes for user input. I want to make sure that the user enters digits only. I don't want to use validation controls. If maybe somehow I could use the ASCII value of the text entered by the user to compare whether it's an alphabet or not using C#. I would really appreciate ...
c# asp.net
[0, 9]
1,461,485
1,461,486
Using jQuery, how do I repeat a function in different intervals?
<p>I need the function to repeat after 8 seconds the first time and then again after 30 seconds. I have used setTimeout but not sure if this is the way to go about it. Thank you.</p>
javascript jquery
[3, 5]
2,587,231
2,587,232
Http Post With Body
<p>i have sent method in objective-c of sending http post and in the body i put a string:</p> <pre><code>NSString *requestBody = [NSString stringWithFormat:@"mystring"]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; [request setHTTPMethod:@"POST"]; [request setHTTPBody:[requestBody dataUsing...
java android
[1, 4]
100,956
100,957
Getting Integer value from a String using javacsript/jquery
<p>These are the strings I have:</p> <pre><code>"test123.00" "yes50.00" </code></pre> <p>I want to add the 123.00 with 50.00.</p> <p>How can I do this?</p> <p>I used the command parseInt() but it displays NaN error in alert box.</p> <p>This is the code:</p> <pre><code> str1 = "test123.00"; str2 = "yes50.00"; to...
javascript jquery
[3, 5]
5,192,483
5,192,484
Stuck for how to accomplish a task
<p>Here's what I'd like to do: we have a list of members who need to be redirected to a series of forms on URLs. We have around 5 forms and 200members. They would be greeted at a site, enter their First and Last name and then be redirected to the applicable form which we selected for them. Starting from scratch with th...
java php
[1, 2]
4,469,184
4,469,185
How to find out when a download has completed in mobile when using PHP
<p>I am using a PHP header for downloading a JAR file and <a href="http://en.wikipedia.org/wiki/APK_%28file_format%29" rel="nofollow">APK</a> files in mobile. I can download the files successfully, but I want to show a popup when the download reaches 100%. How do I achieve this? </p> <p>Is there any callback method fo...
php jquery
[2, 5]
222,492
222,493
How to determine the top element?
<p>I have a complex structure of many nested, absolutely positioned elements.</p> <p>These elements may or may not have their z-index set.</p> <p>They also may or may not have the same parent element.</p> <p>I am wondering what is the best / simplest way to return which element is on 'top'. Something like the follo...
javascript jquery
[3, 5]
5,468,035
5,468,036
jquery each into js object
<p>im trying to create a final object with data in it, all of the elements are numbers except for one of them, and that one is to hold more objects. here is what i have so far.</p> <pre><code>var data = ''; $(".item-element").each(function(e) { var id = this.id; var qty = parseInt($("#" + this.id + " .element...
javascript jquery
[3, 5]
4,198,183
4,198,184
Jquery slide down div after an item fades in
<p>this is my jquery code</p> <pre><code> jQuery(document).ready(function(){ jQuery('.start_video').click(function(){ jQuery(this).fadeOut("slow", function(){ jQuery('#video').animate({ opacity: 'show' }, "slow"); jQuery('#video_stream').anim...
javascript jquery
[3, 5]
3,990,158
3,990,159
How can I use keyboard keys to scroll between elements on same page?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2168739/using-arrow-keys-with-jquery-scrollto">Using arrow keys with jQuery scrollTo</a> </p> </blockquote> <p>Is it possible to scroll between similar elements on the same page using jQuery?</p> <p>e.g. When I...
javascript jquery
[3, 5]
2,690,781
2,690,782
I can not divide two numbers correctly
<pre><code>int percent = (score/numberOfQuestions)*100; progressText.setText(score+"/"+numberOfQuestions+" "+percent+"%"); </code></pre> <p>returns 0% no matter what I tired. I tried casting it to int, double, float</p> <p>Why does it return 0% for a number like score=5 numberOfQuestions=8?</p>
java android
[1, 4]
4,529,083
4,529,084
Creating web controls inside a content placeholder programmattically
<p>I've got a master page and a content page. How can I add controls to the master page's content placeholders programattically?</p>
c# asp.net
[0, 9]
334,455
334,456
javascript sliding div left/right
<p>Hy guys! I want to make a slide toggle effect of a div. Below is the code in my html file. My div is 500px wide by 50px height. I want to make it slide left/right over the screen when pressed on the first image inside the div. This is a toolbox that contains a couple of icons inside. The first image at the left - le...
javascript jquery
[3, 5]
2,189,939
2,189,940
Is it possible to listen to a "style change" event?
<p>Is it possible to create an event listener in jQuery that can be bound to any style changes? For example, if I want to "do" something when an element changes dimensions, or any other changes in the style attribute I could do:</p> <pre><code>$('div').bind('style', function() { console.log($(this).css('height'));...
javascript jquery
[3, 5]
1,168,632
1,168,633
Dynamically create controls in aspx?
<p>I try several ways to create a few control in an .aspx page's code-behind. I have these problems: </p> <p>1) name of each component<br> 2) place of these components<br> 3) access to these components in method event or totally in code behind</p> <p>I want to create a few <code>&lt;asp:textbox&gt;</code> and put th...
c# asp.net
[0, 9]
2,873,962
2,873,963
How to call jar files from PHP?
<p>I know this question is not new but I am posting this after going through enough googling around.</p> <p>I have a jar file which I don't control. I mean I have not written the Java class in there and all I know is that there is a class named "hist" in it which takes two arrays and gives out the output. Now I have t...
java php
[1, 2]
1,604,173
1,604,174
Expected ')' error when document.write with runat=server
<p>I have a page that requires a JavaScript function:</p> <pre><code>document.write('&lt;head id='Head1' runat='server'/&gt;'); </code></pre> <p>But, when viewing the page in IE, I keep getting the "done but with errors..." message and when looking, I can see exactly what the problem is. When I 'View Source' I see th...
javascript asp.net
[3, 9]
3,422,305
3,422,306
How to get the eq() of $(this)?
<p>Here's my code:</p> <pre><code>$('div.menu &gt; ul &gt; li &gt; a').click(function(e) { alert($(this).eq()); e.preventDefault(); }); &lt;div class="menu"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=""&gt;Animals&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Cars&lt;/a&gt;&lt;/li&gt; ...
javascript jquery
[3, 5]
293,280
293,281
How do I implement this pop up box that displays when hovered over "Shopping Cart" link in this website
<p>I want exactly like this...not a simple box but the one with shadow borders like this one..I have been googling but all I came across is Slide down boxes and tool tips..that's not what I want..How do I implement the one in this website..oh and this box's got HTML stuff in it...like buttons and all</p> <p>Is there a...
javascript asp.net jquery
[3, 9, 5]
1,261,551
1,261,552
Shell form does not validate
<p>Why in this code after click on button get error: <a href="http://jsfiddle.net/FyUgH/" rel="nofollow">http://jsfiddle.net/FyUgH/</a></p> <blockquote> <p>{"error": "Shell form does not validate{'html_initial_name': u'initial-js_lib', 'form': , 'html_name': 'js_lib', 'label': u'Js lib', 'field': , 'help_text'...
javascript jquery
[3, 5]
6,033,655
6,033,656
X/Y Detection and Submission onClick of a JavaScript Link?
<p>I have a page where people can battle one another on my game and, the attacks are JS Links, so.. to help catch cheaters I would like to make it so that on the click of the attack, it submits the X/Y coords of where they clicked on the link into the database.</p> <p>Could someone help me? Thank you!</p>
php javascript
[2, 3]
2,356,067
2,356,068
What is the difference between xxx.tostring() and (string)xxx?
<p>whats the difference in the two string methods below?</p> <pre><code>string str1 = dr["RAGStatusCID"].ToString(); string str2 = (string)dr["Description"]; </code></pre>
c# asp.net
[0, 9]
4,249,510
4,249,511
ASP.NET : Form posting via jQuery
<p>I have an ASP.NET page with 2 ASP.NET text boxes and one ASP.NET drop downlist I want toi use jQuery form posting instead of normal ASP.NET post back.Can anyone guide me how to do this ? How can i access the server side controls in the action page ? I dont want to pass everything via query string. Kindly guide me ho...
asp.net jquery
[9, 5]
3,557,381
3,557,382
send data from Android app to local server
<p>i want to send data from android application to local server (PHP) but it doesn't work this is my code (it is work with remote server ):</p> <p>String path ="http://localhost/sd.php"; HttpClient client = new DefaultHttpClient(); HttpConnectionParams.setConnectionTimeout(client.getParams(), ...
php android
[2, 4]
3,710,516
3,710,517
Set a json object property to HTML
<p>I am trying something like</p> <pre><code>var template = new Object(); template.DescriptionHTML ='*html content goes in here*' </code></pre> <p>This is why:</p> <p>When the user clicks on a button a popup window opens where he/she can enter html text using a WYSIWYG editor. When they click submit, I want to pass ...
c# jquery asp.net
[0, 5, 9]
2,817,933
2,817,934
handling more than one divisions in javascript
<p>In my program I have 3 divisions with class 'information', 'interest' and 'wall'. I want this divisions to change their color when a a user clicks on it. Initially all 3 division classes have same color <code>#dcdcdc</code>. When user clicks on 1 of them I want to change its color to <code>#999</code>, but color of ...
javascript jquery
[3, 5]
4,692,610
4,692,611
how to update Sr. No. COLUMN after removing a TR from TABLE
<p>i have a table like </p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;Sr. No.&lt;/td&gt; &lt;td&gt; Name&lt;/td&gt; &lt;td&gt;$nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;abc&lt;/td&gt; &lt;td&gt;remove button&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;2...
javascript jquery
[3, 5]
1,928,028
1,928,029
Keep the content after postback
<p>I have a ASPX page, on this page there are two dropdown list, one button and one gridview. When the pages is loaded,these two dropdown would bind data from sql server. Then you select items from these two dropdown list, then click Button A to get data from sql server based on these two dropdown list, rendering the d...
c# asp.net
[0, 9]
5,611,681
5,611,682
Send two request simultaneously 1st request with C# WebClient and 2nd request with Ajax
<p>hey guys, i have a page in asp.net c#, in that im doin' some video upload functionality, so my video upload code is in <code>Page_Load()</code> method and i'm using <code>WebClient</code> to upload a video file. and i have a <code>animated gif</code> image on page</p> <p>Now the problem is when <code>Page_Load()</c...
c# asp.net
[0, 9]
5,424,656
5,424,657
Could it be that line.containes() is missing a search-term in Android?
<p>Something strange happens on a text parser that I am writing an I thought maybe you experts can find what I am doing wrong.</p> <p>The parser is searching for several search-terms in the text and copy the found results to an output parsed file on the SD card.</p> <p>The code is:</p> <pre><code>String line; // li...
java android
[1, 4]
3,239,644
3,239,645
Android Search Dialog soft keyboard stays open for too long
<p>I'm trying to use Android's built-in <a href="http://developer.android.com/guide/topics/search/search-dialog.html" rel="nofollow">Search Dialog</a>, and it's working fine except when I try to use it with a <a href="http://developer.android.com/reference/android/app/ProgressDialog.html" rel="nofollow">ProgressDialog<...
java android
[1, 4]
1,405,198
1,405,199
Unbinding certain links but not all of them
<p>I am trying to unbind a link from all functions. When I do:</p> <pre><code>$('a').unbind(); </code></pre> <p>It works perfectly. But obviously this is not what I want - I only want one specific link to not be manipulated by any functions. So I tried selecting the specific link:</p> <pre><code>$('.page1-&gt;index'...
javascript jquery
[3, 5]
185,604
185,605
ASP.net vs PHP (What to choose)
<p>I have been assigned a task to develop a new web application. Its a kind of social web applications, for the sake of understanding you can say its similar to facebook. Now before start developing such huge application i have few questions to ask:</p> <ul> <li>First, Does the tool and programing language affects ...
php asp.net
[2, 9]
5,000,594
5,000,595
How to register for SMS database changes?
<p>How can I register for SMS database changes?</p> <p>I tried:</p> <pre><code>mCursor = mActivity.getContentResolver().query(Sms.CONTENT_URI, new String[] { Sms.ADDRESS }, null, null, null); mCursor.registerDataSetObserver(mydataSetObserver); </code></pre> <p>where mydataSetObserver is implemented lik...
java android
[1, 4]
3,494,785
3,494,786
PHP transfer files from server to server in LAN
<p>So, I have 5-6 pages of requirements. I'm trying to build this application in PHP based on the requirements.</p> <p>I want to transfer files from one server to the other server in LAN, and then send a shell command to the other server to find out if the file has been transferred successfully.</p> <p>In php, I can ...
java php
[1, 2]
3,921,094
3,921,095
Why is my JavaScript function not populating my array?
<p>The following block of code successfully returns array values (No. 1 130879253000, 34756)</p> <pre><code> function getCsv(file_name){ var array_holder = []; $.get(file_name, function(csv, state, xhr) { // inconsistency if (typeof csv != 'string') { csv = x...
javascript jquery
[3, 5]
2,310,631
2,310,632
Are there any Jquery datepickers or calendar that can have a day as a link to a new page?
<p>I tried modifying the Jquery ui datepicker, but it didnt work in Ie7 and chrome. </p> <p>but since im not a javascript expert I need to find a premade solution, something that makes certain days links. </p> <p>Thank you</p>
javascript jquery
[3, 5]
4,671,843
4,671,844
C++ Equivalent to a Scanner's .nextFloat() method?
<p>I'm starting to write C++ and I'm trying to read a text file that is formatted like this:</p> <pre><code>32.0 12.43 503.2 3.212 </code></pre> <p>etc.</p> <p>In Java, I could use a <code>Scanner</code> with <code>.nextFloat()</code>, and put the contains into an <code>Array</code>. I am trying to achieve ...
java c++
[1, 6]
3,344,528
3,344,529
function that adds <SPAN>
<p>Good morning, I have a doubt. I have a function that adds a click the User, the side of my input</p> <p>Plus this gives an error. I wanted just once even if adicionace a person clicks the button several times the action. Do you have a scan after input if not add another </p> <p>My code.</p> <pre><code>//th = Na...
javascript jquery
[3, 5]
4,265,836
4,265,837
javascript if condition issue
<p>i have a variable CampaignType and it's value is 0.But in the alert(inside double star) it changes to 1.why so? here is my javascript code snippet</p> <pre><code> if (CampaignType != 2) { if (CampaignType = '1') { **alert(CampaignType);** var CampaignAmount = (Sel...
javascript jquery asp.net
[3, 5, 9]
4,947,755
4,947,756
How does jQuery have the $ object constructor and the methods associated with the $?
<p>How is it that jQuery can do <code>$("#foo").addClass("bar")</code> and <code>$.ajax()</code>?</p> <p>I'm creating a micro javascript framework and want to create a new instance of an object, such as <code>$("#hello")</code>. With this object there are associated methods, such as <code>addClass</code>, <code>css</c...
javascript jquery
[3, 5]
2,834,901
2,834,902
jQuery - How to make the input values ("email", "password") reappear when out of focus?
<p>When I click inside the input fields the values "Email" and "password" disappear which is what I want. But if the user doesn't enter his email/pass and clicks somewhere else, I want "Email" and "Password" to reappear. </p> <p>jQuery:</p> <pre><code>$('.login-user, .login-pass').focus(function() { $(this).val("...
javascript jquery
[3, 5]
373,502
373,503
Receiving username password in asp.net webform sent from android app
<p>I have successfully sent (username/password) and received (true/false) values from my android app to .php page. Now i am trying to replace php page with aspx page I am having problem while receiving data at Asp.net page (android app to asp.net page), so pls help me in this regard with asp.net page.</p> <p>My androi...
android asp.net
[4, 9]
1,941,789
1,941,790
how to update output cache in asp.net?
<p>I am creating output cache programmatically. using-:</p> <pre><code>this.CachePolicy.Duration = TimeSpan.FromSeconds(60); </code></pre> <p>i want to update my output cache in case of user open the page on other tab or window of the same browser.</p>
c# asp.net
[0, 9]
3,511,915
3,511,916
Single javascript function for multiple web pages
<p>I have around 40 aspx pages in my website. I want to use a javascript function which needs to be called when any of the 40 pages is loaded. something like </p> <p>I could have this function in the "head" section of each of the 40 aspx pages and then call in the body onload event. But I would like to have this funct...
asp.net javascript
[9, 3]
3,970,502
3,970,503
Get propertyinfo value
<p>Im trying to get the value from a <code>PropertyInfo[]</code>, but i cant get it to work:</p> <pre><code>foreach (var propertyInfo in foo.GetType().GetProperties()) { var value = propertyInfo.GetValue(this, null); } </code></pre> <p>Exception: <code>Object does not match target type.</code></p> <p>Isnt this...
c# asp.net
[0, 9]
2,317,661
2,317,662
check if a url has anything after the domain name
<p>im using asp.net c#.</p> <p>I want to check if the current url has anything after the domain name.</p> <p>e.g if the current url</p> <p>www.example.com/</p> <p>or</p> <p>www.example.com</p> <p>i want to set a bool to true. if it has anything after i want to set it to false. e.g.</p> <p>www.example.com/stuff <...
c# asp.net
[0, 9]
1,644,781
1,644,782
Listing of Directory in a checkboxed tree srtucture
<p>Is it possible to create a tree-structured Directory listing having checkbox, so that we can select that directory and get that value back..</p> <p>This needs to be done in c# web application.</p>
c# asp.net
[0, 9]
1,148,937
1,148,938
How to return variable datatypes from a method
<p>I have a method whose callers require different datatypes. I could repeat the requisite conversions a dozen times by putting them in each of the callers, but it seems much more efficient to do it once in the called method.</p> <pre><code>public String myMethod(String myArg) { return DoSomething(myArg); } ...
c# asp.net
[0, 9]
5,097,499
5,097,500
dynamic variable in event bind
<p>I'm having a problem binding a dynamic event in jQuery. What I want to achieve is to have an event that acts on a variable that has previously been set. For example I have</p> <pre><code>someFunc = function (form_id) { $("input").bind("focus", function () { $("#"+form_id).css({"border":"1px solid re...
javascript jquery
[3, 5]
2,934,533
2,934,534
jQuery: Is it possible to assign a DOM element to a variable for later use?
<p>I'm working on a project that is using jQuery, which I'm much more familiar with Mootools.</p> <p>I'll start with my code first.</p> <pre><code>var customNamespace = { status: 'closed', popup: $('#popup'), showPopup: function() { // ... } } $(document).ready(function(){ console.log(...
javascript jquery
[3, 5]
4,844,233
4,844,234
What imports do I need to make a jQuery popup dialog work?
<p>I am very confused :)</p> <p>I have these 2 jQuery imports:</p> <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.16/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" /&gt;...
javascript jquery
[3, 5]
886,441
886,442
Problem in empty select - remove all options from select
<p>If I have select with id="select_test", how to delete all options inside but select stay on page, so I can load again some new options ? ( I get answer how to load, but I cannot empty, I tried like <code>$('#select_test').empty();</code></p> <p>and </p> <pre><code>$('#select_test').find('option').remove(); </code>...
javascript jquery
[3, 5]
1,806,697
1,806,698
disable javascript from running on links
<p>I have a script that reloads an iframe whenever the browser screen is clicked (works perfectly). I was wondering how I would go about disabling the javascript from running on certain links?</p> <p>Here is my current script:</p> <pre><code>document.onclick= function(event) { if (event===tichack) event= window.e...
javascript jquery
[3, 5]
2,686,544
2,686,545
How change content value of pseudo :before element by Javascript
<p>I have the grap constructured by CSS, which is dynamically changes by JS. I show graph max value by pseudo element as:</p> <pre><code>.graph:before { content:""; //value that want set by JS position:absolute; top:0; left:0; } </code></pre> <p>That's why I need to set this value by JS. I tried <code...
javascript jquery
[3, 5]
3,844,609
3,844,610
Directing animation to correct place
<p>In my word game there is a grid with 3 letter words.</p> <p>The aim of the game is to spell the words by clicking on the corresponding letters on the side.</p> <p>When an area in the grid is highlighted it indicates to the user the word to spell. The user clicks the letters on the side of the grid and they should ...
javascript jquery
[3, 5]
1,878,202
1,878,203
how to figure out which inner anonymous class indicated by a class name?
<p>I used MAT tool in Eclipse to investigate a memory leak issue. I found that the leak was caused by an anonymous inner class instance in my app. The class name displayed in MAT is com.mycompany.myproduct.MyActivity$3. There are many anonymous inner classes defined in MyActivity.java. How do I know the which inner cla...
java android
[1, 4]
2,364,808
2,364,809
What permissions do I need to run a shell command programmatically in Android?
<pre><code> try{ Process process; process = Runtime.getRuntime().exec(command); BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream())); } catch (IOException e) { // TODO Auto-generated catch block ...
java android
[1, 4]
3,165,783
3,165,784
How to send javascript array to server?
<p>I have an array of javascript obejcts. I want to send this array to server. I tried :</p> <pre><code>JSON.stringify(jObectArray); </code></pre> <p>But at server side i am getting the empty array. How can i send it to server successfully ?</p>
javascript jquery
[3, 5]
4,135,802
4,135,803
A tricky javascript thing I'm wanting to do...pulling elements from a list and hiding the rest
<p>As usual, I want to do more than I know how to do yet :-D</p> <p>Here's what I'm working on...I'm writing up a Bio.</p> <p>But within the bio, I want a "long bio" and a "short bio" button. </p> <p>The long bio will obviously display the whole bio, but the short bio would grab elements in the list and make them b...
javascript jquery
[3, 5]
5,267,257
5,267,258
jQuery conflicts of many scripts
<p>I am asking my question after I have tried many ways to solve it but i couldn't. I have conflicts with jQuery scripts in my site. The other I have changed the $ to jQuery and they worked but this script didn't work for me.</p> <p>This code below works only the second script but the first script no.</p> <pre><code...
php jquery
[2, 5]
768,085
768,086
Messaging system jquery sends jQuery514109241_1210239812938 when I put :)) in the message
<p>When I put ":))" in my textarea and send via ajax, it inputs into the database a value like "jQuery172039628539560362697_1345324072488", how can I stop this? Should I parse my text in some way in javascript first to make it recognize it's text, and not part of the javascript coding?</p> <p>This is how i get my text...
javascript jquery
[3, 5]
4,851,034
4,851,035
What would be the jquery equivalent of 'Dive into python'?
<p>I need to , well, dive into client side programming. Is there an equivalent to 'Dive into python' for jquery?</p> <p>I see that jquery 1.4 has been released. Does this change anything w.r.t answers?</p>
javascript jquery python
[3, 5, 7]
4,348,033
4,348,034
How can i know if all <img> loaded in div using jQuery
<p>How can i know if all loaded in div using jQuery</p> <p>i want to do this after load all img in #slider div</p> <pre><code>var imgHeight = $("#slider img").height(); alert(imgHeight); </code></pre>
javascript jquery
[3, 5]
1,583,920
1,583,921
How to hide second option in condition of first selection with JS / JQ?
<p>I got following problem and dont know how to solve it. :(</p> <p>I want to disable / gray out options in relation to a color-selection. Every option has a unique value.</p> <p>For example:</p> <ul> <li>shirt (green) is only available in XS.</li> <li>shirt (blue) is available in S and M.</li> <li>shirt (yellow) is...
javascript jquery
[3, 5]
3,267,704
3,267,705
Javascript doesn't work when textbox name contains square brackets
<p>I've got this script for calculating square area, which works perfect:</p> <pre><code>&lt;script language="javascript" type="text/javascript"&gt; function startCalc(){ interval = setInterval("calc()",1); } function calc(){ one = document.autoSumForm.firstBox.value; two = document.autoSumForm.secondBox.value; ...
php javascript
[2, 3]
1,627,717
1,627,718
Tap event firing X times a second in jquery
<p>I'm trying to make touch controls for a little game I'm writting with the help of jquery. But i just can't figure out how to write a function that basicly does the same thing that happens when you keep a key pressed. Could you please help me?</p> <p>PS. its not originaly my code <a href="http://remysharp.com/demo/m...
javascript jquery
[3, 5]
2,368,669
2,368,670
"hasClass" with javascript? or site with jquery to javascript translation?
<p>How do you do jQuery's <code>hasClass</code> with plain ol' javascript? E.g., <code>&lt;body class="thatClass" /&gt;</code> What's the javascript way to ask if <code>body</code> has "thatClass"?</p> <p><em>Also, anyone know of a site that explains that gives javascript versions of many jQuery functions? I often ...
javascript jquery
[3, 5]
2,390,512
2,390,513
how to calculate page rendering time with or without any javascript or with multple javascript seperately
<p>how to calculate page rendering time with or without any javascript or with multiple JavaScript separately?</p> <p>I want to know how much page will go slow if i use any javascript/jquery with plugin/ multiple javascript/jquery plugin files etc.?</p> <p>javascript code in any form inline, in-page code, external fi...
javascript jquery
[3, 5]
5,189,019
5,189,020
jwysiwyg to php
<p>I am using this jQuery based jWysiwyg.<br> <a href="http://code.google.com/p/jwysiwyg" rel="nofollow">http://code.google.com/p/jwysiwyg</a></p> <p>How do I pass the value of <code>$('#wysiwyg').val()</code> to php script. For example to show the value of jwysiwyg in an alert box, I am using</p> <pre><code>&lt;form...
php jquery
[2, 5]
2,788,102
2,788,103
PHP Session,Loggin Var, and Javascript
<p>I am trying to figure out how to do this some the php file only loads once on loggin.</p> <p>How could I do this?</p> <p>Example: (that I came up with but not sure what to use). Let say A=1 when the site loads up. I log in and (if Global User is logged in and A=1 call or include welcome.php). </p> <p>When the fi...
php javascript
[2, 3]
3,937,635
3,937,636
Visual Web Developer Express with SP1 crashing when switching to design mode
<p>I've just recently upgraded to using Visual Studio express editions with service pack 1. Previously I was using the express editions minus the service pack. The IDE for C++ and C# run fine for me but when running the Visual Web Developer IDE I get a crash when trying to switch to design mode on any page I attempt ...
c# asp.net
[0, 9]
3,412,625
3,412,626
Explicit or implicit looping?
<p>Why or when is "explicit" preferred when implicit solutions often are more readable and less code? It says "explicit is better than implicit" when for example an implicit loop is better than an explicit loop isn't it? </p> <pre><code>for every in all: every.updated = True </code></pre> <p>The above looks implici...
java python
[1, 7]
3,956,871
3,956,872
How to load user control at run time, in a aspx page?
<p>I have got 5 user controls placed in some Control folder, at run time on basis of some ID I want to load user control from the Control folder to the aspx page. Could any body tell how should I pass that ID to fix which user control to load in some div at run time.</p>
c# asp.net
[0, 9]
637,153
637,154
Javascript error in asp.net
<p>I have a calendar control that is hosted on an iframe. I get a javascript error when I click on a date on the calendar. <strong>window.top.document.getElementById(..) is null or not an object</strong> </p> <p>The iframe is hosted on another page ConfigSettings.aspx </p> <p>The code in the calendar control code b...
javascript asp.net
[3, 9]
5,396,843
5,396,844
Determine browser with jQuery and add style to an element
<p>I know it sounds nasty, but I really came only to find a solution if possible, since I need to fix it fast. Using CSS is not working since it's a bit of hack, and my elements only recognize <code>style="margin-left: 50px;"</code> if I add this in HTML. </p> <p>There was a simple solution by adding STYLE directly in...
php javascript jquery
[2, 3, 5]
5,557,146
5,557,147
tool tips for creating on tab menu
<p>hi in my application i have tab menu which i done using css. when ever user moves the cursor on the tab he should been given an tooltip for that tab. is it ther any solution i can solve using JQuery or any other concept.</p> <p>thank you </p>
c# asp.net jquery
[0, 9, 5]
4,764,817
4,764,818
Android Licensing Verification Library using the ServerManagedPolicy
<p>i use some code from web in that way i am code i coded public key from google account or publisher account when i run the application in emulator have error dontallow() method is runing anyone help me</p>
java android
[1, 4]
2,865,749
2,865,750
Global variable not set value in $.getJSON properly
<p>I have declared global variable named counter=0 on my index.html page inside head section </p> <pre><code>&lt;script&gt; var counter=0; &lt;/script&gt; </code></pre> <p>now in my one of function i am setting its value as</p> <pre><code> function getCounter(param) { $.getJSON("somewebserviceURL&amp;...
javascript jquery
[3, 5]
770,371
770,372
Build URL from Form Fields with Javascript or jquery
<p>I have a quick question, I can't seem to find a suitable solution to anywhere else. I'm trying to create a URL builder form with Javascript or jquery. Bascially, it will take the value of the two form fields, add them to a preset url and show it on a third field on submit. </p> <p>The resulting URL might be <a hre...
javascript jquery
[3, 5]
1,723,047
1,723,048
How to create HTML Form in a new window
<p>I have the following function:</p> <pre><code>// open a new window. Create and submit form function createSubmitForm(response) { var external = window.open('about:blank', 'external'); var doc = external.document; var body = $('body', doc); // create a new form element var form = $("&lt;form id=...
javascript jquery
[3, 5]
925,087
925,088
How to pass the article id to the "View Article" Activity
<p>I'm a web developer in php. When I'm creating a view article page I was passing the id in GET something like article.php?id=10.</p> <p>But now in android if I have an activity which views the article, how to pass to it the article ID to select it's data from the database?</p> <p>What is my best option?</p>
java android
[1, 4]