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 |
|---|---|---|---|---|---|
3,279,441 | 3,279,442 | events not firing for "input" in chrome jquery | <p>I can't get any key events to fire on an input element with jquery. Given the following code:</p>
<pre><code><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script type="text/javascript" src="./js/jquery-1.5.1.min.js"></script>
<scr... | javascript jquery | [3, 5] |
4,525,284 | 4,525,285 | GZIP in Android | <p>i just wanted to ask about sending gzip for post requests using HttpClient in Android?</p>
<p>where to get that OutputStream to be passed in the GZIPOutputstream?</p>
<p>any snippets?</p>
| java android | [1, 4] |
5,135,976 | 5,135,977 | Find other checkbox | <p>Please see coments in js code.</p>
<p>I have two checkboxes</p>
<pre><code><input type="checkbox" name="first" id="first" />
<input type="checkbox" name="second" id="second" />
</code></pre>
<p>Here is my javascript</p>
<pre><code>$(function() {
$('input[type=checkbox]').click(function() {
/*... | javascript jquery | [3, 5] |
4,796,088 | 4,796,089 | How do I load a dropdown list in ASP.NET and C#? | <p>How do I load a dropdown list in asp.net and c#?</p>
| c# asp.net | [0, 9] |
1,658,411 | 1,658,412 | Javascript only works in chrome and FireFox not IE | <p>I have been stumped by IE9 bugs lately. I have this function </p>
<pre><code> //return value in the admin/user select in url to get result via $_GET when page reloads
function toggleView() {
//parse url to remove all parameters other than ghost_id
var url = window.location.href.split(... | php javascript jquery | [2, 3, 5] |
5,169,086 | 5,169,087 | scrolling issue jcover flip | <p>I am using jcover flip on my facebook application. On dragging the scroll bar towards the right first it scrolls back few images and then goes scrolls to right on scroll, due to which few images on extreme right do not get displayed.</p>
<pre><code><script>
jQuery( document ).ready( function(){
jQuery( '#... | php javascript jquery | [2, 3, 5] |
3,263,306 | 3,263,307 | Updating Excel file | <p>How can I add new values to an uploaded <code>application/vnd.ms-excel</code> file in C#?
Can anybody help?</p>
| c# asp.net | [0, 9] |
2,050,702 | 2,050,703 | Fastest jQuery autoellipsis plugin? | <p>I'm looking for a jQuery autoellipsis plugin. (autoellipsis plugins will add <code>...</code> at the end of a multiline text.)</p>
<p>I know these plugins: <a href="http://pvdspek.github.com/jquery.autoellipsis/" rel="nofollow">autoellipsis</a> and <a href="http://dotdotdot.frebsite.nl/" rel="nofollow">dotdotdot</a... | javascript jquery | [3, 5] |
4,646,458 | 4,646,459 | Is event.currentTarget always equal to $(this) in jQuery? | <p>Is this phrase always true?</p>
<pre><code>$("p").click(function(event) {
alert( event.currentTarget === this );
});
</code></pre>
<p>Is one method preferred over the other? I like to use <code>$(this)</code> instead of <code>event.currentTarget</code> but can one do better in some conditions? Which is bette... | javascript jquery | [3, 5] |
2,344,507 | 2,344,508 | jQuery addClass onClick | <p>The setting is easy; I want to be able to add a class to (in this case) a button when onClick-event is fired. My problem is that I haven't found a way to pass the button itself as the parameter to the function. I'd like to do something like:</p>
<pre><code><asp:Button ID="Button" runat="server" onclick="addClass... | javascript asp.net jquery | [3, 9, 5] |
5,686,326 | 5,686,327 | Removing elements from array dynamically | <p>So I've learnt how to add elements to an array dynamically - how about removing them?</p>
<p><strong>jQuery</strong></p>
<pre><code>$(document).on('change blur', '.roomFac', function () {
var park = $("#park2").val();
var lecturestyle = $("#lecture_style2").val();
var roomstructure = $("#ro... | php jquery | [2, 5] |
1,764,643 | 1,764,644 | How to clone element with new id? | <p>I have some elements on the page. Here is example of one element:</p>
<pre><code><div id="119" class="message">
<div class="messageAuthor">iggy</div>
<div class="messageBody messageMessage">hello</div>
<div class="messageDate messageCreate_date">12:13</div>
</div>
</c... | javascript jquery | [3, 5] |
1,149,332 | 1,149,333 | Slow append with li, for loop with ajax call after makes it slow? | <p>For loop with ajax call after, slow for loop?</p>
<pre><code> for (var x = this.from; x < this.emax; x++) { this.list.append('<li></li>'); }
jQuery.ajax({
.....
</code></pre>
<p>Some how, it will start the ajax request at the same time as the for loop. So Chrome
chokes a second. I dont want t... | javascript jquery | [3, 5] |
5,341,199 | 5,341,200 | Javascript for showing image on mouseover | <p>Please see this <a href="http://www.fotolia.com" rel="nofollow">link</a>.</p>
<p>How images are showing large on mouseover according to the position of mouse and screen scrolling?</p>
<p>Can any one provide the same script for this purpose.</p>
<p>Thanx in advance</p>
| javascript jquery | [3, 5] |
3,738,554 | 3,738,555 | Jquery validation of input array elements manually | <pre><code><input type="text" name="member_name[]" size="13" value="">
<input type="text" name="member_name[]" size="13" value="">
<input type="text" name="member_name[]" size="13" value="">
<input type="text" name="member_name[]" size="13" value="">
</code></pre>
<p>How do i validate these 4... | javascript jquery | [3, 5] |
992,229 | 992,230 | Order of Postback event handler and Validate method of all validator controls | <p>I'm learning asp.net page life cycle.
I find an article on MSDN
<a href="http://msdn.microsoft.com/en-us/library/ms178472.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms178472.aspx</a>
It says that </p>
<blockquote>
<p>If the request is a postback, control event handlers are called. After that, t... | c# asp.net | [0, 9] |
4,911,746 | 4,911,747 | How to locate a file on multiple directories using C# | <p>I am searching for a file say "abc.txt" on multiple directories. These directories are comma seperated values like </p>
<pre><code>string paths= 'C:/hello,D:/Hello';
</code></pre>
<p>How can I search for "abc.txt" using the above comma seperated directories?</p>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
3,134,048 | 3,134,049 | Append element problem | <p>I am creating some elements and appending it, and its working fine but when I want to call any function or want to call any jquery that not work, but when i put that elements directly instead of appending then it works properly. In all to say that appending element does not call any function or anything.</p>
<p>JQU... | javascript jquery | [3, 5] |
491,204 | 491,205 | Error while JDK version is changed | <p>I have created a project on jdk 1.6 and android Rev. 20 . Now I have installed 1.7 for few features, but it is not accepting. We have to import <code>sun.audio</code> package in java 1.7 which we intend to use in android. But it is giving me errors. Please help me out. Thanks in advance.</p>
| java android | [1, 4] |
762,645 | 762,646 | Button link to random div | <p>I am creating a photography course app in dreamweaver, and want users to be able to tap a button to randomly give them an assignment out of the numerous ones in the app.</p>
<p>All the various assignments are in separate div's, with separate div id's.
I've tried various javascript random link generators, but they d... | javascript jquery | [3, 5] |
2,636,583 | 2,636,584 | Why we use if, else if instead of multiple if block if the body is a return statement | <p>I am always in the habit of using if, else-if statement instead of multiple if statements. </p>
<p>Example:</p>
<pre><code>int val = -1;
if (a == b1) {
return c1;
} else if (a == b2) {
return c2;
} ...
...
} else {
return c11;
}
</code></pre>
<p>How does it compare to example 2:</p>
<pre><code>if (a == ... | java c++ | [1, 6] |
2,349,028 | 2,349,029 | Avoid popping blocking when calling window.open from .change() | <p>I have a select menu, for which I have the following code:</p>
<pre><code>$('#sister-site-menu').change(function(){
if ($(this).val()) {
window.open($(this).val(), '_blank');
}
});
</code></pre>
<p>This however causes the popup blocker to be invoked in Chrome. I'm sure I've seen sites do this before, any i... | javascript jquery | [3, 5] |
3,027,784 | 3,027,785 | On page load jquery | <p>I have a jQuery click event which runs when an element is clicked. Is it possible to get this to run once when the page is loaded?</p>
| javascript jquery | [3, 5] |
1,787,528 | 1,787,529 | How to call a function from Masterpage into new form in c# | <p>I've a Master Page which contains a <code>DropDownList</code>. I've a function for binding the list in the master and it works fine.</p>
<p>My problem is: How will I call that Master Page function from a form, which is not the child of the above master page</p>
| c# asp.net | [0, 9] |
3,513,855 | 3,513,856 | html pagedisplay in activity | <pre><code>Bundle bundle = this.getIntent().getExtras();
WebView detailsLink=(WebView)findViewById(R.id.web_view);
detailsLink.getSettings().setJavaScriptEnabled(true);
detailsLink.loadUrl(bundle.getString("keyLink"));
</code></pre>
<p>This is code for displaying whole web page within Activity. But I want to display p... | java android | [1, 4] |
4,547,428 | 4,547,429 | jQuery AJAX callback | <p>I'm having a difficult time trying to get this javascript function to return false inside of a .post() function.</p>
<p>Is this even possible? or is there another way to do a simple ajax check to validate the voucher code is in the database.</p>
<pre><code>function check_options(){
var voucher_code ... | javascript jquery | [3, 5] |
1,592,687 | 1,592,688 | How can I write simple custom Android Handler class? | <p>It's interesting for me how it's possible to write simple Android Handler class using only pure java to send signals from one thread to another?</p>
<p>I saw the source code:
<a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.1_r2/android/os/Handler.java" rel="nofollow">... | java android | [1, 4] |
1,260,353 | 1,260,354 | Replay on BG Music | <p>I made a service that play background music, but when the music finished I want to replay it again. Which method can I use in my service?</p>
<pre><code>public class BackgroundSoundService extends Service {
private static final String TAG = null;
MediaPlayer player;
public IBinder onBind(Intent arg0) {
... | java android | [1, 4] |
5,802,357 | 5,802,358 | Submit method by enter key? | <p>I'd like to submit a method when the user hits the ENTER key inside a editText field.</p>
<pre><code><EditText android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:imeOptions="actionDone"
android:singleLine="true"
/>
</code></pre>
<p>Atm this results in going to the ... | java android | [1, 4] |
1,784,671 | 1,784,672 | How do I add a function to an element via jQuery? | <p>I want to do something like this:</p>
<pre><code>$('.dynamicHtmlForm').validate = function() {
return true;
}
$('.dynamicHtmlForm .saveButton').click(function() {
if (!$(this).closest('.dynamicHtmlForm').validate()) {
return false;
}
return true;
});
</code></pre>
<p>And then when I have a form of cl... | javascript jquery | [3, 5] |
240,867 | 240,868 | find HtmlInputCheckbox control in repeater? | <pre><code>protected void Button1_Click1(object sender, EventArgs e)
{
foreach (RepeaterItem contact in rptList.Items)
{
HtmlInputCheckBox cBox = contact.FindControl("chkteklif") as HtmlInputCheckBox;
if (contact is HtmlInputCheckBox)
{
string a = cBox.Value;
}
}
... | c# asp.net | [0, 9] |
276,571 | 276,572 | Mobile remote program | <p>I'm writing a mobile remote program that the mobile's touch screen will be the remoted computer mouse. I'm using android for mobile and C# for server side programming.</p>
<p>Question:</p>
<ul>
<li>How can I establish a data connection between a mobile phone and
computer that passes mouse position continuously wit... | c# java android | [0, 1, 4] |
5,484,803 | 5,484,804 | Javascript (using jQuery) in a large Project... organization, passing data, private method, etc | <p>I'm working on a large project that is organized like so:
Multiple javascript files are included as needed and most code is wrapped in anonymous functions...</p>
<pre><code>// wutang.js
//Included Files Go Here
// Public stuff
var MethodMan;
// Private stuff
(function() {
var someVar1;
MethodMan = function(){.... | javascript jquery | [3, 5] |
4,303,959 | 4,303,960 | How to renable document.write after jQuery ajax has completed | <p>I have to grab a snippet of JS that has document.write in it - this causes the page to go blank once the document.write renders. I was able to work around this by redefining document.write and pass the response of the script to a function that I use to output the response from the getScript() jQuery function. I am h... | javascript jquery | [3, 5] |
2,706,974 | 2,706,975 | Adding days to a date - date getting converted to string | <p>So I'm trying to add a certain number of days to a date, and I'm getting a strange issue:</p>
<pre><code>var date = new Date();
var newdate = date.getDate() + $('#ddlDays option:selected').val();
date.setDate(newdate);
</code></pre>
<p>So if today is 09/29/2010, the Date is 29. But if a user selects "5" from ddl... | javascript jquery | [3, 5] |
4,066,067 | 4,066,068 | 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] |
350,955 | 350,956 | How do i get relative dimensions of scrollbale window viewport | <p>I am having a Tooltip (larger image view) that is being positioned via e.pageX e.pageY and i am trying to make sure it is not hidden below the current scrolled view port.</p>
<p>I have seen many sites have this
my code is something like this but i am missing something.</p>
<pre><code>var positionImg = function(e) ... | javascript jquery | [3, 5] |
4,897,244 | 4,897,245 | How to make fixed floating element stop at #footer? | <p>Below is the code I am using to fix a sidebar as the user scrolls. As of now, it overlaps with my footer. How can I make it stop at a certain point or when it hits the footer?</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
if ($('.pageheaderwrap').length) {
$(win... | javascript jquery | [3, 5] |
3,105,686 | 3,105,687 | jquery dynatree array function | <p>I have an array of functions and also I am using a dynatree plugin inside it.</p>
<p>Example:</p>
<pre><code>fn1: function(){
.....
}),
fn2: function(){
.....
}),
fn3: { param1: xValue, param2: yValue }
</code></pre>
<p>Now I would like to add a function in fn3 like,</p>
<pre><code>fn3: fn3a
//In fn3a
f... | javascript jquery | [3, 5] |
2,906,379 | 2,906,380 | search and count entries in a table jquery | <p>I have the following table:</p>
<pre><code><table>
<tr>
<th>Alarm</th>
</tr>
<tr>
<td>OK</td>
</tr>
<tr>
<td>Missing</td>
</tr>
<tr>
<td>OK</td>
</tr>... | javascript jquery | [3, 5] |
4,587,512 | 4,587,513 | Scan trough .txt file with multiple values on one line. Find right Value | <p>I got a .txt file wich i load into a string with Buffered string reader. The data in the String is in this format.</p>
<pre><code>20 000 5 000
50 000 6 000
60 000 7 000
80 000 8 000
90 000 9 000
</code></pre>
<p>I need to go trough these numbers and find the right one. I have a int variable with a number. Let... | java android | [1, 4] |
810,943 | 810,944 | android project not appear in file>new | <p>my O.S is windows 7 32 bit i installed java jdk 6 ,downloaded eclipse and install android SDK ,the problem is android project does not appear in file>new only appear android application project i tried a lot of versions but not worked , I need to know how can i start with application like in android project not what... | java android | [1, 4] |
2,505,292 | 2,505,293 | Javascript function help needed | <p>I'm trying to hide one div and show another, when a button is clicked. The button needs to change class after click.</p>
<p>I tried to change these this with <code>toggleClass</code> and <code>toggleSlide</code>, but it didn't work. Now I just try to show and hide divs onclick. It seems to work somehow, but <code>... | javascript jquery | [3, 5] |
4,297,624 | 4,297,625 | export into PDF everything in a panel content using C# | <p>I have a panel and inside the panel there is a gridview and charts(fusion-chart). What i am trying to do is to export everything in the panel as a image into PDF. So far, i am only able to export the gridview and the chart is not showing up at all. How can i export everything in the panel content as image into pd... | c# asp.net | [0, 9] |
5,213,980 | 5,213,981 | Detect a page submit in jQuery | <p>I am currently working with reading data from a USB card reader and it sends a page submit command along with the card track data.</p>
<p>Is there a way for me to detect a page submit command and can I programmatically disable the submit command?</p>
| asp.net javascript jquery | [9, 3, 5] |
4,471,541 | 4,471,542 | ProgressDialog working in thread on android | <p>I have a little problem, I hope U can help me;)</p>
<p>Trouble is, that ProgressDialog show only after loading run(), but I need to show it on start and showing it while loading some data. I put: "dialog = ProgressDialog.show(CategoriesListActivity.this,"Working...","Loading data", true);" in method run(), but the ... | java android | [1, 4] |
1,233,430 | 1,233,431 | Thumbnail preview of a url using php and javascript | <p>I have a need for getting preview a url over mouse hover, my application is built on php , js and jquery. Although I have an idea of to get to my requirements but am a little confused with the right approach, i checked all the posted question on here but most of them refer to some third party tools or installables. ... | php javascript jquery | [2, 3, 5] |
1,837,710 | 1,837,711 | Cycle fadeIn and fadeOut between 2 images | <p>I took a look at some answers already posted but didn't find the correct way to do this.<br>
I have 2 images in the same <code>div</code>, one is visible the other is set to <code>display:none;</code><br>
I want a non-ending loop between the 2 images, with the fade-out/fade-in effects, <strong>without any jQuery plu... | javascript jquery | [3, 5] |
4,882,181 | 4,882,182 | What's the easiest way to get a popup window in jQuery? | <p>I just need something simple: a clicked link that will open up a pop up box. </p>
| javascript jquery | [3, 5] |
242,688 | 242,689 | AsyncTask from Activity Class | <p>I am using this class to download txt file</p>
<pre><code>class RetreiveFeedTask extends AsyncTask<String, Void,String> {
@Override
protected ArrayList<Item> doInBackground(String... params) {
try{
URL url = new URL("myurl");
InputStream is = url.openStream();
Buffer... | java android | [1, 4] |
2,190,027 | 2,190,028 | how to conver date like 01 mar 2011 to only mar 2011 | <p>how to conver date like 01 mar 2011 to only mar 2011 in javascript or jquery</p>
| javascript jquery | [3, 5] |
4,894,348 | 4,894,349 | jquery fadein fadeout problem in firefox | <p>I want to initially hide .noteHover and then use a hover event that will fade this class in and then out very quickly. This seems to work fine in chrome but my problem is that in ff .noteHover remains as display:none which prevent the fadein fadeout effect, can anyone offer some advice to where im going wrong?</p>
... | javascript jquery | [3, 5] |
4,157,615 | 4,157,616 | how to change a price based on selections | <p>please someone help me. i have posted this 2 days ago on stack overflow but no one has answered. i am pulling my hair and cant figure out what to do. here is my original post.</p>
<p><a href="http://stackoverflow.com/questions/4533509/attempt-to-create-apple-like-shopping-cart-page-price-updates-based-on-customiza"... | php javascript jquery | [2, 3, 5] |
2,388,748 | 2,388,749 | Stop jQuery Mouseleave Event When Entering Another Specific Element | <p>I need to know how I can stop my mouseleave event from occuring when I slide my mouse over to a different element (link). How can I setup a condition that says to only do the mouseleave animation if I have not entered a specific element?</p>
<pre><code>$(activity_link).mouseenter(function() {
$(this).siblings(... | javascript jquery | [3, 5] |
1,904,331 | 1,904,332 | Problem in passing arrays from C# to C++ | <p>I have an application in which I need to pass an array from C# to a C++ DLL. What is the best method to do it? I did some search on Internet and figured out that I need to pass the arrays from C# using ref. The code for the same:</p>
<pre><code>status = IterateCL(ref input, ref output);
</code></pre>
<p>The input ... | c# c++ | [0, 6] |
854,226 | 854,227 | Adding Content During Runtime | <p>I've just started learning Android, and have been working on a simple application where the user has a simple conversation with the computer.</p>
<p>My question is, how can I set up the UI in a way that allows the input from the user to be displayed on the view, during runtime? As the input prompts increase, there ... | java android | [1, 4] |
51,661 | 51,662 | Problem with loop on IE8 | <p>Hi i have this javascript function</p>
<pre><code>function test(){
var count = 0;
var date1 = $('#alternatestartdate').val();
var date2 = $('#alternateenddate').val();
var startDate = new Date(date1);
var endDate = new Date(date2);
... | javascript jquery | [3, 5] |
5,660,034 | 5,660,035 | Stop propagation for a specific handler | <p>Let's say I have custom dropdown(). When the button is clicked I want to bring up the menu, and when the user clicks outside of the menu I want it to close. So I do something like this:</p>
<pre><code>$(myDropDown).mousedown(dropDownMouseDown);
$("html").mousedown(htmlMouseDown,myDropDown);
function dropDownMouseDo... | javascript jquery | [3, 5] |
3,534,920 | 3,534,921 | When starting from scratch: Javascript or JQuery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/668642/is-it-a-good-idea-to-learn-javascript-before-learning-jquery">Is it a good idea to learn JavaScript before learning jQuery?</a> </p>
</blockquote>
<p>I'm new to javascript in general. I can write basic f... | javascript jquery | [3, 5] |
2,035,648 | 2,035,649 | how to finish two or more activites created by parent activity in android | <p>i am creating an app in which Activity A creates Activity B and Activity A goes to Background and activity B in Foreground..</p>
<p>when back is pressed in activity B then Activity A comes to foreground and Activity B to background..
Now Activity A creates Activity C again Activity A in background and Activity C in... | java android | [1, 4] |
2,598,020 | 2,598,021 | How to find a asp control id using java script? | <p>I am using following code to find control id.</p>
<pre><code>alert(document.getElementById("<%# TextBox1.ClientId %>").value )
</code></pre>
<p>but this code is giving error "object required".
Please help me.</p>
| javascript asp.net | [3, 9] |
1,180,629 | 1,180,630 | How do I get the value of a select in code-behind? | <p>I am using ASP.NET and in my <code>.aspx</code> page I have the following code, and, based on the selection, I am displaying the appropriate <code>div</code>s. It's working great, as is, but the question is: <em>How do I get the value (whatever selected by user) on code-behind?</em></p>
<pre><code><select id="f... | jquery asp.net | [5, 9] |
3,368,354 | 3,368,355 | this find parent of another div and toggle its child using jQuery | <p>I've done some research and nothing seems to be working. Here is the HTML followed by the JavaScript I am putting together. What I am trying to do is set it up so that whenever dashboard_gear_options is clicked, it toggles the appropriate hidden options row. Each block of code exists multiple times at different l... | javascript jquery | [3, 5] |
5,833,655 | 5,833,656 | php server connection + jquery post | <p>I'm making an admin panel for a gameserver and I got a little problem. </p>
<p>I got a working connection and I'm getting the playerlist. Then I'm trying to kick / warn somebody with a jQuery POST. But with this post I need to make a new connection. </p>
<p><strong>Is there a way to keep only 1 connection alive an... | php jquery | [2, 5] |
4,549,212 | 4,549,213 | On IE cursor is comming always at start in textarea | <p>I am dealing with textarea, and on click of this I am calling one replace function which will remove some specified string in textarea, this is the basic operation.</p>
<p>Expected behavior after clicking on textarea</p>
<p>1) At first click :</p>
<ul>
<li>It should remove specified string from textarea</li>
<li>... | javascript jquery | [3, 5] |
3,897,915 | 3,897,916 | PLC Compiler and an Interpreter | <p>I am Trying to Build a PLC Compiler and an interpreter can anybody give me Some Links which will be useful for me..
Thanks</p>
| java javascript | [1, 3] |
1,334,919 | 1,334,920 | What is the equivalent of Master Page and Web User Control in PHP? | <p>Assume that I have some advertisments that I want to put in specific area of my pages. In ASP.NET I would use Web User Control for this pupose. What about in PHP? The same question for Master Page.</p>
| php asp.net | [2, 9] |
3,956,257 | 3,956,258 | why is is fault | <p>Default.aspx</p>
<pre><code><%=if isChecked%>
<label for="form_remember"><input name="remember" type="checkbox" id="remember" value="Re" checked="checked"></input>
<%=else %>
<label for="form_remember"><input name="remember" type="c... | c# asp.net | [0, 9] |
1,925,131 | 1,925,132 | Prompt user about pending changes | <p>I have a ASP.NET page, where I have couple of editable dropdowns, few editable textboxes and few display only fields.</p>
<p>I want to track whether user changed any dropdown values or textbox values. When user click goBack button, I want to prompt them with a message that the changes are not saved and if they real... | c# asp.net | [0, 9] |
5,866,147 | 5,866,148 | alternative for .val() to use it for select option | <pre><code><select id="width">
<option value="23" selected="selected">10cm</option>
<option value="26">100cm</option>
<option value="43">1000cm</option>
</select>
</code></pre>
<p>I have two similar select options, I am unable to get the value with the .val() function... | javascript jquery | [3, 5] |
5,472,393 | 5,472,394 | How can I overload abstract constructor in derived class | <p>I have an abstract constructor and a derived class like follows:</p>
<pre><code>abstract ab {
ab();
}
class dc {
dc();
}
</code></pre>
<p>I want to execute first the constructor of the derived class and then execute the constructor of the abstract class</p>
<p>Please give me an example.</p>
| java php | [1, 2] |
1,305,754 | 1,305,755 | Access String Resource in AppWidget? | <p>Normally, I'd do getString(R.string.myString), however it doesn't seem to work in a widget.</p>
| java android | [1, 4] |
1,619,914 | 1,619,915 | How to add fixed variable name with changing variable name | <pre><code><script>
var data1_1 = $value;
var data1_3 = $value;
var data1_5 = $value;
</script>
</code></pre>
<p>The above code is hard-code which is correct.
Now I want to make the code more flexiable using for loop.
However, there is something wrong on <code>data1_keysArr[i] = $value</cod... | javascript jquery | [3, 5] |
2,586,382 | 2,586,383 | Write a function inside jquery .html() | <p>I am running a bg slider..."Supersized - Fullscreen Slideshow jQuery Plugin"</p>
<p>what i need is when a background changes some contents in a specific div must also change...</p>
<p>here i found a code line from script</p>
<pre><code>if (options.slide_captions)
$('#slidecaption').html(options.slides[current... | javascript jquery | [3, 5] |
3,678,513 | 3,678,514 | displaying a commenting form with the on click event | <p>Please am trying to create a scenario where by if a user clicks on a link called comment to comment on a post, a commenting form will appear for him to be able to comment only on that post. this is the function i created but its not working.</p>
<pre><code>function comment() {
$(this).click(function() {
... | javascript jquery | [3, 5] |
2,987,798 | 2,987,799 | How to find out which function in asp.net has memory leak | <p>We have a asp.net web application which seems to crash IIS 7.0. The reason I say this is the application works for 16 hours with new issues and every 16 hours approx, it needs IIS RESET.</p>
<p>Is there any tool or method we can find out what's (e.g. ado.net, dll etc)causing the memory leak in web application. </p>... | c# asp.net | [0, 9] |
4,302,185 | 4,302,186 | Make an ajax request with elements attributes with jquery | <p>I want to make an ajax request where I want to give all my elements attributes. For exemple i select all my elements : </p>
<pre><code>var elements = $('.droppable')
</code></pre>
<p>and then i make my ajax :</p>
<pre><code> $.ajax({
url: "test.html",
data: {myelements : elements},
success: functi... | javascript jquery | [3, 5] |
2,420,982 | 2,420,983 | A second button to start php script, how? | <p>I have read the answer to <a href="http://stackoverflow.com/questions/1697484/a-button-to-start-php-script-how/">this question</a>, to execute PHP scripts with the click of a button. But what if I have a "<em>nested button</em>", like this :</p>
<pre><code> <?php
if(!empty($_POST['act'])) {
echo ... | php jquery | [2, 5] |
5,649,841 | 5,649,842 | How do I set my 2nd datepicker one day ahead of the 1st? | <p>I have 2 datepicker textfields: one of them is #from, the other is #to.
Right now, my users can have the same date for #from and #to. </p>
<p>How do I make the #to datepicker start at #from + 1 day?</p>
<p>Here's my current code:</p>
<pre><code> var dates = $( "#from, #to" ).datepicker({
numberOfMont... | javascript jquery | [3, 5] |
4,073,661 | 4,073,662 | Is goto ok for breaking out of nested loops? | <p>JavaScript supports a goto like syntax for breaking out of nested loops. It's not a great idea in general, but it's considered acceptable practice. C# does not directly support the <code>break labelName</code> syntax...but it does support the infamous <code>goto</code>. </p>
<p>I believe the equivalent can be ac... | c# javascript | [0, 3] |
4,371,459 | 4,371,460 | Sending Mail with an attachment using SMTP | <pre><code>protected void Button1_Click(object sender, EventArgs e)
{
var fromAddress = new MailAddress(fromid.Text, fromname.Text);
var toAddress = new MailAddress(toid.Text, toname.Text);
string fromPassword = pswd.Text;
string subject = subjectbox.Text;
string body = bodybox.Text;
Attachmen... | c# asp.net | [0, 9] |
1,110,427 | 1,110,428 | jQuery Calculation Plugin: Summing subtotals to create grand total | <p>I am working with the <a href="http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm" rel="nofollow">jQuery Calculation Plugin</a> on a page where I do quantity x price calculations that then add to a subtotal. This is repeated 4 times.</p>
<p>Each set of 4 involve fields with different ids... | javascript jquery | [3, 5] |
4,238,451 | 4,238,452 | Prevent redirect on form submission and use the POST variables in php | <p>I am working on a messaging system for a networking website wherein I want to use the data that the user enters. Like if the user enters 'Andy' as the recipient I want the php mechanism to use the $_POST['recipient'] variable to retrieve the id of that user and conduct a lookup rather than just going into a javascri... | php javascript | [2, 3] |
2,726,251 | 2,726,252 | What does the obscure javascript error b(e.target).zIndex is not a function mean? | <p>To give more information I am using the modular form here:</p>
<p><a href="http://jqueryui.com/demos/dialog/#modal-form" rel="nofollow">http://jqueryui.com/demos/dialog/#modal-form</a></p>
<pre><code>`b(e.target).zIndex` is not a function
[Break on this error] `(function(a){a.widget("ui.mouse",{opti...is._unrota... | javascript jquery | [3, 5] |
5,370,132 | 5,370,133 | Get Current System Time And After That Want To add 30 minutes in That Time | <p>I want to <code>get current time</code> in my application.<br>
Then i want to <code>add 30</code> minutes in the current time.<br>
can any one help me how to achieve this?</p>
<p>I am getting start and stop time from my web service.
eg: ((start time)11:00 am to (stop time) 11:00 pm)
now i want to add 30 minutes in... | java android | [1, 4] |
43,694 | 43,695 | Create a div using loop | <p>I create a div and its css id like this.</p>
<pre><code><div id="r1" class="ansbox"></div>
<div id="r2" class="ansbox"></div>
<div id="r3" class="ansbox"></div>
<div id="r4" class="ansbox"></div>
<div id="r5" class="ansbox"></div>
<div id="r6" class="an... | javascript jquery | [3, 5] |
16,983 | 16,984 | How to show the custom message when database down | <p>I have deployed the web application and customer accessing web application publically in between my databse down then I want show the custom message to the user. In my web application 50 pages, and I want to handle message commonly for all pages. Please help how to do this.</p>
| c# asp.net | [0, 9] |
978,763 | 978,764 | How to check ranges of java versions in javascript? | <p>I am stuck: how to check if a user has a specified java requirement? I need to find ranges (for instance java versions between 1.5.0_10 and 1.6.0_10). I am using javaDeploy.js from Oracle and using the versioncheck method but I can't figure what I need to pass inside the versionCheck method for ranges such as the ex... | java javascript | [1, 3] |
5,745,487 | 5,745,488 | Class and acessibility problem c# & asp.net | <p>i have small class like</p>
<pre><code>public static class TSM
{
static string TokenID = "";
public static string GetTSM()
{
TokenID = new Guid().ToString();
return TokenID;
}
}
`GetTokenID `will return a string
</code></pre>
<p>i just call GetTokenID from my aspx page like</p>
... | c# asp.net | [0, 9] |
354,075 | 354,076 | Should I store users friend list on device or server? | <p>I am making an application based on location services. I want to know best practices for storing users friend list. If friends list is stored on server then if user don't have internet connection he will not be able to see the friends list. On the other hand if friends list is stored on device (and there is no inter... | android iphone | [4, 8] |
4,836,477 | 4,836,478 | Use Onload or ready? | <p>In my application i am using </p>
<pre><code>$(document).ready()
</code></pre>
<p>What is the difference between this and </p>
<pre><code>$(document).onload()
</code></pre>
| javascript jquery | [3, 5] |
4,506,352 | 4,506,353 | How to position jQuery Output? | <p>I have the following that produces a drop down using a JSON file:</p>
<pre><code><script type="text/javascript">
$.getJSON('shares.json', function(data) {
var items = [];
$.each(data.Destinations, function(key, val) {
items.push('<option id="' + val.shareName + '">' + val.shareName+ '</optio... | javascript jquery | [3, 5] |
3,957,880 | 3,957,881 | In JQuery is it possible to skip an optional argument and pass the next ones? | <p>In JQuery is it possible to skip an optional argument and pass the next ones? if yes, how a jquery function determines which value is for which parameter?</p>
<p>An example:</p>
<pre><code>//
// function signature is
// jQuery.get( url [, data] [, success(data, textStatus, jqXHR)] [, dataType] )
//
// function is ... | javascript jquery | [3, 5] |
4,655,477 | 4,655,478 | How can I make POST query for my web-service on Java, Anroid? | <p>I have code for POST query on Java</p>
<pre><code> ArrayList<HashMap<String, String>> books=SQLiteDbWrapper.getInstance().getAllBooks();
JSONObject object=new JSONObject();
object.put("key", KEY);
JSONArray isbns=new JSONArray();
for (HashMap<String, String> book:books) {
... | java android | [1, 4] |
3,454,482 | 3,454,483 | how to give horizantal scrolling in tab controls using jquery | <p>My prob is : when i click the link button it open the window and when i click the window it going to add as tab, now my problem is when it open in window page
is proper alignment when it going to add as a tab page alignment is different </p>
| jquery asp.net | [5, 9] |
640,131 | 640,132 | Appending and manipulating elements | <p>Please see the my test site <a href="http://garyryan.info/tests/bubbles.html" rel="nofollow">here</a>.</p>
<p>The script is written in the <code><head></code> so you will be able to see it there.</p>
<p><strong>Instructions</strong></p>
<p>If you click the blue area a new element will be made. Do this four ... | javascript jquery | [3, 5] |
142,055 | 142,056 | Implement Custom Numpad for EditText | <p>I have an application with a numpad (keys 0-9, Ok and Delete) that is always visible on screen.</p>
<p>When the user sets the focus on an <code>EditText</code> that has an numeric input method, then the key pressed on the numpad should be applied to the focused <code>EditText</code>.</p>
<p>My current approach is ... | java android | [1, 4] |
4,410,342 | 4,410,343 | Using progress bar? | <p>in the application when user click on button to run new activity it have to wait some time to activity load everything and start up, till then user can see only black screen, so I want to put progress bar till activity is ready.
How can I do that?
Thank you. </p>
| java android | [1, 4] |
2,042,883 | 2,042,884 | Convert C# to unmanaged C++ | <p>I have the unenviable task of converting a couple of C# (CCW) COM servers (one is an Activex Control) to unmanaged C++. Any suggestions on tools I could use to make this as easy as possible would be gratefully accepted.</p>
| c# c++ | [0, 6] |
2,412,647 | 2,412,648 | window.parent.location.reload(true); causing problems! | <p>I have a aspx page that pops up a new window to edit some info. When the user is done editing they click save and at the end of the save event I have this C# code:</p>
<pre><code>Context.Response.Write("<script type='text/javascript'>window.parent.location.reload(true);window.frameElement.commitPopup();</... | c# javascript asp.net | [0, 3, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.