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
2,416,001
2,416,002
How do you automatically turn text of url format into hyperlink?
<p>How do you automatically turn text of url format into hyperlink? I got a textarea form that allow user to submit description to my database. When I later on call this content out, I wish to turn all text with the form of www.XXX.XX , etc, into hyperlink. Is there a easy way to do it?</p>
php javascript
[2, 3]
1,637,573
1,637,574
saving aspx page into an image
<p>need to convert, an aspx page with a panel having image and some labels into it, as an image </p> <p>in details i would say i need to save the image some text content on it as a new image...</p> <p>please help soon running out of target...</p>
c# asp.net
[0, 9]
2,455,710
2,455,711
How to get TextView from ListView item?
<p>I have following code for making ListView:</p> <pre><code> SimpleAdapter adapter=new SimpleAdapter(this, DictionaryDbWrapper.getInstance().getAllWords(), android.R.layout.simple_list_item_2, new String[]{DictionaryDbHelper.WORD, DictionaryDbHelper.CATEGORY}, new int[]{android.R.id.text1,...
java android
[1, 4]
5,123,724
5,123,725
How do access a JQuery function inside a scope in another Jquery file?
<p>I am trying to refactor a big JQuery file into smaller ones, but one of the things is I have to be able to call functions inside another JQuery file, but I cant get it to work. So how do I change this code so I can call someFunction inside File1.js from from File2.js?</p> <pre><code>//File1.js (function (s_diary, $...
javascript jquery
[3, 5]
1,384,621
1,384,622
function does not always return a value?
<p>I am trying to make this ajax request function work but netbeans is giving a warning that the following function does not always return a value. Can anyone please help.</p> <pre><code>function fpform(){ var response=''; var fpemail = $('#frgtpwd').val(); //var fpemail = document.getElementById('frgtpwd'...
javascript jquery
[3, 5]
3,794,555
3,794,556
Swipe Tabs - two tabs with listview + adapter
<p>I try to implement an applicationbar with SWIPE tabs in my android project. Lets say I've two tabs (tab1 and tab2). And I want to display different content on these tabs. (Actually that's all what I want to do nothing more).</p> <p>Tab1 includes a list and Tab2 includes "another" list plus some text. Is it possible...
java android
[1, 4]
5,533,579
5,533,580
progress bar in asp.net web apllication using c#
<p>I want to make a progress bar that fills up every time a user goes from page to page..I've made an online survey and I want after each question displayed on a page the progress bar to be fill.Let's say I have 10 questions.After the user answers 3 the progress bar will be fill with 3/10 and so on. How can I make such...
c# asp.net
[0, 9]
5,795,265
5,795,266
Passing multidimensional POST data in Java
<p>In HTML, it's possible to pass multidimensional keys, e.g.</p> <pre><code>&lt;input type="text" name="user_profile[name]" /&gt; &lt;input type="type" name="user_profile[id]" /&gt; </code></pre> <p>And in my PHP script I can just access them by <code>$_POST['user_profile']</code></p> <p>Can one pass these multidim...
java php
[1, 2]
3,575,514
3,575,515
How to get email of selected checkboxes in gridview on client side?
<p>I have a grid view with 3 columns checkbox, name and email. I am trying from last day but couldn't succeed in getting email addresses of checked checkboxes on client side in javascript funtion.</p> <p>Help please.</p>
javascript jquery asp.net
[3, 5, 9]
50,403
50,404
Got 0 when using HttpURLConnection.getResponseCode ()
<p>I`m using the class HttpURLConnection this way:</p> <pre><code>HttpURLConnection con=(HttpURLConnection) servlet.openConnection(); int conResponseCode = con.getResponseCode(); </code></pre> <p>Sometimes I`m getting conResponseCode as <strong>0</strong>.</p> <p>I tried to look in the net, and couldnt find what it ...
java android
[1, 4]
6,019,870
6,019,871
Extending AsyncTask<Void, Void, Void>
<p>In my android app I am performing some operations in the <code>doInBackground</code> by extending <code>AsyncTask&lt;Void, Void, Void&gt;</code> class. (I have no use in performing any UI in this class) </p> <ol> <li>Is this proper use of AsyncTask ? </li> <li>If so can I extend AsyncTask instead ?</li> <li>What i...
java android
[1, 4]
280,866
280,867
Can't find R. layout - app name. Only android layout
<p>For some reason, when i started up eclipse today, it couldn't find my main XML in my</p> <pre><code>setContentView(R.layout.main); </code></pre> <p>When i write R. it can only find "Layout - Android.R" - and not my "Layout - com.your.app"</p> <p>Anyone who knows how to solve this problem?</p> <p><strong>I just r...
java android
[1, 4]
5,285,180
5,285,181
closing other sub-menus
<p>i have menu like this</p> <pre><code>&lt;ul&gt; &lt;li&gt; &lt;a href="#"&gt;Home&lt;/a&gt; &lt;ul class="sub"&gt; &lt;li&gt;Text&lt;/li&gt; &lt;li&gt;Test&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;About&lt;/a&gt; &lt;...
javascript jquery
[3, 5]
2,409,991
2,409,992
Displaying messages to user from ASP.NET using jQuery
<p>In developing various web application in ASP.NET I find myself needing to send messages back to the user after various actions have been performed. For examples if files have been uploaded successfully or a database record has been updated. Also, if there are errors I want to notify the user.</p> <p>So far I have b...
jquery asp.net
[5, 9]
4,213,688
4,213,689
problem in wordpress like delete rows in jquery
<p>im trying to impelement a technique to delete stories with jquery animation exactly like wordpress </p> <p>this is my script part :</p> <pre><code>$(function(){ $('#jqdelete').click(function() { $(this).parents('tr.box').animate( { backgroundColor: '#cb5555' }, 500).animate( { height: 0, paddingTop: 0, paddingB...
php jquery
[2, 5]
2,368,612
2,368,613
Chaining JS methods
<p>I'm trying to insert some whitespace in a string if the string conforms to a certain format. Specifically, if the string consists of only numbers, and is exactly five characters in length, whitespace should be added between the third and fourth numbers.</p> <p><a href="http://jsfiddle.net/LwAg9/" rel="nofollow">Her...
javascript jquery
[3, 5]
1,490,635
1,490,636
jquery $.each is non-blocking?
<pre><code>$("&lt;ol&gt;").appendTo(some_div); $.each(map, function(i,example){ $("&lt;li&gt;" + example + "&lt;/li&gt;").appendTo(some_div) }); $("&lt;/ol&gt;").appendTo(some_div); </code></pre> <p>expected: <code>&lt;ol&gt;&lt;li&gt;example1&lt;/li&gt;&lt;li&gt;example2&lt;/li&gt;&lt;/ol&gt;</code></p> <p>act...
javascript jquery
[3, 5]
1,550,726
1,550,727
How to refresh CursorAdapter on spinner selection?
<p>I have a SpinnerListner class that is nested in ListActivity inherited class. My aim is to update the CursorAdapter that is implemented by the ListActivity class.</p> <p>Here is my code:</p> <pre><code>public class test extends ListActivity { private testAdapter adapter; protected SQLiteDatabase ...
java android
[1, 4]
724,137
724,138
Check if an object (not an element) really exists with js/jQuery
<p>I got this string of code, data is value returned inside a success callback in an ajax environment:</p> <pre><code>$('#cpt_rspp_value').text(data.Payload.Clerks.rspp.full_name) $('#cpt_ddl_value').text(data.Payload.Clerks.ddl.full_name) $('#cpt_rls_value').text(data.Payload.Clerks.rls.full_name) $('#cpt_mc_value')....
javascript jquery
[3, 5]
672,820
672,821
jQuery get html in div without any markup
<p>I have some script written using the <strong>jQuery</strong> framework. </p> <pre><code>var site = { link: $('#site-link').html() } </code></pre> <p>This gets the html in the div <code>site-link</code> and assigns it to <code>link</code>. I later save <code>link</code> to the DB. </p> <p>My issue is I don't want...
javascript jquery
[3, 5]
1,413,793
1,413,794
Opening login page on two tab in browser and login in by one after another, getting "The page isn't redirecting properly" in second tab login time
<p>visible</p> <p>I am getting the following error in the page and the page isn't redirecting properly .</p> <blockquote> <p>Firefox has detected that the server is redirecting the request for this address in a way that will never complete.</p> </blockquote> <p>This problem can sometimes be caused by disabling ...
c# asp.net
[0, 9]
3,003,660
3,003,661
this.checked creating false positive?
<p>I have a page that has 4 checkboxes that are checked by default. If you uncheck a box, it writes a cookie so that return trips to the page will have saved preferences. The problem I'm having is that the cookies seem to be written no matter what. Going to the page for the first time should create no cookies, but u...
php javascript jquery
[2, 3, 5]
2,752,013
2,752,014
How to upload an image in folder with database in asp.net on remote server?
<p>I face this problem on uploading time:</p> <blockquote> <p>Access to the path 'D:\inetpub\vhosts\rajschool.com\httpdocs\Photo\3d_529 - Copy.jpg' is denied.</p> </blockquote> <p>My code for uploading image is:</p> <pre><code>protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { string...
c# asp.net
[0, 9]
3,518,817
3,518,818
How to split a string into an array in jQuery when there is only one element in the string?
<p>I have this code, that takes a string and splits it into an array:</p> <pre><code>nodes = $("#" + model_id + "-" + node_class + "--" + "title").data("nodes").split(",") </code></pre> <p>When there is only one element in the string (no commas), the variable "nodes" does not become an array, but a regular variable. ...
javascript jquery
[3, 5]
1,674,901
1,674,902
How to pass parameter from a link to jquery method
<p>When the user clicks on the link i need the JQuery method to fire, and call a web service, which is located at <code>/Project/Send/SendMethod</code>. When i click on the <code>send</code> link the method gets fired, i know this because the alert is getting displayed. But the problem is how to call the webservice. It...
javascript jquery
[3, 5]
3,831,153
3,831,154
Delaying a timed interval function?
<p>I have a function set up like so:</p> <pre><code>setInterval(function () { get_fb(); }, 10000); </code></pre> <p>I'd like to reset the timer to 10 seconds whenever a user does something (like hover over an element or click an element)</p> <p>How would I tell the program to do something like this?</p>
javascript jquery
[3, 5]
2,481,160
2,481,161
getting domain\username for web app on intranet without loggin in
<p>I have a web app on our intranet (VS 2005). There are a couple pages that don't require the user to be logged into the app (feedback and the default page). I am trying to get the domain and username to display and/or send with the feedback. Is there a way to do this without requiring the user to log in? I've tri...
c# asp.net
[0, 9]
4,503,939
4,503,940
Dynamically add href on <a>
<p>I have a logout link</p> <pre><code> &lt;div id="titleInfo"&gt; &lt;div id="signOut"&gt; &lt;a href="" class="signOutLink" &gt;Log Out&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>I need to add navigation destination dynamically.</p> <pre><code>$(document).ready(function() { ...
javascript jquery
[3, 5]
3,149,262
3,149,263
how to get the cache size of installed applications in android
<p>I'm using the following code to get a list of all installed apps on android, my question is how is it possible to get the size of the cache that's used by those applications, any help would be appreciated.</p> <pre><code>public class CacheActivity extends Activity { private ListView lv; // private TextView...
java android
[1, 4]
2,156,292
2,156,293
Is it possible to use a custom java class in an android app?
<p>I know Android apps are based off of Java, I was just wondering is it possible to use a custom Java class in an Android app. The class uses the following java libraries.: </p> <p><code>import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*;</code></p> <p>If not what are the equival...
java android
[1, 4]
4,677,233
4,677,234
How to get Latitude/Longitude from Web App?
<p>I have a Web ADF application and I simply want the user to have the ability to click on the map and a Popup window displays the Latitide/Longitude values where the users click on the map. How can I do this?</p>
c# javascript
[0, 3]
4,153,092
4,153,093
Where does HttpRuntime.Cache stores data?
<p>I am trying to implement a web application with Caching features.The reason I need caching is for is that we have an application which lets users access online courses. Now, Once the user logs in I validate him against our database. Once validated I want to store the user ID and course ID in cache for 20 mins so th...
c# asp.net
[0, 9]
2,701,931
2,701,932
Jquery how to set params when option is clicked?
<p>This is my HTML:</p> <pre><code>&lt;select style="color:#666666;font-size:11px;" name="sort" id="sort"&gt;&lt;option value="1"&gt;senest tilføjet&lt;/option&gt; &lt;option value="rating"&gt;highest rating&lt;/option&gt; &lt;option value="ratings"&gt;most votes&lt;/option&gt; &lt;option value="created_at"&gt;after l...
javascript jquery
[3, 5]
2,567,455
2,567,456
Track all outgoing URL requests from browser using jQuery
<p>I need to block the UI when user clicks on any hyperlinks that points to different page on my website. I know there is a way to track all jquery ajax requests using ajaxStart and ajaxStop and i can use these methods to block my UI when browser is waiting for response from the server. But is there any way to intercep...
javascript jquery
[3, 5]
4,333,606
4,333,607
override method from another project
<p>i have a website in my solution and a Data Class project<br> data class is referenced to website<br> now i want override method a from data class to web site<br> i think this is possible because after compile data class is a dll in website</p> <p>my data class :</p> <pre><code>public partial class forInherit { ...
c# asp.net
[0, 9]
5,449,387
5,449,388
Setting height, and width of a relative layout in android
<p>Here is my scenario.</p> <p>I have an image which is made as per resolution 320*480 (assuming i am using mdpi mobile). I am adding this image as a background to a relative layout.</p> <p>Now my screen has three main things.</p> <pre><code>1- Title bar (The standard title bar of android) 2- My relative layout and ...
java android
[1, 4]
1,776,683
1,776,684
What is the equivalent of this JavaScript code in c#?
<p>I have this JavaScript file that I need to write in C#. I've done many but stuck on it. Could some body help me with this?</p> <pre><code>var biginteger=new bigint(convert); var mod = bigint_mod(biginteger, new bigint(97)); var y = bigint_number(mod); </code></pre> <p>I am unable to interpret these JavaSc...
c# javascript
[0, 3]
4,027,884
4,027,885
Continue execution of the code after alert message from clientside
<p>I've to send mail using webappplication.All works fine but i've to show a confirm message if attachments are not selected.In that confirm box when ok is clicked execution of the code should continue,when cancel button is clicked it should return.</p> <p>This is my code</p> <p>Code behind</p> <pre><code> protected...
c# javascript
[0, 3]
2,979,630
2,979,631
Placing cursor in textbox at specified length
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1865563/set-cursor-at-a-length-of-14-onfocus-of-a-textbox">Set cursor at a length of 14 onfocus of a textbox</a> </p> </blockquote> <p>I have a code which lays the focus selecting certain length of substring in ...
javascript jquery
[3, 5]
4,874,640
4,874,641
How can I reference a JavaScript file on every page? (ASP.NET 1.1)
<p>I have an old ASP.NET 1.1 site that I am maintaining. We are working with Google to place analytics code on all pages. Since I can't take advantage of master pages in 1.1, I have my pages include headers/footers/sidebars with User Controls.</p> <p>What came to mind first is to place the JavaScript in my footer as...
asp.net javascript
[9, 3]
4,898,467
4,898,468
How do I make slides to slide by themself?
<p>So I have this problem. I have a page that has slides which doesn't slide by them self and i want that they'd slide. Here is the code <a href="http://jsfiddle.net/tUUPN/3/" rel="nofollow">http://jsfiddle.net/tUUPN/3/</a></p> <pre><code>$(document).ready(function () { $("#slideshow").css("overflow", "hidden"); $("#s...
javascript jquery
[3, 5]
5,270,265
5,270,266
Selecting elements without jQuery
<p>I guess this will be voted down, as it doesn't contain enough jQuery, but here it goes :)</p> <p>What is the most effective way to get the element(s) returned by the jQuery selector below using plain <s>old</s> javascript?</p> <pre><code>$('a[title="some title text here"]', top.document) </code></pre>
javascript jquery
[3, 5]
2,977,353
2,977,354
How to fix this error which is stating something is not a function?
<p>I am trying to append this: <code>'&lt;div&gt;' + htmlEncode(imagefilename) + '&lt;/div&gt;'</code> when the user clicks on the cancel button (.imageCancel). But it is giving me this error: <code>$('&lt;div/&gt;').text(value).html();</code> is not a function. How can this error be fixed? Is it because </p> <...
javascript jquery
[3, 5]
340,308
340,309
Copy ResolveInfo item from ArrayList a to ArrayList b?
<p>Aasically I'm trying to add an item from ArrayList a (allApps) to ArrayList b (myApps) but I'm getting an error. </p> <p>This is what I'm trying:</p> <pre><code>public ArrayList myApps = new ArrayList(); @Override public void onCreate(Bundle savedInstanceState) { ... for(final ResolveInfo app : allApps) { ...
java android
[1, 4]
5,576,815
5,576,816
What's the best way to secure data between an PHP webservice and a Android/Java application
<p>And by that i don't mean using HTTPS, but data encryption. </p> <p>Is there a nice encryption method that i can use in PHP to encrypt the data and decrypt in Java?</p> <p>Thanks in advance.</p>
java php android
[1, 2, 4]
3,493,254
3,493,255
JQuery Mobile collapsible does not apply to div
<p>I'm very new to both JQuery and Javascript. I have an feed, I would like to display these feed inside a collapsible div AS a collapsible div. I have the following Javascript file:</p> <pre><code>&lt;script type="text/javascript" src="https://www.google.com/jsapi"&gt;&lt;/script&gt; &lt;script type="text/javascript...
javascript jquery
[3, 5]
5,126,073
5,126,074
Focus on textbox based on URL
<p>I have two forms on one page and want to have the input boxes focused based on the URL.</p> <p>So for example: domain.com/Default.aspx#login and domain.com/Default.aspx#register</p> <p>and the javascript I have this:</p> <pre><code> if (window.location.href = '?action=login') { window.d...
asp.net javascript
[9, 3]
967,452
967,453
How to maintain scroll position on autopostback?
<p>how can I get back to the same position of a page on postback. It always seems to get to the top of the page</p> <p>I've tried using ' maintainScrollPositionOnPostBack = "true" ' but its not working.</p> <p>Thanks, Sam</p>
c# asp.net
[0, 9]
5,717,181
5,717,182
Enter is not working in Internet explorer and Firefox
<p>This function is not working in Internet Explorer and Firefox. In Firefox, it returns the following error:</p> <blockquote> <p>TypeError: e is undefined<br> [Break On This Error]<br> ...e.which == "number") ? e.which : e.keyCode; keyCodeEntered = (e.which) ? e.which... </p> </blockquote> <p>The function:</p>...
javascript jquery
[3, 5]
5,215,389
5,215,390
Call C# function in Javascript
<p>Is it possible to call c# function or Event in Javascript function.</p> <p>thank you.</p> <p>I have my old application in that no ajax, MVC and jquery....</p>
c# javascript
[0, 3]
5,858,767
5,858,768
Need to do bulk file upload in JavaScript
<p>I have a little bit of an unusual situation I guess. I have a page for placing new orders and part of a new order is a variable (0-n) number of files that are to be uploaded and associated with the order on the back end. The user also needs to specify a description for each file. </p> <p>I've used a couple jQuery u...
javascript jquery
[3, 5]
3,412,060
3,412,061
Accessing to Java app from PHP
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3319161/php-java-integration">Php/Java Integration</a> </p> </blockquote> <p>I have a java app. It has some function. How can I call It's function in PHP? I need step by step tutorial about it. I need solution e...
java php
[1, 2]
2,811,602
2,811,603
JQuery: how to keep a dialog box open after an asp.net postback has occurred
<p>Looking at the other dialog questions, mine seems to be the exact opposite to postback queries. I have a dialog box which opens when a button is clicked. all that is fine. I have attached the dialog to the form and posting to asp.net is fine too, but, my problem is when a postback occurs of course the dialog closes ...
c# jquery
[0, 5]
5,987,090
5,987,091
Excel PMT function in JS
<p>I found i little snipet on internet, about PMT calculate.</p> <pre><code>function PMT(i, n, p) { return i * p * Math.pow((1 + i), n) / (1 - Math.pow((1 + i), n)); } function CalculatePMTFromForm(idLoanAmount, idAnnualInterestRate, idMonths, idResult) { var i = jQuery('#' + idAnnualInterestRate).val() / 1200; var...
javascript jquery
[3, 5]
2,741,804
2,741,805
Android list footer
<p>I get a null pointer exception at line five/seven of my code:</p> <pre><code> LayoutInflater inflater = getLayoutInflater(); View header = inflater.inflate(R.layout.footer_row, (ViewGroup) findViewById(R.id.header_layout_root)); TextView tv_footer = (TextView) findViewById(R.id.tv_footertext); if(get...
java android
[1, 4]
3,733,291
3,733,292
C# Compile Time for Last Updated
<p>I have a website and I want to include a "Last Compile Time: XX:XX:XX" in the footer of the website. Is there an automated way to alter the contents of an asp:label at compile time?</p>
c# asp.net
[0, 9]
3,032,046
3,032,047
Open a new window/tab
<p>I am working on a donations website. In my page, I have a textbox which accepts a numeric value from the user (that is, money to be donated).</p> <p>In my code-behind, I have a method which checks whether the value in the textbox is numeric. The method generates an error message if the number is invalid.</p> <p>...
c# javascript asp.net
[0, 3, 9]
1,470,004
1,470,005
HttpWebRequest is very slow
<p>hi all am requesting a handler file from another handler file that returns an image,when i request my HttpWebRequest taking more time to get the response...here is my code please help.</p> <pre><code>HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); HttpCookie cookie = context.Request.Cookies["ASP.N...
c# asp.net
[0, 9]
4,792,205
4,792,206
How can I implement custom maps with provinces in Android?
<p>Ok, so I have this map and I have various sliders on the right. After changing slider values and pressing 'Execute' button, some provinces in the map below should change colour. <img src="http://i.stack.imgur.com/CtmXN.png" alt="enter image description here"></p> <p>However, I don't know how to implement the map b...
java android
[1, 4]
3,409,745
3,409,746
HTMLDocument getElementById for a custom control returns null, why, and is there a different way to access it?
<p>I have the following in an aspx page inside a body tag:</p> <pre><code>&lt;form id="Form1" method="post" runat="server"&gt; &lt;customControl:menu id="Menu1" runat="server"&gt; &lt;/customControl:menu&gt; &lt;/form&gt; </code></pre> <p>And from a different aspx page I have this javascript function:</p> <pre><co...
javascript asp.net
[3, 9]
5,617,074
5,617,075
jQuery ajax callback memeber of class?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5378622/is-there-a-way-for-a-jquery-ajax-success-function-to-access-the-object-its-cont">Is there a way for a JQuery ajax success function to access the object it’s contained in?</a> </p> </blockquote> <p>I have...
javascript jquery
[3, 5]
3,102,159
3,102,160
Check that variable is a number
<p>How can I check that a variable is a number, either an integer or a string digit?</p> <p>In PHP I could do:</p> <pre><code>if (is_int($var)) { echo '$var is integer'; } </code></pre> <p>Or:</p> <pre><code>if (is_numeric($var)) { echo '$var is numeric'; } </code></pre> <p>How can I do it in jQuery/JavaSc...
javascript jquery
[3, 5]
4,555,627
4,555,628
JQuery: get radio button value
<p>I have the following HTML:</p> <p>HTML:</p> <pre><code>&lt;input type="radio" name="abc" value="0" selected="selected" style="display:none" /&gt; &lt;input type="radio" name="abc" value="1" /&gt;1+ &lt;input type="radio" name="abc" value="2" /&gt;2+ &lt;input type="radio" name="abc" value="3" /&gt;3+ </code></pre>...
javascript jquery
[3, 5]
5,594,636
5,594,637
how to navigate the users to Login.aspx even if i set HomePage.aspx as the start page?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/549/the-definitive-guide-to-forms-based-website-authentication">The Definitive Guide To Forms based Website Authentication</a> </p> </blockquote> <p>how to navigate the users to Login.aspx even if i set HomePage...
c# asp.net
[0, 9]
2,977,862
2,977,863
How do I make multiple HTTP requests in parallel in PHP?
<p>I have a script written in PHP that sends an API call to eBay. There are several (15-50) calls made every second. I did some benchmarking and noticed that PHP doesn't execute these as fast as I'd like since it doesn't run them in parallel.</p> <p>My question: Is it a good idea to convert the script into Java, so as...
java php
[1, 2]
5,422,602
5,422,603
Javascript to jQuery conversion need
<p>Not sure the code below 100% correct but it was doing the job and now need to convert for jQuery.</p> <pre><code>var count = 0.00; var currency = "R$"; function doCount() { count = count + 1.99; document.getElementById("number").innerHTML = currency + parseFloat(count).toFixed(2).replace(/\./g, ','); v...
javascript jquery
[3, 5]
2,280,058
2,280,059
JQuery Calculation returns NaN
<p>I'm using <a href="http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm" rel="nofollow">JQuery Calculation plugin</a> with the following script:</p> <pre><code>function recalc() { jQuery("input[class^=percent]").calc( "(invoice - cost)/invoice * 100", { ...
javascript jquery
[3, 5]
2,692,096
2,692,097
Dialog argument in server side
<p>I am sending the reference of the parent window in <code>showmodaldailoge()</code> function as </p> <pre><code>window.showmodaldialog("mypage.aspx", window, winsizeattributes) </code></pre> <p>since I don't want to use query string or session variable. Now I can access the variables of parent window at the client ...
c# asp.net
[0, 9]
796,572
796,573
Android: How to retrieve file name and extension of a resource by resource ID
<p>I have the following:</p> <pre><code>getResources().getResourceEntryName(resourceId); </code></pre> <p>The problem is, that it retrieves only the file name without the extension.</p> <p>For example, if I have the following res/drawable/pic.jpg, the</p> <pre><code>getResources().getResourceEntryName(resourceId); ...
java android
[1, 4]
5,350,755
5,350,756
how to create GridView/DataList with Editing Grid Column wise
<p>Create on grid and which can be editable column wise rather than row wise editing.. i want to add columns in Grid dynamically(not fixed columns) and it can be editable. when Edit button click which will present at each column Header.</p> <h2>Like</h2> <h2> Edit Edit Edit Edit</h2> <pre><code> ...
c# asp.net
[0, 9]
5,777,718
5,777,719
How to refresh webpage after clicking on “Update” in Grid view
<p>I am working on an Asp.net, C# Application. I want to Refresh the webpage after I clicking on “Update” LinkButton; in Grid view. I have tried the following code; however it just refreshes the page without saving the updated data in Grid view.</p> <pre><code>protected void LinkButton1_Click1(object sender, EventArgs...
c# asp.net
[0, 9]
2,219,221
2,219,222
Where to store the data for jquery?
<p>Hello<br> I made a gallery and a custom css dropdown to choose a category.If the user does not have javascript he should click the a anchor and be ok.Otherwise jquery &amp; ajax should be used...<br> The problem is how to know the category selected? Storing it as an attribute isnt an option because it doesnt validat...
javascript jquery
[3, 5]
4,066,233
4,066,234
How to prevent old data from displaying on form resubmit?
<p>I have a form where when the user clicks the compare button, depending on whether the compare mode is set to "Full" or "Partial", different code will execute and display data in a GridView. </p> <p><img src="http://i.stack.imgur.com/rP2SM.jpg" alt="enter image description here"></p> <p>This is set up in an if/else...
c# asp.net
[0, 9]
2,512,302
2,512,303
retain radio button value on page refresh
<p>I know there are similar posts on this topic but i didn't find my answer from there.</p> <p>An online MCQ exam test. Number of questions in the page is variable. 4 options for every MCQ(multiple choice question).</p> <pre><code>&lt;input type="radio" name="my" value="1"/&gt; &lt;input type="radio" name="my"...
php javascript jquery
[2, 3, 5]
31,416
31,417
String modification issue in JS
<p>I have a string like "word_count". How can I transform it to "WordCount" in an elegant way using JavaScript? My decision seems too complicated to me. I'll be very grateful for your help. </p>
javascript jquery
[3, 5]
4,002,934
4,002,935
Using Android Studio with Java 1.7
<p>I was trying to get Android Studio to use Java 1.7 on Mac OS X (Mountain Lion)</p> <p>I went to <code>File &gt; Project Structure...</code> and then tried to add a JDK with the <code>+</code> button and then selecting <code>JDK</code>.</p> <p>I navigated to <code>/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/...
java android
[1, 4]
326,430
326,431
How can I find an element from jquery.cache object which jquery uses for data storing
<p>I need a way to find the element of stored data on jQuery.cache object.</p> <p>As you may now jQuery stores data as following syntax:</p> <pre><code>$('#idOfTheSelector').data('dataKey','dataValue); </code></pre> <p>jQuery stores this data in <code>$.cache</code> object as ;</p> <pre><code>$.cache[1].data.dataKe...
javascript jquery
[3, 5]
5,335,733
5,335,734
looping through json data in JavaScript
<p>This is similar to <a href="http://stackoverflow.com/questions/2556476/ajax-coldfusion-cfc-json-hello-world">this question</a>, but I thought I'd reword it a bit differently in order to make myself more clear. I have this json coming back from a $.ajax call:</p> <p>{"COLUMNS":["PERSONID","FIRSTNAME","LASTNAME"],"DA...
javascript jquery
[3, 5]
2,141,578
2,141,579
How to realise ArrayAdapter
<p>I have class:</p> <pre><code>class Catalog { String name; Double price; Integer art; } </code></pre> <p>All object of this class I add to ArrayList. How to make ArrayAdapter for GridView. GridView should have 2 columns name and price. And then I need calculate sum of price for all ArrayAdapter object</p>
java android
[1, 4]
4,235,419
4,235,420
jQuery: .each how to reference matched object
<p>how do i get a reference to the element that matched? 'this' is not correct. </p> <p>For example here I am trying to alert with the elements value.</p> <pre><code>//how do i get this to reference the object it matches. $("#txtFirstName,#txtLastName,#txtDOB").each( function() { alert(this.val()); } ); </code></...
javascript jquery
[3, 5]
4,067,444
4,067,445
On refresh brower's Data is getting inserted -- Help!
<p>I have insert page - data is getting inserted properly with all validations .But the main problem is that after insert if anyone clicks on the refresh button on the Internet explorer browser , data gets inserted again the same data which insert on submit button .</p> <p>Thanks, Smartdev</p>
c# asp.net
[0, 9]
1,906,714
1,906,715
reading with java, an element that was generated with javascript
<p>I have a website that implements a JavaScript that generates some messages elements.</p> <p>I would like to write a Java program that will read from this messages once they will generate. Is this possible to do?</p>
java javascript
[1, 3]
4,374,197
4,374,198
How to get a list of controls on a asp page and set an attribute dynamically?
<p>So I was told the following would not be possible:</p> <p>I have a aspx page that has a number of dropdowns. Each dropdown is set with either a class=leftcolumn or class=rightcolumn.</p> <p>I need to assign an attribute:</p> <pre><code>propertyID.Attributes["nameOfAttribute"] = "false"; </code></pre> <p>But ins...
c# asp.net
[0, 9]
3,750,516
3,750,517
Using jquery 1.4 or javascript how would I target a specific link using a variable
<p><strong>HTML:</strong> I've attached a simplified example of the problem I'm facing:</p> <pre><code>&lt;h2&gt;Product2&lt;/h2&gt; &lt;div id="products"&gt; &lt;a class="my-product1" href="#"&gt;&lt;span&gt;my-product1&lt;span&gt;&lt;/a&gt; &lt;a class="my-product2" href="#"&gt;&lt;span&gt;my-product2&lt;sp...
javascript jquery
[3, 5]
5,977,610
5,977,611
Show/ hide dynamic combobox
<p>I have two comboboxes which are generated by queries from mysql.</p> <p>When user choose value in first combobox i need to display second combobox, but if nothing is choosen second combox should not be displayed. The code:</p> <pre><code>&lt;?php echo "&lt;form method= \"post\" name=\"formcombo\" action=''&gt;"; e...
php javascript
[2, 3]
1,288,914
1,288,915
jquery.blur() NOT in alert()
<pre><code>$("#htxtEmoney, #htxtPoint").keypress(function(e){ var evt = window.event ? window.event : e; //for compatibility var keyCode = evt.keyCode ? evt.keyCode : e.which; if (keyCode == 13 || keyCode == 27 || keyCode == 8) return ; // esc, enter if (48 &lt;= keyCode &amp;&amp; keyCode &lt;= 57) ...
javascript jquery
[3, 5]
4,909,286
4,909,287
Developing page that request basic authentication
<p>I'm beginner to asp.net and have been asked to develop a page that request a basic authentication. when the user click on the link, log in screen (dialog) will pop-up. after the user filling the user name and the password, the requested http header will be shown with the encrypted user name and password.</p> <p>I t...
c# asp.net
[0, 9]
5,249,875
5,249,876
ASP.NET javascript embed in template column
<p>I am developing a web page in which a rad grid displays the list of exams. I included a template column which shows count down timer when the exam is going to expire.</p> <p>Code is as given below:</p> <pre><code> &lt;telerik:RadGrid ID="radGrid" runat="server" AutoGenerateColumns="false"&gt; &lt;MasterTab...
asp.net javascript
[9, 3]
2,335,732
2,335,733
How to attach class onClick event using JavaScript?
<p>I have a full AJAX page with elements that act like buttons (with events like <code>onclick="$('#workcont').load('pages/mypage.html #m3-to-12');"</code>). The elements being referenced are <code>&lt;li&gt;</code> and <code>&lt;tr&gt;</code> (in a table). </p> <p>How do I attach event handlers to add the class <code...
javascript jquery
[3, 5]
3,715,745
3,715,746
Confine validations to controls in gridview while updating(using command field edit,update,cancel)
<p>I am able to provide validations for the controls in grid view but those validations are also applied to the controls in the form.</p> <p>My question is how can those validations can be confined to controls in gridview only? </p> <p>i am using inbuilt commandfield (edit,update,cancel) as edit button. when i set pr...
javascript jquery asp.net
[3, 5, 9]
4,817,669
4,817,670
Understanding data passing using .on()
<p>I was reading</p> <pre><code>function myHandler(event) { alert(event.data.foo); } $("p").on("click", { foo: "bar" }, myHandler) </code></pre> <p>But I think I can do it by</p> <pre><code> function myHandler(a) { alert(a); } $("p").on("click", function() { myHandler('bar') }) </code></pre> <p>Why ...
javascript jquery
[3, 5]
1,313,370
1,313,371
JavaScript Variable Operators
<p>Are these possible in Javascript?</p> <p>I've got something like this:</p> <pre><code>var op1 = "&lt;"; var op2 = "&gt;"; if (x op1 xval &amp;&amp; y op2 yval) { console.log('yay'); } </code></pre> <p>Basically I need the user to input the operator, its coming from a select box. </p>
javascript jquery
[3, 5]
4,022,651
4,022,652
Unknown element in JQUery click
<p>I am having a Html generated using JQUery and its like </p> <pre><code>&lt;p class="fieldChoices title" style=""&gt; Choices: &lt;input id="Choice1" value="option1" maxlength="150"/&gt; &lt;div class="seperator"/&gt; &lt;p class="deleteChoice1 cutsom_button deleteField"&gt;&lt;/p&gt; &lt;div class="sepera...
javascript jquery
[3, 5]
572,239
572,240
prevent jquery validation submitting upon error
<p>when I use this in jquery it works as should however when live it is not and it is the exact same code as I copied and pasted.</p> <p>When live when i select yes for the radio button it asks me to select colour and shade as it should but then it submits when i click ok. If i select attendance1 yes and select the 2 ...
javascript jquery
[3, 5]
5,107,390
5,107,391
Why my dynamic form is not getting submitted?
<p>I am creating a dynamic form to submit with few input elements, but it does not send a request. I use <a href="http://www.fiddler2.com/fiddler2/" rel="nofollow">fiddler</a> to check</p> <p>Here is my code</p> <pre><code>var form_ref = document.createElement("form"); form_ref.id = "viewform"; form_ref.name = "viewf...
javascript jquery
[3, 5]
3,130,023
3,130,024
sort divs by the number, no randomize
<p>I found this great script: <a href="http://jsfiddle.net/yomoore/RJMhT/119/" rel="nofollow">jsfiddle</a></p> <p>Over here: <a href="http://stackoverflow.com/questions/4205166/showing-random-divs-using-jquery">Showing random divs using Jquery</a></p> <p>The problem is that on reload the divs are randomized. I need t...
javascript jquery
[3, 5]
209,608
209,609
Is it possible to Post Data from a Java application to a .php page?
<p>im trying to make a quick java app that posts data to a website just basic $_POST variables. Is it possible?</p> <p>Thanks.</p>
java php
[1, 2]
3,584,301
3,584,302
Client-side validation for radio buttons in php
<p>I'm trying to create a form with multiple radio buttons. I'm generating radio buttons using a for loop like so:</p> <pre><code>&lt;form name="myForm" method="POST" id="myForm" action="result.php" onsubmit=""&gt; &lt;?php for ($i = 1; $i &lt;= $row = mysqli_fetch_array($result); $i++) { ?&gt; &lt;input type="rad...
php javascript
[2, 3]
1,479,268
1,479,269
Refresh parent window when the pop-up window is closed
<p>Is there any way I can refresh the parent window when a popup window is closed without adding any javascript code to the popup window?</p> <p>I have a page parent.php on which users can click "open popup" to open a popup window. This popup window shows some flash content and its not possible for me to add something...
javascript jquery
[3, 5]
322,496
322,497
How to give a permision to the user to enter only number between 1 to 100 using jquery or javascript
<p>I need to restrict the user to enter only number between 1 - 100 suppose if he is entering 101 i should give a popup message says please enter any number between 1 - 100?</p> <p>Using jquery or javascript</p> <p>thansk</p>
javascript jquery
[3, 5]