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,144,567 | 4,144,568 | Jquery contains selects div too high up | <p>I'm sure this is a complete bonehead move on my side, but can't figure out what's happening here.</p>
<p>I'm trying to select a div with a specific word in it, but Jquery seems to select the div on the wrong level. If you run this you'll see what I mean:</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1... | javascript jquery | [3, 5] |
2,319,089 | 2,319,090 | Getting unknown child div from parent? | <pre><code><script type="text/javascript">
$(".inventory-notes").bind("click", function() {
if($(this).text().length > 0) {
alert($(this).text());
alert($(this).closest(".inventory-notes").children().text());
}
});
</script>
</code></pre>
<p>example table</p>
<pre><code><tabl... | javascript jquery | [3, 5] |
2,705,416 | 2,705,417 | Broadcast Receiver issue | <p>Ok, so I have an app that needs to receive incoming SMS, and send out an SMS to the sender. This I can set up fine. The problem is, I only want the Broadcast Receiver to receive when the service is started. I declared the receiver class within the service. I destroy the reference (and unregister the receiver) in onD... | java android | [1, 4] |
4,080,043 | 4,080,044 | shorter way to write if(x==1 || x==5 || x==7 || x==22) | <p>Programming in JavaScript and PHP, is there a shorter way to include several options in an if() condition?</p>
<p>I wonder if there is a way to write see a way to write for example</p>
<pre><code>if( myvar==1 || myvar==5 || myvar==7 || myvar==22 )
</code></pre>
<p>something like</p>
<pre><code>if( myvar==(1||5||... | php javascript | [2, 3] |
1,991,603 | 1,991,604 | .slideToggle class individually based on .click | <p>Basically trying to write something like this. Click .button and it .slideToggle(s) it's associated .box Div. Nesting them inside a container div to try different methods.</p>
<p>I feel stupid, this has been asked many times. I've tried at least a dozen none of which I can get to work.</p>
<p>Code is here.</p>
... | javascript jquery | [3, 5] |
4,413,753 | 4,413,754 | error type or namespace name profilecommon could not be found | <p>When I compile this code, It show me this kind of error type or namespace name profilecommon could not be found. Could someone help me how to solve this?</p>
<pre><code>case "Profile":
ProfileCommon pc = Profile.GetProfile(user.UserName);
DropDownList3.Items.Clear();
foreach (SettingsProperty p in
ProfileCommon.Pro... | c# asp.net | [0, 9] |
5,901,250 | 5,901,251 | How to format date to match specific pattern? | <p>I need to format <strong>DateTime.Now</strong> to match this pattern <strong>Example:</strong> 10-March-2011.</p>
<p>How can I accomplish it?</p>
| c# asp.net | [0, 9] |
5,107,522 | 5,107,523 | call class file(.cs in c#) function from javascript and helps how to write Ajax+Webservices | <p>Here my simple sample code is:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
namespace PopUpFromCsFile
{
public class PopUpWindow
{
public void PopUpFromCsFile()
{
string str1 = "<script> $.ajax(... | c# javascript | [0, 3] |
5,108,990 | 5,108,991 | change property on user control | <p>I changed a public property in my web user control but the client doesn't see that change until I delete the user control and re-add it and then it sees the change.</p>
<p>I'm thinking to myself what if the user control is used in many places, will I have to do that to all of the pages? Certainly, I missing somethi... | c# asp.net | [0, 9] |
2,228,923 | 2,228,924 | What do I need to know going from Java to JavaScript? | <p>This isn't as progressive as it sounds. Im not taking the whole "Oh I know Java, that must mean I can write in JavaScript too!" attitude. I have some education on Java under my belt, but now find myself having to do some PHP web development (which I have little experience in) using Java Script to handle some of th... | java php javascript | [1, 2, 3] |
544,273 | 544,274 | What is the best way to programmatically run javascript when an ASP.net page loads? | <p>In my <code>global.asax</code> file for my ASP.net project, I am checking for certain conditions. When those conditions are met, I want to automatically execute javascript code when the page runs.</p>
<p>This is my code:</p>
<blockquote>
<p>if condition Then<br>
Response.Write(" < script type=""text/j... | asp.net javascript | [9, 3] |
1,177,945 | 1,177,946 | How to make the Setting works for Class Library project in C# 2.0? | <p>I am putting the setting under the property of one of my C# Class Library project for app setting:</p>
<pre><code>EUCAccountService_ConnectionString
EUCTelcoDB_ConnectionString
</code></pre>
<p>In the development, it works nicely. Until I deported to production, I realise that the component that use those thing ..... | c# asp.net | [0, 9] |
334,881 | 334,882 | how to click url inside image control? | <p>I am converting pdf document to image using a itextsharp dll,in my requirement clickable url inside image control,how to click url inside image control.how to handle this...</p>
<p>thanks,
seelan</p>
| c# asp.net | [0, 9] |
2,428,580 | 2,428,581 | Allow a web application to access a local file | <p>If I have a web application that needs to use a file, it presents the user with a standard open file dialog. But instead of uploading the file to server can it modify the file locally in a temporary location, while uploading in the background? That way the user does not have to wait for the upload before they can us... | php asp.net | [2, 9] |
1,001,514 | 1,001,515 | setOnCheckedChangeListener is getting invoked everytime the view is built | <p>I have a class <code>Devices</code> that stores the checked state of the Switch using <code>setChecked(boolean)</code> and gets it by the <code>isChecked()</code> method.</p>
<p>Using this, I'm saving the state of the switch once once it is toggled.</p>
<p>But, if I change the state of a switch to ON, every time I... | java android | [1, 4] |
91,822 | 91,823 | how to display checkbox values in popup with jquery | <p>I have a search page when I click on search button, I have a result with multiple rows with checkboxes, I wanted to know if it is possible when I check some results, it displays the values in a popp, and when I change the search criteria and I check other boxes it adds other values in popup without reset my popu... | javascript jquery | [3, 5] |
1,384 | 1,385 | jquery change function works on one page but not another | <p>I'm having a little bit of trouble with an on click function on one of the <a href="http://mb.tmlinc.ca/" rel="nofollow">projects</a> I'm working on. If you notice on the home page when you populate checkin and checkout dates and then switch the property, the values in both inputs are cleared.</p>
<pre><code>// cle... | javascript jquery asp.net | [3, 5, 9] |
2,167,294 | 2,167,295 | How to pass javascript variable value to java class | <p>I want to submit data from a html page to java class. I am using javascript to get data from html page, now I want to send this data to java class to save this data to db. I am using ftl template to generate html so I cant use jsp here. Please give an example using either javascript of ajax or jquery.</p>
<p>thanks... | java javascript | [1, 3] |
4,417,601 | 4,417,602 | Check whether link's text is "B" then remove its class? | <p>I want to check whether an <code>a</code> node contains the word "B". If so, the node's <code>someclass</code> class should be removed.</p>
<p>For example:</p>
<pre><code><a href="http://link.com" class="someclass">B</a>
</code></pre>
| javascript jquery | [3, 5] |
1,687,088 | 1,687,089 | I get "function not defined" using setInterval with jQuery. Why? | <p>I am trying to update a users field by using jQuery.</p>
<p>My code is...</p>
<pre><code> jQuery(document).ready(function(){
setInterval("imStillAlive()", 6000);
function imStillAlive() {
jQuery.post('/users/update_useractive',
function(data){
alert("updated");
});//post
}
});
</... | javascript jquery | [3, 5] |
4,962,813 | 4,962,814 | What is Script Binding, and How is it done? | <p>I have heard such thing as Script Binding - binding Javascript or lua with API's from C++ or Objective-C.
I want to know more about it- however Google has strangely proven unuseful for this. </p>
<p>How is it done? - it OK if I get pointed to other sources, but, just how?
I never knew a Scripts jitter could inter... | c++ javascript | [6, 3] |
5,400,422 | 5,400,423 | How to offset bitmap, drawn on a canvas? | <p>Here's my code that draws a BitmapMesh, as well as a circle on canvas.</p>
<pre><code>canvas.drawBitmapMesh(GirlBitmap, WIDTH, HEIGHT, matrixVertsMoved, 0, null, 0, null); // need to offset this by "addOffset"
canvas.drawCircle(pointX+addOffset, pointY, bubbleSize, p3);
</code></pre>
<p>Both of which have to be ... | java android | [1, 4] |
4,278,130 | 4,278,131 | How to refer to currently selected element in jQuery? | <p>I'm trying to make a script that would insert <code>img</code> element after each link to a certain site with source equal to value of <code>href</code> attribute of given link. This is what I came up with:</p>
<pre><code>$("a[href*=site.com/img/]").after("<img src="+$(this).attr("href")+">");
</code></pre>
... | javascript jquery | [3, 5] |
192,636 | 192,637 | asp.net, c# with mappath | <p>i have 10 rows like (E:\DocumentManager\Upload\rzgtlxvmuolmhej4ibvyif2o.pdf") already in the database. so I have dataset to pick it up, and now I want to know
how to display/show on the browser
(E:\DocumentManager\Upload\rzgtlxvmuolmhej4ibvyif2o.pdf") on the web using aspx/c# code behind.</p>
| c# asp.net | [0, 9] |
2,576,831 | 2,576,832 | Is it possible to determinate if an element is currently overflowing its container? | <p>I want to check if a horizontal scrollbar is applied to a div like this:</p>
<pre><code>if (box.width() < box.get(0).scrollWidth)
</code></pre>
<p>This is always true, even when there isn't any scrollbar, because <code>box.get(0).scrollWidth</code> returns <code>203px</code>, while <code>.width()</code> returns... | javascript jquery | [3, 5] |
3,177,880 | 3,177,881 | How to show Label1.Text for each item in a foreach statement? | <p>I want to show each item Id that is doing now dynamically in a foreach statement.</p>
<p>But the following code only shows the last item Id in Label1.Text.</p>
<p>How to show Label1.Text for each item in a foreach statement?</p>
<pre><code><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>... | c# asp.net | [0, 9] |
1,026,451 | 1,026,452 | jQuery Slider/Carousel update content after DOM | <p>guys.</p>
<p>I have searched for an jquery slider/carousel plugin where i can update your content after DOM-ready, with AJAX call or something like that. Anyone knows an plugin where this is possible? Add new jquery slide after her ready?</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
1,597,504 | 1,597,505 | closer browser window.close not working | <p>I would like to close the browser window using javascript on button click this is what I tried</p>
<pre><code><script type="text/javascript">
function OpenMyWin() {
window.open('', '_self');
window.close();
}
</script>
<asp:Button ID="btn" runat="server" Text="Close" OnClient... | javascript asp.net | [3, 9] |
5,451,749 | 5,451,750 | Span element change event | <p>My question is:</p>
<p>Does have a span element the inner html change event?
I think about I have a span and when the span inner html is changing it will throw an event that I can reach?</p>
<p>I would like to use Jquery to bind to this event of span.</p>
<p>l.</p>
| javascript jquery | [3, 5] |
2,097,067 | 2,097,068 | What is the dollar symbol used for in ASP.net? | <p>I know this might be a newbie question, but every-time i see code like this:</p>
<pre><code>var table = $("table[title='Refresh']");
</code></pre>
<p>And also code like this:</p>
<pre><code> $(function () {
$("#datepicker").datepicker();
});
</code></pre>
<p>i always sort of glaze over the <code>$</c... | c# asp.net | [0, 9] |
895,923 | 895,924 | android pick random images? | <p>How can i load a random image out of 2 ?</p>
<p>I tried this code</p>
<pre><code>final Random rgenerator = new Random();
Integer [] mImageIds =
{
R.drawable.mantrans,
R.drawable.womentrans,
};
Integer q = mImageIds[rgenerator.nextInt(mImageIds.length)];
gBall1 = BitmapFactory.decodeResource(getResources()... | java android | [1, 4] |
4,327,181 | 4,327,182 | how can I cut a string that contain "map" in jquery/javascript | <p>Does anyone know how can I cut a string that contain "map" in jquery/javascript</p>
<p>Example:
If i have a string </p>
<pre><code>var stringName = "abc mapTest bbc";
</code></pre>
<p>How Can I cut the string by result only mapTest? </p>
<p>NOTE: like assume the stringName is not the fixed value, it could change... | javascript jquery | [3, 5] |
1,399,280 | 1,399,281 | Including simple PHP code into Javascript | <p>How do I make this work? I've googled and even saw some examples here on Stackoverflow which show this kind of coding, but it doesn't work for me.</p>
<pre><code><script type="text/javascript">
var infoClass = "";
infoClass = <?php echo('test'); ?>;
alert(infoClass);
</script>
</code></pre>
... | php javascript | [2, 3] |
4,110,294 | 4,110,295 | How to set Row Filter for Dataview to filter rows according to valu of column? | <p>Hii,
I am using DataView control to bind a gridview. In dataview data is coming from a table 'cloneUserEntry'. cloneUserEntry table contains a column 'Visibility' whose value is true or false (boolean type). I want to display rows whose visibility is true.
So how to set row filter to filter rows whose column 'visiil... | c# asp.net | [0, 9] |
1,515,432 | 1,515,433 | add membership provider to my site | <p>I want to implement membership provider in my site that will include more that 100K users (optimistic...),but I am new with this issue.
As I know I can use integrated ASP.NET provider (ASPNETDB.mdf) and I have some questions about it:
Is it good enough for this amount of users considering users management , performa... | c# asp.net | [0, 9] |
1,639,893 | 1,639,894 | PHP to PYTHON inter communication | <p>How can I run a Python script store in another server from PHP? I have googled for this and found many solutions to run Python files from PHP, but those were for Python files stored locally. Mine's on a another server.</p>
| php python | [2, 7] |
3,421,842 | 3,421,843 | Jquery sliding DIV not working in browser compatibility issue | <p>I am trying to implement a sliding div over pdf (Information : Pdf is Shown using iFrame). Its working on Mozilla Firefox, Chrome but its not working on Internet Explorer, Safari :(. Here is the jsFiddler Link. <a href="http://jsfiddle.net/rickjackson/7VCeD/2/" rel="nofollow">Click Here</a></p>
<p>Will any 1 let me... | javascript jquery | [3, 5] |
3,642,684 | 3,642,685 | Sorting multiple html tables logically related to each other | <p>I wish to sort 3 separate tables that are logically related to each other but kept separate in design for some purpose.
I am using sorttable.js for sorting.
Can someone guide me on this.
Thanks.</p>
| javascript asp.net | [3, 9] |
1,777,404 | 1,777,405 | How to use element of a certain parent | <p>I have one element, when dragged to another place that element is cloned and i have two elements with same id and etc, but the parent is different, how can i set some style or whatever to the cloned element, but not affecting the older one, from witch i cloned. And again every class and id is the same, just differen... | javascript jquery | [3, 5] |
1,680,599 | 1,680,600 | What does jQuery(function) or $(function) do? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7642442/what-does-function-do">What does $(function() {} ); do?</a> </p>
</blockquote>
<p>what exactly does the following syntax mean?</p>
<pre><code>$(function() {..}
</code></pre>
<p>as in </p>
<pre><code>$... | javascript jquery | [3, 5] |
5,469,526 | 5,469,527 | Replace anchor tag onclick javascript function parameter | <p>I have a page which has a couple of anchor tags in this format:</p>
<pre><code><a onclick="javascript:RefreshPageTo(event, &quot;/web/Lists/exceptionlog/AllItems.aspx?Paged=TRUE&amp;PagedPrev=TRUE&amp;p_Created=20111026%2017%3a30%3a16&amp;p_ID=175\u0026PageFirstRow=1\u0026\u0026View={8AB948D3-7F1... | javascript jquery | [3, 5] |
2,696,166 | 2,696,167 | Access to an object created in page from a class | <p>I have a page, Default.aspx, with its own code-behind file like this:</p>
<pre><code> using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
... | c# asp.net | [0, 9] |
217,355 | 217,356 | JQUERY to filter input in a textfield | <p>I am a newbie to jquery and javascript so this may be a silly question</p>
<p>I have a textfield and i would like to filter the input</p>
<p>so it will only let the usesr enter in [A-Z] chacters and also if the length of [A-Z] has reached 3 it then also disables the user from entereing any more characters</p>
| javascript jquery | [3, 5] |
4,487,533 | 4,487,534 | How to find extension of a file? | <p>in my web application (asp.net,c#) i am uploading video file in a page but i want to upload only flv videos. how can i restrict when i upload other extension videos help me please.</p>
| c# asp.net | [0, 9] |
2,357,263 | 2,357,264 | get table row data td and select | <p>Here is what I want to do.</p>
<p>In the first row that has tds then <code>a = the text in the first cell</code> and <code>b = the selected value of the drop down that the user selected</code></p>
<p>How do I do this as my code is not working?</p>
<pre><code>$(document).ready(function () {
var s = $('table ... | javascript jquery | [3, 5] |
4,694,668 | 4,694,669 | how to get value from a datakey field inside datalist | <p>i have a datalist and i set DataKeyField</p>
<pre><code> <asp:DataList ID="lstItems" runat="server" RepeatDirection="Horizontal" DataKeyField="itemid" >
<ItemTemplate>
//contents in the datalist here
</ItemTemplate>
</asp:DataList>
</code></pre>
<p>i also have a imagebutton say i... | c# asp.net | [0, 9] |
4,549,719 | 4,549,720 | jQuery on list item hover, show delete button for that individual item | <p>Below is a preview of what I have:</p>
<hr>
<p><img src="http://i.stack.imgur.com/RiF2B.jpg" alt="enter image description here"></p>
<hr>
<p>On the right is when I hover. What I want is for the delete icon to only show for that hover item.</p>
<pre><code><script>
$(document).ready(function(){
$(".r... | javascript jquery | [3, 5] |
2,515,238 | 2,515,239 | How do you programmatically fill in a form and 'POST' a web page? | <p>Using C# and ASP.NET I want to programmatically fill in some values (4 text boxes) on a web page (form) and then 'POST' those values. How do I do this?</p>
<p>Edit: Clarification: There is a service (www.stopforumspam.com) where you can submit ip, username and email address on their 'add' page. I want to be able to... | c# asp.net | [0, 9] |
1,049,092 | 1,049,093 | What would be jQuery equivalent of this sf hover suckerfish code? | <p>What would be jQuery equivalent of this sf hover suckerfish code?</p>
<pre><code><script>
sfHover = function() {
var sfEls = document.getElementById("navbar").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" hover";
... | javascript jquery | [3, 5] |
2,916,495 | 2,916,496 | javascript jquery.getJSON weird behaviour | <p>I've been starting to experiment with javascript and jQuery. I was trying to create a class that would load a json file into a specified div, but I run into a behaviour I don't understand:</p>
<p><em>NOTE: I know this code won't load anything into a div, it's just the shortest example I could find to show the behav... | javascript jquery | [3, 5] |
987,122 | 987,123 | How to store javascript code without it executing? | <p>I'm trying to have adsense javascript code added to a designated div location using jquery but it seems javascript code does not sit well inside a jquery variable. It executes. I've tried using php's htmlentities to encode it for storage, but I can't get it to decode naturally. What should I do? Do I need a javascri... | javascript jquery | [3, 5] |
2,816,617 | 2,816,618 | jQuery set flash wmode parameter | <p>Am wondering if there is any jQuery plugin available to change the wmode to transparent at runtime. (Something similar to wibiya)</p>
<p>I tried googling, but could not find any exact plugin do to the job. The only resource I found was: </p>
<p><a href="http://www.onlineaspect.com/2009/08/13/javascript_to_fix_wmod... | javascript jquery | [3, 5] |
4,161,918 | 4,161,919 | call a function every X minute | <p>I have a background service running and inside this I wanted to call a function every X minute. What is the simplest solution to do this in Android?</p>
| java android | [1, 4] |
2,350,795 | 2,350,796 | Need Removable comments in this textarea | <p>Hi I need to add some content which would be clear on click in the given below textarea.</p>
<p>Not able to find the answer, please help me</p>
<pre><code> <tr><td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td></tr>
</code></pre>
| php javascript | [2, 3] |
4,364,752 | 4,364,753 | lifetime of variable in java | <pre><code>private void func()
{
String str = "hi!";
}
</code></pre>
<p>this is my code.</p>
<p>suppose I called func() in the onCreate event.
I want to the near exact time, if thats possible to be determined, when GC will free the memory used by str.</p>
<p>Actually str stores a password.
and i want to free it as... | java android | [1, 4] |
2,940,748 | 2,940,749 | How do i remove/destroy all child elements from a div entirely- .remove() does not seem to work properly | <p>Im dynamically loading content into gallery format-</p>
<p>i have a table or list of image data, it needs to be able to discard the entire set of data, and reconstruct it again with new data.</p>
<p>The problem i have, is when i call .remove() on the entire div structure, it stores all of the child elements if i g... | javascript jquery | [3, 5] |
3,682,205 | 3,682,206 | jquery making local variable in function global | <p>I have this function that populates the currsong variable with data.
The problem is that the variable currsong is only available inside the function and I need to access it globally.</p>
<pre><code>// get a single audio url
echonest.artist(artist).audio( function(audioCollection) {
var currsong = audioCollectio... | javascript jquery | [3, 5] |
2,459,441 | 2,459,442 | Fade out before loading new content | <p>How do I fade out #special, then load the content, and when it´s loaded fade in again.</p>
<pre><code>function test(x,y) {
$('#special').fadeOut('fast').fadeIn('slow');
$('#special').load('index.php?close=1 #special');
}
</code></pre>
<p>I don´t want it to display/load the new content until #special h... | javascript jquery | [3, 5] |
5,269,588 | 5,269,589 | How to convert integer type to amount type in javascript? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/149055/how-can-i-format-numbers-as-money-in-javascript">How can I format numbers as money in JavaScript?</a> </p>
</blockquote>
<p>In JavaScript I accessed a variable like this:</p>
<pre><code>amount= document.... | javascript asp.net | [3, 9] |
1,178,789 | 1,178,790 | GridView Sort Problem after Browser's Back Button Clicked | <p>I have a web form with a gridView inside an UpdatePanel. </p>
<p>After make a search and sort the gridview the user can click in a row to select the value to be edited, when it's clicked another page is opened.</p>
<p>The problem is, when the user click on the Browser's Back Button on EditPage the Search page does... | javascript asp.net | [3, 9] |
1,882,748 | 1,882,749 | PHP/Javascript project keeps calling your-meme-site.com | <p>I am developing a localhost project that keeps sending requests to your-mime-site.com. </p>
<p>I have included these jquery plugins:</p>
<ol>
<li>jQuery</li>
<li>jQuery.form</li>
<li>jQuery.validate</li>
<li>jQuery.ui</li>
</ol>
<p>Everything else I have coded myself.</p>
<p>I have tried to use NetBeans to searc... | javascript jquery | [3, 5] |
2,877,318 | 2,877,319 | The process cannot access the file because it is being used by another process | <p>I am getting binary data from a SQL Server database field and am creating a document locally in a directory my application has permissions. However I am still getting the error specified in the title. I have tried numerous suggestions posted on the web including those suggested in previous posts on Stackoverflow. I ... | c# asp.net | [0, 9] |
4,941,375 | 4,941,376 | Javascript Closure calling a Call back function? | <p>So I have tons of function that are very similar to each other. IE time to refactor via closures but I ran into a problem.</p>
<p>My functions skeleton code is something like this (i have tons of this in my javascript):</p>
<pre><code>function getBlahOutputInThisID(param1, ...., paramN, functionName) {
var jas... | javascript jquery | [3, 5] |
1,984,135 | 1,984,136 | Is there a sense to handle nullpointer exception by such way? | <p>Is there a sense to handle null pointer exception by such way like</p>
<pre><code>private void doWork(Object object) {
if (object == null) {
try {
throw new IllegalArgumentException();
} catch (Exception e) {
e.printStackTrace();
}
} else {
...
}
}... | java android | [1, 4] |
3,874,711 | 3,874,712 | Handler to grab variable values from another function | <p>This is what I have so far </p>
<pre><code>//file uploader
///////////////////////////
function uploader(){
var file = $(this).val()
var error = $(this).next('.req-error')
var fileLimit = $(this).attr('maxlength')-1
var uploadedFiles = $(this).siblings('.uploaded-file').length
//make uploaded... | javascript jquery | [3, 5] |
4,699,404 | 4,699,405 | How to create a multi line textbox with like button which can be sorted based on likes | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8566184/i-want-to-develep-comment-section-like-this-websites-stackoverflow-answer-modu">I want to develep comment section like this website's stackoverflow “answer module” using asp.net in c#</a> </... | c# asp.net | [0, 9] |
5,155,100 | 5,155,101 | Get last ID of dynamic div | <p>Couldn't find an answer, but Im trying to get the last ID of the last div that was created on the page. The code I'm using doesn't seem to work using .last(). My syntax is probably wrong but I can't get it to show the ID.</p>
<pre><code> jQuery(document).ready(function()
{jQuery("a.more_posts").live('click', f... | javascript jquery | [3, 5] |
4,733,095 | 4,733,096 | Set Read status in SMS | <p>I'm writing a quick application for SMS Popup. What I want to do is, once the user closes the popup, the SMS should automatically be set as read. But I don't find a way to do so. I thought of using the date column. But its not working, I mean the no. of updated rows is always 0
This is my code:</p>
<pre><code>publi... | java android | [1, 4] |
860,590 | 860,591 | typecast problem with List class | <p>What is the bug here?</p>
<pre><code>private void LoadUsers(List<long> uids, EventUser.EventUserStatus eventUserStatus, IList<user> chkfriends)
{
foreach (var f in chkfriends)
{
long l = f.uid; <-- fails
if (uids.Contains(l)) do it!
}
</code></pre>
<p>Error 1 Cannot imp... | c# asp.net | [0, 9] |
899,868 | 899,869 | javascript: alt attribute with special characters | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2775328/alt-attribute-encoding-with-javascript">Alt attribute encoding with JavaScript</a> </p>
</blockquote>
<p>I can't seem to assign special characters using javascript in alt tags and have them render in any... | javascript jquery | [3, 5] |
754,590 | 754,591 | Why does delegate not work in "p" tag? | <p>When delegate with <code>p</code> tag, it does not work <a href="http://jsfiddle.net/peswe/wbVMV/4/" rel="nofollow">http://jsfiddle.net/peswe/wbVMV/4/</a></p>
<p>HTML:</p>
<pre><code><p id='test'>
<div>box 1
<div>box in box1</div>
</div>
</p>
</code></pre>
<p>
... | javascript jquery | [3, 5] |
5,330,544 | 5,330,545 | Remove element which matches multiple classes | <p>I'm trying to remove an element that holds two classes, one hard coded, and the other which is passed as a variable:</p>
<pre><code>variable = 'class2';
$('.class1.'+variable).remove();
</code></pre>
<p>This has no effect though!</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
3,152,052 | 3,152,053 | Longpress simulation with onmousedown but also has onclick | <p>I have the following HTML</p>
<pre><code><li onclick="setServerID(this);" class="server-item-item" data-server="1" onmousedown="serverHold(this);" onmouseup="serverRelease();"><span>MyServer</span></li>
</code></pre>
<p>My JS looks like:</p>
<pre><code>function setServerID(server) {
se... | javascript jquery | [3, 5] |
6,787 | 6,788 | Run jQuery function on drop down change | <p>I have a jQuery function that current runs on Click. I need to change it so that it runs when a drop down box is changed. Here is my code:</p>
<pre><code><form id="form1" name="form1" method="post" action="">
<label>
<select name="otherCatches" id="otherCatches">
<option value="*"... | javascript jquery | [3, 5] |
1,620,471 | 1,620,472 | Generating form element with javascript and POSTing them to php works in EI not in Chrome and Firefox | <p>I cant get my head around this problem. I have a page on witch there is form genrated by php. Then Im using javascript to track number of selected checkboxes and in a real time generating a text with this information as well hidden input with this very same value I tried to use both jqueary and row javascript</p>
<... | php javascript | [2, 3] |
2,968,562 | 2,968,563 | is it possible to play system sound through phone app? | <p>Is there a way to play sound through the iPhone or android phone app. Can I play a sound so the other party can hear a song. Is there API access to the telephone stack.</p>
| android iphone | [4, 8] |
2,242,318 | 2,242,319 | How can I turn content on or off based on the day of the week? | <p>I am using the jQuery cycle plugin to run a basic slider containing 3 slides (A, B, C) of a text header and an image.</p>
<p>I want to be able to display slide A and B on Mon, Wed, Fri, Sun;</p>
<p>then slide A and C on Tue, Thurs, Sat.</p>
<p>So I am looking for some kind of script or PHP based solution to turn... | php jquery | [2, 5] |
2,663,494 | 2,663,495 | Is there a jQuery image cropping plugin similar to Facebook's image crop? | <p>I know there are thousands of jQuery plugins for image crop, but the one I need is similar to Facebook's image crop: a draggable fixed size square over a image, or a draggable image under a fixed size square.</p>
<p>I think there's a simple elegant code for it, instead of a 10k-50k framework for image manipulation ... | javascript jquery | [3, 5] |
4,061,597 | 4,061,598 | Change div value based on textbox value using jQuery | <p>I created this fiddle that the div value changes based on your dropdown list selection. <a href="http://jsfiddle.net/qSkZW/20/" rel="nofollow">http://jsfiddle.net/qSkZW/20/</a></p>
<p>I want to take it one step further and this is to create a textbox field that if you add for example the number <code>2</code> it wi... | javascript jquery | [3, 5] |
4,554,931 | 4,554,932 | jquery and updatepanel? | <p>I have an updatepanel in ASP.NET that does a partial page refresh. </p>
<p>I've had some success using jQuery's <code>on()</code> method, however <code>$(document).ready(function(){})</code> is only called during the initial load of a page, rather than after each updatepanel refresh.</p>
<p>I think I could probabl... | javascript jquery asp.net | [3, 5, 9] |
515,957 | 515,958 | Membership.GetUser - table + field | <p>When I use:</p>
<pre><code>Membership.GetUser(User.Identity.Name)
</code></pre>
<p>does anyone know which table and field User.Identity.Name corresponds to when I use the 'standard asp.net membership provider tables' like these:</p>
<pre><code>aspnet_Membership
aspnet_Users
</code></pre>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
2,501,546 | 2,501,547 | Dynamic images resizing | <p>I'm working on project where we are trying to adopt and resize template images to the various resolutions. For example if the website is viewed in 800px width (800x600) and 1024px width or larger the image size should be viewed in same quality.
I've had in mind to use sprite with 3 types of images for each range of... | php javascript jquery python | [2, 3, 5, 7] |
1,413,237 | 1,413,238 | javascript detect browser close tab/close browser | <p>any cross browser javascript/jquery to detect if browser is closing tab or closed browser ? and should not activate event when go to other link? </p>
| javascript jquery | [3, 5] |
5,680,509 | 5,680,510 | A Java and PHP application | <p>Is it possible to build a Java web application which has a PHP front end ?</p>
<p>I want all my web pages to be coded in PHP. Most of them will be forms.</p>
<p>I want all the data submitted by a form to go to a Java Code.</p>
<p>I want to do all manipulation in back end and all rendering of web content on the fr... | java php | [1, 2] |
2,189,941 | 2,189,942 | Validating Checkbox and Radio Button in C# | <p>I am using c# for coding!</p>
<p>Below is my html for checkbox and radion button</p>
<pre><code> <input type="radio" style="float: left;" name="documents" id="Checkbox9" value="yes"
runat="server" />
<label style="width: 35px!important;" class="checkbox">
... | c# asp.net | [0, 9] |
1,746,242 | 1,746,243 | window.Open Open popup Instead of new window | <p>I have a ajax function in jQuery and i want in compelet function open a url in new window or tab.</p>
<pre><code><a href="#" onclick="Add('1','http://www.google.com');return false;">Link</a>
</code></pre>
<p>And :</p>
<pre><code>function Add(ID, url)
{
var data = "{'ID' : '" + ID + "'}";
$.aja... | javascript jquery | [3, 5] |
2,538,098 | 2,538,099 | Save/output dynamically generated html source using jquery | <p>I have a search form that can be built dynamically by the user using code such as:</p>
<p><code>$('tr.form_row:last').clone(true).insertAfter('tr.form_row:last');</code></p>
<p>All of this is working fine, however, I would like to save the dynamically generated form html when the form is submitted. I have tried u... | javascript jquery | [3, 5] |
5,565,021 | 5,565,022 | append fails when target a class auto-generated by cms system | <p>I need help on the following.</p>
<p>The only way to solve this is be able to target the class. else what i am trying will not work. (I need to <strong>append</strong> some buttons behind the input field)
The cms system generate the code for the input class itself. (apparently added on load screen)
somehow there is... | javascript jquery | [3, 5] |
5,798,627 | 5,798,628 | FileUpload1.HasFile is always returning false | <p>I am uploading file using ASP.net File upload control.
My FileUpload1.HasFile is always returning false.</p>
<pre><code>if (FileUpload1.HasFile)
{
DBOperations db = new DBOperations();
try
{
FileUpload1.SaveAs(Server.MapPath("~/uploadedImages/" + db.uploa... | c# asp.net | [0, 9] |
211,051 | 211,052 | Timing issue with jQuery and $(document).ready() | <p>I have the following code block code when the document is ready:</p>
<pre><code>$(document).ready(function() {
createDivs(); // creates some divs with class 'foo';
// iterate
$(".foo").each(function(index) {
alert(index + " - " + $(this).text());
});
}
</code></pre>
<p>I find that the "ite... | javascript jquery | [3, 5] |
4,177,667 | 4,177,668 | reload page to reflect changes | <p>I've my jquery code</p>
<pre><code>.ajax({
type: "POST",
url: "crop/crop.php",
data: dataString,
cache: false,
success: function(data){
$('#popupMargin').hide();
$('#avatar img').remove();
$('#avatar').load('... | javascript jquery | [3, 5] |
4,786,349 | 4,786,350 | jQuery: When getting the value of an element, do I need to declare the variable in document ready? | <p>I'm storing the value of a specific form element as a variable. This same value is used in multiple functions.</p>
<pre><code>function one() {
var selectedRole = $('#RegistrationRole_ID').val();
}
function two() {
var selectedRole = $('#RegistrationRole_ID').val();
}
</code></pre>
<p>I'd like to make this ... | javascript jquery | [3, 5] |
5,318,653 | 5,318,654 | Cannot get javascript innerHtml to work on WebView | <p>I am using a WebView with a javaScript interface. All I want to do is change the inner html of a span if some checkboxes are ticked.</p>
<p>Below is a snippet of a String I have in strings.xml. The form will call this function onSubmit and should not continue if it does not pass. The problem is that I can't get ... | javascript android | [3, 4] |
5,197,115 | 5,197,116 | hover to show content of a name anchor in a popup instead of click to go to the content | <p>I have a long html, the contents have references for other text.</p>
<p>For example:</p>
<pre><code>What is your <a href="#A8">favorite</a> day?
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div... | php javascript jquery | [2, 3, 5] |
190,896 | 190,897 | Putting datatable comma separated values in a string | <p>My datatable consists of a column named "ID". The no. of values in this column varies.Sometimes this Datatable fetches 3 IDs in that ID column, sometimes 2.
Now if for example, my datatable has three values as 1,2,3. What I want is to put these three values in a string and separate them by commas as folows:-</p>
<p... | c# asp.net | [0, 9] |
2,681,755 | 2,681,756 | Using one javascript code on multiple sections | <p>I don't know much about jQuery but I've been using the following javascript code to make a table keep the scroll bar location upon pageback:</p>
<pre><code><script type="text/javascript">
window.onload = function () {
var strCook = document.cookie;
if (strCook.indexOf("!~") != 0) {
... | javascript jquery | [3, 5] |
3,065,477 | 3,065,478 | How do I position html intense widget without interfering with search optimization | <p>I have a widget that is comprised of quite a few divs. I then use javascript to bring the widget to life and do what it is supposed to do.</p>
<p>It is positioned on the page above the main content. </p>
<p>The client feels having all the widget html above the keyword rich content is bad for rankings, yet visually... | php javascript | [2, 3] |
4,312,558 | 4,312,559 | How to turn this static init into a dynamic one | <p>I have this fancybox plugin wich is great, but I don't think there is enough examples on the <a href="http://fancyapps.com/fancybox/" rel="nofollow">documentation</a></p>
<pre><code>$(document).ready(function(){
$('nav.main a#gallery').live('click',function() {
$.fancybox([
{href : 'img/g... | javascript jquery | [3, 5] |
70,666 | 70,667 | PHP / JQuery clone hidden table row, add to end of table | <p>I've got a table, with the first TR hidden (style="display:none;"). I have a button at the top of the table to allow users to add a new row to the table. When clicked, I would like the hidden row to be cloned and added to the bottom of of the table. I'm thinking this is the best way as I can pre-format the row to c... | php jquery | [2, 5] |
3,510,513 | 3,510,514 | jQuery parent of a parent | <p>I am currently trying to find the parent of a parent of an element. I have a link being clicked that is in a <code><td></code>, and I'd like to get the <code><tr></code> object.</p>
<p>Why wont "$(this).parent().parent()" work? What will?</p>
<p>Thanks,<br />
Brendan</p>
<p><strong>Edit:</strong> It a... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.