Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
5,184,763 | 5,184,764 | Jquery autosuggest not working | <p>Hey guys, I'm using jQuery's autosuggest plugin by using php to get the data. But it doesn't seem to work since I always get: No Results Found, even though I'm sure there are results:</p>
<p>Here's the php code:</p>
<pre><code><?php
ini_set('display_errors', 'On');
error_reporting(E_ALL | E_STRICT);
$input = m... | php javascript jquery | [2, 3, 5] |
2,562,667 | 2,562,668 | Resize images to be fullscreen with javascript? | <p>Can you resize images to be fullscreen with javascript in the same way you can with flash? </p>
<p>Ive found this link but its for an entire plugin with slideshow, etc not just the feature I need for a more custom design:
<a href="http://buildinternet.com/project/supersized/" rel="nofollow">http://buildinternet.com... | javascript jquery | [3, 5] |
4,949,179 | 4,949,180 | jQuery $.post doesn't work on Android 1.6 | <p>I'm experiencing this problem. My script works fine on later android, no problems at all, but on 1.6 it doesn't perform loads with $.post and does with $.get tho.
Also there's no problem with usuall html doctypes, but I need to use xml, in wich the script doesnt work as I said above</p>
<pre><code><html xmlns=... | jquery android | [5, 4] |
3,265,891 | 3,265,892 | can i read the content of a css class runtime in code behind? | <p>i have a page with a .css file linked to it.
Let's say there is this content in it:</p>
<pre><code>.wrapper {
color:red;
}
</code></pre>
<p>is there a way to read the value of the .wrapper element runtime in the code behind?</p>
<p>the problem is that runtime a different stylesheet is linked so the .wrapper is a... | c# asp.net | [0, 9] |
2,693,189 | 2,693,190 | Length of Number in JavaScript | <p>I'm looking to get the length of a number in javascript / jquery</p>
<p>I've tried <code>value.length</code> without any success, do I need to convert this to a string first?</p>
| javascript jquery | [3, 5] |
3,370,440 | 3,370,441 | Loading xml file with pegination php jquery | <p>I have an xml file with over 1000 records and the xml stracture is:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<deals>
<deal>
<deal_id>1</deal_id>
<deal_title> <![CDATA[THE TITLE]]> </deal_title>
<deal_description> <![CDATA[THE DESCRIPTION]]> ... | php jquery | [2, 5] |
4,306,265 | 4,306,266 | Converting Jquery to Javascript | <p>Sorry, I am am very poor at JQuery.</p>
<p>I got one code for my requirement which is Jquery. Can any one please convert it into plain javascript</p>
<pre><code>$(window).scroll(function() {
var scrollTop = $(window).scrollTop();
$("#mybox").css("top", scrollTop + "px");
});
</code></pre>
<p>css part</p>
<pr... | javascript jquery | [3, 5] |
360,164 | 360,165 | Android AnimationDrawable memory management | <p>I'm creating an android application & it has background animations for each activity.
I used <code>AnimationDrawable</code> <code>setBackgroundResource(anim.xml)</code> to run the animation xml files and works fine.
problem is, when I test on devices,some devices gives me an <code>FATAL EXEPTION</code> telling t... | java android | [1, 4] |
3,708,776 | 3,708,777 | Truncate text with jQuery based on pixel width | <p>I'm trying to use jquery to write a fast function that calculates the pixel width of a string on a html page, then truncates the string until it reaches an ideal pixel width...</p>
<p>However it's not working (the text doesn't truncate)...</p>
<p>Here is the code I have:</p>
<pre><code> function constrain(text... | javascript jquery | [3, 5] |
1,013,372 | 1,013,373 | JavaScript / JQuery array/object problem | <pre><code>$.fn.fieldValues = function(successful)
{
var values = {};
this.each(function()
{
if(strstr(this.name, '[]', true))
{
var tmp = this.name.replace(/\[\]/, '');
if(typeof values[tmp] == 'undefined') values[tmp] = {};
var x = 0;
while(typeof values[tmp][x] != 'undefined') x++;
values[tmp][... | javascript jquery | [3, 5] |
4,034,017 | 4,034,018 | calling C++ "int WINAPI _tWinMain" from C# | <p>I can access a method from a C++ Dll using C# using this method in the C++:</p>
<pre><code>extern "C"
{
__declspec(dllexport) void DisplayHelloFromDLL()
{
printf ("Hello from DLL !\n");
}
}
</code></pre>
<p>this works great...but the solution I am working with uses this as the entry point:</p>
<pre><cod... | c# c++ | [0, 6] |
2,041,042 | 2,041,043 | javascript bind validators | <p>Ive got some validators in my UpdatePanel. If OnServerZValidate returns false corresponging message is displayed atthe wrong field but all javascript I used to bind some options on click to some classes isnt working.</p>
<p>this is the script, it works if the page is loaded for the first time:</p>
<pre><code>$(doc... | jquery asp.net | [5, 9] |
2,712,762 | 2,712,763 | Dynamic code to addClass to an element specified in the link | <p>I'm trying to add a class to an element specified within my HTML from clicking on a button.</p>
<p>HTML:</p>
<pre><code><div id="servicenext"><a href="#nav2"><p class="four">next</p></a>
</code></pre>
<p>Script:</p>
<pre><code>$('#servicenext a').click(function(){
$('ul.navigat... | javascript jquery | [3, 5] |
521,016 | 521,017 | list picker asp.net | <p>I have list picker asp.net one is assigned techs and unassigned techs my problem I need to remove the duplicate's name form unassigned I need a way to delete mike from list box b</p>
<pre><code>list box A
Mike
list box B
Mike
Adam
TOm
</code></pre>
| c# asp.net | [0, 9] |
2,087,316 | 2,087,317 | Adding and removing content in jQuery | <p>If I create a function with jQuery that adds an empty div, performs some animation inside the blank space created by the div, then removes the div, the browser never makes room for the empty div (height and width are set).</p>
<p>If I don't remove the empty div in my function, then the browser will create the neede... | javascript jquery | [3, 5] |
3,000,973 | 3,000,974 | How to convert format date from PHP to Javascript | <p>I have a php file which I will later change into the form of an HTML file, which be current constraints are:
<strong>- Date format using Javascript.</strong></p>
<p>Her script like the following snippet:</p>
<pre><code><script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
<script... | php javascript | [2, 3] |
3,568,539 | 3,568,540 | photo mosaics in javascript | <p>Is there any jquery plugin or a javascript library to produce photo mosaics, ie creating an image made up of smaller images ? (cf: <a href="http://en.wikipedia.org/wiki/Photographic_mosaic" rel="nofollow">http://en.wikipedia.org/wiki/Photographic_mosaic</a>)</p>
| javascript jquery | [3, 5] |
230,423 | 230,424 | Records Storage Scenario | <p>I want your Suggestions on this and i want to implement this functionality in a better way. I have a list of records and it will contain 200 to 300 records or even more and the records is unique for each user. When the user select the records need to update the selected record from the list but that will not update ... | c# asp.net | [0, 9] |
137,772 | 137,773 | Data binding in gridview column using eval | <p>I hava grid containing a column for displaying countrynames. I need to display value in that column as contrycode-first 10 letters of country name (in-India) .I tried it using Eval functions with in the item template:</p>
<pre><code><asp:TemplateField>
<ItemTemplate>
<asp:Label ID="CountryNam... | c# asp.net | [0, 9] |
5,989,551 | 5,989,552 | Best Practice: iPhone app communicating to php script hosted on server | <p>My iPhone app communicates with a php script hosted on a server. Hard coded into the app is the domainname.com/phpscript.php?=data</p>
<p>If something happens to my domain name, the app won't work. Is there a best practice for handling this. Do you suggest a DNS or something? I'm just looking for ways to avoid a co... | php iphone | [2, 8] |
14,357 | 14,358 | How to show milliseconds in count down timer javascript | <p>I have a javascript code that displays a count down timer from 5 minutes.</p>
<p>This is the code</p>
<pre><code>var mins
var secs;
function cd() {
mins = 1 * m("05"); // change minutes here
secs = 0 + s(":00"); // change seconds here (always add an additional second to your total)
redo();
}
function... | javascript jquery | [3, 5] |
5,023,594 | 5,023,595 | replace figure with value from var | <p>I have a function and I have to set some options in it:</p>
<pre><code>var g4 = new JustGage({
id : "g4",
value : (0, 200),
min : 0,
max : 500,
title : "Facebook likes",
showMinMax : false
});
</code></pre>
<p>From another function I get the counter of my likes:</p>
<pre><code>function(data) {
var l... | javascript jquery | [3, 5] |
5,555,781 | 5,555,782 | Why does this code get a forceclose error? | <pre><code>public class main extends Activity {
/** Called when the activity is first created. */
EditText username,password1;
Button sub;
String uname,pass;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.m... | java android | [1, 4] |
5,753,020 | 5,753,021 | what's the best way to add a class to the div with a class of post every 4 seconds using jquery? | <p>what's the best way to add a class to the div with a class of post every 4 seconds using jquery?</p>
<pre><code><div class="34 post">
<img width="311" height="417" src="#" class="#" alt="newspapers" />
<h2><a href="#">Headline News Part 2</a></h2>
<p>testing new content<... | javascript jquery | [3, 5] |
3,260,129 | 3,260,130 | convert string to uniqueidentifier in asp.net | <p>Is there any built in method in asp .net to convert a string to a unique identifier just like <code>.ToString()</code>.<br>
I got an error <code>Conversion failed when converting from a character string to uniqueidentifier.</code><br>
Or does anyone have an idea how to do solve this problem. Thanks.</p>
| c# asp.net | [0, 9] |
4,845,187 | 4,845,188 | How can I determine if the first or third Wednesday of the month has yet to arrive, and if so, which one is nearest to the current date? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/11061174/getting-specific-days-in-a-month">Getting specific days in a month</a> </p>
</blockquote>
<p>I've touched on this problem once before, in <a href="http://stackoverflow.com/questions/5421972/how-to-find-... | c# asp.net | [0, 9] |
3,879,675 | 3,879,676 | help with convert in java for android | <p>I have this code in C#, I have tried to convert him to Java for android, but I get an error in doing so. </p>
<p>This is the C# code:</p>
<pre><code>sum = "";
string Num = "123ABC";
int i, j;
string TmpOT;
for (i = 0; i < Num.Length; i++)
{
TmpOT = Num.Substring(i, 1);
j = Convert.ToChar(TmpOT);
j =... | c# java android | [0, 1, 4] |
2,311,005 | 2,311,006 | Change image based on wrapper height | <p>I am trying to write a script that looks at the height of all the postInside wrappers on a page. If the height of each individual wrapper is less than 320px, I want to add a style to an image within that particular wrapper. </p>
<p>Here is my code. Any feedback would be great. </p>
<pre><code>jQuery('div.postIn... | javascript jquery | [3, 5] |
4,302,542 | 4,302,543 | hover and if statement firing only ONCE | <p>mouseover should be bound as event that checks "if" statement each time mouse enters
a region of <code>.input-medium</code>, but "if" checks only 1 time. Of there would be no class and "if"
becomes false - hover will still be working.</p>
<p>I need to check if class exists each time.</p>
<pre><code>$('.input-medi... | javascript jquery | [3, 5] |
4,349,242 | 4,349,243 | How to get value of text box using name attribute | <p>How to get a box value using name attribute instead of id attribute in jquery
Thanks</p>
| javascript jquery | [3, 5] |
481,309 | 481,310 | Can I run this nested functions in a better way? | <p>I was just wondering if I could run this functions in a better way, I mean I don't like the collection of functions in there :</p>
<pre><code>setTimeout(function() {
$(self.header_buttons_classes[0]).addClass(self.animations[15]);
setTimeout(function() {
$(self.header_buttons_classes[1])... | javascript jquery | [3, 5] |
5,534,082 | 5,534,083 | JavaScript Image Flip | <p>I have some code that is running a JavaScript image flip, I'm new to JS and I need the image to flip when hovered and and hovered off, if I put it to onhover it flips everytime the mouse is moved, not when the mouse is off.</p>
<p>Here is the code:</p>
<pre><code>$(document).ready(function () {
setInterval(fun... | javascript jquery | [3, 5] |
5,107,288 | 5,107,289 | PHP messes up <script> in the .tpl header | <p>I am writing some php code that creates pages from tpl files, which works just fine. However, I have decided to include some funky jquery stuff using the jqueryui engine and I can't get it to work. In the header.tpl, I have the following</p>
<pre><code><script src="...."></script>
<script>
$(funct... | php jquery | [2, 5] |
468,292 | 468,293 | get the value from one master to another | <p>iam using a dropdownlist in one master page. i want to get the dropdownlist value in session and i want to use it in another master page.</p>
<p>how to do this.</p>
| c# asp.net | [0, 9] |
1,697,760 | 1,697,761 | Html element to jQuery element | <p>I have something like this:</p>
<pre><code>$(myElement).siblings()[0].height()
</code></pre>
<p>And I cannot get it to work. <code>.siblings()[0]</code> returns pure html instead of a jquery object. How to map it to jquery again, so that I can use .height() property on it?</p>
| javascript jquery | [3, 5] |
5,936,035 | 5,936,036 | Get image width and height | <p>I need to get an image's dimensions in javascript (jQuery) when no styles are specified for it (jQuery's css() returns 0).</p>
<p>Maybe it is because I'm loading the image with jQuery just before asking for its dimensions. If this is the case, is there any event to listen that tells when the image has been loaded?<... | javascript jquery | [3, 5] |
2,802,018 | 2,802,019 | translation did not work with ajax poupup extender | <p>I had translation solution in my website and I added code to translate datalist headers to arabic language this in dealer list page, also I added popup extender that ask user to register to see the dealer list data, If user put username and password the datalist worked well and headers translated well, but when user... | c# asp.net | [0, 9] |
589,925 | 589,926 | Does this javascript pattern encourage memory leaks? | <p>I am finding myself rather confused regarding javascript garbage collection and how to best encourage it.</p>
<p>What I would like to know is related to a particular pattern. I am not interested in whether the pattern itself is considered a good or bad idea, I am simply interested in how a browsers garbage collect... | javascript jquery | [3, 5] |
368,690 | 368,691 | how to get a variable over to a function? | <p>i want to get a variable (which is set when a link is clicked) over to a function and show it as a pop out.</p>
<p>the code as shown below:</p>
<pre><code>$('a#link1').click(function(e){
e.preventDefault();
var value = 'true';
});
function exe(){
alert(value);
}
</code></pre>
<p>when the function is exe... | javascript jquery | [3, 5] |
5,257,871 | 5,257,872 | dynamically display products in two columns | <p>I have a jsfiddle <a href="http://jsfiddle.net/K5PGp/" rel="nofollow">http://jsfiddle.net/K5PGp/</a> that I am trying to modify so that it displays the "products" in two columns even if the browser is IE 8.</p>
<p>For example, if all 8 products are displayed, it should look like this:</p>
<h2>one two</h2>
<h2... | javascript jquery | [3, 5] |
3,698,828 | 3,698,829 | Jquery select value passing | <p>How do I get current value of an html select then pass it to another html select after a "click" event via jquery? </p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
3,884,339 | 3,884,340 | Downloading sent mails from Yahoo, Gmail and Hotmail | <p>I am doing an <a href="http://en.wikipedia.org/wiki/Android_%28operating_system%29" rel="nofollow">Android</a> application and I want to get the last 25 sent mails from a certain email account.</p>
<p>For Gmail I might use <a href="http://g4j.sourceforge.net/" rel="nofollow">http://g4j.sourceforge.net/</a> and ther... | java android | [1, 4] |
5,465,906 | 5,465,907 | JSONObject throws exception | <p>I have this section of code (note that <code>responseBody</code> truly comes from a web server).</p>
<pre><code>public JSONObject getObj(){
String responseBody = '[{"zip":"56601","city":"Bemidji","state":"MN","county":"Beltrami","dist":"0.14802"},{"zip":"56619","city":"Bemidji","state":"MN","county":"Beltrami",... | java android | [1, 4] |
5,906,704 | 5,906,705 | jQuery checking which radiobutton is checked | <p>I got 2 radiobutton and 1 radcombobox</p>
<pre><code><asp:RadioButton ID="cbxYes" Width="60" Height="30" runat="server" GroupName="proffesional" OnCheckedChanged="cbxYes_CheckedChanged" />
<asp:RadioButton ID="cbxNo" runat="server" Width="60" Height="30" GroupName="proffesional" Checked="true" OnCheckedCha... | jquery asp.net | [5, 9] |
73,497 | 73,498 | Not able to use Log android | <p>I'm making about my 4th android app, and nothing that I try to log is showing up, I'm so confused. All my other apps will log things just fine, but this won't I think this is the error message for logging,
<code>ignoring message with no sender credentials</code>
Although I'm not sure, as it shows up alot. Here is wh... | java android | [1, 4] |
246,480 | 246,481 | Jquery validation is not working. Jquery - Javascript | <p>My problem is with the validation of my form using Jquery. My validation was working good with the <code>validate</code> function only but then I added the <code>submit</code> option and the validation is not taking place. I would like to validate my form and then execute the submit. </p>
<pre><code>$(document).rea... | javascript jquery | [3, 5] |
5,483,369 | 5,483,370 | how do I use jQuery to fire one common handler for more than one different events triggers? | <p>On my web page I have two hyper links which do almost similar thing when an onclick event happens. Just to finish up I copy pasted the code twice and changed the event targets, so I essentially have code similar to this</p>
<pre><code>$('#editprofilebutton').click(function(){/*do some magical stuff here*/});
$('#ch... | javascript jquery | [3, 5] |
2,140,155 | 2,140,156 | Android Dev : NO EC/IO? | <p>Wondering how to get the <code>EC/IO</code> value on the Android Nexus One phone.</p>
<p>Actual methods given by Android class <code>android.telephony.SignalStrength</code> are:</p>
<pre><code>/* Get the CDMA Ec/Io value in dB*10 */
int getCdmaEcio()
/* Get the EVDO Ec/Io value in dB*10 */
int getEvdoEcio() ... | java android | [1, 4] |
4,870,504 | 4,870,505 | DetailsView binding correctly but only one field being displayed | <p>I have my DetailsView bound to get data. It correctly returns 4 rows of information but only displays</p>
<p>Skill : Javascript</p>
<p>I assume im missing some sort of loop to implement it to display</p>
<pre><code>Skill : Javascript
Skill : C#
Skill : Actionscript 3
Skill : HTML
</code></pre>
<p>How would I go ... | c# asp.net | [0, 9] |
2,791,965 | 2,791,966 | Bug Running Android Tutorial HelloTabWidget under SDK 1.5: "setCurrentTag(getIntent())" | <p>does not compile. Indeed: even in 1.5, this api, getIntent(), is already listed as deprecated.</p>
<p>The error message I get complains that getIntent() does not return a String, but setCurrentTab() expects a string.</p>
<p>If I guess and change the line to read:</p>
<p>"tabHost.setCurrentTab(1); // was setCurren... | java android | [1, 4] |
178,468 | 178,469 | jQuery: Any way to "refresh" event handlers? | <p>I have two divs, one that holds some stuff and the other with all possible stuff. Clicking on one of the divs will transfer items to the other div. The code I came up with is:</p>
<pre><code>$("#holder > *").each(function() {
$(this).click(function(e) {
$(this).remove();
$("#bucket").append(t... | javascript jquery | [3, 5] |
5,085,027 | 5,085,028 | Ques regarding sending email to a specific user | <p>So I just googled n found out this code:-</p>
<pre><code>MailMessage message = new MailMessage ("abc@somedomain.com","administrator@anotherdomain.com","Testing","This is a test mail");
</code></pre>
<p>Now my ques:-
How do I send a nicely formatted Email with links and all instead of simple text "This ... | c# asp.net | [0, 9] |
4,837,379 | 4,837,380 | Dynamic user controls null, but cannot create them during page_init | <p>I have a winforms based website.</p>
<p>This site has a page that contains a repeater.</p>
<p>The repeater contains a number of items, each of which contains a number instances of a user control.</p>
<p>The number of instances varies for each item in the repeater.</p>
<p>Normally, if I was dynamically creating a... | c# asp.net | [0, 9] |
4,287,985 | 4,287,986 | Returning a result | <p>I want a JavaScript function that posts to a php, and returns the value, so that calling the function from another function in JavaScript gives me the value. To illustrate better please look at my current code:</p>
<pre><code>function sumValues(number1, number2) {
var return_val;
$.post("sum_values.php", {n... | javascript jquery | [3, 5] |
3,376,759 | 3,376,760 | .NET, ASHX, "Server cannot append header after HTTP headers have been sent" after sending PDF Streem | <p>I visit my ASHX file, and it outputs a PDF perfectly. If I visit the very same ASHX with a different query string (I append DateTime.Now.Ticks to the end each visit), and I get this error:</p>
<p>Server cannot append hader after HTTP headers have been sent.</p>
<p>My code is below:</p>
<pre><code>copy.CloseStrea... | c# asp.net | [0, 9] |
5,823,828 | 5,823,829 | Opening an input dialog in Android | <p>I would like to open at a certain point an input dialog, whose input I would be able to store and use it later.
All examples I found on the Internet were pretty advanced, and I suppose they weren't as simple as I want it to be - I just need something similar to Java's :</p>
<pre><code>String name = JOptionPane.show... | java android | [1, 4] |
778,335 | 778,336 | image slide gallery with jquery | <p>I'm try to create a sliding banner with jquery here. </p>
<p>I tried to code in this manner </p>
<pre><code> .post(this,{ajax : 1}, function(data){
var oldImage = $('div.banner > img');
var newImage = $(data).insertAfter(oldImage).css('position','absolute').css('left',800);
newImage.load(function... | javascript jquery | [3, 5] |
4,324,133 | 4,324,134 | Pass multiple javascript arrays to PHP page | <p>I was trying to find an answer for this question for a while but no luck.</p>
<p>The problem is this. On one PHP page i have multiple javascript arrays (lets say 2). One of those arrays is an array that represents pieces of a shirt and the other array contains color of each piece.</p>
<pre><code> $pieces[0] = 'ba... | php javascript jquery | [2, 3, 5] |
56,812 | 56,813 | ASP.NET Controls after postback | <p>I have a web page which consists a few asp:buttons, asp:textbox, gridview and asp:imagebutton.</p>
<p>When the Page loads for the first time, the user insert a number into the textbox, and then presses the button which preform the postback.</p>
<p>My question is that : after the postback in the page_load event I h... | c# asp.net | [0, 9] |
1,529,263 | 1,529,264 | Event fire again and again when use response method for export gridview to excel | <p>hello everybody
i am using c# .net in my webapplication.
i have a method for export gridview data to excel name ExportToExcel().
in this method i use response.contenttype, response.clear(),response.write(),stringwriter,htmltextwriter methods.
this method work fine and export data correctly.
but when i write
button... | c# asp.net | [0, 9] |
2,611,439 | 2,611,440 | Javascript or Jquery add, remove, copy rows to table | <p>I want to know how to or where to find this kind of code. Let me show you first</p>
<blockquote>
<p>----- demonstration start ----- Add new line</p>
<p>Line 1 - textbox | textbox | checkbox | radiobox | btnCopy, btnDelete,
btnAdd</p>
<p>Line 2 - textbox | textbox | checkbox | radiobox | btnCopy, btnDe... | javascript jquery asp.net | [3, 5, 9] |
1,756,362 | 1,756,363 | Banner Fade In Jquery not working | <p>My banner works in most of the browsers except in IE 7,8 and I think 9. At the bottom of the banner, when fadein is in effect, shadows under the banner go black:</p>
<p><img src="http://i.stack.imgur.com/J1ZSk.png" alt="Black shadows under the banner"></p>
<p>Can anyone help me? </p>
<p>Website: <a href="http://w... | javascript jquery | [3, 5] |
6,028,165 | 6,028,166 | Slideshow with music Control photoalbum like Asp.net | <p>I am searching for an Asp.net control like this one ,that can animate and make dynamically a slideshow with photos from database and music and then show in my asp.net page</p>
<p>Link here:
<a href="http://doctorbilic.com/cartea/" rel="nofollow">http://doctorbilic.com/cartea/</a></p>
<p>The above is coded in PHP</... | c# asp.net | [0, 9] |
5,978,836 | 5,978,837 | How to create loading script in my case | <p>I am trying to create loading script for my site. When the user clicks the button, it will call bunch functions and it takes time to load. I don't want the users to wait without loading gif. Are there any ways to solve this? Thanks a lot.</p>
<p>onload doesn't seem to work...</p>
<pre><code>$('.test').click(functi... | javascript jquery | [3, 5] |
5,535,326 | 5,535,327 | Prevent javascript execution | <pre><code><div onclick="AutogeneratedMethod()">
<span>SPAN 1 : I require auto method </span>
<span onclick="DesiredMethod()">SPAN 2 : I do not require auto method</span>
</div>
</code></pre>
<p>In the above code sample, how do I prevent calling the <code>AutogeneratedMethod()</code... | javascript jquery | [3, 5] |
4,694,330 | 4,694,331 | How to implement a click function for an element within a tiled grid that when clicked it & elements in it's proximity fade out | <p>I am trying to make a fairly simple grid game where users have to click tiles to reveal content underneath. The first issue i'm struggling with is implementing a click function that would remove not only the tile clicked but also a few tiles around it, preferably random.</p>
<p>My current code:</p>
<pre><code> ... | javascript jquery | [3, 5] |
3,902,240 | 3,902,241 | Unable to Print the full content of Page when horizontal scroll bar appears | <p>I need to print the current page in the asp.net application for that I am using <code>javascript:window.print()</code>.</p>
<p>It's working fine when the page content is within the bounds. However, if the horizontal scrollbar appears as a result of overflow, am able to print only the visible content while the overf... | javascript jquery asp.net | [3, 5, 9] |
336,904 | 336,905 | Android json response in array | <p>The following code shows only the first record. Can anyone correct my mistake.</p>
<p>Using this try i established connection with php </p>
<pre><code>try{
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://10.0.2.2/androidphp/1/index.php");
... | java android | [1, 4] |
676,778 | 676,779 | jquery multiple click event in one click event | <p>i used this below function...for each id i call one function..i call only one click function at a time so i need to use single click function for this..</p>
<pre><code> .append($('<a>',{'class':'list-header','id':'call1','name':'name','value':'1'}).append('1'))
.append($('<a>',{'class':'list-... | javascript jquery | [3, 5] |
1,203,286 | 1,203,287 | Running Javascript after control's selected value has been set | <p>Simple asp.net application.</p>
<p>I have two drop-down controls, on the first-drop down I have a javascript <code>onChange</code> event. The javascript enables the second drop-down and removes a value from it (the value selected in the first drop-down). If they click the blank first value of the drop-down, then th... | asp.net javascript | [9, 3] |
3,794,380 | 3,794,381 | Android App crashing on setText | <p>I am new to android development and my code is not working how it should. The following does not update the text I have in a string called otp1. I think it is firing the exception, is there a way to see if it is? Also, any tips on why it is not working would be great.</p>
<pre><code>package com.josephflynn.HelloWor... | java android | [1, 4] |
3,632,726 | 3,632,727 | difference of load/ready events between window and document | <p>Is there a difference between <code>$(window).ready(function(){})</code> and <code>$(document).ready(function(){})?</code></p>
<p>If so, what is it?</p>
<p>In that same vein, what is the difference between <code>$(window).load(function(){});</code> and <code>$(document).load(function(){});</code>?</p>
| javascript jquery | [3, 5] |
907,949 | 907,950 | Update HTML H4 tag using jQuery | <p>I am having trouble changing the "text" between an HTML tag using jQuery. When someone clicks on a "radio button", the text should be updated in a certain HTML element. Here is my HTML:</p>
<pre><code><div class="radio-line" id="radio-manager">
<input type="radio" id="rad-400" name="radio-manager" valu... | javascript jquery | [3, 5] |
1,104,054 | 1,104,055 | Saving String Input on Android | <p>Right, I've been trying to find a solution to this for a good while, but it's just not working for some reason.</p>
<p>In short, what I want to do is save every input String the user inputs into a file. Every time the activity is created again, I want to re-input these strings into a new instance of an object.</p>
... | java android | [1, 4] |
286,281 | 286,282 | jquery element selection | <p>I know I can select elements using the following syntax, but what other ways are available? I didn't know what to search for when trying to determine others. Also, are there ways to select elements via wildcard characters?</p>
<pre><code> //Selection by the element's ID
$('#mybutton').on('click', function (e) {... | javascript jquery | [3, 5] |
3,268,364 | 3,268,365 | Cloning HTML Element with the Events | <p>I have an HTML image element as shown below: </p>
<pre><code>var actionImage = $("<img></img>");
actionImage.attr("id", getRandomString());
actionImage.attr("width", "16").attr("height", "16").attr("src", "Action_normal.png");
actionImage.attr("style", "cursor: hand;");
actionImage.bind... | javascript jquery | [3, 5] |
5,247,797 | 5,247,798 | registering httpModules in web.config | <p>I am trying to register a custom HttpHandler in the web.config file. <strong><a href="http://msdn.microsoft.com/en-us/library/aa719858%28VS.71%29.aspx" rel="nofollow">MSDN's</a></strong> example shows an entry that is commented out...um which doesn't work so well. When I uncomment I receive a <code>Could not load f... | c# asp.net | [0, 9] |
2,135,875 | 2,135,876 | ajax control toolkit calendar for dynamically generated textboxes | <p>I have one problem.I have 30 dynamically generated textboxes as table rows in c#.net. for each of them i need to provide calendar tool. i am trying to use ajax calendar control.but it is not working.can u suggest me how to do and also some sample code?</p>
| c# asp.net | [0, 9] |
1,305,915 | 1,305,916 | posting rows of html table seperately to php | <p>I'm trying to store contents a tr in table #itemsTable, in array celValues and post it to php and repeat it (post next tr until last tr).
here is code:</p>
<pre><code>$('#save').click(function(){
//alert("hi");
var celValues= new Array();
$('#itemsTable tr').each(function() {
celValues[0] = ... | php jquery | [2, 5] |
788,130 | 788,131 | JQuery populate form depending on select option selected | <p>I am trying to add some form content depending on the option selected by a user.</p>
<p>For example if the user selects form 1 option the form is populated with different content that if the user selects option 2</p>
<pre><code><select>
<option>Form 1</option>
<option>Form 2</option>
... | javascript jquery | [3, 5] |
3,455,532 | 3,455,533 | Which iPhone first supported JavaScript? | <p>What version of the iPhone first supported JavaScript?</p>
| javascript iphone | [3, 8] |
5,456,179 | 5,456,180 | Android java Screen as an button | <p>How can I make the screen as a button?
I want to make a game where you click on the hole screen not just a button in Xml.
I want this code to be in Java not Xml.
Anyone with a tip out there?</p>
| java android | [1, 4] |
2,850,210 | 2,850,211 | javascript jquery change src of a script using a script | <p>I have a javascript script. It has a src element to it. This src is a url, and I would like to change it using javascript, just once to something else, or create it dynamically.</p>
<p>What's the best way to create a script element dynamically using javascript/jquery?</p>
<p>I have:</p>
<pre><code><script ty... | javascript jquery | [3, 5] |
1,486,337 | 1,486,338 | How to show image on hover in popup using jquery? | <p>I have lots of pets in a dropdown. what i want to achieve is that when ever i hover on dropdown, it will display the image of particular pet as a popup.</p>
<p>Any idea how can i achieve that?</p>
| javascript jquery | [3, 5] |
3,485,329 | 3,485,330 | having problems looping through elements using while loop | <p>I would like to loop through a collection of divs and randomly fade them out when a click event is triggered but at the moment I have to continually click to fade the other divs all out. I would rather click a div and have all its divs randomly fade out. I have added some console.logs into the while loop and everyth... | javascript jquery | [3, 5] |
4,464,353 | 4,464,354 | jQuery: FadeIn a selected value on click | <p>I have a selected box with 5 values. I'm trying to fadeIn inputs of what is selected in the box. For example: If input1 is selected, fade in input1 on click.</p>
<p>Here is what I'm trying to do:</p>
<pre><code>$(document).ready(function(){
$('.btn').click(function() {
if($("#selectbox").value =... | javascript jquery | [3, 5] |
3,515,740 | 3,515,741 | Java Robot class eqivalent code in C# | <p>Can somebody help me in converting the following java code to C#.</p>
<pre><code>Robot robot = new Robot();
robot.keyPress(KeyEvent.VK_WINDOWS);
robot.keyPress(KeyEvent.VK_M);
robot.keyRelease(KeyEvent.VK_WINDOWS);
robot.keyRelease(KeyEvent.VK_M);
</code></pre>
<p>I understood we have to use 'user32.dll'. But I am... | c# java | [0, 1] |
1,556,212 | 1,556,213 | Making a phonecall from a AlertDialog | <p>Hi I've got a AlertDialog that shows the users some information and two buttons "yes" or "no". If the user press "yes" the application should call a specific number, but the application crashes. My sourcecode:</p>
<pre><code>new AlertDialog.Builder( this )
.setTitle( "" )
.setMessage("")
.setPositiveBut... | java android | [1, 4] |
6,019,340 | 6,019,341 | IE7 specific code for iframe in js | <p>as i have written some code in js for IFRAME but this is working perfectly in all other browser but not in IE7 so please let me know if i can set some specific code for IE7 so that i can set different parameter for IE7 css</p>
| php javascript | [2, 3] |
1,746,660 | 1,746,661 | does php ternary operator only 'return' a true or false? | <p>I have a php ternary operator as follows that does not work:</p>
<pre><code> var newLoginTxt = <?=$_SESSION['loginStatus']? 'Logged in' : 'Login'?>;
alert("About to set the navbar's login text to: " + newLoginTxt);
</code></pre>
<p>No alert box appears at all.</p>
<p>However this does work:</p>
<pre><code... | php javascript | [2, 3] |
618,577 | 618,578 | how to refresh the current window using c# in asp.net | <pre><code>if (TextBox1.Text == row["UserName"].ToString()
&& TextBox2.Text == row["Password"].ToString())
{
//here i have to reload the page
Button1.Attributes.Add("onclick", "alert('Login SucessFull')");
break;
}
</code></pre>
| c# asp.net | [0, 9] |
5,304,425 | 5,304,426 | does android drop the cellular connection when there is a wifi connection? | <p>I am using the following code to iterate through the network interfaces on android:</p>
<pre><code>try {
for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {
NetworkInterface intf = en.nextElement();
for (Enumeration<InetAddress> e... | java android | [1, 4] |
672,131 | 672,132 | How can I make the ctrl+f highlight effect? | <p>This is a simple search function with highlight effect, however, it highlight the whole word instead of the matched strings.</p>
<p>How can I make it like doing ctrl+f in browser that highlights just part of the matched word?</p>
<pre><code>$(document).ready(function(){
$('input').keyup(function(){
$("... | javascript jquery | [3, 5] |
566,442 | 566,443 | Trying to populate a table using repeaters | <p>I'm trying to populate a table using a database. I've been trying to follow numerous examples but to no avail. I feel like I'm missing something fundamental as this should be this hard... Thanks.</p>
<pre><code> <table>
<asp:Repeater ID="rpt" runat="server">
<HeaderTemplate>... | c# asp.net | [0, 9] |
5,382,785 | 5,382,786 | Include jQuery document.ready() as an include file | <p>Am I able to include as an include, an external jquery.dialog.js file that consists of the following:</p>
<pre><code>$(document).ready(function(){
$(function() {
location.hash = 'PAGETOP';
});
$("#dialogou").dialog({
autoOpen: false,
closeOnEscape: false,
resi... | javascript jquery | [3, 5] |
1,769,632 | 1,769,633 | ImageView Width And Height Programmatically In TableLayout | <p>Actullay all I want is in question title. I want to set fix width and height for ImageView in TableLayout. How can I do it?</p>
<p>This is my code:</p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.buddy_list);
TableLayout budd... | java android | [1, 4] |
2,853,744 | 2,853,745 | Inserting a character inside the body of a paragraph | <p>If someone enters a very long title/sentence, the text will stretch across the web page.</p>
<p>Is there a way to break the text so it continues on to the next line?</p>
<p>Using overflow hidden will hide the text.</p>
<p>I think I should be using the wbr tag.</p>
<p><strong>Should I use the insert(); method for... | c# asp.net | [0, 9] |
1,993,909 | 1,993,910 | jQuery Plax - Sluggish on Firefox | <p>im ahving a little issue here. I setup the Plax (<a href="https://github.com/cameronmcefee/plax" rel="nofollow">https://github.com/cameronmcefee/plax</a>) plugin on my project, which produces a parallax effect. Everything is fine, but its too sluggish on Firefox. Even on IE9 works nice, but not on Firefox. On Window... | javascript jquery | [3, 5] |
5,135,719 | 5,135,720 | Validate URL Field using Jeditable plugin | <p>i want to validate a URL. i am using jquery plugin jeditable. i want when some one click on the field and enter an invalid URL it show error.</p>
<p>here is my code. how can i modify . please help</p>
<pre><code>$(function() {
$("#url").editable(
function(data)
{seller=new BHSeller();
... | javascript jquery | [3, 5] |
844,837 | 844,838 | Browser Specific Jquery | <p>I have had to write some JQuery specifically for IE6, fixes some bugs with compatability between IE6 and IE8. However I only want to apply the IE6 JQUERY to IE6 and not have it load with IE8.</p>
<p>Can anyone suggest a way of detecting IE6 and running the IE6 Specific JQUERY?</p>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.