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,042,145 | 4,042,146 | ASP.NET error: A namespace cannot directly contain members such as fields or methods | <p>I created a Web project in VS 2010 (selecting ASP.NET project) and I wrote following code</p>
<pre><code><% page language="c#" %>
<html>
<head>
<title>Example 1: Hello World</title>
</head>
<body bgcolor="white">
<h1>
<%
string strUsersBrowser = "";
strUsersBro... | c# asp.net | [0, 9] |
2,547,266 | 2,547,267 | How to replace and select word on click with jQuery | <p>I absolutely do not know Javascript and jQuery. Tell me, please, how to use jQuery to replace one word on the page to another when user click on it, and select it so user can copy it to clipboard.</p>
| javascript jquery | [3, 5] |
3,031,506 | 3,031,507 | Change TextBox TextMode with jQuery | <p>I was wondering if someone knew the best way to switch from using the </p>
<pre><code> myTextBox.TextMode = TextBoxMode.Password;
</code></pre>
<p>to</p>
<pre><code> myTextBox.TextMode = TextBoxMode.SingleLine;
</code></pre>
<p>using client code and jQuery. I will have to do it on focus, along with deleting ... | jquery asp.net | [5, 9] |
3,034,274 | 3,034,275 | Is it possible to loop through a textbox's contents? If not, what's the best strategy to read line-by-line? | <p>I am designing a crawler which will get certain content from a webpage (using either string manipulation or regex).</p>
<p>I'm able to get the contents of the webpage as a response stream (using the whole httpwebrequest thing), and then for testing/dev purposes, I write the stream content to a multi-line textbox in... | c# asp.net | [0, 9] |
2,033,544 | 2,033,545 | Iframe in the jquery UI dialog | <p>I have an iframe in the jquery UI dialog , setting its src at doument.ready event :</p>
<pre><code> $(document).ready(function() {
$("#iframe").attr("src", whatever);
$("#button").click(function() { $("#dialog").dialog(); });
});
<div id="dialog">
<iframe src="" id="iframe">&l... | javascript jquery | [3, 5] |
4,646 | 4,647 | Event keycode in javascript for galaxy tablet | <p>Any one aware of the event keycode of the key (to use in javascript) for the following.</p>
<p>Android devices --> key which minimizes the keyboard when the focus is on.</p>
<p>Generally, we can minimize the keyboard which is up (when the focus is on textbox) by pressing a key in android devices (which is generall... | javascript android | [3, 4] |
622,778 | 622,779 | Elegant jQuery replace on mutiple values | <p>Im using .replace() with jQuery to remove different strings from an img URL:</p>
<pre><code>src = src.replace("/_w", "");
src = src.replace("_jpg", "");
src = src.replace("_jpeg", "");
src = src.replace("_png", "");
src = src.replace("_gif", "");
</code></pre>
<p>As you can see i... | javascript jquery | [3, 5] |
5,551,168 | 5,551,169 | how to get usercontrol in javascript | <p>How can I get a handle on my user control in JavaScript?</p>
<pre><code><body>
<form id="form1" runat="server">
<div>
<uc1:WebUserControl ID="WebUserControl1" runat="server" Enabled="False" />
<input id="Button1" type="button" value="button" runat="server" onclick=... | javascript asp.net | [3, 9] |
5,940,137 | 5,940,138 | Put GridView in Edit Mode Programmatically with ASP MERMERSHIP | <p>I need Put GridView in Edit Mode Programmatically when editing ROLES in ASP MERMERSHIP.
Could you provide me some examples? I am not able to write the appropriate EVENTS to display the right EDIT TEMPLATE.</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
4,836,005 | 4,836,006 | Search Engine Optimization (SEO) & Friendly URLs using ASP.Net | <p>please tell me best to achieve Search Engine Optimization (SEO) & Friendly URLs using ASP.Net</p>
| c# asp.net | [0, 9] |
3,388,716 | 3,388,717 | Why can't a input tag be type submit? | <p>I am trying to do:</p>
<pre><code><input type="submit" runat="server" ... />
</code></pre>
<p>Error:</p>
<pre><code>The base class includes the field 'btnEdit', but its type (System.Web.UI.HtmlControls.HtmlInputImage) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlInputSubmit).
<... | c# asp.net | [0, 9] |
27,439 | 27,440 | Problem with the encoding of a web page | <p>I'm trying to get some information from a web... with the code above...</p>
<pre><code>URL url = new URL(webpage);
URLConnection connection;
connection = url.openConnection();
BufferedReader in;
InputStreamReader inputStreamReader;
inputStreamReader = new InputStreamReader(connection.getInputStream(), "iso-8859-1"... | java android | [1, 4] |
1,004,120 | 1,004,121 | PHP Variable to JQuery function? | <p>I need a relative path in this function:</p>
<pre><code> $(function() {
$("#searchbox").autocomplete({
minLength : 2,
source : function (request, response){
$.ajax({
url : "http://linux/project/ind... | php jquery | [2, 5] |
4,554,304 | 4,554,305 | Find a data in richtextBox, I have used the Rich Text format | <p>I am try find a data in <strong>richTextBox</strong> . I can try with the option of richTextBox1.Find("textBox1.text").I am new in programming . when the run this code one time find the data and can't a select whole page. I have try again and again but can't do this.
Once again i am telling what is my problem, my ... | c# asp.net | [0, 9] |
1,763,359 | 1,763,360 | asp.net,c#.net repeated fields | <p>I have a asp.net webpage <code>abc.aspx</code><br>
it contains </p>
<pre><code> <td class="style1">
<asp:TextBox ID="chqdt1" runat="server" Width="71px"></asp:TextBox>
<a href="javascript:OpenCalFuture('ctl00_ContentPlaceHolder1_chqdt1');">
<img ... | c# asp.net | [0, 9] |
2,212,440 | 2,212,441 | Declaring a Javascript variable into a PHP form | <p>Preapring for a Facebook competition while I have spare time, the Publish function with facebook has a once posted javascript function that you can define.</p>
<p>What I am looking to do is call a function to write a value unto a php form which will then be posted and submitting data into a database. I have tested ... | php javascript | [2, 3] |
4,982,746 | 4,982,747 | jquery/javascript post to new window when pressing a preview button | <p>I want to have a form with two buttons, submit & preview, the preview button should open a new window with the text from the input areas how do I make that happend?</p>
<pre><code><form method='post'>
//input
<input type='text' name='headline' id='headline' />
<textarea name='content' id='content... | javascript jquery | [3, 5] |
257,271 | 257,272 | Change DLL File Version of Website Application before precompiling | <p>After precompiled, my asp.net webiste application's bin folder contains the dlls with file version 0.0.0.0. How can I set a file version something like 2.1.1.0. </p>
<p>In 'Property Page' (by right click on solution) there is no option to set the file version. But in a Class library project I could set the file ver... | c# asp.net | [0, 9] |
1,034,965 | 1,034,966 | Escaping quotes in jquery | <p>I'm having a bit of a problem escaping quotes in the following example:</p>
<pre><code>var newId = "New Id number for this line";
$(id).html('<td><input type="text" id="my' + newId + '" onKeyUp="runFunction("#my' + newId + '");"></td>');
</code></pre>
<p>The issue is that when I look at the gene... | javascript jquery | [3, 5] |
1,597,961 | 1,597,962 | Why aren't my dynamically-added form inputs posting? | <p>I'm working on a form where I need to dynamically add inputs whenever the user clicks a "more widgets" button. There's a hidden div inside the form, and I append the inputs to it with jQuery, like this:</p>
<pre><code>$('div#newwidgetinputs').show().append(newInputs);
</code></pre>
<p>They show up, are properly na... | php jquery | [2, 5] |
3,433,166 | 3,433,167 | How to create 2d array from two 1d arrays | <p>I would like to ask you if there is any function in js/jquery that creates 2d array from two 1d arrays.<br>
I know that i can do it manually like:</p>
<pre><code> var output = new Array(table1.length);
for(var i=0; i<table1.length; i++)
{
output[i] = new Array(2)
output[i][0] = table... | javascript jquery | [3, 5] |
1,615,222 | 1,615,223 | Exception Driven Programming in Java | <p>I just finished reading <a href="http://www.codinghorror.com/blog/archives/001239.html">Exception Driven Programming</a> and I'm wondering about something like <a href="http://code.google.com/p/elmah/">ELMAH</a> for Java. Did you know it?</p>
<p>Interesting features:</p>
<ul>
<li>A web page to remotely view the
en... | c# java | [0, 1] |
1,607,619 | 1,607,620 | Getting access to standalone JVM / Java Access bridge | <p>I want to get access through the Java Access Bridge to an application that has its own JRE. JAB works fine for me with the "public" JRE (SE 7). But the target application has its own JRE (SE 6). Well neither Monkey nor Ferret display any information about the application. But I know that it is possible due to third ... | java c++ | [1, 6] |
3,444,525 | 3,444,526 | jQuery custom toggle function? | <p>I'm trying to make a custom jQuery toggle function. Right now, I have 2 separate functions, <code>lightsOn</code> and <code>lightsOff</code>. How can I combine these functions to make them toggle (so I can just link to one function)?</p>
<pre><code>function lightsOn(){
$('#dim').fadeOut(500,function() {
$("#dim... | javascript jquery | [3, 5] |
1,452,835 | 1,452,836 | SPLIT with \n Delimiter | <p>I need to split string with delimiter of <code>\n</code> when I use this code:</p>
<pre><code>String delimiter = "\n";
String[] temp;
temp = description2[position].split(delimiter);
for (int i = 0; i < temp.length; i++) {
holder.weeklyparty_text3.setSingleLine(false);
holder.weeklyparty_text3.setText(tem... | java android | [1, 4] |
2,026,366 | 2,026,367 | how to pass the strMessage (from codebehind to the script) to get the alert message | <p>how to pass the strMessage (from codebehind to the script) to get the alert message </p>
<p>i.e
if my strmessage from code behind is hi,</p>
<p>then i need</p>
<p>You Have Used already the message : hi</p>
<p>My code...</p>
<pre><code><script type="text/javascript">
var strFileName;
function al... | c# asp.net javascript | [0, 9, 3] |
1,998,173 | 1,998,174 | How can I have hover effect on DIV's using the DIV ID in javascript? | <p>I want to have a different hover effects on each div using the div id. Is it possible? I have been searching on google for a while now and all I see is hover effect using classname and tags. I want to do this using javascript or jquery. Any help is appreciated, Thanks!</p>
| javascript jquery | [3, 5] |
2,382,817 | 2,382,818 | EventObject is not defined when calling a class function out of mousemove | <p>I wrote a Object which "manages" a <div>-Element. I wanted it to do something on mousemove so I wrote this line in a function I call to create the content of this -Element:</p>
<pre><code>$('#' + this.slider_id).mousemove(this.mouseMoveHandler(e));
</code></pre>
<p>Later i defined a function which handles th... | javascript jquery | [3, 5] |
2,884,278 | 2,884,279 | Stop/break an SaxXMLparsing | <p>Im making an app that fetches some XML using SAXparser.
Im parsing the xml and if the xml does not have a specific node I have to start over the SAXparser with a different URL. </p>
<p>This means that when I'm in my XML handler inside startElement I have to break/stop it and do it again. How can I do this break/sto... | java android | [1, 4] |
3,129,663 | 3,129,664 | How can we get the background colour of a gradient image at particular point in Javascript? | <p>I have a gradient image and I want to get the background color at all positions where I move my mouse i.e. at a particular positions.</p>
<p>I can get the position of mouse so now I have to get the color at that position.</p>
<p>So please Guide me for this problem</p>
| javascript jquery | [3, 5] |
1,139,371 | 1,139,372 | Get selected time in javascript control | <p>I'm using the following JavaScript Control:</p>
<p><a href="http://www.ama3.com/anytime/" rel="nofollow">http://www.ama3.com/anytime/</a></p>
<p>How do I get the selected date in the control? So I can pass it to a postback page?
I tried finding it, but I'm just not very good at JavaScript :(</p>
<p>Which function... | javascript asp.net | [3, 9] |
536,383 | 536,384 | Jquery Collapsible panel - post back issue | <p>I need some modification in the script but could not do it as i am not so friendly with jquery</p>
<p>When the page postback i want to maintain the state of the panels. Right now if i refresh the page all the panels are collapsed,</p>
<p>i am using the below code </p>
<pre><code>$(document).ready(function() {
... | jquery asp.net | [5, 9] |
1,238,260 | 1,238,261 | Javascript slider not sliding, how to tell if there is a JS conflict? | <p>I have an existing website that the image slider no longer performs its slideshow function or slide arrow no longer advance the slideshow. I'm assuming another script is causing this one to malfunction. Can anyone tell me how or take a look and tell me where the problem is from a browser by chance?</p>
<p>URL: <... | php javascript jquery | [2, 3, 5] |
5,144,742 | 5,144,743 | rename xml rootnode using c# | <p>I am using the below code to change the root node name. But its not working for me. Please help me to do this. My partial code is given below.</p>
<pre><code>XmlNode PackageListNode = hst_doc.SelectSingleNode("NewDataSet");
XmlNodeList PackageNodeList = PackageListNode.SelectNodes("Table5");
... | c# asp.net | [0, 9] |
5,080,160 | 5,080,161 | Jquery post with umlauts | <p>I read about the special characters and umlauts in javascript is a bit tricky and I couldn't find the right answer for my problem. </p>
<p>For example:</p>
<pre><code> $.post('test.php','club=Fc Köln',
function(response){
/*--- do something from database... | php javascript jquery | [2, 3, 5] |
3,562,881 | 3,562,882 | Textarea - new lines to br tags and then special characters | <p>I have a text area with the following id: <code>#openingHours</code></p>
<p>The text area contains information, for example:</p>
<pre><code><textarea id="openingHours">
Mon-Fri 8am - 6pm
Sat-Sun 9am - 3pm
</textarea>
</code></pre>
<p>I want to get the value of the textarea and replace new line... | javascript jquery | [3, 5] |
2,358,053 | 2,358,054 | android change selected tab background color | <p>I came from objective-c and I am an Android newbie. I am using following method that intends to change tabColor for index 0. But I would like to change default grey tab when selected. Thank you.</p>
<pre><code>mTabHost.getTabWidget().getChildAt(0).setBackgroundColor(Color.CYAN);
</code></pre>
| java android | [1, 4] |
5,276,021 | 5,276,022 | Jquery tablesorter plugin not sorting correct | <p>I have some columns with the format:</p>
<pre><code><td>148 kr. </td>
</code></pre>
<p>The tablesorter plugin does not sort them correct. It is like random.</p>
<p>I also have columns like this one:</p>
<pre><code><td>148 kr. <br>(Oprettelse 49 kr.)</td>
</code></pre>
<p>Were I wan... | javascript jquery | [3, 5] |
114,336 | 114,337 | Are there any broadcast receivers for my Intent? | <p>I have developed application which need to use any PDF-Viewer. How can I programatically check the existence of application which are able to respond to my Intent?</p>
| java android | [1, 4] |
1,959,083 | 1,959,084 | Disable a form and all contained elements until an ajax query completes (or another solution to prevent multiple remote requests) | <p>I have a search form with inputs and selects, and when any input/select is changed i run some js and then make an ajax query with jquery. I want to stop the user from making further changes to the form while the request is in progress, as at the moment they can initiate several remote searches at once, effectively ... | javascript jquery | [3, 5] |
5,516,399 | 5,516,400 | Javascript: Timed href change | <p>Having a slight Javascript issue at the moment, I am hoping to have the below image have a variable HREF which is triggered by a time change. </p>
<p>At the moment it is triggering to some extent but then getting stuck on one of the URLs. It is also affecting an image which is overlaid on top of this one. Which isn... | javascript jquery | [3, 5] |
5,909,357 | 5,909,358 | How can I take contents of one element and add to another when they both have an id ending in the same two or three digit number? | <p>I have this code:</p>
<pre><code>$('.update-title')
.change(function () {
$(this).prop('title', $('option:selected', this).prop('title'));
});
</code></pre>
<p>and this HTML:</p>
<pre><code><select id="modal_TempRowKey_14" class="update-grid update-title">
...
...
</select>
<input ... | javascript jquery | [3, 5] |
5,593,292 | 5,593,293 | How to change javascript for loop criteria? Newbie question | <p>Javascript newbie here, just trying to tweak this bit of code. It checks for all HTML elements with a title attribute and adds the class 'tooltipParent'.</p>
<p>I'd like it to only add the class to elements with a title attribute AND the class 'tooltip'. I think I need to add something to the <em>for</em> loop to c... | javascript jquery | [3, 5] |
1,136,462 | 1,136,463 | Building a file cache | <p>I am looking for any information regarding the design and performance of a file cache. This is not for a website.</p>
<p>I'm working on a program that I may, potentially, want to maintain a small file cache to help speed up things (since it will be running on a mechanical disk, it may be possible to further increas... | c# c++ | [0, 6] |
4,740,758 | 4,740,759 | execute javascript method after completing code behind method? | <p>I want execute below callback() method after completion of <code>document.getElementById('btnDownload').click();</code> method . Now <code>callback()</code>executing immediatly. I want wait "Click()" process done then Execute <code>callback();</code> method.</p>
<pre><code>function LoadPopup() {
// find t... | asp.net javascript jquery | [9, 3, 5] |
3,989,196 | 3,989,197 | How to select multiple files with a java plugin and then upload with PHP? | <p>I am looking a easy way for the user to upload multiple images to the website. The idea I have on mind is like the old Facebook service that, I think, they used Java. You click to add images and popups with a your system files and folders where you can select with checkboxes more than one image, only one, etc.</p>
... | java php | [1, 2] |
3,900,826 | 3,900,827 | posting a parameter to a jquery dialog box | <p>i have a small problem
well i'm using a jquery dialog box, and i want to post a parameter to this dialog box</p>
<p>this is how i'm using it :</p>
<pre><code>$(document).ready(function() {
$("#dialogShare").dialog({
resizable: true,
width:400,
mod... | php jquery | [2, 5] |
6,000,105 | 6,000,106 | attaching a script dynamically using jQuery | <p>I have a problem which have been troubling me for the last few days. I have to implement tracking to my website simply by adding a script tag as shown below.</p>
<pre><code><script src="domain">
</code></pre>
<p>However I need to attach the script tag once a javascript event is fired. I made some research an... | javascript jquery | [3, 5] |
3,416,323 | 3,416,324 | Merging two datasets which have 1 column in common | <p>I have a dataset dsvalue that has columns Id and views. An other dataset has quite a number of columns including Id. So for each id in dataset ds, i should add a new column "Views" and merge it with views from dsvalue.</p>
<p>How is it possible. Thanks in advance!!</p>
| c# asp.net | [0, 9] |
1,008,165 | 1,008,166 | How to publish my c++ program to my android? | <p>I am new at this. I wrote a simple c++ program in eclipse. I was wondering how to get this app to run on my phone?</p>
| android c++ | [4, 6] |
1,794,711 | 1,794,712 | Is declaring a local array based on function arguments legal in c++ | <p>I read from a book saying that the following c++ code should not compile:</p>
<pre><code> void f(int n, int m){
int a[n] , b[n][m];
}
</code></pre>
<p>because the size of the arrays are not determined at compile time.</p>
<p>But I tried it out and found no matter the function is a global one or a member f... | java c++ | [1, 6] |
5,900,914 | 5,900,915 | pause a runnable thread and wait for user input | <p>Lets say I have to copy a bunch of files from one location to another. This I will do in an AsyncTask so I can easily display a progressBar while the operation is happening. </p>
<p>But lets say one fo the files being copied already exists in the new location, can then pause the asynctask and display an alert dialo... | java android | [1, 4] |
2,261,042 | 2,261,043 | Radio buttons not working when binded with DataList control | <p>When i tries to bind a radio button in a datalist it becomes multiselect as its name property becomes different even when i used GroupName to be same.</p>
<p>How can i make it act as radio button only.</p>
<pre><code> <asp:DataList ID="dlRoomNo" runat="server" RepeatColumns="4">
<ItemTemplate>... | c# javascript asp.net | [0, 3, 9] |
5,552,622 | 5,552,623 | How to position an element so that it does not flow off the visible screen | <p>I am creating pseudo-tooltips on a page that has a lot of "a" and "span" elements that have these tips associated with them. Everything in the creation of the element is fine, and it displays fine.</p>
<p>However, since this is a page with a lot of data, as you get towards the bottom of the visual area the tooltips... | javascript jquery | [3, 5] |
1,275,108 | 1,275,109 | Restrict dragging of div based on css class | <p>I use the below code to arrange my divs : </p>
<pre><code>$( ".myDivs" ).sortable({
connectWith: [".myDivs"]
});
</code></pre>
<p>Is it possible to amend this code so as to exclude divs that can be sorted(moved) which contain a particualar css value : </p>
<pre><code><div class="myDivs excludeThisCss">&... | javascript jquery | [3, 5] |
1,003,706 | 1,003,707 | Initiate POST Request, Perform Action, Then Complete Post request - how? | <p>When a user clicks a submit button I want the form to be submitted. However, just before this happens, I want a window to pop open and for them to fill in some data. Once they do this and they close that child window, I want the POST request to be made.</p>
<p>Is this <strong>possible</strong>, if so <strong>how</s... | php javascript | [2, 3] |
1,240,066 | 1,240,067 | Visibility into HttpURLConnection pooling? | <p>I have been experimenting with <a href="http://developer.android.com/reference/java/net/HttpURLConnection.html" rel="nofollow">HttpURLConnection</a> recently and am impressed with the fact that different instances of HttpURLConnection share connections from a common pool. (verified using packet capture)</p>
<p>My q... | java android | [1, 4] |
5,283,730 | 5,283,731 | Onchange Event in JavaScript or Jquery | <p>Please help me. I need to change a textbox value when i give value in another textbox. see i have three text box first one is Qty another Amount and third will be a Total Amount.
here i will give a value for Qty and amount. Now third textbox i mean Total amount will be appear automatically. </p>
<p>Please help me..... | javascript jquery | [3, 5] |
3,542,441 | 3,542,442 | jQuery targeting this > a where a is not the subject | <p>I have batted together a quick script for changing colours on hover as follows however, I need to be able to target <code>$(this a).blah()</code> is it possible to do that?</p>
<p>Using <code>'#nav ul li ul li a'</code> targets the entire <code>ul a</code> if that makes sense</p>
<p>Code: </p>
<pre><code><scri... | javascript jquery | [3, 5] |
2,330,735 | 2,330,736 | Setup a global loading animation istead on every div. Javascript - Jquery | <p>How can I setup a global loading instead on every div? The loading pic appears until all pages are loaded.</p>
<pre><code> $(document).ready(function() {
$('#termid').change(function() {
var val = $(this).val();
$('#firstresult').empty().addClass('loading').load(val + '.php', function(){$('#firstresul... | javascript jquery | [3, 5] |
5,087,588 | 5,087,589 | repeating data in ReportViewer | <p>I have assigned a dataTable to report as below, but I am getting only the first row of data in the report, not all of the rows. How can I repeat the results for all rows of the datatable I am assigning?</p>
<pre><code><rsweb:ReportViewer ID="ReportViewer1" runat="server" Height="1000px"
... | c# asp.net | [0, 9] |
4,365,694 | 4,365,695 | Website upload error | <p>Hi when i upload my website i get the following error</p>
<blockquote>
<blockquote>
<p>Server Error in '/' Application.</p>
</blockquote>
<p>Runtime Error</p>
<p>Description: An application error
occurred on the server. The current
custom error settings for this
application prevent the detai... | c# asp.net | [0, 9] |
4,835,920 | 4,835,921 | How can I check if the cursor is hovering on an element using JQuery | <p>It possible to check if the cursor is hovering on an element.</p>
<p>Something like</p>
<pre><code> $("#divId").is("hover");
</code></pre>
<p>NOTE: I just want to check not set event.</p>
| javascript jquery | [3, 5] |
4,598,679 | 4,598,680 | Mailto tag puts text into the "To" field of email instead of subject on mobile devices | <p>When I use my mobile applications mailto tag on my desktop everything works great but when I access my app on my 2.3 android phone the body of my email gets crammed into the "To" field. Is there any issues with mobile browsers and the mailto tag? Am I setting up the email incorrectly? I have made sure the email mess... | javascript android | [3, 4] |
3,070,918 | 3,070,919 | making a custom calendar like layout programicaly | <p>I am developing an app which basically should download a list of events from a website and then views them in a in a calendar like layout. I already covered the first part. But I don't have an idea how to make a layout which would be a grid (tume on one axis and date on second axis) and the events in form of listvie... | java android | [1, 4] |
5,942,510 | 5,942,511 | Comparing text from EditText with string from database | <p>This code should compare text entered into <strong>R.id.editUserName</strong> with <strong>R.string.DB_username</strong> and, if they match, log you in, else show a toast that they don't match.</p>
<pre><code>public void signIn(View view) {
EditText editUserName = (EditText)findViewById(R.id.editUserName);
Str... | java android | [1, 4] |
5,226,973 | 5,226,974 | Where can I find advanced jQuery/JavaScript resources/tutorials? | <p>I'm reading some tutorials now about jQuery.. function creating,plugin creation etc. but these tutorials are missing some basic explanations like they mention things like </p>
<p>function prototype, anonymous functions, umm putting (jQuery) after the }); .. and stuff like that .. is there a tutorial/website/book th... | javascript jquery | [3, 5] |
4,902,688 | 4,902,689 | List.Add() thread safety | <p>I understand that in general a List is not thread safe, however is there anything wrong with simply adding items into a list if the threads never perform any other operations on the list (such as traversing it)?</p>
<p>Example:</p>
<pre><code>List<object> list = new List<object>();
Parallel.ForEach(tra... | c# asp.net | [0, 9] |
3,381,306 | 3,381,307 | Enforcing case constraint on textbox | <p>I have a textbox with the case settings from the database. If the database setting is Upper Case then the textbox text should be converted to Upper Case and if the Setting is Proper Case then the textbox text should be converted to Proper Case. I have achieved this with the help of javascript. </p>
<p>However, I ha... | c# javascript jquery | [0, 3, 5] |
5,547,511 | 5,547,512 | jQuery extension (scope?) question | <p>I have some confusion over a jQuery extension not working as I'd expect. I have the following function defined:</p>
<pre><code>$.fn.poster = function() {
this.each(function() {
self = $(this);
self.click(function() {
/* does stuff */
$.post(url, data, function(d, t) { han... | javascript jquery | [3, 5] |
3,548,801 | 3,548,802 | Call a function only once | <p>I've 3 divs (<code>#Mask #Intro #Container</code>) so if you click on Mask, Intro gets hidden and Container appears.
The problem is that I just want to load this only one time, not every time I refresh the page or anytime I click on the menu or a link, etc.</p>
<p>How can I do this?</p>
<p>This is the script I'm u... | javascript jquery | [3, 5] |
5,547,272 | 5,547,273 | object literal not defined unless wrapped in jQuery onready; need ideas for debugging | <p>Adopted some javascript code that I'm rearranging into smaller files to make it more managable; I'm never been a full-time javascript engineer but have worked with it for awhile but don't feel super comfortable with it. </p>
<p>I have an object literal that handles most of our controller level activities for our si... | javascript jquery | [3, 5] |
1,318,953 | 1,318,954 | How do I pause a windows.setInterval in javascript? | <p>I have a javascript function that is called every 2000ms. I want to pause this so I can have the user do other things on the page without it being called again. Is this possible? Here is the function that gets called every 2000ms:</p>
<pre><code>window.setInterval(function getScreen (sid) {
if (window.XM... | javascript jquery | [3, 5] |
2,945,438 | 2,945,439 | jQuery UI confirm dialog doesn't return true/false | <pre><code> $(function ()
{
$("#dialog-confirm").dialog(
{
autoOpen: false,
resizable: false,
height: 240,
modal: true,
buttons: {
"Delete": function ()
{
$(this).dialog("close");
return tr... | javascript jquery asp.net | [3, 5, 9] |
2,441,890 | 2,441,891 | Failing to set multiple attributes using .attr() | <p>how can I set the <code>.attr()</code> of my <code>iframe</code> by using the variable <code>attrs</code> made below ?</p>
<pre><code>iosocket.on('content', function (object) {
var attrs = '';
for (var key in object) {
attrs = attrs.concat(",'" + key + "':'" + object[key] + "'");
}
attrs = '... | javascript jquery | [3, 5] |
5,862,053 | 5,862,054 | 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] |
570,410 | 570,411 | how to convert datetime to a particular format | <pre><code>private void buildGrid()
{
this.currentActivities = new XSPIncidentActivityModel.XSPIncidentActivityEntities(BuildEntityConnectionString("XSMDSN")).XSP_IncidentActivity.Where(ia => ia.IncidentID == this.IncidentID).OrderBy(ia=>ia.CompletionDate).ToList();
foreach (XSPIncidentActivityModel.XSP_... | c# asp.net | [0, 9] |
4,612,921 | 4,612,922 | Move text display area from one place to another | <p>Imagine I have a html page which has a 2x2 matrix (4 quadrants) and in each quadrant I can have a text display listing. People can just click on + button on any quadrant and add text there. Once text has been added, it will be displayed in those quadrants. </p>
<p>My question is:</p>
<p>How do I enable that a text... | php javascript | [2, 3] |
606,623 | 606,624 | define a web request for the specified URL | <p>what is the best way to validate a valid url and through error message?</p>
<p>i am using something like this:</p>
<pre><code> HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
</code></pre>
<p>i am doing try and catch to catch the error message</p>
<p>is that enough or can be do better then that?</p>... | c# asp.net | [0, 9] |
4,724,173 | 4,724,174 | filling background color in a cicle with effects from bottom to top | <p>I have a 4x4 matrix circles, which created by using canvas. I want to fill background color for every circles. Each circle color filling should be from bottom to top. is it possible with canvas?If i am using div instead of canvas how can i fill back ground color for each div with effects bottom top?</p>
| javascript jquery | [3, 5] |
432,497 | 432,498 | How do I identify which element (or elements) exist at a specific position? | <p>Given the vast number of threads/searches that relate to how to obtain coordinates of an element, I'm having a tough time trying to figure out the opposite - how to get the element (or elements) at a specific x y coordinate. Any suggetions? </p>
| javascript jquery | [3, 5] |
298,052 | 298,053 | jQuery - how to hide a DIV element only when clicking outside of it | <p>I have a <code>DIV</code> element that appears when a certain action is performed. For the sake of simplicity, I wrote a very simple routine that mimics the issue I'm running into. The problem I am facing, however, is that when you click inside the <code>DIV</code> element (and outside the <code>textarea</code>), ... | javascript jquery | [3, 5] |
4,758,554 | 4,758,555 | How to prevent ASP:Button from posting back from a jQuery click handler | <p>I have an <code>ASP:Button</code> on a page. It renders as HTML like so:</p>
<pre><code><input type="submit" name="myButton" value="Do something"
onclick="javascript:WebForm_DoPostBackWithOptions(
new WebForm_PostBackOptions('myButton', '', true, '', '', false, false))"
id="myButton" />
</cod... | javascript jquery asp.net | [3, 5, 9] |
3,620,080 | 3,620,081 | Android: How to get or read XML from URL to String | <p>how to read XML and then convert/transform it to variable String, I have try with Jsop library, but not success, with JSoup I get html format.</p>
<p>I want to read link in below to String:
<a href="http://bowingdown.wordpress.com/feed/" rel="nofollow">http://bowingdown.wordpress.com/feed/</a></p>
<p>And then put ... | java android | [1, 4] |
2,670,405 | 2,670,406 | Jquery/JS scoping | <p>This may be pretty simple but it's stumping me. I'm trying to return a variable in javascript to another variable outside of the function's scope. For some reason, the assignment isn't occurring. Here's my code:</p>
<pre><code>var time = Math.round(((new Date()).getTime())/1000);
// first call to get data
var powe... | javascript jquery | [3, 5] |
2,625,275 | 2,625,276 | Can I call OnCommand programmatically? | <p>I have in the master page an overridden method for <code>OnCommand</code> method.</p>
<p>Can I call it programmatically through any page uses the master page?</p>
<p>I mean something like the following:</p>
<pre><code>CallOnCommand("CommandName", "CommandArg");
</code></pre>
| c# asp.net | [0, 9] |
2,548,008 | 2,548,009 | Password manager-auto id and password in java | <p>HI i am developing password manager application in android......How can i generate auto user id and password for particular websites account in android for password manger application? IN .details....
first i created database which is contain id,websites names,user id and password
so when i enter websites names ... | java android | [1, 4] |
2,821,955 | 2,821,956 | How to make a link out of text on the fly? -- JQuery beginner | <p>I have a bunch of these on a page:</p>
<pre><code><div class="item" id="555">
<div class="wrapper>
<p>Make Link One</p>
</div>
<p class="action">Make Link Two</p>
</div>
</code></pre>
<p>How can I dynamically make the 2 texts links based on the id 555? ie. ... | javascript jquery | [3, 5] |
2,016,594 | 2,016,595 | How to clear the gesture in android? | <p>I have a gestureview and i can draw anything in it, but when i want to put another drawing I need to clear the gesture on that activity. I used a clear button, but I cant figure out the exact method to do it.</p>
| java android | [1, 4] |
2,977,047 | 2,977,048 | Check if/time Image loads ASP.net Web Application | <p>Ive looked around and havent seen anything on what I can do for my problem, so maybe someone here can help me. Basically I have an image (http://mysite.com/Sites/P/PA/25?encoding=UTF-8&b=100 note there is no file extension as this served through a script) and I want to check to see if this image returns an Image... | c# asp.net | [0, 9] |
188,820 | 188,821 | Insert a divider | <p>Hello friends I wish to insert a divider into my String after <code>15-9-2012 15-10-2012</code>
Example:- <code>15-9-2012@15-10-2012</code></p>
<p>Guys I am looking for generic method to insert @ symbol when space is preceded and followed by numbers</p>
| java android | [1, 4] |
1,003,989 | 1,003,990 | How to set drop down list option up to specific value | <p>If I have valvo that obtain from database, How can I set volvo option status into active(checked) by using JQuery?</p>
<pre><code><select name="car">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</op... | javascript jquery | [3, 5] |
1,448,568 | 1,448,569 | uncheck a checked checkbox with jquery in asp.net | <p>I have several checkboxes inside an UpdatePanel of asp.net</p>
<p>Let's say, I have 3 checkboxes in that panel. Each time, one checkbox is checked, the previous checked checkbox will be unchecked. </p>
<p>I have tried like this:</p>
<pre><code><asp:CheckBox ID="CheckBoxExport1" CssClass="checkboxSingle" /> ... | jquery asp.net | [5, 9] |
2,405,338 | 2,405,339 | Session and Thread in ASP.NET | <p>I have a ASP.NET website where a thread is responible for doing some code retrived from a database queue.</p>
<p>Is it possible to get access to the Session or pass that as a parameter ?</p>
<p>My current code looks a follows:</p>
<pre><code>MediaJob nextJob = GetNextJobFromDB();
CreateMedia media = new CreateMe... | c# asp.net | [0, 9] |
2,964,133 | 2,964,134 | Dynamic javascript using JQuery? | <p>My code is as follows:</p>
<pre><code><script>
$(document).ready(function() {
var tagCounter=0;
$("#tag-add-button").click(function () {
var text = $("#tagadd").val();
$("#set-tags").append("<input type='text' id='tag"+tagCounter+"' READONLY>");
$("#tag"+tagCounter).val(te... | javascript jquery | [3, 5] |
3,158,395 | 3,158,396 | find('a,b') is slower than find('a')+find('b'), why? | <p><a href="http://jsperf.com/find-a-b-vs-find-a-find-b" rel="nofollow">jsperf's link</a></p>
<p>I'm not a jQuery expert(not even a good user), i haven't studied the whole source code of it (only a little part which can't help me solve this problem).</p>
<p>Can somebody explain this for me?</p>
| javascript jquery | [3, 5] |
3,793,102 | 3,793,103 | Issue with Jquery calendar when going live | <p>Hi all i have developed a calendar from here <a href="http://keith-wood.name/datepick.html" rel="nofollow">http://keith-wood.name/datepick.html</a> in my application which was working fine in locally. But when i am hosting the files i am unable to display the calendar can any one tell what might be the problem</p>
... | c# jquery asp.net | [0, 5, 9] |
3,159,344 | 3,159,345 | How can I automate chaining a series of ajax requests? | <p>Look at the lower part of my function: I want to repeat <code>info(url_part1 + next + url_part2, function(next) {</code> couple of times. Is there a smarter way than one presented below (maybe some kind of loop)? I've been thinking whole day and I can't devise anything.</p>
<pre><code> function info(link, callback... | javascript jquery | [3, 5] |
4,968,403 | 4,968,404 | Need a simple way to repeatedly poll a file using javascript | <p>Hopefully the below is close, but I feel I'm doing the first part wrong.<br /></p>
<hr />
<p>Ideal outcome is status-remote.php to be polled every 2 seconds, while not being cached (hence the random nocache variable). </p>
<p>If it's relevant, the php file has two variables the status of which determines the visi... | php javascript | [2, 3] |
5,151,689 | 5,151,690 | take screen shots on android 4.0 using pc or on rooted devices | <p>Is there a library to take screen shots for the current screen on android 4.0, even if it uses pc access?</p>
| java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.