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 |
|---|---|---|---|---|---|
2,042,455 | 2,042,456 | run jquery code on loaded page via jquery ajax request (load) | <p>I am loading an entire middle div via JQuery Ajax call and I simply want to run $(document).ready on the loaded page </p>
<p>header.php loads part of the page </p>
<pre><code>var $next = $("<div class='nextab center'>").insertAfter('#content .current');
$next.load($this.attr('href')+ ' #content .cent... | javascript jquery | [3, 5] |
612,670 | 612,671 | how do I show n json items every x seconds using jquery? | <p>I have a json object 'items' which has few items that I want to show 2 of them every 2 seconds. How would I do that? so, it displays items in division1 every few seconds instead of showing all at once. Eg. get all items every 5 seconds and show 4 items every second for 20 items.</p>
<pre><code><table id="divisio... | javascript jquery | [3, 5] |
332,931 | 332,932 | jQuery plugin will use default options instead of user defined options | <p>So I have a plugin with a update method, which is used if a user ads new content to a div(placeholder), at start things go fine, the plugin will use the user defined options of the plugin, but once the user runs the update method it will use the default options instead of the defined options.</p>
<p>Plugin wrapper.... | javascript jquery | [3, 5] |
3,420,349 | 3,420,350 | JQuery change class by given id's | <p>I have a number of tables, for example:</p>
<pre><code><table class="onion" id="12">
</code></pre>
<p>When a div named "Mark_Pre_Val" gets clicked i want tables with the id's 4, 6, 12 & 21
to change their class to "onionClick", and if one of them is already "onionClick" then don't
change the class.</p>
... | javascript jquery | [3, 5] |
2,707,317 | 2,707,318 | using jquery for validation | <p>I'm pretty much new to jquery. I've been trying to do validations where i check if a textbox length is greater than 4.</p>
<p>So, this is what i did: </p>
<pre><code> $(document).ready(function () {
$('#tbstreet1').blur(isValid);
});
function isValid()
{
Boolean isvalid;
v... | jquery asp.net | [5, 9] |
4,101,805 | 4,101,806 | Get Value selected dropdownlist option | <p>I have Drop Down List control and add dynamic add option into Dropdownlist but But when I get value option return string empty </p>
<p>please help me
thanks</p>
| c# jquery asp.net | [0, 5, 9] |
1,271,536 | 1,271,537 | how to get value from a loop while using different button | <p>I need the value from a loop witch is $row->value, then when I click on button_click(href) a DIV popup will show and ask for another value that is idnumber.
At the popup a submit button will direct to next_page.php</p>
<p>I want both value from loop $row->value and at popup value=idnumber send to next_page.php</p>
... | php javascript jquery | [2, 3, 5] |
1,972,891 | 1,972,892 | jquery each function on string variable | <p>I have wrote a function in javascript which takes title attributes of <code><tr></code> calls ajax then after some operation it retreive some title attributes from them. depending on that title attribute i want to remove those <code><tr></code> rows</p>
<pre><code>function currentTicketStatus() {
va... | javascript jquery | [3, 5] |
421,557 | 421,558 | Inserting PHP variable value in Javascript file | <p>I have a JavaScript file which has a hard coded BASEURL variable, this value is then used by other functions in the file.
I would like for this url value to be set dynamically so that I don't need to manually change it for different installs. Is it possible to insert a PHP variable value into a JavaScript file?</p>
| php javascript | [2, 3] |
802,934 | 802,935 | javascript convert string to safe class name for css | <p>I am sure this must of been asked before but can't find any in the search.
What is the fastest way to ensure all non safe characters are removed from a string allowing it to be used in a CSS class name?</p>
| javascript jquery | [3, 5] |
2,964,760 | 2,964,761 | Why is decodeByteArray giving me a null pointer error | <p>I'm trying to pass a byte array from an image to an activity through a bundle</p>
<p>creating the byte array with </p>
<pre><code> Bitmap thumbnail = (Bitmap) data.getExtras().get("data");
ByteArrayOutputStream picArray = new ByteArrayOutputStream();
thumbnail.compress(CompressF... | java android | [1, 4] |
4,317,915 | 4,317,916 | ASP:Imagebutton fail to post back in gridview | <pre><code> <asp:GridView ID="gv1" runat="server" Width="100%" DataSourceID="ods1" AutoGenerateColumns="false"
DataKeyNames="FileID" HeaderStyle-Height="20px">
<Columns>
<asp:TemplateField ItemStyle-Width="25px" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
... | c# asp.net | [0, 9] |
843,705 | 843,706 | How to remove rows from huge data table without iterating it? | <p>I have a DataTable available with me which contains thousands of rows. There is a column called EmpID which is containing '0' for some of the rows. I want to remove them from my current DataTable and want to create a new correct DataTable. I cannot go row by row checking it since it contains huge amount of data. Giv... | c# asp.net | [0, 9] |
5,030,340 | 5,030,341 | Is it possible to select class & class & class, not just class OR class OR class? | <p>I am trying to select specific values. but I am running into an issue.</p>
<p>I have two elements one has X Y and the other has X Y Z.</p>
<p>When selecting for X Y Z, I'm also receiving the value of X Y... is there a way to make it so its looking for X AND Y AND Z instead of X OR Y OR Z?</p>
| javascript jquery | [3, 5] |
2,316,667 | 2,316,668 | jQuery Animate not working on Chrome | <p>I'm having a little issue here with Google Chrome. My code works pretty well with Safari, which makes me think it should work fine with Google Chrome. But Chrome doesn't animate as expected. What could be wrong?</p>
<pre><code>$(function() {
var sourceFoto = $(".empreendimento .main-photo img").attr("src");
... | javascript jquery | [3, 5] |
2,014,209 | 2,014,210 | Substring not working on childNodes[0].nodeValue | <p>I'm trying to extract a text from td as discussed here
<a href="http://stackoverflow.com/questions/13760664/replacing-a-part-of-text-inside-a-td#13760705">Replacing a part of text inside a td</a></p>
<pre><code>$('.my-table tr').each(function() {
var contact = $(this).find('td').eq(1)[0].childNodes[0].nodeVa... | javascript jquery | [3, 5] |
5,768,010 | 5,768,011 | files.length is undefined in Internet Explorer | <p>I'm using </p>
<pre><code>$(upload_button).bind('change', function(event)
{
var files = this.files;
alert(typeof(files));
if(typeof(files)!='undefined')
{
}
});
</code></pre>
<p>in my code with jQuery which is working fine in Firefox and Chrome but not in IE8(i.e., IE returns undefined for <... | javascript jquery | [3, 5] |
3,615,105 | 3,615,106 | How to set the Background color while printing? | <p>I am using ASP.NET and C#. I am printing the entire aspx page into new window on button click.</p>
<p>This is my code..</p>
<pre><code> Page pg = new Page();
pg.EnableEventValidation = false;
HtmlForm frm = new HtmlForm();
pg.Controls.Add(frm);
frm.Controls.Add(ctrl);
pg.DesignerInitialize()... | c# asp.net | [0, 9] |
1,005,699 | 1,005,700 | Android - HTTP Get request on LAN | <p>I am using the following code to get a page's source which is a plain text (no html tags) from a webserver on LAN. But I am always getting empty string in return and If I open the same URI in browser I can see the text. Following is my code:</p>
<pre><code> String url = "http://192.168.1.40/touchscre... | java android | [1, 4] |
11,807 | 11,808 | How can I add a dynamic numer of UserControls in an asp.net page? | <p>Here's the problem:</p>
<p>I have an (almost) empty aspx page and I want to insert a certain number of the same user control in this page.</p>
<p>The fact is that I don't know how many of them I will need.</p>
<p>I tried to add them from the CodeBehind but it seems that the UserControls are completely empty.</p>
... | c# asp.net | [0, 9] |
5,837,505 | 5,837,506 | Explicit or implicit looping? | <p>Why or when is "explicit" preferred when implicit solutions often are more readable and less code? It says "explicit is better than implicit" when for example an implicit loop is better than an explicit loop isn't it? </p>
<pre><code>for every in all:
every.updated = True
</code></pre>
<p>The above looks implici... | java python | [1, 7] |
4,792,719 | 4,792,720 | Javascript/JQuery. Cache xml file locally | <p>Using <code>$.ajax({..})</code> I receive the contents of an XML file from the server. So I don't have to request this file every time the page loads, I would like, if possible, to cache this content locally, save it in a file on the disk. But cache it in such a way that it will be available even the next day, after... | javascript jquery | [3, 5] |
2,347,500 | 2,347,501 | How to make android phone silent in java | <p>Hi I am new to android development. I am trying to make my android phone silent using java. After searching google I found some examples but they didnt workd for me. Here is my code.</p>
<pre><code>package com.zafar.silent;
import android.app.Activity;
import android.content.Context;
import android.media.AudioMana... | java android | [1, 4] |
2,999,524 | 2,999,525 | jQuery: How do I remove surrounding div tags? | <p>In this line...</p>
<pre><code><div class="textwidget">lorem ipsum dolor sit amet</div>
</code></pre>
<p>I'd like to get rid of the surrounding div tags with jQuery so the output looks like this:</p>
<p><code>lorem ipsum dolor sit amet</code></p>
<p>Is this possible?</p>
| javascript jquery | [3, 5] |
3,911,188 | 3,911,189 | event attach with on is not unbinding | <p>I am loading <code>.html</code> file using jquery <code>load()</code> function. The html file which i am loading </p>
<p>contains some script, in that script there is <code>keydown event</code> binded with the document, </p>
<p>like : <code>$(document).on("keydown", handler);</code>. Now in the callback o... | javascript jquery | [3, 5] |
77,897 | 77,898 | Alert message with textarea content | <p>Im trying to alert whatever text is in a textarea (id="status_update") when the user hits enter:</p>
<pre><code><script type='text/javascript'>
$(document).ready(function(){
$('textarea').keypress(function(e) {
if(e.which == 13) {
var en... | javascript jquery | [3, 5] |
3,422,827 | 3,422,828 | how to get the value to td inside list in javascript | <p>I have a listview in asp.net it appears in html like this </p>
<pre><code><li id="l3" class="add" onclick="hilite()" style="">
<table id="tbl" style="width: 100%;">
<tbody>
<tr style="width: 100%;">
<td class="border2" style="width: 50%;"> 1011 </td... | javascript jquery asp.net | [3, 5, 9] |
2,556,974 | 2,556,975 | jquery datepicker onselect not working | <p>jquery function:</p>
<pre><code>$(function() {
$("#iDate").datepicker({
dateFormat: 'dd MM yy',
beforeShowDay: unavailable
onSelect: function (dateText, inst) {
$('#frmDate').submit();
}
});
});
</code></pre>
<p>html:</p>
<pre><code> <form id="frmDate" m... | javascript jquery | [3, 5] |
3,545,389 | 3,545,390 | Using jQuery.get() to measure client bandwidth | <p>I am using the following script do determine the downlink bandwidth of a user to serve content accordingly:</p>
<pre><code> var bandwidthCheckStart = new Date().getTime();
var bandwidthCheckEnd;
$.ajax({
url: xBandwidthCheckFile,
async: false,
cache: false,
success: functi... | javascript jquery | [3, 5] |
3,256,500 | 3,256,501 | String, Pattern match | <p>I can build the string like this:</p>
<pre><code>String str = "Phone number %s just texted about property %s";
String.format(str, "(714) 321-2620", "690 Warwick Avenue (679871)");
//Output: Phone number (714) 321-2620 just texted about property 690 Warwick Avenue (679871)
</code></pre>
<p>What I want to achieve i... | java android | [1, 4] |
789,106 | 789,107 | regular expression text merge | <p>Is this possible in reg-ex?<br><br></p>
<blockquote>
<p>subject='fox';<br>
adjective='quick brown';<br>
verb='jumps';<br>
text='The <<adjective>> <<subject>> <<verb>> over the lazy dog.'<br></p>
</blockquote>
<p><i>reg-ex would return:</i><br></p>
<blockquote>
<p>'The... | php javascript | [2, 3] |
3,121,832 | 3,121,833 | Using Self Calling Anonymous Functions and $(document).ready | <p>I just recently learned about self calling anonymous functions. Some snippets of code that I came across used the self calling function along with the $(document).ready. It seems redundant, or pointless, to use both.</p>
<p>Is there a case where you'd use</p>
<pre><code>(function(){
$(document).ready();
})();... | javascript jquery | [3, 5] |
3,185,027 | 3,185,028 | Best way to disable all submit buttons after postback | <p>I'm trying to write code that will disable submit button (or all submit buttons) on the page to avoid double postback.</p>
<p>I thought of generating my own postback javascript function (and inject postback javascript using <code>GetPostbackEventReference</code>) but maybe there are some better ways to do this? Or ... | javascript asp.net jquery | [3, 9, 5] |
5,788,490 | 5,788,491 | Override single attribute in machine.config | <p>I was wondering if it's possible to override just an attribute of a tag in machine.config ?</p>
<p>More exactly I want to set the domain attribute of in machine.config, as it differs from my production server and my development server.</p>
<p>I tried just adding the tag to machine.config, but alas it doesn't seem... | c# asp.net | [0, 9] |
3,645,113 | 3,645,114 | How to make a manage a collection of javascript vars, add/remove etc | <p>I'm creating items which are displayed on a page, I do this with:</p>
<pre><code>var popup = "something..."
</code></pre>
<p>How can I keep a record of all created popup vars and then manage them via:</p>
<ol>
<li>add a new popup var</li>
<li>remove a popup var</li>
</ol>
<p>Any clean ways of doing this?</p>
| javascript jquery | [3, 5] |
1,099,748 | 1,099,749 | What does this JS Syntax do? | <p>Why would I put brackets around the <code>true</code> here.... doesn't that make an array? Does it do something else?</p>
<pre><code>$e.trigger("onlyShowIfChange", [true]);
</code></pre>
| javascript jquery | [3, 5] |
3,014,337 | 3,014,338 | How to get JQuery and ASP.Net work together? | <p>Is there any reason why JQuery would not work when used in an ASPX page? We have been trying to get working a simple call like this:</p>
<pre><code>$(document).ready(function() {
alert("This is SPARTA!!!!!!!!!");
});
</code></pre>
<p>An the alert box is never shown. I've had some experience with JS and ASP.Net... | asp.net javascript jquery | [9, 3, 5] |
6,024,506 | 6,024,507 | Convert TableCell text into hyperlink | <p>I am fetching data from a sql query into an asp table in cs code behind page</p>
<pre><code>TableCell tCell1 = new TableCell();
tCell1.Text = myDataRow["tid"].ToString();
</code></pre>
<p>I want to convert that id into a hyperlink. How can I do that?</p>
| c# asp.net | [0, 9] |
3,338,122 | 3,338,123 | What's the method to access whatever child item is displayed in an Android spinner, instead of just waiting for an onItemSelected() event? | <p>As the title says, what is the method to access which item is displayed in an Android spinner, so I can have multiple spinners, then wait on a button click?</p>
<p>Thanks!</p>
| java android | [1, 4] |
4,359,130 | 4,359,131 | Adding and removing classes in jQuery | <p>I have a jQuery snippet written where if any of my inputs in a specific table are entered it changes the class of the rest of the inputs on that table, but if the user fills in an input field, and then deletes their input it still changes the class, though it shouldnt. here is my attempt at doing this.</p>
<pre><c... | javascript jquery | [3, 5] |
4,626,584 | 4,626,585 | Deleting items more than 1 day old from sql database | <p>I am trying to remove items that are created more than 1 day old, however all my items still remain. I am certain that the changes are committed to my database since I am using the <code>RemoveItem</code> method in other locations as well. </p>
<pre><code> using (var db = new CommerceEntities())
{
... | c# asp.net | [0, 9] |
1,625,278 | 1,625,279 | Jquery hide and show | <p>I a building a simple FAQ page on my site. I'd like the question only to be visible, and once the user clicks on the question it should then show the answer. for some reason my code isn't working. Please review my code and tell me what I am doing wrong.</p>
<p><strong>html</strong></p>
<pre><code><div class="... | javascript jquery | [3, 5] |
687,435 | 687,436 | Event handling of select change in jQuery doesn't return the current selectedIndex | <p>I'm trying to do the following: Show a drop down with jquery, which has a structure like:</p>
<ul>
<li>Add element</li>
<li>Element 1</li>
<li>Element 2</li>
</ul>
<p>Now, I would like to have the following behavior: The user looks at "Add element" and clicks it. He then selects one of the elements, some function ... | javascript jquery | [3, 5] |
1,394,670 | 1,394,671 | Count divs and add jquery to expand and collapse Text | <p>I hope someone can help. There are 3 divs with employee-block class in the html code included. I would like to add javascript/jquery code to expand/collapse anything after the 2nd div (or employee-block div). This is my html:</p>
<pre><code><div class="employee-block">
<img alt="test" title="test" s... | javascript jquery | [3, 5] |
3,749,038 | 3,749,039 | To lock sql when multiple users trying to update details of different users | <p>In my web application , we have list of students and we have staff login. When multiple staff logs in and try to edit two different student details , when a first user opens the page and second user opens page second both trying to update two different student details , on update , the first user data wont get updat... | c# asp.net | [0, 9] |
5,826,269 | 5,826,270 | Can the dollar sign be someone referred to c++ pointers? | <p>Today I saw a post on php.net that I'm quoting here:</p>
<pre><code>$Bar = "a";
$Foo = "Bar";
$World = "Foo";
$Hello = "World";
$a = "Hello";
$a; //Returns Hello
$$a; //Returns World
$$$a; //Returns Foo
$$$$a; //Returns Bar
$$$$$a; //Returns a
$$$$$$a; //Returns Hello
$$$$$$$a; //Returns World
</code></pre>
<p>S... | php c++ | [2, 6] |
3,294,803 | 3,294,804 | Jquery count selection-boxes that have an item selected | <p>i wonder if there is a more efficient way of counting the selections of a user:</p>
<p>This is the selection dropdown that is multiple times on the page:</p>
<pre><code><select class="span2 jquery-countable" name="category[7]">
<option></option>
<option value="1">1. vote</option&... | javascript jquery | [3, 5] |
1,137,929 | 1,137,930 | jquery click handler and Oriented object programming | <p>I have a method in a class and into this method i have a handler for a click event in a div element:</p>
<pre><code>function MyClass(container)
{
this.Container=container;
this.PrepareHandlers = function()
{
$('#Div1').click(function() {
alert(this.Container);
});
};
}
</... | javascript jquery | [3, 5] |
4,402,450 | 4,402,451 | jQuery $.post basics | <p>I'm just learning how to use jquery, and I'm beyond confused. Here's what I'm trying to do (for practice/learning purposes):</p>
<ol>
<li>Take an input</li>
<li>Post the input into a div tag using jquery</li>
</ol>
<p>Here's my code.. but it's not working</p>
<pre><code><script type="text/javascript">
funct... | javascript jquery | [3, 5] |
562,249 | 562,250 | Splitting an string into a string | <p>I have a string with two different delimiters (| and ~). I want to first split based on one delimiter (|) then loop through the results and split those results by the second delimiter (~). From there I want to take the three values form the second split and assign them to labels on my page.</p>
<p>The problem I am ... | c# asp.net | [0, 9] |
4,054,944 | 4,054,945 | How to create custom view from xml-layout? | <p>I have the xml layout, and I want to create View from it - I need do it programatically. Is it possible? </p>
| java android | [1, 4] |
23,759 | 23,760 | Triggering mouseenter several times on changing height for block | <p>There is problem with absolute positioned blocks - when I use $('.my-block').mouseenter() and change height in its handler - mouseenter triggers as many as it crosses other such blocks.</p>
<p>for example some thing like this:</p>
<pre><code>.items{position:relative;}
.item{position:absolute;}
</code></pre>
<pr... | javascript jquery | [3, 5] |
1,728,715 | 1,728,716 | ASP.NET 3.5 C#: Best way to create and display dynamic menu with submenus | <p>I usually just create a datatable with one repeater and have all this html in my codebehind. I have not found an easy method for adding a submenu dynamically. Does anyone have a way to do this better?</p>
| c# asp.net | [0, 9] |
3,475,431 | 3,475,432 | how do I? simple scramble/encrypt string in server (ASP.NET) and unscramble/decrypt in javascript | <p>Platform: Server - ASP.NET 3.5 / C#; client side - javascript/jQuery</p>
<p>This is what I want to do</p>
<ol>
<li>Scramble a string in ASP.NET WebMethod (called through a jQuery Ajax call) before sending to the client</li>
<li>Unscramble it in javascript and display</li>
</ol>
<p>I'm not looking at any sort of h... | c# javascript asp.net jquery | [0, 3, 9, 5] |
5,388,480 | 5,388,481 | calling java script function then C# function after clicking ASP.NET button | <p>I have this serious:</p>
<p>I have ASP.NET page, This page contents Update panel with ASP.NET control.</p>
<p>I have Java script function to do validation so when I click the button I will use onclientclick to call the java function to do the validation and after this one done should call then event click button f... | c# asp.net javascript | [0, 9, 3] |
2,327,085 | 2,327,086 | Determine all child elements width | <p>Is there a method i can do to determine all child elements width in a single line of code. Adding up all child widths </p>
| javascript jquery | [3, 5] |
4,833,111 | 4,833,112 | How to chage the properties for controls inside a template field? | <p>I have a templatefield having a textbox and filteredtextboxextender inside the templatefield. I need to change the ValidChars property for filteredtextboxextender from "123" to "abc" in c# codebehind. The templatefield is there inside the GridView.
I used the following code in aspx page.</p>
<pre><code><asp:Grid... | c# asp.net | [0, 9] |
2,188,374 | 2,188,375 | How do I refresh dynamic content loaded into a web part inside my existing jvacscript/jquery code? | <p>I have the code that I've pasted below, helpfully supplied by another stackoverflow member. I've added this code into a Kentico web part, and set the cache minutes=0, thinking that would solve my caching issue. It does, but not in IE. Is there any way I can tweak this code to refresh the content when the user comes ... | javascript jquery | [3, 5] |
436,883 | 436,884 | problem with checked all checkbox? | <p>When someone clicks on first <code>input:checkbox</code>, I want my code to check all checkboxes, but my code doesn't work correctly: <p></p>
<p><strong>EXAMPLE:</strong> <a href="http://jsfiddle.net/cQYVE/" rel="nofollow">http://jsfiddle.net/cQYVE/</a></p>
<pre><code>$('.table_show tr input:first').live('click',f... | javascript jquery | [3, 5] |
418,183 | 418,184 | Accessing $_SESSION from android | <p>I built a website with PHP, and now and am working on an application to go with it, (however I am not new to php nor Android, just to them together) and I am able to login, and get Status Code: 200 response (successful login), however in the headers list when I print out</p>
<pre><code>Header[] heads = response.get... | php android | [2, 4] |
3,442,695 | 3,442,696 | How to append a value from php inside my JS file? | <p>Basically I want to read and write to a file then save all the compiled content another file.</p>
<p>Steps:</p>
<ol>
<li><p>Say I have a file <em>mycode.js</em> with this code:</p>
<pre><code> var url = ''; //this will be field throug form in php
</code></pre></li>
<li><p>Now in php, I will input a value of ... | php javascript | [2, 3] |
5,888,545 | 5,888,546 | Is it worth coding for users who may not have JavaScript enabled? | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/3485890/how-safe-is-it-to-assume-that-most-users-will-have-js-enabled">How safe is it to assume that most users will have JS enabled?</a><br>
<a href="http://stackoverflow.com/questions/155615/is-it-reasonable-to... | javascript jquery | [3, 5] |
3,949,332 | 3,949,333 | Change table border color using JQuery | <p>I have a user control that conatins HTML, like this:</p>
<pre><code><table id="tblProgramInfo" runat="server" cellpadding="0" cellspacing="0" class="ProgramInfo">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%" class="tblProgram" abc="def">
<tr>
... | asp.net jquery | [9, 5] |
5,275,141 | 5,275,142 | jquery combining each and setInterval on elements with shared class | <p>I have a series of links with a class "bloglink".</p>
<p>They have a click event associated with them - but that is irrelevant at this point. I am trying to cycle through them and trigger the click event every X seconds. This is where I'm at:</p>
<pre><code>$('a.bloglink').each(function(){
var $bl = $(this);
... | javascript jquery | [3, 5] |
597,760 | 597,761 | Can I catch uninstall action in my Android app | <pre><code>public class Unistallreceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
String action = intent.getAction();
if (action == null)
Log.e("uninstall ", "Act... | java android | [1, 4] |
525,345 | 525,346 | JQuery Allow Multiple Field Check Function | <p>I have a simple option for users to check the "title" or "username" for availability. The function runs the ttck.php and displays the appropriate alert. Problem is the function() will not reset to allow multiple checks without reloading the entire page.</p>
<pre><code>function checkTitle() {
$.post('ttck.... | php jquery | [2, 5] |
2,499,885 | 2,499,886 | User Error Alert | <p>I am using VS2010 (with C#). I have an online application. I have 2 error forms setup that the user is redirected to if they encounter an error. I have a global.asax.cs file that i have code setup in the <code>Application_Error</code> event to send me an email to let me know a user has received an error. My issue is... | c# asp.net | [0, 9] |
1,180,987 | 1,180,988 | cant return value out of closure | <p>I cant seem to get this value to pass the isValid value back out of the ajax call in the snippet below:</p>
<pre><code> function isShortUrlAvailable(sender, args) {
var isValid = false;
$.ajax({
type: "POST",
url: "/App_Services/ShortUrlService.asmx/IsUrlAvailable",
... | javascript jquery | [3, 5] |
1,549,407 | 1,549,408 | "Refreshing" JQuery datepicker widget | <p>I want to refresh a datepicker widget. If a user presses for instance "button 1", the datepicker should have a certain set of properties, whereas if he presses "button 2" the datepicker should have a different set of properties. </p>
<p>How can i achieve this?</p>
<p>Some proof of concept code an be found here: <a... | javascript jquery | [3, 5] |
81,231 | 81,232 | Integer used as View Tag not working | <p>I had not used the tag element of views until just recently, and have since found a handful of cool uses. I have ran into an unusual problem that I hope someone can answer. This may be more general Java specific than Android, but I'm not sure. It has to do with how Java handles the Integer Class.</p>
<p>See these m... | java android | [1, 4] |
1,492,438 | 1,492,439 | call 2 bound field on gridview in same column | <p>i am trying to call 2 Data field in same column, it that possible to do so? my date is replace my user name</p>
<pre><code>BoundField userNameBF = new BoundField();
userNameBF.HeaderText = "User Name";
userNameBF.DataField = "userName";
userNameBF.DataField = "PostDate";
userNameBF.ItemStyle.Width = 180;
GridView2.... | c# asp.net | [0, 9] |
2,185,750 | 2,185,751 | How to handle / remove broken image icon of imagebutton in asp.net | <p>I am trying to add alternate image if the image is broken, also can we remove the broken image icon. Here is my code for ref.</p>
<pre><code><asp:ImageButton
AlternateText = " "
onerror = "imgError(this)"
ID = "ImageButton111"
runat="server"
Width = "140"
Height = "140"
Command... | c# asp.net | [0, 9] |
1,457,512 | 1,457,513 | how to get the rating value on click on stars | <p>i am using jquery rating plugin.
in all examples they have a submit button near to rating stars.
so that submit button do this.form.serialize.
but i want to save the rating to db without clicking on the submit button.
i am not giving submit button to users.
if anybody has done this already can you help me please.
th... | javascript jquery | [3, 5] |
4,604,272 | 4,604,273 | Toggle TWO Drop Down Panels | <p>I am using two panels at the top of my web page that drop down: "Fast Quote" and "Client Login". Can someone show me how to alter my code so that ONLY ONE panel is open at one time? Example: If "Client Login" is open and the user clicks on "Fast Quote", the "Client Login" should close and the "Fast Quote" drops ... | javascript jquery | [3, 5] |
265,138 | 265,139 | 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] |
873,080 | 873,081 | Calling a function before Page_Load | <p>I have a button that calls function A()</p>
<p>When I click on it I want the calls to be made in that order:</p>
<pre><code>A()
Page_Load()
</code></pre>
<p>Right now it's doing:</p>
<pre><code>Page_Load()
A()
</code></pre>
<p>Is there a way around that or is it just by design and there's nothing I can do about... | c# asp.net | [0, 9] |
5,274,547 | 5,274,548 | "Length cannot be less than zero." on a blank line | <p>I keep getting the above error message, even if I comment out the line that the error is occurring on. Any idea what could be causing this? I've tried re-writing the lines with test values, but I still get the same error.</p>
<p>This works perfectly in debug mode, it's only in the deployment that this came up.</p... | c# asp.net | [0, 9] |
3,585,843 | 3,585,844 | Path problem with javascript/php | <p>I've been developing my site with the site directory structure as</p>
<pre><code>www
img
javascript
include
index.php
</code></pre>
<p>Now I want to change it to</p>
<pre><code>www
index.php
dir1
dir2
...
themes
theme1
img
javascript
include
in... | php javascript | [2, 3] |
6,020,977 | 6,020,978 | how to create forms dynamically in javascript | <p>I have this div, where <code>divBrdr</code> should contain a form <code>summaryConfig</code></p>
<pre><code> <div id="popup">
<div id="popupClose">
<input type="image" alt="close window" src="images/close_btn.gif" width="20" height="20" onclick="" align="right">
</div>
<div id="divBrd... | javascript jquery | [3, 5] |
4,785,328 | 4,785,329 | add pages to masterpage gives me javascript error | <p>i have a page which uses some javascript code to run,it was working fine until i added it to master page, on adding it to master page it gives me an error from javascript</p>
<pre><code>var fu1 = document.getElementById("FileUpload1");
var ex1 = extension(fu1.value) ; object expected in fu1.value
</code></pre>
<p... | asp.net javascript | [9, 3] |
5,728,233 | 5,728,234 | NullPointerException using append method on a view in android? | <p>I am trying to populate data from database into a TextView using this code:</p>
<pre><code>@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView view = (TextView) findViewById(R.id.textView);
db = (new DatabaseHelper(this)... | java android | [1, 4] |
5,094,499 | 5,094,500 | Python to C# Code Explanation | <p>My ultimate aim is to convert the below code in python to C#, but I'd like to do it my self by learning the python syntax. I understand that the code is recursive.</p>
<p>The code produces polynomials of degree n with k variables. More specifically the list of exponents for each variable.</p>
<pre><code>def multi... | c# python | [0, 7] |
1,979,212 | 1,979,213 | drag & drop w/ reordering - reordering 2 side-by-side elements at once | <p>I have had no luck figuring out how to do this. I was originally using jQuery UI sortable, but I am not sure it will work with this workflow:</p>
<p>I have a table with multiple columns. I want to be able to drag an element in column A AND the element next to it in column B at once and drop them into a different ... | javascript jquery | [3, 5] |
166,981 | 166,982 | Is there a better way to organise javascript in a single file with specific code for multiple pages? | <p>I have a couple of websites where I use a relatively small amount of jQuery to do various things on the pages. Generally we're talking about a couple of dozen lines of code per page. </p>
<p>I keep all of my JS in one file so far as it's not huge and fairly clearly defined. That said, what I have trended towards is... | javascript jquery | [3, 5] |
2,821,609 | 2,821,610 | Remove all the activites before restarting app. | <p>Does someknow how I get set flags at the main (startup) activity? I want that all activties will be removed of the stack. </p>
<p>This is my code know, but it doenst work:</p>
<pre><code>/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
In... | java android | [1, 4] |
277,496 | 277,497 | jquery wont send with post method | <p>nothing is being sent with $.post</p>
<pre><code> function clicked()
{
var $contact_title=$("#contact_title");
var $contact_summary=$("#bbcode");
alert($contact_title.val());// How do I get the contents of the title
alert($contact_summary.val());// How do I get the contents of the textarea
$.pos... | php javascript jquery | [2, 3, 5] |
3,969,784 | 3,969,785 | What is the equivalent of Java's SimpleDateFormat class in C#? | <p>Anyone knows an equivalent class of Java's SimpleDateFormat in C#? I wonder if i can convert the following java code using Custom Date and Time Format Strings in C#</p>
<pre><code> SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US);
TimeZone tz = TimeZone.getDefault();
format... | c# java | [0, 1] |
4,231,852 | 4,231,853 | Image Enlarger Script | <p>I am looking for one of those scripts that when you click a Thumbnail, it makes the picture englarge. I tried searching Google using a lot of terms, but cant find any.</p>
<p>Where do I get these?</p>
| javascript jquery | [3, 5] |
797,791 | 797,792 | 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] |
3,369,124 | 3,369,125 | I want to do a simple drag-drop using jQuery | <p>I have 4 Buttons in browser,I want to drag those Buttons and select those Buttons in mouse right click. is it possible. its like windows. i want to drag and select those Buttons in jquery in localhost.</p>
| javascript jquery | [3, 5] |
3,910,785 | 3,910,786 | fade a gallery of 9 thumbnails in randomly 1 at a time using jquery | <p>I have 9 thumbnail images (3 x 3), on page load I want to fade these images in randomly so maybe maybe image #4 fades in then 8 then 3...</p>
<p>At the moment Im trying to work out how this can be done, does a random number have to be generated for each image and then loop through each element adding the number to ... | javascript jquery | [3, 5] |
2,454,658 | 2,454,659 | Jquery IE 8 Unexpected call to method or property access | <p>I am helping design a school website. Most of the school computers use IE 8. When publishing the site, I get the following error</p>
<p>Line: 2
Error: Unexpected call to method or property access.</p>
<p>After using the debugging tool, the bad line seems to be:</p>
<pre><code>(this.nodeType===1||this.nodeType===1... | javascript jquery | [3, 5] |
2,817,963 | 2,817,964 | How to integrate the google + with ios and android native apps? | <p>Please give some suggestion ? Is it possible to do this?</p>
| android iphone | [4, 8] |
1,565,055 | 1,565,056 | Calendar's getTime() method gives back wrong hours | <p>Well i would like to simply get the current date in my app.</p>
<p>I use this snippet:</p>
<pre><code>Calendar cal = Calendar.getInstance();
cal.getTime().toGMTString();
</code></pre>
<p>for some reason it gives me like:
"22 Feb 2013 18:00:48 GMT"</p>
<p>Well it is <strong>19:00 right now in Hungary</strong>, <s... | java android | [1, 4] |
4,921,507 | 4,921,508 | get root node value null | <p>I have a problem with a <code>TreeView</code>. My <code>TreeView</code> structure is something like this:</p>
<pre><code> Root
!->child
!->subchild
</code></pre>
<p>Now my requirement is that when I click on subchild node I get the information I want but when I click on root node the page and the ch... | c# asp.net | [0, 9] |
1,732,453 | 1,732,454 | Good resource for creating a portal in aspx from design perspective | <p>I want to learn how to create a portal using asp and C#. I have learned language features of C# and asp. I want to learn how one should design a portal (like banking).</p>
<p>Regards,</p>
<p>Sachin</p>
| c# asp.net | [0, 9] |
1,904,706 | 1,904,707 | click once for each letter | <p>In my game you have to click the letters to spell the words. When a letter is clicked it animates to an area in the grid where the words are.</p>
<p>When I click a letter and it animates to the cell, I can click more than one. How would I limit it is only one letter per cell.</p>
<p>I was thinking maybe disabling ... | javascript jquery | [3, 5] |
2,745,268 | 2,745,269 | How to capture paste event from right-click context menu? | <p>I have a textbox in ASP.NET web form, and I need to catch the paste event from right-click context menu. But I can't see where I can catch the associated event. </p>
<p>The onchange event is no use, as this is only triggered when the input field loses focus. Neither does OnKeyDown event since it is not a mouse even... | asp.net javascript | [9, 3] |
1,381,423 | 1,381,424 | how to set refresh Interval In Application | <p>hi I am new in android. I have created one application and I use preferences for setting. I have used list preferences set to 1,10 ,60 minute. Now i want to apply a function so that another activity should be refreshed in each time interval. </p>
<pre><code>beerPref2
.setOnPreferenceChangeListener... | java android | [1, 4] |
2,120,792 | 2,120,793 | Javascript/Jquery beginner question | <p>I am learning some jQuery basics with this great book: <a href="http://jqfundamentals.com/book/" rel="nofollow">http://jqfundamentals.com/book/</a></p>
<p>There is an example that doesn't return the right result.</p>
<p>Here is the code:</p>
<pre><code> var myName = 'the global object',
sayHello = functio... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.