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,774,074
5,774,075
How to reset background colour after it is changed by jQuery?
<p>First, a jsfiddle... <a href="http://jsfiddle.net/therocketforever/jYba3/11/" rel="nofollow">http://jsfiddle.net/therocketforever/jYba3/11/</a></p> <pre><code>// Highlight selected linker link &amp; set all others to default. $('a.linker').click(function(){ $(this).addClass('selected'); $(this).paren...
javascript jquery
[3, 5]
4,035,877
4,035,878
How to lock the device in a service?
<p>I have this code by which I can easily lock the device from an activity:</p> <pre><code>WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 0; getWindow().setAttributes(lp); getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); </code></pre> ...
java android
[1, 4]
295,510
295,511
Java, what do you call this? and why )};
<p>I am going through Hello Android (Android PDF/tutorial) and have now seen this syntax a couple of times. Can someone please explain to me what Java syntax is used when run Runnable is defined? </p> <pre><code>private class AndroidBridge { public void callAndroid(final String arg) { // must be final han...
java android
[1, 4]
3,874,631
3,874,632
How to separate data received from $.get() callback function
<p>I have this:</p> <pre><code>&lt;div &gt;&lt;span id="compareResult"&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span id="result"&gt;&lt;/span&gt;&lt;/div&gt; $.get( 'data.php', { valA: $(this,'option:selected').val() , valB:$(this,'option:selected').val()}, function(childData){ $('#resu...
php jquery
[2, 5]
1,408,191
1,408,192
What can I use to let users build their own avatar character?
<p>How would you go about providing users with the ability to build a custom avatar character, something like <a href="http://messenger.yahoo.com/features/avatars/" rel="nofollow">Yahoo! Avatars</a>?</p> <p><strong>EDIT</strong> - Let me be more specific about what Yahoo! Avatars does:<br> It lets you <em>create</em> ...
c# asp.net
[0, 9]
4,701,556
4,701,557
Run PHP Remotely
<p>I have a PHP script that i want to run on users sites remotely, that ties in with their account on mine. So basically it is software-as-a-service. The user would copy and paste certain code to their site and it would run strictly php. I am unsure how to do this.</p> <p>Are you able to run php remotely and how would...
php javascript
[2, 3]
2,301,576
2,301,577
want to show place on google map when input lat,longitude value
<p>I want to show place on google map, when input latitude , longitude value. I want to write that with C#. If anyone has sample, please share me.. thanks in advance...</p>
c# asp.net
[0, 9]
4,034,784
4,034,785
I need help developing a form
<p>I'm trying to create a form that will create a table of pricing for t-shirts. </p> <p>There are 10 shirts to choose from and each one is a different price. The S through XL are the same price but the XXL is a different price. </p> <p>Next there is a selection for the color of the garment which also varys the price...
php javascript
[2, 3]
2,277,233
2,277,234
how to check the string array is empty or null android?
<p>I am new to java. Am unable to check for null. Could you enlighten me on this? I have string array which has no elements.</p> <p>I tried this code</p> <pre><code>String[] k = new String[3]; if(k==null){ System.out.println(k.length); } </code></pre>
java android
[1, 4]
4,174,671
4,174,672
replace "\\' to '\' in C#
<p>I'm using PayWay payment gateway. I want to put the pay certificate File path in the web.config file. so I add like this</p> <pre><code> &lt;add key="PayWayPath" value="c:\payway\ccapi.q0&amp;amp;logDirectory=c:\payway"/&gt; </code></pre> <p>the I call in my web form like this.</p> <pre><code> String initParams ...
c# asp.net
[0, 9]
5,589,219
5,589,220
Can someone explain what is a HelperClass and what does in Java or in C++?
<p>I want to know what the HelperClass used for. Can someone please explain it with examples?</p> <p>Thank You</p>
java c++
[1, 6]
4,832,841
4,832,842
number formatting in JS?
<pre><code>jQuery(function() { jQuery( "#slider-range-min" ).slider({ range: "min", value: 1, step: 1000, min: 100000, max: 3000000, slide: function( event, ui ) { jQuery( "#amount" ).val( "$" + ui.value ); } }); jQuery( "#amount" ).val( "$" + $( "#slider-range-min" ).slider( "value"...
javascript jquery
[3, 5]
5,979,755
5,979,756
Why can't I compare these 2 strings?
<p>For some reason, no matter what I type into my two textboxes, I get the matches response. At first I was using <code>==</code> and that didn't work, so I tried switching to <code>if( a.equals( b ))</code></p> <p>I'm still stuck.</p> <p>Please help!</p> <pre><code>package net.2TextboxesStringCompare; import andro...
java android
[1, 4]
3,815,760
3,815,761
what is the meaning of the word "this" in Jquery script
<p>Hello I'm a newcomer in JavaScript and JQuery language. I started to see some examples of JQuery script.</p> <p>i have the following code segment:</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function(){ $("p").click(function(){ $(this).hide(); }); }); &lt;/script&gt...
javascript jquery
[3, 5]
2,618,540
2,618,541
jQuery $.inArray doesn't seem to work with associative arrays
<p>I have made this fiddle: <a href="http://jsfiddle.net/benhowdle89/CANX8/1/" rel="nofollow">http://jsfiddle.net/benhowdle89/CANX8/1/</a></p> <p>Which creates an assoc array and then runs a test for a value that is in the array. The wrong results are reached!</p> <p>Outline of code:</p> <pre><code>$(document).ready...
javascript jquery
[3, 5]
2,153
2,154
jQuery rebind function
<p>I want to have a div that animates the currently active image out of the view and instead animates in another image. There are several of these divs, and each one should have the same basic functionality but linked to different images. The problem I'm having is that you can click many of the divs before the animatio...
javascript jquery
[3, 5]
5,390,341
5,390,342
how to toggle any text with JQuery?
<p>My question is very short:</p> <p>If I click "show", I want to change this to "hide". Similarly, if I click "hide", I want to change this to "show"?</p> <p>Such as toggleClass.</p>
javascript jquery
[3, 5]
5,107,402
5,107,403
Truncate text with jQuery based on pixel width
<p>I'm trying to use jquery to write a fast function that calculates the pixel width of a string on a html page, then truncates the string until it reaches an ideal pixel width...</p> <p>However it's not working (the text doesn't truncate)...</p> <p>Here is the code I have:</p> <pre><code> function constrain(text...
javascript jquery
[3, 5]
1,897,713
1,897,714
How can I split data read from a json file?
<p>I have this json data in <code>data.json</code> file.</p> <pre><code>[ "1009 2000", "1009 2001", "1002 2002", "1003 2002" ] </code></pre> <p>I am looping through this data and spliting the data based on <code>,</code> as in the following code</p> <pre><code>var show = function () { var span = $('.input'); ...
javascript jquery
[3, 5]
2,689,983
2,689,984
Why doesnt this run continuously when i push the continuous button?
<pre><code>public class TestingActivity extends Activity implements View.OnClickListener { ScheduledThreadPoolExecutor scheduler = new ScheduledThreadPoolExecutor(1); ScheduledFuture now = null; public void onCreate(Bundle savedInstanceState) { //oncreate } public void rollthedice() { //rollthedice } public voi...
java android
[1, 4]
4,931,446
4,931,447
Android code to pure java
<p>I want to know which is the tag used in pure java instead of the following codes in android</p> <pre><code>Looper ViewerApp inputMgr getWindowToken() InputMethodManager </code></pre> <p>For example in pure java we use JOptionPane instead of toast in android. What is the use of ViewerApp in android and also looper ...
java android
[1, 4]
5,289,410
5,289,411
Control overriding in a .net app
<p>Ok, here we go..</p> <p>I have a control, which in the assembly.. lets call it "ControlAssembly".</p> <p>There are a load of controls in this, under the namespace ControlAssembly.Controls.</p> <p>So, I want to use this in my website, by adding the </p> <pre><code> &lt;add tagPrefix="ARC" namespace="ControlAss...
c# asp.net
[0, 9]
798,885
798,886
Jquery mousedown vs click
<p>today I discovered something that was quite confusing for me. I just tried to hide s.th via jquery... first I tried to use this </p> <pre><code>$(".specificdiv li:nth-child(3)").click(function(){ $(".anotherdiv").hide(); }) </code></pre> <p>....but it does not work.</p> <p>After a time I tried it this way:</p...
javascript jquery
[3, 5]
3,310,538
3,310,539
Do the benefits of Resin/Quercus outweigh the overhead?
<p>Lately, I've been looking more and more into Resin + Quercus as a technology to develop an application of mine.</p> <p>The reason I started looking into it was that this application has high reporting needs, a lot of which cannot (or realistically, should not) be created in real-time. Java would offer a nice backe...
java php
[1, 2]
1,468,451
1,468,452
How to get a detailed data of a specific list view item
<p>hi i have build a rss by watching ibm tutorial . In this i get a list view of rss feeds. i have a class showdescription in which i am taking the description of the specific list view item.</p> <p>But it does not show the descriton on item click.</p> <p>here is my code for onclicklistener</p> <pre><code> public...
java android
[1, 4]
5,010,785
5,010,786
Prevent user from holding f5 for more than x seconds?
<p>Is there a way to bind a jQuery event to pop off after a visitor holds a button for more than, say, 3 seconds? In this case I'd like to do something after a user holds f5 for 3 seconds.</p> <p>I've found a solution that prevents the refresh when user presses f5 here:</p> <p><a href="http://stackoverflow.com/questi...
javascript jquery
[3, 5]
2,348,794
2,348,795
Browser based online game question
<p>I am developing a small browser based game in asp.net. Think of a game room which has a capaticy of 22 players and players join the room by clicking a button. ( I am saving the number of players in the room in database) I need to call a method when the number of players in the room is 22. The problem is I don't know...
c# asp.net
[0, 9]
4,817,426
4,817,427
How and where do I learn programming languages?
<p>I really want to learn a ton of programming languages like javascript and c++, but I have no idea where or how. I watched a tutorial series for C++ on Youtube and I read the javascript tutorial on W3schools, but I need more detailed tutorials and a way to practice. </p> <p>How did you guys learn? I'll take the coll...
javascript c++
[3, 6]
342,374
342,375
Refresh page data when button is clicked inside a usercontrol
<p>I have a page which displays data from a web service. It first checks if the data exists in session, and then gets it from the WS if not.</p> <p>My control calls the web service and adds another row to the data (an SP list in this case). If the new item was added successfully, I want to refresh the list in session....
c# asp.net
[0, 9]
5,421,699
5,421,700
undefined error in jquery
<p>I get here as x undefined error. In my <code>tr</code> tag I have used this code (in <code>a.php</code>):</p> <pre><code>echo "&lt;tr data-x'some php value'&gt;"; </code></pre> <p>In <code>b.php</code> I'm using code like this: </p> <pre><code>window.location = 'c.php?x=' + $(this).data('x'); </code></pre>
php jquery
[2, 5]
4,031,669
4,031,670
Developing for iPhone or Android? (As a C# developer)
<p>I'd like to start developing for iPhone or Android in my spare time, as a chance to learn something new but also hoping make some extra income. </p> <p>I'm not sure which is the best development for me to start developing on. I own an iPhone, but I don't have a Mac (which I would need to use the SDK), plus with the...
iphone android
[8, 4]
3,055,825
3,055,826
problem in Labels with asterisk!
<p>I have the following ASP.NET markup:</p> <pre><code>&lt;td align="right" valign="top" style="width: 130px"&gt; Answer: &lt;asp:Label ID="lblanswer" runat="server" CssClass="errorMessage" ForeColor="Red" Text="*"&gt; ...
c# asp.net
[0, 9]
5,877,029
5,877,030
How come the answer to every javascript question ends up being "jQuery"
<p>I've been following the javascript questions here for the last few weeks, and I've found a common recurring theme.</p> <p>Almost any question asked on here that involves JavaScript gets answered with:</p> <ol> <li>"jQuery can do that"</li> <li>"there's a plugin for that"</li> <li>"jQuery can make your bed for you....
javascript jquery
[3, 5]
2,751,925
2,751,926
PHP equivalent to JavaScript's string split method
<p>I'm working with this on JavaScript:</p> <pre><code>&lt;script type="text/javascript"&gt; var sURL = "http://itunes.apple.com/us/app/accenture-application-for/id415321306?uo=2&amp;mt=8&amp;uo=2"; splitURL = sURL.split('/'); var appID = splitURL[splitURL.length - 1].match(/[0-9]*[0-9]/)[0]; document....
php javascript
[2, 3]
1,128,332
1,128,333
muliple markers
<p>i am getting this err: </p> <pre><code> "Multiple markers at this line - Syntax error, insert ";" to complete LocalVariableDeclarationStatement - Syntax error, insert "}" to complete ClassBody - Syntax error, insert "}" to complete ClassBody - Syntax error, insert ";" to complete LocalVariableDeclarationStatem...
java android
[1, 4]
5,482,598
5,482,599
Post Form After Server Code Execution
<p>I have created a Webform which will be posted to another Webform after executing the server side code(C#).</p> <p>I want to execute server code and based on the result of that I want to post the Webform to another Webform otherwise Webform should not be posted.</p> <p>So, What should i do to achieve the above resu...
c# javascript asp.net
[0, 3, 9]
253,338
253,339
Java compiler asking for semicolon
<p>I've looked through this code for awhile, counted brackets, all that stuff. And I can't find an error. I'm using Eclipse, developing for Android, and it's asking for a semicolon (commented, it's near the bottom). </p> <pre><code>package com.example.lesson1; import android.app.Activity; import android.os.Bundle; im...
java android
[1, 4]
1,734,769
1,734,770
get value using jquery
<p>i want to get value of h:outputText label using jquery, for</p> <pre><code>&lt;h:outputText id="cal_att_to_date" binding="#{Attendance_Calculation.cal_att_to_date}"&gt; &lt;f:convertDateTime type="date" pattern="dd-MMM-yyyy" timeZone="GMT+5:30"/&gt; &lt;/h:outputText&gt; </code></pre>
java jquery
[1, 5]
3,748,118
3,748,119
Problem in deloyment asp.net
<p>I already published my client's site and i received problem during loading page.</p> <p>here's the error.</p> <pre><code>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately...
c# asp.net
[0, 9]
3,314,012
3,314,013
Logging switch realization
<p>This code:</p> <pre><code>public class MyActivity extends Activity { private final boolean logging = getResources().getBoolean(R.bool.logging); @Override public void onCreate(Bundle savedInstanceState) { if(logging) Log.d("my_log", "some text here"); // some onCreate code... } } ...
java android
[1, 4]
269,351
269,352
How to get the textbox value from a hidden field value assigned
<p>I have written the following script to get the value of hidden field to a text box when text box is empty on hitting tab but it did not works so can any one tell what's wrong in this</p> <pre><code>&lt;script type="text/javascript"&gt; function Tab() { var PayDate = document.getElementById('txtD...
javascript asp.net
[3, 9]
1,989,823
1,989,824
C# equivalent of PrivilegedAction
<p>What is C# equivalent of <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/security/PrivilegedAction.html" rel="nofollow">PrivilegedAction</a> and <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/security/PrivilegedExceptionAction.html" rel="nofollow">PrivilegedExceptionAction</a> class of Java?</...
c# java
[0, 1]
1,574,615
1,574,616
when the page scroll to certain point, how to make a second fixed header appear
<p>I have a page that will be responsive and I also want to add a header that appears once the visitor scrolls for a bit. The header will supplant the main header in order to be visible as the user travels down the page. </p> <p>I think this was a convention that people have used, and I need some help, as i can't real...
javascript jquery
[3, 5]
610,478
610,479
Prevent user download Videos from my web site
<p>I make a new web application and I'll display more videos on it, but I need to prevent the users from downloading these videos by the browser or any download program. Is there a way to do this by java script, JQuery, C# or asp.net?</p>
c# javascript asp.net
[0, 3, 9]
4,809,330
4,809,331
Java Protected method in an Interface?
<p>i am trying to create a interface where its methods are protected or only visible to the class that implements it.</p> <p>The issue is this. i have two classes that do more or less the exact same thing but with different parameters and behaviour, but the actual steps it takes is identical.</p> <p>i was thinking ok...
java android
[1, 4]
5,794,948
5,794,949
Creating an enum from web.config
<p>I'd like to mimic the behavior of the "profile provider" that is available in .Net. The profile provider acquires profile properties from the <code>web.config</code> and those properties are immediately available as an <code>enum</code> for use in the code behind.</p> <p>I'm unsure how to do this, and wondered whe...
c# asp.net
[0, 9]
2,584,941
2,584,942
ASP.NET:Update sql table row programmatically
<p>I have a data conduit class where I want to create an update method that takes list of parameter names, their values and a stored procedure name. Up on execution, I want to update a particular row in sql db.</p> <p>The code so far in data conduit class is:</p> <pre><code>public class clsDataConduit { SqlConnec...
c# asp.net
[0, 9]
1,061,561
1,061,562
Asp.net Source Code Compare Software
<p>I want to compare two asp.net sources and find different could you introduce me a software inside or outside of visual studio ? </p>
c# asp.net
[0, 9]
4,081,258
4,081,259
How to modify the width of the GridView?
<p>I am using a GridView inside a Repeater control to generate three GridViews with 3 similar columns and different number of different columns between them. Everything works fine and well. I am just facing one probelm with the width of GridView. The porblem is the following:</p> <p>The second GridView has many colum...
c# asp.net
[0, 9]
4,096,333
4,096,334
resize image in div tag when broser resize
<pre><code>&lt;div id="banner"&gt; &lt;script type="text/javascript" src="gallery/js/jquery.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="gallery/js/swfobject.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="gallery/js/flashgallery.js"&gt;&lt;/script&gt; &lt;script type="text/javascrip...
php javascript jquery
[2, 3, 5]
4,417,474
4,417,475
document.referrer encoding issue
<p>referrer` and saving the value in a cookie. The result is coming like this with strange characters: </p> <pre><code>http%3A//www.rzammit.com/props/testpage.asp%3Fadv%3D123%26loc%3D45 </code></pre> <p>How I can remove those strange characters so the link will show correctly please?</p> <p>thanks</p>
javascript jquery
[3, 5]
5,848,100
5,848,101
Check if button is active
<p>I'm really struggling with this piece of code.</p> <p><em>What I'm trying to achieve: I have an "edit button". If I press it, it'll go active and edit mode goes active. I can edit the list on the fly and it updates automatically.</em></p> <p><strong>Problem: I can get it to work for 50%. If I try to activate the b...
javascript jquery
[3, 5]
3,685,823
3,685,824
Finding an div in JQuery
<p>this is what i am working on this is a rough design and now sure it will come when i post it.</p> <pre><code>-------------------------------------------------------------------- first name goes here..... --------------------------------------------------------------------- datetime ...
jquery asp.net
[5, 9]
392,269
392,270
Not including whitespace when detecting text width with `<span>` trick
<p>I have implemented a jQuery pluggin to correct the width of <code>&lt;input/&gt;</code> elements depending on how much text they have, as shown:</p> <pre><code>$.fn.correctWidth = function () { var tempSpan = $('&lt;span&gt;') .html(this.val()) .css('font-size', this.css('font-size')) .in...
javascript jquery
[3, 5]
101,137
101,138
Toggle and fadeIn
<p>Hello everyone this is the first time I write on this site. Let me explain my problem right away.</p> <p>I have this code:</p> <pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).scroll(function() { ...
javascript jquery
[3, 5]
757,523
757,524
migrating to C# from Java
<p>I saw a thread similar to this, but the reason I'm asking this is because my situation is different.</p> <p>I've been a tester (automated and manual) but I have a good Java programming knowledge although I haven't worked as a programmer.</p> <p>My company is considering to move me to a C# programming role. Will it...
c# java
[0, 1]
2,292,509
2,292,510
Resolve an IFrame serverside
<p>Is it possible to resolve an Iframe server side and then display the page as the server would see it?</p> <p>I have a company intranet and an extranet, and as part of some upcoming work, a page that is on the intranet needs to be made accessible externally through the extranet portal.</p> <p>This internal page is ...
c# asp.net
[0, 9]
5,087,125
5,087,126
How to enable a button in aspx when a user types into a textbox
<p>In an aspx page i need to do a validation where i need to enable a button when user types into a particular textbox</p>
javascript asp.net
[3, 9]
4,811,388
4,811,389
learning getjson
<p>I'm trying to get a grasp on using <code>$.getJSON</code> with an array from PHP. </p> <p>Here's a simple example where all I want to do is output the requested info. Should the <code>alert(data)</code> return the array object? I am not alerting anything.</p> <p>PHP file (account.php):</p> <pre><code>$arr = array...
php jquery
[2, 5]
3,225,612
3,225,613
Updating database from an EditText
<p>I have a text field in SQLite database, which I want the user to be able to update.</p> <p>So I extract and display the text in an EditText view. The user edits it and presses "Update" button. At this point I want to update the text field in database with whatever user has in the EditText.</p> <p>Here's the proble...
java android
[1, 4]
2,639,275
2,639,276
Developing Android outside of the SDK
<p>It seems as if every Android application I really want to make is impossible to make with the current SDK. It doesn't give me access to certain things I would like to work with. <a href="http://stackoverflow.com/questions/3571814/accessing-the-android-media-stream-for-audio-visualization">This</a> is an example of...
java android
[1, 4]
5,390,463
5,390,464
Render C# class as javascript
<p>I'm looking for a way to render a C# class object to javascript. For instance this class definition:</p> <pre><code>public class Foo { public string Bar1 { get; set; } public string Bar2 { get; set; } } </code></pre> <p>should render (an object of class Foo with values filled) as:</p> <pre><code>foo: { ...
c# javascript
[0, 3]
3,256,844
3,256,845
Whats wrong with this syntax?
<p>Hi im getting an error for this line </p> <pre><code>sound.setOnTouchListener(new OnTouchListener() { </code></pre> <p>says:</p> <pre><code>Multiple markers at this line - Syntax error, insert "}" to complete ClassBody - Syntax error, insert ";" to complete Statement - Syntax error, ins...
java android
[1, 4]
2,521,964
2,521,965
How to putExtra() in Searchable Dictionary Example
<p>based on the <a href="http://developer.android.com/resources/samples/SearchableDictionary/index.html" rel="nofollow">Searchable Dictionary</a> sample I tried to put extra data to a different activity. </p> <pre><code> public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setC...
java android
[1, 4]
2,720,183
2,720,184
jquery get not passing values
<p>My html form: </p> <pre><code>&lt;input id="captcha_response" name="captcha_response" type="text" value="" size="5" maxlength="5"&gt; &lt;div class="new_comment"&gt;&lt;input id="comment" name="comment" type="text" value="your comment here..."&gt;&lt;/div&gt; &lt;div class="author"&gt;&lt;input name="name" ...
php jquery
[2, 5]
3,103,641
3,103,642
I want to validate when time selected from drop down list is past current time
<p>I'm new to java script. I want to validate wether the time selected from drop down list is past the current time. </p> <p>For example:<br> The user selects <code>2:00pm</code> while the current time is <code>1:00pm</code>, now the following error should popup:</p> <blockquote> <p>The time you have selected is be...
php javascript
[2, 3]
4,833,109
4,833,110
JQuery method execution order?
<p>I am trying to use the below to load data from a specific <code>&lt;div&gt;</code> from a page that contains <code>&lt;ul&gt;&lt;li&gt;</code> structure into a <code>&lt;div&gt;</code> on this page. What is currently happening is that it "seems" to try and load the menu before the data is there. I say this because...
javascript jquery
[3, 5]
238,188
238,189
Browsing and upload file in ASP.net / Jquery / Javascript
<p>From the Page, user can browse and select a folder on their local drive. after selection it populate list of file names in listbox.</p> <p>Then I will use these file paths randomly to upload to server.</p> <p>Is this possible?</p> <p>I am asking because what i know due to security browser prevent to access client...
javascript jquery asp.net
[3, 5, 9]
887,569
887,570
Getting the value of a text or checkbox with jQuery and putting it into a variable
<p>I have the following code:</p> <pre><code>$("input[id^='Order_'], input[id^='Default_']") .change(function (e) { var type = $(this).attr('id').split('_')[0]; updateField('Menu', $(this), type); }); The input with an id of 'Order_' has a type="text" The input with an id of 'Default_' has a type="chec...
javascript jquery
[3, 5]
1,131,315
1,131,316
Call a Class file inside App_code folder using usercontrol page?
<p>I want to to call a class inside <code>App_code folder</code> using <code>Usercontrol</code> page how to do it?</p> <pre><code>namespace Project.Folder { public partial class DefaultMenu2 : System.Web.UI.UserControl { public void Page_Load(object sender, EventArgs e) { Util.Func...
c# asp.net
[0, 9]
2,076,526
2,076,527
form jquery prevent default
<p>I want to prevent the form from submitting, but execute other form handlers, preventDefault stops all.</p> <p>here's an example:</p> <pre><code>&lt;form id="example"&gt; &lt;input type="text" name="name" /&gt; &lt;/form&gt; &lt;form id="example2"&gt; &lt;input type="text" name="name2" /&gt; &lt;/form&gt; ...
javascript jquery
[3, 5]
4,951,887
4,951,888
call server function in server tag
<p>can i call my function inside my server tag? </p> <pre><code>public string Mytext() { } </code></pre> <p>And </p> <pre><code>&lt;asp:Label ID="lbl" runat="server" Text="Mytext()"&gt;&lt;asp:Label&gt; </code></pre>
c# asp.net
[0, 9]
2,153,782
2,153,783
Smooth scroll to top of page after an asp.net ajax postback
<p>I have an error message area at the top of a long page. After an ajax postback in asp.net (using an update panel), sometimes I need to display an error message and it will be displayed outisde the viewport and the user might not notice it. </p> <p>I would like the return (same) page to scroll smoothly to the top of...
asp.net javascript
[9, 3]
2,109,563
2,109,564
how to access the checkbox.click inside a list of panels using jquery
<p>I have this hierarchy, a tabcontainer(tcmain) under that a tabpanel(tpnlRaiseMRF) under that an asp panel(RaiseMRF) under that a checkbox(cbxRecNote). I want to add this function on click. I am adding like this : </p> <blockquote> <p>$(document).ready(function () { $("#pnlRecNote").hide(); ...
jquery asp.net
[5, 9]
4,899,840
4,899,841
only one radio buttons
<p>I have read in an example that if you use more than one radio button you should use <code>RadioGroup</code> like this:</p> <pre><code>&lt;RadioGroup android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"&gt; &lt;RadioButton ...
java android
[1, 4]
4,507,127
4,507,128
QueryString for redirection!
<p>I have used a query string parameter to redirect from Page 1 to Page 2. From Page 2, i wanted to redirect it to Page 3 if Page 2 has been called from Page 1. What should be the condition to check if the querystring is used?? Please help me out!! Thanks guys!</p>
c# asp.net
[0, 9]
5,244,434
5,244,435
Jquery - Too Much recursion
<p>Getting this error with jquery &amp; jquery.form. Site has been live for awhile..upgraded to latest version of jquery &amp; jquery form and still having same issue. </p> <p>This is the error in firebug</p> <p>too much recursion [Break on this error] (function(){var l=this,g,y=l.jQuery,p=l....each(function(){o.dequ...
php jquery
[2, 5]
842,199
842,200
why the javascript variable doesn't change among function?
<p>my problem with the following javascript function:</p> <pre><code>function ValidateDates() { var valid = false; birthD = $("#cp1_txtBirthDate").val(); initialD = $("#cp1_txtInitialDate").val(); var regexp = new RegExp("^([1-9]|(0|1|2)[0-9]|30)(/)([1-9]|1[0-2]|0[1-9])(/)((20|19|18)[0-9]{2})$"); if (birthD != "__/_...
javascript jquery
[3, 5]
2,985,671
2,985,672
Android - visible and invisible buttons
<p>I am trying to get a button to become visible if there is one or more objects in an array, otherwise it will stay invisible.</p> <p>I am used:</p> <pre><code>if (positionOverlay.geoPointsArrayList.size() &lt;= 0){ buttonClear.setVisibility(View.GONE); System.out.println("Clear button hidden"); } else if (p...
java android
[1, 4]
1,568,180
1,568,181
Simple Event example
<p>i only know basic javascript and not even basic jquery, but i would like to know something that is probably really trivial in jquery.</p> <p>I would like a very simple example of how to create a function in a js file and execute that with a dom class parameter(like .sample) from my main script. Something like :</p>...
javascript jquery
[3, 5]
838,600
838,601
Use OR `||` between two string
<p>I want use or between two string as <code>or</code>, but it don't work for me, What do i do?</p> <p><strong>DEMO:</strong> <a href="http://jsfiddle.net/NP8E3/" rel="nofollow">http://jsfiddle.net/NP8E3/</a></p> <pre><code>&lt;input type="checkbox" id="DA"&gt; &lt;input type="checkbox" id="DE"&gt; $('#DA'+ OR +'#DE...
javascript jquery
[3, 5]
1,417,534
1,417,535
Converting a byte swapping/shifting code snippet from C++ to .NET
<p>I have a short code snippet in C++ and I need to have the same functionality in C#:</p> <pre><code>typedef enum {eD=0x0, eV=0x1, eVO=0x2, eVC=0x3} eIM; #define htonl(x) ( ( ( ( x ) &amp; 0x000000ff ) &lt;&lt; 24 ) | \ ( ( ( x ) &amp; 0x0000ff00 ) &lt;&lt; 8 ) | \ ( ( ( x ) ...
c# c++
[0, 6]
4,842,543
4,842,544
loop over the PHP data Returned to jquery AJAX Call
<p>below is my $.ajax call to php</p> <pre><code>$(document).ready(function() { $('ul.sub_menu a').click(function(e) { e.preventDefault(); var txt = $(this).attr('href'); $.ajax({ type: "POST", url: "thegamer.php", data:{send_txt: txt}, success: function(data){ $('#c...
php jquery
[2, 5]
2,924,229
2,924,230
Parsing an Input value using Split
<pre><code>&lt;input type="text" id="personName" /&gt; </code></pre> <p>Given possible values like:</p> <ul> <li>James</li> <li>James Bond</li> <li>James Van Bond</li> <li>James Van Bond the Very First</li> </ul> <p>I want to learn how to split the value by space, and then obtain the first value as FirstName and all...
javascript jquery
[3, 5]
2,558,323
2,558,324
Web Application Class Design Advice?
<p>My web application is going to consist of some people information. Basically in my database I will have fields such as </p> <pre><code>personid autoid clubid personalinfoid fname carmodel clubname personid mname cartype ...
c# asp.net
[0, 9]
5,898,086
5,898,087
Visibility.js - How to usefall back?
<p>I have looked for a solution on How to check active tab in javascript/jquery and I found this post.</p> <p><a href="http://stackoverflow.com/questions/12489986/how-to-check-active-tab-in-javascript-jsquery">How to check active tab in javascript/jsquery?</a></p> <p>I tried using the plugin at <a href="https://githu...
javascript jquery
[3, 5]
749,931
749,932
jQuery to open independently content of each button with the same class
<p>I don't think my question is difficult but I'm just a newbie in jQuery and this forum so hope that you can help me with this problem. I just want to open seperately the content of two divs by two button with the same class name and for easier to understand I will show my code snippet first:</p> <pre><code>&lt;div i...
javascript jquery
[3, 5]
3,128,437
3,128,438
Need to render a div per letter typed
<p>I need to be able to render a div per the letter typed in a input field in real time (maybe with a delay?</p> <p>Example if some one types: "House" in the input field</p> <p>i need something like this to be displayed</p> <pre><code>&lt;div id="h"&gt;&lt;/div&gt; &lt;div id="o"&gt;&lt;/div&gt; &lt;div id="u"&gt;&l...
javascript jquery
[3, 5]
2,284,591
2,284,592
How to intercept HTTP requests made by a 3rd party library on Android?
<p>For my project I have to use a 3rd party Java library which makes some HTTP requests to a well known server. I need to add my own header to those requests and wonder how I can realize it?</p> <p>An HttpRequestInterceptor seems to be the answer, but how can I 'register' this one globally, so that the 3rd party libra...
java android
[1, 4]
4,468,609
4,468,610
Sort int (not Integer) array with custom ordering rules
<p>I need to sort about 100000 ints with custom ordering rules. If I use Comparator, I need to have an array Integer instances, which is slower to create, slower to sort and takes more memory.</p> <p>Quick benchmark on Galaxy Nexus with Android 4.2:</p> <pre><code>createIntArrayAndFillWith1to100000; // 18 ms createIn...
java android
[1, 4]
2,039,301
2,039,302
Cancel step if validation fails in asp.net wizard
<p>I am using asp.net wizard in my project which is new to me. I have validations in one of the steps in my wizard. If the validation fails i should not allow the user to go to next step. And i am using a asp.net button which navigate between the steps in wizard. I would really appreciate if anyone could help me.</p>
c# asp.net
[0, 9]
5,255,593
5,255,594
jQuery .slideUp() effect running issue
<p>Can anybody tell me why the Effect is running so often is hovered. I mean you hover 3 times without to wait that the Effect is finished and than you can wait until the Effect has run 3 times. </p> <pre><code> $(function() { $('#dropdown_nav li').find('.sub_nav').hide(); $('#dropdown_nav li...
javascript jquery
[3, 5]
4,019,166
4,019,167
How to get the visible dimensions of a scrollable div?
<p>I am trying to get the visible height of a div and I can't find the way to do it. <a href="http://jsfiddle.net/MVupa/1/" rel="nofollow">http://jsfiddle.net/MVupa/1/</a></p> <p>Even the library fracs: <a href="http://larsjung.de/fracs/" rel="nofollow">http://larsjung.de/fracs/</a></p> <p>Does not seem to give me th...
javascript jquery
[3, 5]
3,574,343
3,574,344
What should I get the height() of to make list fill the screen?
<p>IT WAS THE DEFAULT MARGIN ON THE <code>&lt;UL&gt;</code>!! SORRY I've got a list of anywhere between 5 and 20 items and I want to make the whole list fill the height of the screen. So I'm finding the height of <code>&lt;html&gt;</code> and dividing it by the number of <code>&lt;li&gt;</code>s and setting this number...
javascript jquery
[3, 5]
54,780
54,781
Parsing date string in Java of format [2012-07-15T20:55:33+00:00]
<p>Im trying to parse a String thats a date "2012-07-15T20:55:33+00:00", however I keep getting illegal argument exception. I don't know what I'm doing wrong.</p> <pre><code>SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-ddzHH:mm:SS+00:00"); String date = "2012-07-15T20:55:33+00:00"; Log.e("res",sdf.format(dat...
java android
[1, 4]
1,882,587
1,882,588
Getting user input with CONFIRM
<p>i need to get the user to click OK or CANCEL:</p> <pre><code>protected void Button1_Click(object sender, EventArgs e) { CallRecursive(TreeView1); string confirmationMessage; confirmationMessage = @"Please review the data before submitting:" + "\r\n" + "Sample Received Date: " +...
c# javascript asp.net
[0, 3, 9]
4,724,476
4,724,477
How to reference assemblies that are in the GAC
<p>In 2005 you need to add a new registry setting in order to see it in the Add Ref dialog box. </p> <p>BUT</p> <p>can you add a reference an assemble that are in the GAC in the web.config file?</p> <p>i.e.</p> <p> </p>
c# asp.net
[0, 9]
5,427,924
5,427,925
Change Label Text during long Code Behind Process
<p>I Have <code>Label</code> And <code>Button</code> In One <code>UpdatePanel</code> ,Now I call Long Process with <code>ForEach</code> Loop <code>On Button Click</code> What I want is to Update Text Of <code>Label</code> after Completion Of Loop.Is there any Easy Way to Change Text Of <code>Label</code> At runtime.I h...
c# asp.net
[0, 9]
1,484,524
1,484,525
asp.net looping through javascript files
<p>I want to loop through my javascript files. In the global.asax file on application start, I have this:</p> <pre><code>void Application_Start(object sender, EventArgs e) { //bugs this line System.IO.DirectoryInfo info = new System.IO.DirectoryInfo("\\Scripts"); StringBuilder sb = new StringBuilder(); ...
c# asp.net
[0, 9]
3,682,066
3,682,067
Disabling enter key for selected submit buttons within a form
<p>i have a page that contains several submit buttons however i only want one of them to be activated by the enter key</p> <pre><code> echo "&lt;form method=\"post\" action=\"fish.php\"&gt;\n"; echo "&lt;tr&gt;&lt;td&gt;North Pot&lt;/td&gt;&lt;td&gt;&lt;input type=\"text\" name=\"northpot\"&gt;&lt;input type=\"submi...
php javascript
[2, 3]