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,557,574 | 3,557,575 | POSTing an image to PHP file | <p>I'm trying to POST an image to a PHP file from my android app and am wondering what format (File, Fileoutputstream etc) I have to post it in for it to be recognized as a file and refer to it with $_FILE['filename'] in my php script.</p>
<p>Thanks :)</p>
<p><strong>EDIT:</strong></p>
<p>Sorry I may not have been c... | java android | [1, 4] |
5,395,619 | 5,395,620 | same form data, different actions on two separate submit buttons | <p>I have what is essentially a shopping cart that needs to have two separate checkout options. The first of which takes the user away from the site, but form data must be posted.</p>
<p>How can I create two submit buttons that will send the same form data to their own separate page?</p>
| php javascript | [2, 3] |
5,371,152 | 5,371,153 | mouseenter mouseleave not working the way I think it should | <p>I am relatively new to jQuery, and I seem to be stuck with this mouseenter/mouseleave problem. I would like to setup a menu that "hides" when the page isn't at the top, which seems to be working fine, when it's hidden I would like to make it so when a user hovers over it the class switches and the menu comes back ou... | javascript jquery | [3, 5] |
3,638,516 | 3,638,517 | check if input is checked using jquery | <p>How would I achieve this:</p>
<pre><code>if($(this).parent().find('input:checked') == true)
{$(this).find('.switch').attr('state','on');}
else{$(this).find('.switch').attr('state','off');}
</code></pre>
<p>I know this is wrong but you get the idea I think :). If there is an input that is checked add state on if n... | javascript jquery | [3, 5] |
358,600 | 358,601 | Send an encrypted WindowsIdentity and decrypt it back in asp.net | <p>I'm using a windows authentication in my web application and I want to prevent the app from asking the user for credentials, if the user can give its credentials through the URL (encrypted). </p>
<p>I'm not sure whether I need to use windowsIdentity object or not, but if I do:</p>
<p>The windowsIdentity of the use... | c# asp.net | [0, 9] |
3,983,716 | 3,983,717 | How can I use jquery to display updates when I detect them in my code behind file? | <p>I have an asp.net application and in the UI I have a jquery plugin called growel. When I detect that someone have changed their account (code behind) I need to call the jquery plugin to display but this is on the client side. </p>
<p>But how is this possible, I cant call jquery from code behind code (C#), has anyon... | asp.net jquery | [9, 5] |
5,177,604 | 5,177,605 | In Gridview Anchor tags are not working in Safari | <p>In my project i am using Gridview to display List of Companies, under the Company name i have link to navigate to company details for this link i am using html anchor() tag. It's working good in IE and Chrome but in the Safari it's not navigating. Below is my sample gridview TemplateField.</p>
<pre><code> <asp:T... | javascript asp.net | [3, 9] |
1,908,463 | 1,908,464 | javascript doesnt work on a link | <p>I have got this html:</p>
<pre><code> <a style="display:block; padding:100%; text-decoration: none;" href="http://google.com " class="Jasmin" id="target_site_to_visit">
<span data-app-id="88" class="btn" id="visit_site" style="right:22px; top:65px; padding:5px;z-index: -99999;">VISIT SITE</span>... | javascript jquery | [3, 5] |
2,603,237 | 2,603,238 | how to insert php on jquery/javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9451212/how-to-insert-php-into-jquery">How to insert PHP into jQuery?</a> </p>
</blockquote>
<p>how to insert php on jquery/javascript ? for example </p>
<p>php </p>
<pre><code>$tot =4;
</code></pre>
<p>javas... | php jquery | [2, 5] |
476,503 | 476,504 | asp.net to have console like window on the page | <p>I want to move my console application to asp.net website, where I show some action logs. What kind of control should I use for read-only actions logs? Let say on the button click I have a loop and I want to display actions from inside that loop. Should I use multiline textbox? how do I append lines? should I wrap wi... | c# asp.net | [0, 9] |
532,421 | 532,422 | Javascript - how do I minimise this code example? | <p>a quick question. </p>
<p>At the moment I have 12 links on a page, and 12 corresponding javascript codes that run when a each button is clicked.</p>
<p>I know 100% there must be a method of having 1 javascript code and the link passing a variable to it, so I don't have to have 12 different codes. </p>
<p>EG. Her... | javascript jquery | [3, 5] |
5,535,314 | 5,535,315 | Reading all values from an ASP.NET datagrid using javascript | <p>I have an ASP.NET Datagrid with serveral text boxes and drop down boxes inside it. I want to read all the values in the grid using a javascript function. How do i go about it?</p>
| asp.net javascript | [9, 3] |
4,468,861 | 4,468,862 | body html of iframe | <p>Hi my code returns all the html of the iframe. I would like just the body html. Any one know how to amend to suit?</p>
<p>Code:</p>
<pre><code>alert( $("#uploaderIframe").contents()[0].documentElement.innerHTML );
</code></pre>
| javascript jquery | [3, 5] |
3,776,048 | 3,776,049 | How to see if an element in offscreen | <p>I have a list of divs, and everytime I want to go to the next div I press a key. I need to check if that div is offscreen, and if so, I need to move the screen to show that div either using anchors or another method.</p>
<p>What is my best option for doing this?</p>
<p>Just to clairify, offscreen in my case means ... | javascript jquery | [3, 5] |
4,414,937 | 4,414,938 | jQuery :not and :first ordering | <p>I am trying to get the first input field in a form that isn't disabled or hidden. I need to be able to exclude radio buttons, selects, and particular IDs.</p>
<p>The following code works perfectly, EXCEPT when a select comes before the text or password field that I want:</p>
<pre><code>$("form :input:visible:enabl... | javascript jquery | [3, 5] |
1,840,485 | 1,840,486 | Program command to be called every 5 seconds | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1542280/do-something-every-5-seconds-and-the-code-to-stop-it-jquery">Do something every 5 seconds and the code to stop it. (JQuery)</a> </p>
</blockquote>
<p>I have a gallery that i want to automatically run wit... | javascript jquery | [3, 5] |
3,355,883 | 3,355,884 | Disable Image Save option by right click option | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/2018802/prevent-saving-image-from-my-site">prevent saving image from my site</a><br>
<a href="http://stackoverflow.com/questions/4514610/transparent-div-to-prevent-right-click-save-as">Transparent <div> to ... | c# javascript asp.net | [0, 3, 9] |
5,172,372 | 5,172,373 | Connection pooling with URLConnection? | <p>I've just read the android article about http client options. I'd like to start using HttpsURLConnection, how does one enable connection pooling for it? The article says that is possible, but doesn't explain how.</p>
<p><a href="http://android-developers.blogspot.com/2011/09/androids-http-clients.html" rel="nofollo... | java android | [1, 4] |
5,511,794 | 5,511,795 | can't convert undefined to object in javascript | <p>Update: I have added the fiddle. Please refer <a href="http://jsfiddle.net/fPVaJ/" rel="nofollow">here</a>. use web console for error.</p>
<p>I am writing a code for traveling salesman problem. Here is the code :</p>
<pre><code>var ind =[]; //values selected
var cp =[];
var X;
var Y;
var tour = [];
// no v... | javascript jquery | [3, 5] |
3,283,153 | 3,283,154 | JavaScript For loop appending 4 times | <p>I have a JavaScript program that isn't properly functioning. For some reasons before it appends what it is actually getting from the checked radio box it appends three times with noting in the append except the styling. I'm not sure what I'm doing wrong.</p>
<pre><code>$(document).delegate('#add-owner', 'pageinit',... | javascript jquery | [3, 5] |
4,779,030 | 4,779,031 | working data from/to PHP and jquery, possible? | <p>I'm looking at a <a href="https://www.website.ws/orderflow/index.dhtml?sponsor=gditraffic&src=DSP&last_page=DSP" rel="nofollow">domain registration site</a> that looks like it uses jquery to process users data inputed and to register domains.</p>
<p>What I was wondering is if it's possible for users to be a... | php jquery | [2, 5] |
4,972,627 | 4,972,628 | How can I capture the blur and focus of the entire browser window? | <p>I would like to capture the blur and focus of the actual browser window - meaning that change of focus to child frames is not of interest.</p>
<p>Currently I have been using
<code>$(top).focus()</code>
<code>$(top).blur()</code></p>
<p>and
<code>$(window).focus()</code>
<code>$(window).blur()</code></p>
<p>Howeve... | javascript jquery | [3, 5] |
1,163,780 | 1,163,781 | Converting single quotes to double quotes inside a title attribute | <p>I have an image title that has a tag with double quotes in it, and I need to convert it to single quotes for use in a photo slideshow. I don't have the option of changing anything other than the attribute name, so I can't escape the quotes inside the value. </p>
<p>Here's my html:</p>
<pre><code><div id="image... | javascript jquery | [3, 5] |
1,363,390 | 1,363,391 | Use jQuery to mirror height of a dynamic element | <p>I have a sidebar on my page that I want to always be 100% of the container size. Sadly, I can't tell the element to do this via CSS alone as the page has a variable height due to dynamic content.</p>
<p>Is it possible to use jQuery to find the height of the content container, and adjust the sidebar height to match ... | javascript jquery | [3, 5] |
1,671,429 | 1,671,430 | rawurldecode and regexp for splitting words with and without quotes in javascript? | <p>so here is the case:</p>
<p>i have a string in php (containts 2 words):</p>
<pre><code>windows "mac os"
</code></pre>
<p>i encode it with rawurlencode and put it in the URL after ?name= in an anchor.
when i click it i see the following in the browsers url.</p>
<p>index.php?name=windows%20%5C%22mac%20os%5C%22</p>... | php javascript jquery | [2, 3, 5] |
349,146 | 349,147 | Javascript - Closing confirmation message if no response from user | <p>I have got asp.net 2.0 website, in which I display session timeout through confirm message box, asking user to select ok or cancel.</p>
<p>Problem: if user doesn't provide any input (assuming his desktop is locked and he is out for lunch) - then how can I close this confirmation message and display another pop-up o... | javascript asp.net | [3, 9] |
4,824,200 | 4,824,201 | How to access data inside Dialog Builder's inner class? | <p>This is more of a Java question, i believe. I would like to access myBundle from within the OnClickListener. Currently, i am getting this compiler error - Cannot refer to a non-final variable dataSend inside an inner class defined in a different method. Is there any way to achieve what i want to do? Thanks. Relevant... | java android | [1, 4] |
1,882,238 | 1,882,239 | Allow and Prevent postback in javascript in asp.net | <p>I was trying to validate dates using java script on button click event.If validation returns false post-back should be prevented and if returns true post-back should be allowed.</p>
<p>The problem is that post-back is occuring even if the validation returns false.....</p>
<p>I'm new to javascript.Kindly give me an... | c# javascript asp.net | [0, 3, 9] |
3,278,670 | 3,278,671 | how to bind image from a popup window to parent window | <p>i have a aspx page and a popup page.</p>
<p>i have a imagebutton control in the aspx page when user click on the imagebutton a popup is shown,
The popup page contain a fileupload control and a done button,</p>
<p>The user will select a image from the fileupload control and click on done button,i want the selected ... | jquery asp.net | [5, 9] |
5,355,387 | 5,355,388 | How to open one single popup window for multiple onclick event of anchor tag? | <p>I have one aspx page with 1000 anchor tag. </p>
<p>I want to open single popup onclick of anchor tag & display data in popup window from database dynamically. </p>
<p>I want to use only one popup in my page.</p>
<p>For 1000 anchor tag inner data of popup will change with respect to anchor click change.</p>
<... | c# asp.net | [0, 9] |
2,662,649 | 2,662,650 | getAction() gives only ACTION_DOWN | <p>For an application I am writing, I want to invoke a certain action once the user lifted his finger off the screen. I understood I need to check if event.getAction() is ACTION_UP, but all I get from getAction() is ACTION_DOWN. My code looks like this:</p>
<pre><code>menu = new MenuView(this);
menu.setBackgro... | java android | [1, 4] |
1,745,852 | 1,745,853 | Javascript function and PHP session variable | <p>I have the following script in my Body Tag inside a PHP page:</p>
<pre><code><script type="text/javascript">
function goNext()
{
<?php
if(isset($_SESSION['current']))
{
?>
window.location="step2.php";
<?php
}
else
{
?>
alert('Please select... | php javascript | [2, 3] |
3,370,980 | 3,370,981 | Javascript or jQuery help | <p>This is my website: <a href="http://keironlowe.x10hosting.com/" rel="nofollow">http://keironlowe.x10hosting.com/</a> </p>
<p>I need to know how to make the red line slowly get longer when hovering over, and slowly shrink back to normal size afterwards using javascript or jQuery.</p>
<p>Could someone show me somet... | javascript jquery | [3, 5] |
5,204,842 | 5,204,843 | javascript link inside span | <p>I'm trying to add a link to a span of text using Javascript below. Please help.</p>
<pre><code><div id="features">
<h2>Features</h2>
<div id="emma2011_left">
<h2>Image of the Day</h2>
<div id="dImg">
<div id="dailyimg" class="feature"></div>
<div id="title" c... | javascript jquery | [3, 5] |
5,248,350 | 5,248,351 | How do I remove value from POST if checkbox is unchecked | <p>jQuery</p>
<pre><code>$("input[type=checkbox]:checked").live("click", function (e) {
var data = $('.variation:checked').map(function (i, n) {
return {
'val': $(n).val()
};
}).get();
$.post('/variations.php', {
'data': data
}, function (data) {
$('#variat... | php jquery | [2, 5] |
4,372,361 | 4,372,362 | Modifying GridView data using Jquery doesn't persist back to Server events | <p>So i have an ASP.NET GridView control in which each column is a 'BoundField'. I did not create a TemplateField(ItemTemplate/EditItemTemplate), because i was planning on using JQuery to convert the BoundField row to a 'Edit' field by just converting the text in each cell to a textbox or textarea when that row was cli... | asp.net jquery | [9, 5] |
964,744 | 964,745 | Setting a TextView to the value of an integer | <pre><code>public class DataHelper extends Activity{
TextView tvRslt;
public static int insert(String firstFB, String firstRL) {
// TODO Auto-generated method stub
Integer a = new Integer(firstFB).intValue();
Integer b = new Integer(firstRL).intValue();
int firstResult = a / b;... | java android | [1, 4] |
2,690,784 | 2,690,785 | jQuery library 1.4.4 not allowing spaces in textbox | <p>I'm using asp text boxes and some javascript code in my project.</p>
<p>After seeing that spaces in my text boxes are disabled, I went through similar problems others have been faced with and got that mostly javascript makes this kind of issues. So after trying I got that jQuery library 1.4.4 is the cause. But by r... | jquery asp.net | [5, 9] |
534,108 | 534,109 | ViewGroup.LayoutParams Java android dot notation | <p>I don´t understand the notation <code>VieuwGroup.LayoutParams</code>
This a subclass that extends <code>Object</code>...
I know it´s possible to do <code>class.field</code> or <code>class.method</code>
But this looks like <code>class.class</code> ? Is this some kind of inner class ?</p>
| java android | [1, 4] |
2,873,078 | 2,873,079 | asp.net hide download | <p>I am making an application to edit mp3 files. After the editing is finished I want to present a link to download the file. I am just concerned that the file location, if known, can be abused for illegal files. What do I need to do so that, instead of presenting a link to a file on the server, I can store it in memor... | c# jquery asp.net | [0, 5, 9] |
4,720,462 | 4,720,463 | Using a dynamic variable within a for statement | <p>I would like to dynamically create and reference some variables on the fly, but i'm not understanding how to.</p>
<p>Here is what I would think 'should' work, but I know doesn't.</p>
<pre><code>var weeks = 4;
for(i=0; i<weeks.length;i++){
var 'week_'+i = valueFromXML;
}
function wtFn (){
'week_'+i.splic... | javascript jquery | [3, 5] |
5,202,294 | 5,202,295 | Migrating from VB 2003 (ASP.Net) to C# 2008 ASP.Net | <p>I am converting an existing vb2003 asp.net 1.1 application to C#2008 asp.net 3.5.
I have copied the HTML onto my C# markup window (consisting of Labels, text fields & buttons)</p>
<p>However, when I attepmt to "View in browser", I get the error below:</p>
<p>Compiler Error Message:
CS1061: 'ASP.apps_forms_newp... | c# asp.net | [0, 9] |
5,909,698 | 5,909,699 | Having a problem binding an event handler in this way whats wrong? | <p>I'm trying to bind an event handler using jQuery:</p>
<pre><code>$(document).ready(function () {
var newsScrollerForPage = new NewsScroller();
newsScrollerForPage.init();
$('#scroller-left-a').bind('onclick', newsScrollerForPage.decreasePage());
});
<div class="scroller-le... | javascript jquery | [3, 5] |
353,965 | 353,966 | jquery - traverse up tree and find elements with specified class | <p>I thought that the closer() function would do this for me, but seemingly not. I have the following markup and I want to add a class to all parent anchors with the class trigger:</p>
<pre><code> <ul>
<li class="selected">
<a class="trigger" href=""></a>
<a href="">&l... | javascript jquery | [3, 5] |
1,316,163 | 1,316,164 | Troubleshooting ClassNotFoundException when using PHP/Java bridge | <p>I've followed this tutorial <a href="http://www.dsl.uow.edu.au/~sk33/php5java.htm" rel="nofollow">http://www.dsl.uow.edu.au/~sk33/php5java.htm</a>, but at last when I tried this</p>
<pre><code><?php
java_require('http://localhost/test/HelloWorld.jar');
$myObj = new Java('HelloWorld');
// display Hello World
ec... | java php | [1, 2] |
4,057,882 | 4,057,883 | External Iframes somehow redirecting out of my site, how do I prevent this? | <p>How do external iframes manage to redirect out of your site?</p>
<p>How can this be prevented?</p>
<p>Is it possible to listen to "redirect requests" and prevent them if there was no click?</p>
| javascript jquery | [3, 5] |
220,230 | 220,231 | Why is Request.ServerVariables["HTTP_HOST"] different from Request.Url.Host? | <p>Same server, same site - two different results.</p>
<h1>Case 1</h1>
<p>request URL: domain.com (resolving to domain.com/default.aspx)<br>
request header in Firebug: domain.com<br>
<code>Request.ServerVariables["HTTP_HOST"]</code> = domain.com<br>
<code>Request.Url.Host</code> = domain.com (Ok, this is good and exp... | c# asp.net | [0, 9] |
2,250,290 | 2,250,291 | Sleep() in java (Android) | <p>I am following this tutorial to have a loading screen in my program. The tutorial says my activity should Sleep() using the Sleep() command, however it does not recognise Sleep() as a function and provides me with an error, asking if I would like to create a method called Sleep().</p>
<p>Here is a link to the tutor... | java android | [1, 4] |
4,563,760 | 4,563,761 | Adding references in C# | <p>How to add assembly reference for c# class file while converting from website to web application</p>
<p>I recently converted a VS project of mine from a website to a web application. When I did so, upon trying to view the site, I get the following error:</p>
<p><code>The type or namespace name 'FunFactory' could n... | c# asp.net | [0, 9] |
2,992,163 | 2,992,164 | How to check that panel is visible or not in JavaScript? | <p>How do I check that panel is visible or not in JavaScript?. I am using ASP.NET 2.0.</p>
| javascript asp.net | [3, 9] |
1,890,580 | 1,890,581 | Split to get the text between separators? | <p>I am making a cross domain AJAX request, and because of this, I can't pass the original array from the PHP page to my HTML page. Instead, the request gets the results as a string. I have it set up so that the syntax looks like this:</p>
<pre><code>([SCHOOL] Name [/SCHOOL][STATUS] Status [/STATUS])
([SCHOOL] Other n... | javascript jquery | [3, 5] |
5,644,020 | 5,644,021 | to remove first and last element in array using jquery | <p>How to remove first and last element in an array using jquery</p>
<p>Example:</p>
<pre><code>var fruits = ["Banana", "Orange", "Apple", "Mango"];
</code></pre>
<p>My Expected output:</p>
<pre><code>Orange,Apple
</code></pre>
| javascript jquery | [3, 5] |
4,464,900 | 4,464,901 | jstree 1.0 does not work well | <p>I have a problem with the new version of jstree when using this part of code. At the first execution, the data function returns the root node. The problem is that this code never executes again. So whatever happens, I just have the root node. Does anybody know a solution?</p>
<pre><code>$('#tree').jstree(
json_da... | asp.net javascript | [9, 3] |
5,573,480 | 5,573,481 | JS/jQuery: How to highlight or select a text in a textarea? | <p>I don't want to highlight text (by changing background color to yellow - NO), I just want to select a portion of the text inside textarea, exactly as if the user clicked and hold the click then moved the mouse to highlight only a portion of the text</p>
<p>How to do that? is it possible?</p>
| javascript jquery | [3, 5] |
4,451,426 | 4,451,427 | jQuery change() fires on Page Load | <p>This code fires on the page load, but not when the change event actually occurs. </p>
<pre><code>jQuery('select#order_note_type').change(function() {
random code here
});
</code></pre>
<p>I have to add that it is not inside the <code>ready</code> method. Do I need to bind it?</p>
<p>EDIT: I changed my code to be ... | javascript jquery | [3, 5] |
4,599,350 | 4,599,351 | Action indicator during JQuery each() function | <p>How to do simple action indicator during execution of JQuery each(), is this possible?
I have some problems with my JQuery code, i don't understand the behavior of it :/
I am new to JQuery.</p>
<p>js code look like this:</p>
<pre><code>$(function () {
$('#offer_discount').keyup(function () {
//her... | jquery javascript | [5, 3] |
3,547,162 | 3,547,163 | Implementing background loading properly and efficiently | <p>The following code is a summary of what I'm trying to do, which is to develop a interface that allows the user to scroll left and right through images. Images start off the screen and then to the centre, and it also pushes the previous image back off the screen.</p>
<p>I would love some advice on the code I have or... | javascript jquery | [3, 5] |
5,725,220 | 5,725,221 | android - read from text file line by line | <p>I have the following code which I know that works in Java. I am now trying to do the equivalent in and Android application. The operation is quite simple: I need to make use of a method in a class (in the same workspace) where I first need to get the lines off a text file which I stored in <strong>/res/raw</strong>.... | java android | [1, 4] |
2,705,956 | 2,705,957 | hover more than one element | <p>Is it possible to use more than one element in jQuery hover?
This code is only for <code>a</code> elements but how may you use it for <code>div</code>,<code>texterea</code>,<code>a</code> and <code>li</code> elements together?</p>
<p>Example:</p>
<pre><code>$("a").hover(function () {
var id = $(this).attr("cl... | javascript jquery | [3, 5] |
5,104,426 | 5,104,427 | How come I am getting different responses on browser than the server | <p>Here is an example website</p>
<p><a href="http://us.blizzard.com/store/browse.xml?f=c:5,c:33" rel="nofollow">http://us.blizzard.com/store/browse.xml?f=c:5,c:33</a></p>
<p>When I inspect the response in Firefox it is application/xhtml</p>
<p>When I make a request to the same url server side with the following hea... | c# asp.net | [0, 9] |
4,718,038 | 4,718,039 | array vs.list performance issue | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/454916/performance-of-arrays-vs-lists">Performance of Arrays vs. Lists</a> </p>
</blockquote>
<p>I want to know which one is better way to do this task.</p>
<pre><code>string[] week = new string[7]
week[0] = ... | c# asp.net | [0, 9] |
4,110,233 | 4,110,234 | Checking length of a textbox and showing relevant error message if its 0 | <p>I have a textbox and im trying to check if it has anything in, and if it doesnt i need to show a relevant error message but even when i have entered something in it, it continues to show the error message</p>
<p>Iv created a it here <a href="http://jsfiddle.net/Atkinson1988/SzuVQ/" rel="nofollow">http://jsfiddle.ne... | jquery asp.net | [5, 9] |
2,922,485 | 2,922,486 | jQuery Slider Maintain Value on Postback | <p>I am using a jQuery UI slider without any troubles other than this: I have an ASP.NET hidden field that stores whatever the user selected with the slider. Say 25, or 50. I need that server control so that I can use its value after other steps are performed. It works but when the page does the postback, the slider re... | jquery asp.net | [5, 9] |
2,042,907 | 2,042,908 | hide a message after 30 seconds.? | <p>How can after click on button show a message and next <strong>hide it after 30 seconds</strong>?</p>
<p><strong>Like:</strong></p>
<pre><code>$('#message').live('click', function() {
$('#sm').hide();
$('#sm').hide().show('slow').html('You have successfully registered');
// how is hide "$('#sm')" after ... | javascript jquery | [3, 5] |
3,812,041 | 3,812,042 | How to send SMS from asp.net application | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1125332/sms-from-our-site">sms from our site</a> </p>
</blockquote>
<p>I want to send SMS from my asp.net application. Suppose there will be 2 text boxes in my UI, one for mobile or cell phone number and another... | c# asp.net | [0, 9] |
4,820,367 | 4,820,368 | JQuery simple dialog box | <pre><code><link href="simpledialog.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="simpledialog.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('.simpledialog').simpleDialog();
});
$(document).ready(function () {
$('.simpledialo... | php jquery | [2, 5] |
3,907,686 | 3,907,687 | How do I add response from TextBox? c# | <p>Hi
I have created my own control which contains TextBox control as a child control. this textbox has autopostback set on. when the postback is called I dont get any text in request.querrystring.
where should I specify text entered into texbox will be send to response ? or is there any easier way of sending this info... | c# asp.net | [0, 9] |
5,911,817 | 5,911,818 | Convert Javascript function to jQuery plugin | <p>I have already a short-hand function like so:</p>
<pre><code>function myObj() {};
myObj.prototype.read = function (name) {alert(name);};
...(more functions)
</code></pre>
<p>Now I would like to "convert" this to a jQuery plugin.<br>
What is the best way to do so? (My function doesn't need a selector before... | javascript jquery | [3, 5] |
1,203,237 | 1,203,238 | Whats the difference between using .on('click' and .click? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9122078/difference-between-onclick-vs-click">Difference between .on('click') vs .click()</a> </p>
</blockquote>
<p>When handling a click of a div whats the difference between using .on and .click : </p>... | javascript jquery | [3, 5] |
4,053,098 | 4,053,099 | How can I transfer data between two phones in a local wireless network for testing? | <p>For testing purposes, I'm managing to develop a chat app to work through local wireless network. What would be the best options for the communication transfer? (assuming that the only information that each phone have it's the local IP) Sockets?</p>
<p>I referred chat because It's just for testing, my purpose is to ... | java android | [1, 4] |
4,469,910 | 4,469,911 | how do you get the html and value output to a string | <p>given this html input element, <input id="input1" type="text" /></p>
<p>if the user enters a value of 'test', is there a way in jQuery to serialize that to a string?</p>
<p>The output I would be looking for is, <input id="input1" type="text" value="test" /></p>
<p>I am not copying this to another ele... | javascript jquery | [3, 5] |
504,324 | 504,325 | Access to external literal class inside a function | <p>What I have is something like that:</p>
<pre><code>jQuery(function($) {
'use strict';
var App = {
init: function() {
App.startTool();
}
[...]
</code></pre>
<p>and when I try to call <code>App.init();</code> from another file it say that <code>App is not defined</code>.</p>
<p>I'm trying to cr... | javascript jquery | [3, 5] |
1,472,520 | 1,472,521 | making asynchronous calls with jquery | <p>I have a function called <code>checkStatus(x)</code> where x is Id. How can I call this function n times asynchronously ? Without being dependent one on another to completed and for another to start?</p>
<p>I'm using jquery</p>
<p><strong>EDIT:</strong></p>
<p>I'm not sure if I used the correct term, but here is ... | javascript jquery | [3, 5] |
4,360,991 | 4,360,992 | How do I test for a empty string/null, using JavaScript? | <p>How do I test for a input[text] field that has nothing in?</p>
<p>This is what I have so far:</p>
<pre><code> if ($('#StartingPrice').length == ""){
alert("ERROR!");
}
</code></pre>
<p>Any help would be greatly appreciated, Thanks </p>
| javascript jquery | [3, 5] |
2,626,910 | 2,626,911 | Javascript source file download progress? | <p>I am sourcing a large mapping/widget javascript file (1.3 MB) and wanted to display a progress bar as it loads. I know firebug's net watch tab knows a lot of this information, but I would like something more lightweight. I came across this website:
<a href="http://blog.greweb.fr/2012/04/work-in-progress/" rel="nofol... | javascript jquery | [3, 5] |
618,865 | 618,866 | What is the input for PushEndPointDemo? | <p>I can run the sample code. It shows PushPointEndDemo EditText and Register button. Now the problem is I don't know what I give in that box to register through the emulator. </p>
| java android | [1, 4] |
2,697,995 | 2,697,996 | Insert variables into $.post within a function | <p>i'm writing a function to send $.post show please how to correctly insert variables into object depending if they are set.
here is what i'm trying to do:</p>
<pre><code>function SendCommand(Command, QuestionId, Attr) {
$.post('/survey/admin/command',
{
'Command': Command,
if (QuestionId) 'Questi... | javascript jquery | [3, 5] |
3,652,028 | 3,652,029 | call code behind method from window.onbeforeunload? | <p>I would like execute code behind method <strong>(like save data to database)</strong> from window.onbeforeunload. I cann't use PageMethods because of <strong>non-sharedmembers (txtboxed, cmbboxes etc)</strong> in the save method. How to handle this situation? It is literally killing my time. </p>
<p>Please help me ... | javascript jquery asp.net | [3, 5, 9] |
3,881,888 | 3,881,889 | If clicked img src contains specific text | <p>Hi all how can i check If clicked img src contains specific text if then do some functions? </p>
<p>Example:</p>
<p><code><img src="file:///C:/path/img4-dog.jpg">,
<img src="file:///C:/path/img4-cat.jpg"></code> </p>
<p>run alert if clicked img src contains 'dog' something like that?</p>
| javascript jquery | [3, 5] |
5,327,404 | 5,327,405 | Android Emulator: Write file to local file system? | <p>I am wondering if its possible to get my android application to save a file to a windows file system or is there a simple work around I can adopt?</p>
<p>I am using the android emulator to do tests and I need it to write to the local hard drive so I can do further processing on the file.</p>
<p>I hope this is poss... | java android | [1, 4] |
181,563 | 181,564 | javascript/jQuery Array concatenation? | <p>I have some simple jQuery code:</p>
<pre><code>var response = Array()
$('.task-list').each(function() {
response.concat(response,$('#' + this.id).sortable('toArray'));
}
);
console.log(response);
</code></pre>
<p>The problem I'm having is that I think I'm using concat improperly- the result is an empty array. Wh... | javascript jquery | [3, 5] |
995,335 | 995,336 | jQuery focus not working with the plugin chosen | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8281627/jquery-chosen-focus-on-page-load-onload">Jquery Chosen focus on page load (onLoad?)</a> </p>
</blockquote>
<p>i am using a jQuery plugin chosen (http://harvesthq.github.com/chosen/) to create more useful... | javascript jquery | [3, 5] |
421,023 | 421,024 | Operating System Detection by Java or JavaScript | <p>I need to detect OS name & version in Java. That I can do by </p>
<pre><code>String os_name = System.getProperty("os.name", "");
String os_version = System.getProperty("os.version", "");
</code></pre>
<p>but the problem is that this is not reliable. Sometimes it returns incorrect information, and I can't detec... | java javascript | [1, 3] |
5,775,222 | 5,775,223 | Getting Image size in Javascript not working the first time | <p>I am getting the image size using javascript, but it won't return the correct size until after I run it a second time. I wonder why this is. Here is my code:</p>
<pre><code> var img = new Image()
img.src = src
img.onLoad = alert(img.width);
</code></pre>
<p>This returns <code>0</code> sometimes, but afte... | javascript jquery | [3, 5] |
859,766 | 859,767 | How to tell jQuery that all selectors I write should be limited to the object being worked on? | <p>I made this incredible plugin that will change the fate of the world <a href="http://jsfiddle.net/4phfC/1/" rel="nofollow">http://jsfiddle.net/4phfC/1/</a>:</p>
<pre><code><script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script>
... | javascript jquery | [3, 5] |
5,101,655 | 5,101,656 | c# how to: define a long string with linebreaks? | <p>is there a way to define a single long string with line breaks within the string definition code? </p>
<p>my string is somethign like this:</p>
<pre><code>string sql = "SELECT
a.bg_user_56 AS Project,
a.bg_user_60 AS SubSystem,
a.BG_USER_81 AS Assig... | c# asp.net | [0, 9] |
2,015,836 | 2,015,837 | Changing fragment view has no effect | <p>Im changing the view of a fragment with the following code</p>
<pre><code>public void updateView() {
View newView = LayoutInflater.from(mActivity).inflate(R.layout.fragment_lobby, (ViewGroup)mActivity.findViewById(mContainerId),
false);
ViewGroup container = (ViewGroup)mActivity.findViewById(mC... | java android | [1, 4] |
3,004,041 | 3,004,042 | jQuery not detecting enter key pressed in textarea | <p>My setup: jQuery 1.6.2</p>
<p>I have this HTML</p>
<pre><code><textarea class="comment_box"> Write a comment...</textarea>
</code></pre>
<p>And the following Javascript</p>
<pre><code><script>
$('.comment_box').keydown(function (e){
if(e.keyCode == 13){
alert('you pressed enter ^_... | javascript jquery | [3, 5] |
4,683,736 | 4,683,737 | C# Restoring Values to Controls Iterativley | <p>I have a situation here where the user has about 100 controls mostly multi select listboxes
but some other stuff peppered in (drop downs checkboxes) and they narrow down complex search criteria for screenings. When they go back later they want the act of pulling up a record to reset the controls to the values that... | c# asp.net | [0, 9] |
5,394,611 | 5,394,612 | <hr> between divs | <p>Based on time i show up divs one by one.</p>
<p>I do this with jquery with </p>
<pre><code>$("#section_"+index).show();
</code></pre>
<p>My divs have id's like:
section_1, section_2, section_3 etc.</p>
<p>i have the var currentSection which is the id of the last one that is shown.
Now i want a hr (horizontal rul... | javascript jquery | [3, 5] |
2,407,021 | 2,407,022 | how to show 20 rows on datagrid each time? | <p>i show data on gridview like this:</p>
<pre><code>SQL = "SELECT * FROM MEN ";
dsView = new DataSet();
adp = new SqlDataAdapter(SQL, Conn);
adp.Fill(dsView, "MEN");
adp.Dispose();
GridView1.DataSource = dsView.Tables[... | c# asp.net | [0, 9] |
902,418 | 902,419 | JS/AJAX Auto submit form: Disabling enter key to prevent page refresh | <p>I am using a function that will submit with ajax and without the help of a button click. But I am currently undergoing two issues which with trial and error haven't found plausible solutions: </p>
<p>First is there any way I can disable the enter button click(this causes the whole page to refresh)?</p>
<p><a href=... | javascript jquery | [3, 5] |
15,462 | 15,463 | How to dislay Validation Message from code behind | <p>I have one textbox..
i want to validate it's value based on dropdownlist value..
So i am displaying message from code behind using <code>RegularExpressionValidator</code>..
But it is not working plz,give me suggestion.. </p>
<pre><code><asp:TextBox ID="tbnooflecture" runat="server" Width="119... | c# asp.net | [0, 9] |
1,384,892 | 1,384,893 | Runtime error appeared after I moved some code to new class | <p>I had the code:</p>
<pre><code>namespace ShowDiagram1
{
public partial class WebForm1 : System.Web.UI.Page
{
bitmap.Save(Server.MapPath("pic1.jpg"), ImageFormat.Jpeg);
Image1.ImageUrl = this.ResolveUrl("pic1.jpg");
}
}
</code></pre>
<p>It worked okay.
I moved this code to new class</p>
... | c# asp.net | [0, 9] |
830,858 | 830,859 | Check all fields together? | <p>There are three field. i want check each a of field if have value, show class <code>.koko</code>. if on all field not have value, hide class <code>.koko</code>.</p>
<p>How is it?</p>
<p>in the this code, each field is check separate but i want check all fields together:</p>
<pre><code><input type="text" name="... | javascript jquery | [3, 5] |
3,200,660 | 3,200,661 | Accessing data from iframe | <p>Suppose we have the following structure :</p>
<pre><code> <div id='main'>
<div id="1"> .. </div>
<div id="2">
<iframe id="ifr" src="some"></iframe>
</div>
</div>
</code></pre>
<p>How can we access div#1 contents from inside the iframe#ifr?</p>
| javascript jquery | [3, 5] |
5,634,283 | 5,634,284 | JQuery Get current ID of Widget | <p>I have have the following</p>
<pre><code><div id="dualList"></div>
</code></pre>
<p>And I have written a plugin but for the sake of testing I have stripped it away. I am having problems with the plugin displaying the id of the div.</p>
<pre><code><script>
(function($) {
$.fn.DualList = func... | javascript jquery | [3, 5] |
2,555,681 | 2,555,682 | recognize position of element with jquery | <p>i've got a little pictureblog and would like to add the same affect like in the google reader. That means if a picture is in the center of my screen it should get a border. In the following example i relized similar thing with the hover effect. but this is not exactly what i want. How can i realize that with jquery?... | javascript jquery | [3, 5] |
3,261,465 | 3,261,466 | set value with jquery doen't work on the ipad for me | <p>if I do </p>
<pre><code>console.log($('#title').val());
</code></pre>
<p>everything works fine in every browser of course. Even on the iPad in ios-safari. But if I try to set a value like</p>
<pre><code>$('#title').val('some title');
</code></pre>
<p>nothing happens?</p>
<p>is that a known issue?</p>
<p>chris... | javascript jquery | [3, 5] |
1,060,702 | 1,060,703 | Resetting setTimeout object if exists | <p>When somebody clicks my checkboxes, from a long list of checkboxes, I want to show the number of selected checkboxes in a little popup element. My problem is, the little popup element should disappear 5 seconds after the <strong><em>last</em></strong> click, which is OK for one checkbox being clicked, but if I quick... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.