Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
4,424,352 | 4,424,353 | Passing a jQuery event as a variable | <p>You can do this with JavaScript:</p>
<pre><code>function bar(test) {
alert(test);
}
var foo = bar;
foo('hi');
</code></pre>
<p>I'd like to be able to do something similar with a jQuery event:</p>
<pre><code>var foo = $('#bork').click;
foo(function() { alert('I was just clicked.'); });
</code></pre>
<p>Howeve... | javascript jquery | [3, 5] |
3,412,797 | 3,412,798 | Any tutorials or books that teach C# the way I learned java (commandline, without intelliSense or VS)? | <p>I'm a good java programmer and want to learn C# (seems fun, delegates, linq, lambda expressions, access to native dlls and unmanged code etc).</p>
<p>Every tutorial, book seems to teach C# with Visual Studio. But at the learning state I want to write everything manually without intelliSense or project/solution etc ... | c# java | [0, 1] |
4,031,111 | 4,031,112 | data pager in listview Issue | <p>I have a listview where in I placed datapager as follows.
I am using SQl datasource and binding the records to ListView.</p>
<pre><code>asp:ListView runat="server" ID="ListView1" DataKeyNames="ProductId,GameName" DataSourceID="GameTable" OnItemCommand="On_Select_Item"
</code></pre>
<p>and datapager in the LayoutT... | c# asp.net | [0, 9] |
1,742,110 | 1,742,111 | how might I disable a div when the data inside it reaches 0 possibly using an if else? | <p>I have a snippet of javascript that displays the amount of sessions available for an event </p>
<pre><code>for ( var j in data.events[i].sessions ) {
first_session_id = !first_session_id ? data.events[i].sessions[j].id : first_session_id;
session_html +=
... | javascript jquery | [3, 5] |
2,334,015 | 2,334,016 | how to set text an integer and get int without getting error | <p>This is the code i used in getting the intent for integer. The String get intent works fine and displays well but when i put the integer i get a force close error. I might be doing something wrong here. This is the code:</p>
<pre><code>package kfc.project;
import android.app.Activity;
import android.content.Intent... | java android | [1, 4] |
1,478,464 | 1,478,465 | jQuery check all not working on checkboxes | <p>I'm writing some code that will allow the following:</p>
<p>1.) If a user checks a checkbox it will change the parent <code><tr></code> to have a class of selected (this can also be unchecked and remove the class)</p>
<p>2.) Any checkboxes that are already checked will have the class added on document load</... | javascript jquery | [3, 5] |
3,772,206 | 3,772,207 | To identify the load - from button click or refresh | <p>I have a button in my page which does some transaction in my database.</p>
<p>Currently, I am facing a problem: </p>
<ul>
<li>If I click the button it posts back the page and it goes into <code>button_Click(object sender, EventArgs e)</code> and does the transaction <strong>which is okay for me</strong>.</li>
<li... | javascript asp.net | [3, 9] |
4,432,870 | 4,432,871 | jQuery LightBox( SlimBox): How to populate an ASPX file inside it? | <p>I am having an ASPX page and i m trying to using jQuery light box(slimbox).I am able to invoke the Lightbox.Now i want to show the content of another page in this lightbox.Ex : I have a data entry form for user registration(signup.aspx).I want to show this when user clicks on the link (which is now showing image in ... | asp.net jquery | [9, 5] |
5,792,569 | 5,792,570 | use database to keep track log in attempt | <p>I know this question might be duplicate of other similar questions but I couldn't find a proper answer, sorry if I didn't show you the code becuase I am not sure how to do it.</p>
<p>I try to create a login page in PHP, but I want to keep track of the users log in attempt if they didn't sucessfully log in. I assume... | php javascript jquery | [2, 3, 5] |
3,735,522 | 3,735,523 | mediaplayer.start() makes app crash only on Motorola Droid devices | <p>I have a soundboard uploaded on the android market. The app is doing pretty well in the market(50,000+ downloads), but the developer console reports that I have an error, and this is bothering me.</p>
<p>All crash reports come from only one device - Motorola Droid. I've looked at what the error actually is, and it ... | java android | [1, 4] |
4,407,417 | 4,407,418 | Are inline function calls completed first in every browser? | <p>Is it guaranteed that inline <code>onClick="asdf()"</code> will always <strong>complete</strong> before any jquery attached functionality is called? In all browsers?</p>
<p>Seems so,( <a href="http://jsbin.com/eribeb/1/edit" rel="nofollow">http://jsbin.com/eribeb/1/edit</a> ) but I haven't seen any documentation th... | javascript jquery | [3, 5] |
3,756,460 | 3,756,461 | javascript onchange query issue | <p>I have the following javascript at the head of my file.</p>
<pre><code><?php
echo "<script language='JavaScript'>\n";
echo "var times = new Array();\n";
echo "times[0] = 0;\n";
foreach($times as $time)
{
echo "times[". $time->DESC ."] = " . $time->FEE . ";\n";
}
echo "</script>\n";
?>
</code... | php javascript | [2, 3] |
5,186,961 | 5,186,962 | passing a string parameter when calling a method in asp.net | <p>I have this method in cs page:</p>
<pre><code>public String getToolTip(Object productId, Object imgBtnId)
{
return UtilsStatic.getWishListButtonToolTip(Int32.Parse(productId.ToString()), getCumparaturiCategoryID(imgBtnId.ToString()));
}
</code></pre>
<p>and i want to call it from asp.net page (aspx).</p>
<p>I... | c# asp.net | [0, 9] |
535,334 | 535,335 | Query string problem | <pre><code>Response.Redirect(my site's url + "editques/" + "QuesID/" + QuesID + "/" );
</code></pre>
<p>Redirecting as shown above...In the editques.aspx page, whenI debug, I see the Query String's value as {QuesID=jhgjgjhjk&PID=jhhkjkj}</p>
<p>Where on earth did this PID came from!??</p>
| c# asp.net | [0, 9] |
3,495,789 | 3,495,790 | How to increase div content value? | <p>I want to increase div value +1 in certain events.How can i get div value and increase it?</p>
| javascript jquery | [3, 5] |
3,826,360 | 3,826,361 | Load user control data after page postback? | <p>I have a page where a user can update their user information (like their first name). I also have a user control on this page that displays a lot of information, including the user's first name.</p>
<p>My problem I'm having is that when I change the first name on this page, the user control isn't updated after I sa... | c# asp.net | [0, 9] |
2,657,034 | 2,657,035 | Combo box id in JavaScript | <p>Can I find the <code>id</code> of a combo box in JavaScript, not its value?</p>
<p>jsp file code</p>
<pre><code>function ChangeColor(colors) {
var partcolor = (colors.options[colors.selectedIndex].value);
if (partcolor=="black"){
document.getElementById("colorRow").style.backgroundColor = 'black';
... | java javascript | [1, 3] |
1,448,269 | 1,448,270 | Android: Help with tabs view | <p>So I'm trying to build a tabs view for an Android app, and for some reason I get a force close every time I try to run it on the emulator. When I run the examples, everything shows fine, so I went as far as to just about copy most of the layout from the examples(a mix of Tabs2.java and Tabs3.java), but for some reas... | java android | [1, 4] |
560,260 | 560,261 | Not able to cache HttpResponse using cachingHttpClient in android | <pre><code>public class CacheDemo {
public static void main(String[] args) {
CacheConfig cacheConfig = new CacheConfig();
cacheConfig.setMaxCacheEntries(1000);
cacheConfig.setMaxObjectSizeBytes(1024 * 1024);
HttpClient cachingClient = new CachingHttpClient(new DefaultHttpClient(), cacheConfig);
H... | java android | [1, 4] |
2,318,196 | 2,318,197 | Change event for combobox not getting fired in jQuery | <p>I am working in <a href="http://en.wikipedia.org/wiki/PHP" rel="nofollow">PHP</a>. I have written code for displaying a combo box like this:</p>
<pre><code><select name="country" id="idCountry" class="clsCountry" >
<?php foreach($objCountries as $objCountry):?>
<option value="<?php ech... | php jquery | [2, 5] |
2,306,484 | 2,306,485 | How to use Eval() dynamically in Asp.net | <p>I want to use like this</p>
<pre><code>for (int i = 1; i <= x; i++)
{string z=Request.Cookies[i.ToString()].Value;
%>
<td><%# Eval(z).ToString()%></td>
<% }
</code></pre>
<p>but its not taking variable "z". is any way to use like t... | c# asp.net | [0, 9] |
3,828,081 | 3,828,082 | Can't push items into array from anonymous callback function in Javascript | <p>I'm having a javascript issue that's driving me completely insane. I have a collection of data that I'm iterating over using the jQuery .each() method. Inside the .each() callback function, I'm pushing data on the an array. Here's the code.</p>
<pre><code>var p = procedure_tool.all();
previousValue = -1;
var pro... | javascript jquery | [3, 5] |
3,156,461 | 3,156,462 | Count the number of occurence of a case sensitive word in a paragraph in jquery | <p>I want to count the number of occurrence of a specific words in a paragraph.</p>
<p>I am writing my code for key down event. I may have few hundreds words initially that may increase later on.</p>
<p>SO when the user is typing i will match the words in a paragraph and then get the number of occurrence. I also need... | javascript jquery | [3, 5] |
1,122,790 | 1,122,791 | Android - Video raw folder not being picked up | <p>I cannot seem to pick up my raw video folder, I am using the below code:</p>
<pre><code> super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.learn_to_ref);
VideoView vd = (VideoView) findViewById(R.id.VideoView);
Uri uri = Uri.parse("android.... | java android | [1, 4] |
3,913,471 | 3,913,472 | How to call a PHP class method from a JavaScript function | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7165395/call-php-function-from-javascript">Call php function from javascript</a> </p>
</blockquote>
<p>I understand that php is server side and JavaScript is client side. But I would like to know how to run a PH... | php javascript | [2, 3] |
4,003,942 | 4,003,943 | applying css to nth child words | <p>An interesting little problem...</p>
<p>Trying to loop through the children of a paragraph (words) and color them, one by one.</p>
<p>Here's a hard coded working version with words in separate elements:
<a href="http://jsfiddle.net/JjRHT/25/" rel="nofollow">http://jsfiddle.net/JjRHT/25/</a></p>
<p>using</p>
<pre... | javascript jquery | [3, 5] |
14,909 | 14,910 | Global Objects accessible throughout Android apllication | <p>I have an application that uses a custom class. When the app is started I populate an instance of this class in the main activity with all the data it will hold.</p>
<p>Basic data is then shown in a ListView from which you can select a ListView item to see further information displayed in another Activity.</p>
<p>... | java android | [1, 4] |
4,848,864 | 4,848,865 | jQuery element width type | <p>Is there a way to use jQuery to figure out the type of width an element has? Whether it's an exact width (like <code>200px</code>) or a relative width (such as <code>20%</code>).</p>
<p>I would also like to be able to detect if the element doesn't have any kind of width specifically set, either in the CSS file or i... | javascript jquery | [3, 5] |
340,878 | 340,879 | stopPropagation() but keep other click events active | <p>I have some jQuery code to close my menu:</p>
<pre><code>$('body').click(function(){
$('#menu').hide();
});
$("#menu").click(function(e) {
e.stopPropagation();
return false;
});
</code></pre>
<p>However on my #menu element I have some elements that have click events attached to them:</p>
<pre><code>$... | javascript jquery | [3, 5] |
5,973,652 | 5,973,653 | how to save a file while on subdomain application to main domain asp.net | <p>I have an application that is hosted on a subdomain. In asp.net I would like to save some files to a directory on the main domain not the sub. Thanks for any help.</p>
| c# asp.net | [0, 9] |
582,459 | 582,460 | Examples of Combo box controls for the Web | <p>I am looking for examples of Combo box controls relying on jquery, or just javascript and CSS. The control would allow the user to slect from a drop down list, or simply type a custom value.</p>
<p><a href="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx" rel="nofollow">http://www.asp.net/... | javascript jquery | [3, 5] |
809,072 | 809,073 | Keep .click() function after partial data update | <p>I'm using a table for a coordinate system, and with a function in each td element to update the field value. </p>
<pre><code>[ ][ ][X][ ]
[ ][X][X][X]
[X][ ][ ][ ]
</code></pre>
<p>When I click an empty element, I want it to set the value to "X" in my database, by getting new partial data from my rails app (and se... | javascript jquery | [3, 5] |
2,096,329 | 2,096,330 | Convert a .val() into string jQuery | <p>I have a jQuery function that gets the value from a form input text object named <code>content</code> in which a user can enter an HTML tag in the form. For example, the user types "Sample" with <code><b></code> tags. Once submit is fired, jQuery gets the value from <code>content</code>.</p>
<pre><code>var co... | javascript jquery | [3, 5] |
4,158,147 | 4,158,148 | I want my app to run things in the background, even when the user is donig other things on his Android | <p>What should I look at to get started?</p>
<p>Is it Timer? <a href="http://developer.android.com/reference/java/util/Timer.html" rel="nofollow">http://developer.android.com/reference/java/util/Timer.html</a></p>
<p>Or am I missing something else?</p>
| java android | [1, 4] |
5,857,083 | 5,857,084 | When I add jQuery library it invalidates my other jQuery on the same page | <p>I am trying to create a page that has a scroller of images and a voting system (which I copied from here: <a href="http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/" rel="nofollow">http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/</a>).</p>
<p>... | javascript jquery | [3, 5] |
3,355,622 | 3,355,623 | Gridview button filed dynamically add | <p>i m having one datagrid..i want to create one button field inside the datagrid dynamically.
button filed type is link type.. this button field is fill after checking some condions in my database..any body helpme</p>
| c# asp.net | [0, 9] |
1,845,969 | 1,845,970 | put content of all elements of class into array..why do i get these error messages | <p>I'm trying to load text of all divs that have a particular class into an array, but this</p>
<pre><code>var temp = $('.theClass').text();
temp = temp.toArray();
console.log(temp);
</code></pre>
<p>keeps giving me the error</p>
<p><code>Uncaught TypeError: Object has no method 'toArray'</code></p>
<p>And... | javascript jquery | [3, 5] |
19,258 | 19,259 | jQuery Stop Effects - Form Validation | <p>I made a form validation script which uses the jQuery UI library to pulsate the invalid fields when submitted.</p>
<p>My question is how do I stop the effects from queuing? I looked into animation queuing, however, it does not work with effects. I've tried:</p>
<pre><code>$(item).stop();
$(item).stop().effect(...)... | javascript jquery | [3, 5] |
5,434,123 | 5,434,124 | How do I pass a server control's actual client Id to a javascript function? | <p>I have the following textbox server control in my web page:</p>
<pre><code><asp:TextBox ID="txtZip" runat="server" onchange="ZipCode_OnChange(this, <%= txtZip.ClientId %>, txtCity, txtState);/">
</code></pre>
<p>When the page renders, it is built including the following:</p>
<pre><code><input name=... | asp.net javascript | [9, 3] |
4,095,251 | 4,095,252 | How best to implement this puzzle app for android | <p>Let's say I have a pair of two images .pngs being displayed in an Android App. The puzzle for the user is to identify the elements in Picture 1 that are missing from Picture 2 by touching the elements in Picture 1. Once all the elements in Picture 1 missing in Picture 2 are identified the App moves on to the next pa... | java android | [1, 4] |
5,476,307 | 5,476,308 | Fade in/out js mouseover event | <p>I am looking to implement a mouseover event on my page for a menu - </p>
<p>I have 3 titles to the left with a respective content div on the right where the related text appears.</p>
<p>Having trauled all the forums for a working js solution, I have settled with:</p>
<p><a href="http://flowplayer.org/tools/demos/... | javascript jquery | [3, 5] |
414,583 | 414,584 | Databind a List<System.Web.UI.WebControls.Image> to a repeater | <p>Im trying to bind a List of Images (<code>System.Web.UI.WebControls.Image</code>) to a repeater, but the image is shown as broken. It seems allright when I put a breakpoint inside the ItemDataBound-event, the DataItem is correct and have the correct ImageUrl. Yet, the result is wrong.</p>
<p>This code is very simpl... | c# asp.net | [0, 9] |
5,384,696 | 5,384,697 | jquery how to make sure that the user has selected a value for all select menus on a form | <p>i have a form with multiple select menus i want to make sure on submit that a user selected a value for each select menu how can i do that with jquery ? i tried something like </p>
<pre><code>var form = $('myform');
if($(form ).find('select').length != $(form).find('select:option[selected="selected"]').length ) {
... | javascript jquery | [3, 5] |
4,723,956 | 4,723,957 | Jquery broken by GetResponse (email marketing) web form script | <p>I'm working on a site that relies on quite a bit of javascript. The problem is, I'm not a javascript guru in the least. Yes, bit off more than I can chew, here.</p>
<p>I'm using jquery for a spy effect, and use GetResponse for email signups.</p>
<p>If I implement my GetResponse script, it breaks the area later in ... | javascript jquery | [3, 5] |
5,196,415 | 5,196,416 | Can I wait for location.href to load a page? | <p>Is it possible to know when a page has loaded using location.href? My current code looks like this and I want to trigger some events to happen once my page has finished loading. I tried using $.get but it breaks my current implementation of <a href="http://www.asual.com/jquery/address/" rel="nofollow">jquery addres... | php javascript jquery | [2, 3, 5] |
5,663,569 | 5,663,570 | jQuery UI. Do a function after Block UI load | <p>I use jQuery BlockUI plugin.</p>
<p><a href="http://www.malsup.com/jquery/block/" rel="nofollow">http://www.malsup.com/jquery/block/</a></p>
<p>I want to alert after jQuery BlockUI finished loading.</p>
<p>Here is the code;</p>
<pre><code>$('#trigger').click(function() {
$.blockUI({
message: $('#mym... | javascript jquery | [3, 5] |
2,624,935 | 2,624,936 | I can install an application but I don't see its icon in the set of installed applications(on the emulator) | <p>Hey, When I load an application(which I just compiled) in the emulator. I don't see its icon in the icons of the installed application(on the emulator). The command "adb install ..." tells me that the application is successfully installed(I can even uninstall it with "adb uninstall ..." command). The application is ... | java android | [1, 4] |
1,440,715 | 1,440,716 | The name 'xxx' does not exist in current context user control | <p>I have this statemen at the beginning:</p>
<pre><code><%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucCreditCard.ascx.cs"
Inherits="UserControls_Common_ucCreditCard" %>
</code></pre>
<p>in ucCreditCard.ascx.cs I have this:</p>
<pre><code>using System;
using System.Text;
using System.Text.Re... | c# asp.net | [0, 9] |
3,289,674 | 3,289,675 | easiest way to search a javascript object list with jQuery? | <p>What is the easiest way to search a javascript object list with jQuery?</p>
<p>For example, I have the following js config block defined:</p>
<pre><code>var ProgramExclusiveSections =
{
"Rows":
[
{ 'ProgramId': '3', 'RowId': 'trSpecialHeader'},
{ 'ProgramId': '3', 'RowId': 'trSpecialRow1' },
... | javascript jquery | [3, 5] |
3,582,901 | 3,582,902 | revise href attribute | <p>So I have a link like this:</p>
<pre><code><a href="http://thissite.org/thisfolder/21/thispage.php">
</code></pre>
<p>What I want to do is revise it but keep part of it eg: </p>
<pre><code><a href="http://thissite.org/thatfolder/21/thatpage.php">
</code></pre>
<p>Can this be done with Jquery or js?</... | javascript jquery | [3, 5] |
5,481,356 | 5,481,357 | jquery: Get full css property set as string from an element | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/754607/can-jquery-get-all-css-styles-associated-with-an-element">Can jQuery get all CSS styles associated with an element?</a> </p>
</blockquote>
<p>How to get the full css property set as string from an element... | javascript jquery | [3, 5] |
5,486,388 | 5,486,389 | jQuery ajax() vs get()/post() | <p>Let's say I want to execute a PHP script. Which way is better?</p>
<p>This:</p>
<pre><code>$.ajax({
type: "GET",
url: "php-script.php",
dataType: "script"
});
</code></pre>
<p>Or this:</p>
<pre><code>$.get("php-script.php", function(data) { });
</code></pre>
| javascript jquery | [3, 5] |
1,298,672 | 1,298,673 | Creating custom/intutive layout for controls | <p>I have an address control which display the contact info of the person. </p>
<p>so it displays something like </p>
<p>1234, street
City, CA 12345</p>
<p>Now i want to give user flexibility to create format out of it.
For ex someone might want to display address as,</p>
<p>street, City, Country</p>
<p>OR </p>
... | c# asp.net jquery | [0, 9, 5] |
4,189,901 | 4,189,902 | Development under Android | <p>I have the Android-based tablet, and I want to do some development actions on it.</p>
<p>Is there a way to code and compile Java and Android applications on my tablet?</p>
| java android | [1, 4] |
3,609,804 | 3,609,805 | Add HTML elements into an object | <p>I want to add HTML elements in form of variable into an object by using JQuery *or without.</p>
<h3>HTML elements</h3>
<pre><code><a href="#" class="edit">EDIT</a>
</code></pre>
<p>Now I am just using this elements as variable...</p>
<pre><code>var link = "<a href="+'"'+"#"+ '"'+ " class="+'"'+"ed... | javascript jquery | [3, 5] |
2,067,976 | 2,067,977 | how to create similar or related articles module | <p>i am creating news system for my client, and he requested that when he publishes the article, he want a list at the bottom to show similar or related articles to his published articles.</p>
<p>so how can i create this if he does not want to put it manually ? </p>
<p>thanks in advanced.</p>
| c# asp.net | [0, 9] |
5,334,537 | 5,334,538 | How to build data to fit window height | <p>Using JQuery, I want to build a screen that will fade from one page to another if there is more data on the first screen than can fit.</p>
<p>Each user can have a different monitor size with different resolution capabilities. I need to compensate for this by somehow getting the window height first, then based on th... | javascript jquery | [3, 5] |
1,945,021 | 1,945,022 | call a c# function in javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/12421716/call-c-sharp-function-in-javascript">Call c# function in javascript</a> </p>
</blockquote>
<p>I have a c# function containing an if statement (if (condition) test=true else test= false )), Can anyone te... | c# asp.net | [0, 9] |
554,793 | 554,794 | Remove or hide div if undifined/null or empty | <p>I have a script which can display information based up on url and save this information: <a href="http://moskah.nl" rel="nofollow">moskah.nl</a></p>
<p>The problem is that if you would click the button without giving url than the script will give an empty div. Just reload the page and you will see it will still be... | javascript jquery | [3, 5] |
3,209,971 | 3,209,972 | Microsoft JScript runtime error: Automation server can't create object | <p>Trying to get UserName and used code below to obtine this. Note if I Call the function from button it shows correct user name in pupup window.</p>
<pre><code><body onload = "GetUserName();">
<script language="javascript" type="text/javascript">
function GetUserName() {
var WinNetwork = ... | c# javascript asp.net | [0, 3, 9] |
3,324,810 | 3,324,811 | Is jQuery's $(selector).eq(index) and $(selector)[index] the same? | <p>What is the difference between all these ways?</p>
<pre><code>//1
$('div').eq(index)
//2
$('div')[index]
//3
$($('div')[index] )
//4
$('div').get(1)
</code></pre>
<p>Are they same?</p>
<p><img src="http://i.stack.imgur.com/iXlVs.png" alt="ScreenShot"></p>
| javascript jquery | [3, 5] |
1,749,480 | 1,749,481 | jquery getJSON IP | <p>I am trying to convert the following code to work with jquery:</p>
<pre><code>var req = new XMLHttpRequest();
req.open('GET', 'http://jsonip.appspot.com', true);
req.onreadystatechange = function (e) {
if (req.readyState === 4) {
if(req.status === 200) {
var ip = JSON.parse(req.responseTex... | javascript jquery | [3, 5] |
2,023,584 | 2,023,585 | Retrieve the Original (Client) Url Without the Default Document | <p>I'm trying to obtain the actual client requested URL. The standard <code>Request.Url</code> object contains the response URL. These can be different if the original request did not contain a default document.</p>
<p>Original Request: <a href="http://my.server.com/folder/" rel="nofollow">http://my.server.com/folder/... | c# asp.net | [0, 9] |
370,515 | 370,516 | How to tell if a drop down has options to select? | <p>How to tell if a drop down has options to select?</p>
| javascript jquery | [3, 5] |
315,029 | 315,030 | Pass select list to php page | <p>I am currently trying to pass a select list (the whole list) into a php page and grabbing the individual values from the list to do a dynamic sql query. I pass in selectItems, but when I perform an echo, I get </p>
<blockquote>
<p>[object HTMLSelectElement]</p>
</blockquote>
<p>I have also tried passing in selec... | php javascript | [2, 3] |
124,472 | 124,473 | What is the earliest javascript/jquery-based method to execute javascript ASAP? | <p>Is there a way to execute a few lines of javascript earlier than the <code>document.ready</code> event?</p>
| javascript jquery | [3, 5] |
4,657,347 | 4,657,348 | how to get checkbox bulk value in javascript | <p>i want to get all the details of youtube,so if the user tick the checkbox i want to get the full details of video in javascript,i have done but only i can get first word from the you tube name,
you tube name,example $name="Geet - Episode 456 - Clip 1 [24th November 2011] <em>HQ</em>"
so alert(name) ... | php javascript | [2, 3] |
3,334,814 | 3,334,815 | Check whether console is present | <p>I am writing a plugin. For that I will log a few things, say warnings, necc things, etc. To log them I will use console, but there can be an error if some browser doesn't support console. To handle this error, I am thinking of using this code:</p>
<pre><code> if (typeof console == 'undefined') console = {};
if (... | javascript jquery asp.net | [3, 5, 9] |
1,483,342 | 1,483,343 | Pass javascript function name as parameter + Html Helper | <p>I have written html helper which initialize a javascript function.In the javascript function i have unHandledErrorCallback function which will default log the error into console.log.</p>
<pre><code><script>
Initializefunction({
Url: "/xxx/yyyy",
x: 10,
y: true,
somevalue: fa... | c# javascript | [0, 3] |
728,324 | 728,325 | Android: Changing Wallpaper to Drawable | <p>I'm using this code to change the wallpaper of the android home</p>
<pre><code>WallpaperManager wm = WallpaperManager.getInstance(this);
wm.setBitmap(myBitmap);
</code></pre>
<p>I would like to set the background to a drawable. Is this possible?</p>
| java android | [1, 4] |
3,455,118 | 3,455,119 | Jquery click function with same button display different text | <p>Hello eveyone I'm trying to using click function.When user clicks the button, second text will appear and the first one will be display none and then user click again the same button this time third text will appear and the second text will be display and finally click the same button again fourth text will appear ... | javascript jquery | [3, 5] |
5,959,680 | 5,959,681 | Strange behavior in JavaScript | <p>I have 2 elements - "span" (named "divLikedX") and "a" (named "aLikeX"). I have the following javascript (occurs clicking by "a"):</p>
<pre><code> function CommentLike(CommentID, aLink) {
if (CommentID != null && CommentID > 0)
$.post("/Home/LikeComment", { CommentID: CommentID },
... | javascript jquery | [3, 5] |
4,541,113 | 4,541,114 | Preventing jQuery from Loading | <p>If jquery is added in globally used header.php across the site then How to stop to load jquery library only for those pages of site which doesn't need actually? If we can't use more than one header.</p>
<p>purpose of question is to not to penalize those page with slow loading which actually don't need. </p>
| php javascript jquery | [2, 3, 5] |
946,875 | 946,876 | How to get the icon of other applications (Android) | <p>What I'm doing is getting a list of all the current running processes on the phone. Which I have done by, </p>
<pre><code>private List<RunningAppProcessInfo> process;
private ActivityManager activityMan;
...
activityMan = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
process = activityMan.getRu... | java android | [1, 4] |
724,533 | 724,534 | On Mouse Over change the RotatorType property of RadRotator using javaScript | <p>*<em>Below is my Code:- But its not working *</em></p>
<pre><code><telerik:RadRotator ID="TestRotator" runat="server" Width="560px" Height="140px"
ScrollDuration="2000" FrameDuration="20000" ItemHeight="120" ItemWidth="520"
WrapFrames="true" Skin="Forest" SlideShowAnimation-Type="none" RotatorType="SlideShow... | javascript asp.net | [3, 9] |
2,708,191 | 2,708,192 | How to run the timer when mobile is locked? | <p>I need help for java script . I am using this code to try the run time execution of program
if(seconds == sec){alert(sec);}
function countdown(element) {enter code here
enter code here</p>
<pre><code>interval = setInterval(function() {
var el = document.getElementById(element);
if(seconds == 0) {
... | javascript android | [3, 4] |
2,254,276 | 2,254,277 | How to set default application using Intents? | <p>If I need to play Youtube video using default youtube player of Android through Intents I can set it:</p>
<pre><code> Intent youtube=new Intent(Intent.ACTION_VIEW, Uri.parse(mLinks[mPosition].trim()));
youtube.setPackage("com.google.android.youtube");
startActivityForResult(youtube, 100);
</code></pre>
... | java android | [1, 4] |
2,808,387 | 2,808,388 | jQuery Color Animation - does not fade back to background color | <p>I'm trying to use a jQuery color animation plugin <a href="http://www.bitstorm.org/jquery/color-animation/" rel="nofollow">http://www.bitstorm.org/jquery/color-animation/</a>. When we call it and pass it, say <code>#FFFF00</code> (yellow), we see it change to yellow and fade away. But it never quite fades back to th... | javascript jquery | [3, 5] |
5,787,000 | 5,787,001 | clear values on exit in android | <p>i have some static integer variables in my android application.I am testing the application in emulator.When i click back and return to homescreen and launch the application again, the previous values still persist and new values are added to it instead of overriding.So what is the procedure to clear these values wh... | java android | [1, 4] |
4,712,094 | 4,712,095 | adding to window.onload event? | <p>I'm wondering how to add another method call to the window.onload event once it has already
been assigned a method call.</p>
<p>Suppose somewhere in the script I have this assignment...</p>
<pre><code> window.onload = function(){ some_methods_1() };
</code></pre>
<p>and then later on in the script I have this ass... | javascript jquery | [3, 5] |
4,997,611 | 4,997,612 | Using hardware components in Android (Java) | <p>Hey,
Sorry to bother you with such a silly question, but I can't find the answer myself.</p>
<p>I'd like to use hardware components in my applications (or: sensors), but it seems that I don't have the necessary files, as writing <code>import android.hardware.Sensors;</code> causes an error ("The ... cannot be resol... | java android | [1, 4] |
4,808,951 | 4,808,952 | C++ I/O with Python | <p>I am writing a module in Python which runs a C++ Program using subprocess module. Once I get the output from C++, I need to store the that in Python List . How do I do that ?</p>
| c++ python | [6, 7] |
762,720 | 762,721 | jQuery Function Implementation and Function Call? | <p>What is the difference of calling function like:</p>
<p><code>testCall: function()</code> and <code>function testCall()</code> in jQuery ?</p>
<p><strong>Update:</strong></p>
<p><em><strong>Questions:</em></strong> Does usage of one over the another have some performance issues related to it <code>OR</code> it re... | javascript jquery | [3, 5] |
934,718 | 934,719 | UnknownHostException while accessing www.khanacademy.org but working fine for others | <p>I am getting UnknownHostException in Line 2 when I use url (I can access using browser):
<a href="http://www.khanacademy.org/api/v1/playlists" rel="nofollow">http://www.khanacademy.org/api/v1/playlists</a>
but it works fine for all the other 2-3 url's </p>
<ol>
<li><code>httpGet = new HttpGet(getUrl);</code></li>
... | java android | [1, 4] |
5,020,855 | 5,020,856 | JavaScript If statement not working in IE | <p>I have the following code, which is working great in firefox and chrome, but not working in Internet Explorer...</p>
<pre><code>$("#nav-tabs").on("click", "a", function(e) {
e.preventDefault();
$(this).tab('show');
$('li#test').each(function() {
if($(this).attr('class') == "active")
{
... | javascript jquery | [3, 5] |
5,390,183 | 5,390,184 | 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] |
4,722,025 | 4,722,026 | Android: Referring to a string resource when defining a log name | <p>In my Android app, I want to use a single variable for the log name in multiple files. At the moment, I'm specifying it separately in each file, e.g.</p>
<pre><code>public final String LOG_NAME = "LogName";
Log.d(LOG_NAME, "Logged output);
</code></pre>
<p>I've tried this:</p>
<pre><code>public final String LOG_N... | java android | [1, 4] |
2,579,315 | 2,579,316 | ASP.NET jQuery issue | <p>I'm digging around with jQuery for something work related, and I am trying to get a specific flow of events working which I can't seem to get my head around.</p>
<p>I understand how jQuery runs on the front end, functions are called or available to call from within the document.ready area, and have got some animati... | asp.net javascript jquery | [9, 3, 5] |
4,075,385 | 4,075,386 | JS/jQuery: Get depth of element? | <p>What's the easiest way to get the depth of an element in pure JavaScript or jQuery? By "depth" I mean how many elements deep is it nested, or how many ancestors does it have.</p>
| javascript jquery | [3, 5] |
2,536,849 | 2,536,850 | Can I just put my javascript right next to my <div> | <p>If I have some javascript/jQuery acting on a particular div inside tags (for an animation), can I just put the javascript (in a src="link-to-my-js.js" file) right next to my div?</p>
<p>I mean something like the following:</p>
<pre><code><body>
<div id="special">Some html</div>
<script type="... | javascript jquery | [3, 5] |
1,013,033 | 1,013,034 | Asp: Login Control, adding a extra button | <p>When using the login control what would be the best way to get 1 or 2 more buttons to the left of the login button?</p>
<p>To make it short i want the default control as it is, but with another button in the control called "anonymous".</p>
<p>I have already made a custom web user control and made it display succe... | c# asp.net | [0, 9] |
3,269,630 | 3,269,631 | Get input value except the last by jquery | <p>I want getting all value in inputs except the last input in last class <code>.tr</code> by jquery, but it don't work for me, How can fix it?</p>
<p>I try as:</p>
<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/d4xZK/" rel="nofollow">http://jsfiddle.net/d4xZK/</a></p>
<p><strong>HTML:</strong></p>
<pre><co... | javascript jquery | [3, 5] |
4,993,155 | 4,993,156 | View Changes In Force Portrait Mode | <p>i am new in android platform. I have set my android application to force portrait mode. Now , i have an activity group in my application. When i am in a child view of the activity group , then if i rotate my device the screen remains in portrait mode but the view changes from child view to parent view of the activit... | java android | [1, 4] |
1,854,754 | 1,854,755 | success msg from jQuery | <p>I have success and error image, I need to show the success message from my jQuery, like, </p>
<p><img src="http://i.stack.imgur.com/L3fyP.png" alt="enter image description here"></p>
<p>I need to show like this in a label control, I've created a css class named "success", if I can call this class from my jQuery I ... | jquery asp.net | [5, 9] |
1,326,312 | 1,326,313 | Insert a code inside .load | <p>I use jquery 1.3.2 and I am modifying a cart module to better suit my needs. I found a function which I think should be what I am looking for.</p>
<pre><code>function ajaxCartReloadCartView() {
if (jQuery('#cart-form-pane').length) {
jQuery('#cart-form-pane').parent().load(Drupal.settings.uc_ajax_cart.SHOW_V... | javascript jquery | [3, 5] |
4,855,508 | 4,855,509 | Get the last part of an url in Javascript | <p>Using the following URL example, how would I get the obtain the username from it?</p>
<p><a href="http://www.mysite.com/username_here801" rel="nofollow">http://www.mysite.com/username_here801</a></p>
<p>A regex solution would be cool.</p>
<p>The following sample only gets the domain name:</p>
<pre><code> var ur... | javascript jquery | [3, 5] |
2,852,713 | 2,852,714 | 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] |
5,943,312 | 5,943,313 | Changing data-url or similar attributes on Element | <p>I'm trying to access the data-url attribute of the following element so it could be replaced upon callback or as needed with jQuery / Javascript. </p>
<p><strong>What method will work to do this?</strong></p>
<pre><code><a id="twitter_link" href="https://twitter.com/share" class="twitter-share-button" data-via=... | javascript jquery | [3, 5] |
257,339 | 257,340 | Ensuring unique Javascript identifiers in ASP.NET Web User Controls | <p>In my current project, I am creating a number of user controls, some of which include some custom Javascript for event handling on the client side. I am registering my event handlers using OnClientClick="function()" and the like.</p>
<p>Now, I'm wondering how to ensure that all Javascript function names are unique ... | asp.net javascript | [9, 3] |
2,635,651 | 2,635,652 | Attributes in JQuery | <p>Suppose I have these divs:</p>
<pre><code><div class="hat" rel="cap">
<div class="hat" rel="pine">
<div class="hat" rel="mouse">
</code></pre>
<p>How do I use JQuery to do a "where"?</p>
<p>For example</p>
<pre><code>$("div.hat").remove WHERE rel="mouse"
</code></pre>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.