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 |
|---|---|---|---|---|---|
421,697 | 421,698 | How do I select these children divs | <p>I'm trying to alert the ids of each of these divs so it output <code>11 25 78</code>. </p>
<pre><code><div id="main">
<div id="section-11">Some content</div>
<div id="section-25">Some content</div>
<div id="section-78">Some content</div>
</div>
</code></pre>
<p... | javascript jquery | [3, 5] |
1,770,613 | 1,770,614 | Embed Python in Java on Android | <p>By embed I mean execute Python code from String in Java.</p>
<p>Jython won't compile for Android, and <a href="http://code.google.com/p/android-scripting/" rel="nofollow">Scripting Layer for Android</a> doesn't seem to let me embed Python through my Java application.</p>
<p>So how to embed Python in a Java applica... | java android python | [1, 4, 7] |
3,947,414 | 3,947,415 | Javascript on lost focus event for tab out | <p>I have a javascript function like this:</p>
<pre><code>ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "watermark", "function WaterMark(txtWaterMark, event, text) {if(event.type == 'keyup') {var charCode; if (event.charCode) { charCode = event.charCode;} else { charCode = event.keyCode; } if(charCode ... | c# javascript asp.net | [0, 3, 9] |
4,179,839 | 4,179,840 | Android loading animation | <p>I am searching for some info on how to create loading animation in android. Is it possible to create this animation that i could call this animation in one thread and end in other ?</p>
<p>I seeking for this:</p>
<p><img src="http://i.stack.imgur.com/87ssF.png" alt="enter image description here"></p>
| java android | [1, 4] |
1,560,287 | 1,560,288 | Align div in browser bottom | <p>Refer the thread : <a href="http://stackoverflow.com/questions/9871671/div-at-the-browser-bottom">Div at the browser bottom</a></p>
<p></p>
<p>Problem image :
<a href="http://i.imgur.com/I9vVv.png" rel="nofollow">http://i.imgur.com/I9vVv.png</a>
<a href="http://i.stack.imgur.com/jTU5U.png" rel="nofollow">http://i... | javascript jquery | [3, 5] |
5,008,597 | 5,008,598 | jQuery JavaScript Detect object in view / window | <p>Ok, this may have been asked dozens of times over. But I'm not exactly sure what technique or term I would have to search for in order to find out more information on this.</p>
<p>What I have is an Unordered list of Elements. Each one acting as a screen on a project I am working on. Each element is the size of the ... | javascript jquery | [3, 5] |
3,616,061 | 3,616,062 | how do I find elements that contain a data-* attribute matching a prefix using jquery | <p>I'm want to create a selector to find elements which have attributes starting with a string. At this point, I'm assuming this selector does not exist.
Do I need to extend the selector capabilities? <a href="http://james.padolsey.com/javascript/extending-jquerys-selector-capabilities/">Extending jQuery’s selector cap... | javascript jquery | [3, 5] |
5,951,024 | 5,951,025 | error prone jquery extending | <p>Anybody familiar with patterns for:</p>
<ul>
<li>Checking for existing jQuery extension most safely? </li>
<li>And how to exit from it safely if code can not be executed.</li>
</ul>
<p>Like </p>
<pre><code>(function($){
if (jQuery.fn.pluginName)
......
}
})(jQuery);
</code></pre>
<p>10x, BR</p>
| javascript jquery | [3, 5] |
5,001,186 | 5,001,187 | passing value to jquery methode in jquery coundown plugin | <p>I'm using jquery countdown plugin and i've two questions .
i have the following code</p>
<pre><code>$('#countbox').countdown({
layout:'<b>{d<}{dnn}:{d>}'+
'{hnn}: {mnn} : {snn} </b>',
timeSeparator: ':',
onExpiry: sold,
onTick: highlight,
serverSync: serverTime
});
function serverTime(pid... | javascript jquery | [3, 5] |
239,833 | 239,834 | Understanding explicit cast for String producing different results in c# and Java | <p>I wrote a same(..similar?) piece of code for Java 7 and C#(.net 3.5) and got a confusing output. Please help me in understanding this behavior:</p>
<p>Java:</p>
<pre><code>public class strTest {
public static void main(String [] s) {
String s1 = "abc";
String s2 = new String(new char[] {'... | c# java | [0, 1] |
3,522,906 | 3,522,907 | How do you fix the flickering that occurs when you use slideToggle in jQuery? | <p>I have a simple unordered list that I want to show and hide on click using the jQuery slideUp and slideDown effect. Everything seems to work fine, however in IE6 the list will slide up, flicker for a split second, and then disappear.</p>
<p>Does anyone know of a fix for this?</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
3,950,142 | 3,950,143 | error in java This element has no attached source and the Javadoc could not be found in the attached Javadoc | <p>I saw in one of my android project, at the beginning of the file:i have used
import com.sun.media.sound.Toolkit;</p>
<p>When I hover the mouse on the line <strong>"Toolkit toolkit = Toolkit.getDefaultToolkit();"</strong> in my code to get more details on this, it shows "<strong>This element has no attached sour... | java android | [1, 4] |
3,159,660 | 3,159,661 | returning a value to a c# program through python script | <p>I have a C# program which executes a python scrip</p>
<p>How can I retrieve the python returning value in my C# program ?</p>
<p>thanks!</p>
| c# python | [0, 7] |
5,058,565 | 5,058,566 | Repeating code block problem | <p>I have the following code in a jQuery JavaScript document running on a page (<b>THIS IS CURRENT</b>):</p>
<pre><code>$(window).resize(function(){
detectscreen();
});
function windowWidth() {
if(!window.innerWidth) {
// user is being a git, using ie
return document.documentElement.clientWidth;
... | javascript jquery | [3, 5] |
5,649,900 | 5,649,901 | Reconcile Firefox slash handling and key codes | <p>I have a webpage where users should be able to type anywhere and have their input tracked. One problem is that the slash key, "/," in firefox is a shortcut for opening the search. This is undesirable for me. I have not found a way to trap the search functionality <em>and</em> still add the input to my tracking. ... | javascript jquery | [3, 5] |
253,775 | 253,776 | How do I use scrollTop when trying to figure out sidebar position? | <p>I posted this <a href="http://stackoverflow.com/questions/6539926/how-do-i-get-the-sidebar-to-move-up">question</a> yesterday and the answer I go mentioned that I should check if scrollTop is higher than your header height. My question is how do I do this with query. How do I do this when different people have diffe... | javascript jquery | [3, 5] |
5,460,910 | 5,460,911 | jscript 'type' attribute | <p>Im trying to implement the following logic on javascript. </p>
<p>If type is 'bankAccountTypeId' get all fields with the same className as field using $(field.className) then use .each to loop through each result compare field.value with $(this).val() and use alert to show an error message if they are different (br... | javascript jquery | [3, 5] |
3,133,475 | 3,133,476 | read a div from an html file to a javascript var | <p>I want to read the colTwo div from the file members.html (in the same folder) into a variable, then set innerHTML to that variable. The result is 'undefined'. How can I fix this?</p>
<pre><code>var fredpagevar;
$.get("members.html", function(data){
fredpagevar = $(data).find('#colTwo').html();
});
function f... | javascript jquery | [3, 5] |
13,961 | 13,962 | How can it be detected if a page is on background or foreground with jquery/javascript? | <p>The title explains itself. How can I detect if a web page has gone to background?</p>
<p>I'm implementing a chat application and I'll use this information to decide showing new message notifications. I suppose that GMail uses something like that. If the page is on background, it shows desktop notifications (on chro... | javascript jquery | [3, 5] |
1,699,369 | 1,699,370 | jQuery ,each() - return value | <p>I have this code:</p>
<pre><code>i = 60;
i = $(this).find('li a').each(function(i) {
w = $(this).text();
$('#js').text(w);
w = $('#js').width();
if(w > i) {
i = w;
}
... | javascript jquery | [3, 5] |
261,909 | 261,910 | Is there a way to grab the x and y position of an element on a page without it being absolute using jquery? | <p>Is there a way to grab the x and y position of an element if it's not positioned absolute using jquery?</p>
| javascript jquery | [3, 5] |
1,726,938 | 1,726,939 | Stop window.event with Javascript window.confirm? | <p>I am trying to have a confirm box come up when the viewer tries to close the window, that allows the user to stay on the current page (by click Cancel), or continue closing the window (by click OK).</p>
<p>My code is as follows...</p>
<pre><code><script>
function confirm_exit(){
var message ... | javascript jquery | [3, 5] |
3,648,846 | 3,648,847 | Backtracking function inside a function | <p>I am <strong>backtracking</strong> a code to find out what it actually does. I got into the function <code>getResults()</code> but I am unable to understand how would the function <code>success()</code> get triggered here. Please guide me. Thanks in advance.</p>
<pre><code>function getResults(u) {
//alert("Inside g... | javascript jquery | [3, 5] |
2,694,868 | 2,694,869 | data attribute added trough jquery is not being available to select the element | <p>I have the following html code.</p>
<pre><code><ul>
<li data-details="li1">first</li>
<li >second</li>
</ul>
</code></pre>
<p>Notice that for the first element i have add <code>data-details</code> attribute with a value.
For the 2nd <code>li</code> element i'm adding ... | javascript jquery | [3, 5] |
4,384,229 | 4,384,230 | jQueryJavaScript error - missing ; before statement | <p>I was using this statement in my code to cache the jquery selector and this was causing an error in the console. The error was <code>"Missing ; before statement"</code></p>
<pre><code>var $medium-image-holder = $('#image_'+itemID_value);
</code></pre>
<p>where <code>itemID_value</code> is a numeric value. This sta... | javascript jquery | [3, 5] |
3,291,180 | 3,291,181 | How to get the values from Dictionary type SESSION Variable in C# | <p>I am using C#.</p>
<p>I have got below format values in my <strong>SESSION variable ["FROMDATA"]</strong>, I am using <strong>DICTIONARY</strong> to store the FORM Posted Data. Please see the related <a href="http://stackoverflow.com/questions/4723240/how-to-store-all-the-form-posted-data-in-asp-net-dictionary">que... | c# asp.net | [0, 9] |
5,803,654 | 5,803,655 | Is JQuery or Javascript capable for image processing? | <p>My plan is to develop a web based application in the future. I think I can name it "Booth Reservation System" for the Events companies here in our country. One of the main functionality of the system and the most tricky part/difficult part is that the user can upload a "floor plan" (the design of the area were the b... | php jquery | [2, 5] |
299,579 | 299,580 | Get Hard disk serial Number | <p>I want to get hard disk serial number. How I can I do that?
I tried with two code but I am not getting</p>
<pre><code>StringCollection propNames = new StringCollection();
ManagementClass driveClass = new ManagementClass("Win32_DiskDrive");
PropertyDataCollection props = driveClass.Properties;
foreach (PropertyData... | c# asp.net | [0, 9] |
2,780 | 2,781 | Jquery and binding an event to an iframe | <p>**I'm currently using a jquery textselect plugin to fire alerts based on the selection text anywhere on the page
and it works just fine doing something like: </p>
<pre><code>$(document).ready(function() {
$(document).bind('textselect', function(e) {
alert(e.text);
});
});
</code></pre>
<p>I've sin... | javascript jquery | [3, 5] |
3,624,956 | 3,624,957 | can this block of code be written in a shorter way? | <p>I have a block of code, no complicated stuff is going on in it, and it is based on three different numbers ( viewport widths in my case ) :</p>
<pre><code>if(viewport_width > 1224) {
$(".shop-items-navigation").initiate_shop({ containerID: "shop-items-wrapper", perPage: 8 }, function(pages){
current_... | javascript jquery | [3, 5] |
86,259 | 86,260 | displaying php content in JavaScript new window | <p>Here is the code that I have so far: </p>
<pre><code>$output = <<<BLOCK
<html>
<head>
<title>Preview!</title>
<script type="text/javascrit">
var content = $data;
</script>
</head>
&... | php javascript | [2, 3] |
4,053,615 | 4,053,616 | rookie help with NHibernate ASP.NET (C#) | <p>I am trying to get my head around NHibernate, I've run through this tutorial
<a href="http://www.codegod.de/WebAppCodeGod/NHibernate-Tutorial-1---and-ASP-NET-AID25.aspx" rel="nofollow">http://www.codegod.de/WebAppCodeGod/NHibernate-Tutorial-1---and-ASP-NET-AID25.aspx</a></p>
<p>My problem is that I cannot compile m... | c# asp.net | [0, 9] |
6,033,224 | 6,033,225 | How do I get just the visible text with JQuery (or Javascript) | <p>I have website that converts <a href="http://nihongo.j-talk.com/kanji/?demo=1" rel="nofollow">Japanese Kanji into romaji (roman letters)</a>:</p>
<p>and the output shows and hides with CSS what the user needs to see depending on their input criteria. For example:</p>
<p><code><div id="output"><span class=... | javascript jquery | [3, 5] |
2,043,641 | 2,043,642 | why Interface methods will take object as parameter | <p>let me take a interface in Android-
<strong>OnClickListener</strong> and it's method is setonClickListener(), it takes object of
View.OnClickListener or it takes as <code>this</code></p>
<p>why it is taking parameters--that object or <code>this</code> </p>
| java android | [1, 4] |
1,265,371 | 1,265,372 | How can I get hold of the stack propery of an Error object when using JQuery | <p>It appears that IE, Chrome and Firefox all support the .stack property of the error object.</p>
<p>I have a facility in my application to log errors when in production mode, by hooking into the window.onerror property and using it to generate a message that I log to the server. In non production mode however, I wa... | javascript jquery | [3, 5] |
5,657,741 | 5,657,742 | Issue with Popup | <p>I am using a window.open() in a hyperlink to open a popup in my page. I have a folder structure like </p>
<pre><code> parent
Controls
Reports
reportviewer.aspx
Search.aspx
</code></pre>
<p>form search.aspx i need to open reportviewer.aspx in a popup(javascript) .How to achive this ?How to... | c# asp.net | [0, 9] |
815,750 | 815,751 | $(form).submit not working in any IE version | <p>I have a upload file function that triggers a form submit event after the file has been choosed, however the function doesn't seem to trigger that event in any IE version.</p>
<pre><code> var fromPCFunc = function() {
var Iframe = '<iframe id="uploadiframe"></iframe>',
formElement = '<... | javascript jquery | [3, 5] |
613,581 | 613,582 | Writing an image/swf onto page from external script | <p>I am currently messing around with some code for an advertising network, i have the main PHP back end complete but am struggling with the actual serving of the advert/image/swf.</p>
<p>I have tried using document.write, but this seems to get rid of the whole body, which is expected. However, looking at other ad net... | javascript jquery | [3, 5] |
4,971,882 | 4,971,883 | Delete current row in a <table> with jQuery | <p>I have a table that lists a bunch of customers. The last cell is an ajax delete button.</p>
<p>I want the row containing the deleted customer to be deleted through jQuery.</p>
<pre><code><table>
<tr><td>Customer info 1</td><td><a href="javascript:deleteCustomer(1);">Delete</a... | javascript jquery | [3, 5] |
6,030,791 | 6,030,792 | Can you change the height/width of an ASP.NET control from a Javascript function? | <p>What is the best way to change the height and width of an ASP.NET control from a client-side Javascript function?</p>
<p>Thanks,
Jeff</p>
| asp.net javascript | [9, 3] |
2,853,043 | 2,853,044 | Is there any ill effects of referencing the same js file twice? | <p>I've read the reasons why having someone (say Google) do the hosting of jQuery and other js files is a good thing. However, I have a client that has domains like googlecode.com and googleapis.com blocked (a government agency).</p>
<p>I wanted to keep the Google hosted js files, but also have a local copy on my serv... | javascript jquery | [3, 5] |
1,080,016 | 1,080,017 | How to port a J2ME application to Android platform? | <p>I have heard that there are soft wares for converting an existing J2ME app to Android? But I was doing a manual conversion till now. Am I doing a silly job/is it possible to do convert any J2ME application?</p>
| java android | [1, 4] |
5,252,355 | 5,252,356 | How to get continuous mousemove event when using android mobile browser? | <p>using this code:</p>
<pre><code><h2 id="status">
0, 0
</h2>
<script type="text/javascript">
$('html').mousemove(function(e){
$('#status').html(e.pageX +', '+ e.pageY);
});
</script>
</code></pre>
<p>In Windows browser like firefox, It's ok to see the mouse postion when I move ... | javascript jquery android | [3, 5, 4] |
618,635 | 618,636 | Add a calendar event using a webpage button via webview | <p>I want to use a webview to pull up a page and on it is a label of an event and a button that says add to calendar. When pushed it will add the details of the event to the google cal on the android phone. </p>
<p>I am attempting to use content values but with no luck as of yet. This is what I have but I am open for ... | java android | [1, 4] |
149,775 | 149,776 | Error scope between two instance of custom plugin jquery | <p>I tried to made all as possible but I still have my issue. This is the code is avaible on <a href="http://jsfiddle.net/cKhMZ/" rel="nofollow">http://jsfiddle.net/cKhMZ/</a></p>
<p>If you click on second navigation (4, 5, 6) the plugin works, but if you click on first trigger, the scope is missed.</p>
<p>Ave you id... | javascript jquery | [3, 5] |
2,321,127 | 2,321,128 | how to valid only digit in textbox in firefox? | <p>i have problem to valid digit in textbox in IE 9 and firefox 4 & 5,
is any one know ?
i try all previous question's answer but still face problem,
i just want use to enter only digit in textbox,
i am use asp.net too for code language.</p>
| javascript jquery asp.net | [3, 5, 9] |
5,859,154 | 5,859,155 | Editing DOM client side using a Code inspector to Manipulate server side behaviour | <p>I have a form where each field is given certain properties via their class attribute.</p>
<p>i.e. is both a required input, and is expecting its value to be formatted as an email address.</p>
<p>Using Javascript/jQuery, I have iterated through all the inputs in the form, determined each one's associated propertie... | php javascript jquery | [2, 3, 5] |
4,047,622 | 4,047,623 | How can i add new panel at run time in asp.net | <p>I am working on an asp.net web application where I have predefined panel in my project with
CSS. Now i want to create another panel with same design and CSS at run time at multiple times. I have a button control when i will click that button it will add another panel.</p>
<p>Please help me to add another panel with... | c# asp.net | [0, 9] |
4,123,303 | 4,123,304 | Android using intents to control media player? | <p>I want to send a broadcast (or is it an intent?) from my app that will go to the next track of a music player if something is playing, or play/pause, etc. Here is the code that I have so far: </p>
<pre><code> final Intent i = new Intent(Intent.ACTION_MEDIA_BUTTON);
i.putExtra(Intent.EXTRA_KEY_EVENT, KeyEvent... | java android | [1, 4] |
4,428,602 | 4,428,603 | Call Javascript function from gridview RowCommand | <p>Does anyone know how to call Javascript functions from a Gridview RowCommand Event in ASP?</p>
<p>i need to call function to receive rowindex but i didn't know how to call javascript function from rowcommand</p>
<p>Thanks</p>
| javascript asp.net | [3, 9] |
3,913,190 | 3,913,191 | how to display data in binary tree in asp.net | <p>i am working on Multi Level Products.i need to display data in the form of binary tree how to go for it. is there any control to display it or is there any other way </p>
| asp.net javascript | [9, 3] |
4,766,787 | 4,766,788 | Why doesn't this drop-down list do what it should? | <p>I have a drop down list in asp.net using nested for loops in a view, as well as variables I've
passed from a controller. The value that is displayed to the user is supposed to be the name of a stop, and the value is an id of that stop. Both the names and the stop ids are in lists I've passed from the controller to t... | c# javascript asp.net | [0, 3, 9] |
4,364,310 | 4,364,311 | how can i fill the gridview with dataset? | <p>this is my code :</p>
<pre><code> string aaa;
aaa = Request.Params["aaa"];
string strSel;
if (aaa != "" && aaa != null)
{
// Response.Write("<script>alert('" + aaa + "');</script>");
strSel = "Select * from inout where FName like '%" + aaa + "%'";
}
els... | c# asp.net | [0, 9] |
3,974,942 | 3,974,943 | Javascript/jQuery height calculation | <p>Im looking for a way, in javascript, to calculate the size of the browser <code>(px)</code> then calculate the size of a <code><div></code> taking away <code>50px</code> from that full screen size:</p>
<p>E.g.</p>
<pre><code>Browser screen size: 800px (Height)
Existing <div> that is always 50px (Height... | javascript jquery | [3, 5] |
5,471,463 | 5,471,464 | JQuery Ajax Post :500 Internal Server Error | <p>I am trying to perform this AJAX post but for some reason I am getting a server 500 error. </p>
<pre><code> $.ajax({
url: '.../PublicAPI.svc/Register',
type: 'POST',
dataType: 'json',
async: false,
//contentType: 'application/json; charset=utf-8',
data: '{ "ApiKey": "'+$('#ApiKey')... | php jquery | [2, 5] |
2,418,619 | 2,418,620 | jquery add div with class not working | <p>If there is no content within <code>div.deletePhone</code> then you need to specify the height or else it will be <code>0px</code>.</p>
<pre><code>#div1 ul li .deletePhone{
background-image: url(http://localhost/TheEatTel/public/images/close.png);
background-repeat: no-repeat;
height:100px; /*some height value*/
}... | c# android | [0, 4] |
4,701,456 | 4,701,457 | To count number of spaces using jquery? | <p><strong>Question:</strong> I need a solution to find number of empty spaces infront of checkbox inside list tag by using jquery </p>
<pre><code> <li id='list_id'>
&nbsp;&nbsp;<input type="checkbox" name="check">good
</li>
</code></pre>
| javascript jquery | [3, 5] |
1,352,906 | 1,352,907 | Dynamically create key in JavaScript object | <p>I am trying to dynamically create a key in a <code>JavaScript</code> object with a <code>jQuery</code> selector:</p>
<pre><code>{
$("form").children("input[type=hidden]").attr("name"): $("form").children("input[type=hidden]").val()
}
</code></pre>
<p>This is breaking though. Is it possible to dynamically create ... | javascript jquery | [3, 5] |
5,432,984 | 5,432,985 | how to continuous scroll starting mousedown until mouseup? | <p>I see there are some similar questions, but I fail to understand the implementation properly. Hence, I am asking this specific to my scenario.</p>
<p>I have jQuery flot chart on my webpage. There are horizontal and vertical jQuery sliders which I have programmed to move the chart horizontally and vertically. Now, I... | javascript jquery | [3, 5] |
4,790,834 | 4,790,835 | Base64 Encode - Decode Python and ASP.Net? | <p>i m trying encode data on python with "base64.encodestring()" then i send encodedData to my asp.net service and trying decode this data.But this data is invalid.</p>
<p>Python function code () : </p>
<pre><code>randomString=''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(10))
fileNameS... | c# asp.net python | [0, 9, 7] |
4,266,040 | 4,266,041 | How to remove invisible junk characters from a XML file | <p>I want to read some xml files.</p>
<p>when i am opening these files with notepad/wordpad/MS Word or any Browser, it is opening in its original form.But when i tried to execute it with MS DOS, an invisible chacter like "<strong></strong>" is seen.
I think '<strong></strong>' is creating an error.i am finding t... | c# asp.net | [0, 9] |
5,350,343 | 5,350,344 | Selecting a specific children element using jquery? | <p>I want to select specific children elements from the $el.html, there are two types of children elements, one with <code><span>....</span></code>, the other has a span class <code><span class = "special">..</span></code> for example:</p>
<pre><code>var orig = $(".example").html()
,$el = $... | javascript jquery | [3, 5] |
601,371 | 601,372 | calling a javascript function within markup created by javascript using Jquery | <p>I have form fields which are displayed using Jquery on click of a button.</p>
<pre><code>[select dropdown: conOperator] [textfield: conValue ] [select dropdown: conValuedd]
</code></pre>
<p>conValuedd is hidden by default.</p>
<p>I'm trying to figure out a way so that when I select either Apple or Banana in th... | javascript jquery | [3, 5] |
1,569,361 | 1,569,362 | can jquery $.getJSON's JSON data be assignable to other variable? | <p>I'm using jQuery $.getJSON(..) to get some json.</p>
<p>The passed value shows me <strong>"undefined"</strong>.</p>
<p>Is there a way to do that?</p>
<pre><code>getTopMenuJson : function(currentPage) {
if(currentPage == null) currentPage = 1;
var retJSON;
$.getJSON(
requestURLs.topMenuJs... | javascript jquery | [3, 5] |
3,111,525 | 3,111,526 | Delay a ready function() in javascript or jquery | <pre><code>//this code animates the divs to the left after every 5 secs
$(document).ready(function() {
var refreshId = setInterval(function() {
$('.box').each(function() {
if ($(this).offset().left < 0) {
$(this).css("left", "150%");
} else if ($(this).offset().le... | javascript jquery | [3, 5] |
249,952 | 249,953 | return or send variable to onchange event | <p>I am trying to achieve the same functionality of a function from two separate events. So the function I created is:</p>
<pre><code>function adding_stuff() {
var names = [];
var dates = [];
for(var i = 0; i < this.files.length; i++) {
//adding stuff to names and dates
}
$(".primary .pa... | javascript jquery | [3, 5] |
2,989,049 | 2,989,050 | How to append the output of a servlet using JQuery | <p>I am currently making a website. Basically when the user scrolls to the bottom of the screen I am going to download another 10 posts (I'm making a little social network). To do this I have downloaded JQuery. The following JavaScript is ran when the user scrolls to the bottom of the page:</p>
<pre><code>page++;
var ... | java javascript jquery | [1, 3, 5] |
2,567,085 | 2,567,086 | Which iphone/android development tools support background notification? | <p>I am trying to choose an iphone/android tool which supports background notifications. Which ones support this?</p>
<p>At the moment I am considering Corona, Appcelerator, and PhoneGap.</p>
| iphone android | [8, 4] |
2,642,979 | 2,642,980 | c# Regex.Matches html input like php preg_match_all | <p>html source</p>
<pre><code><form>
<input type="text" name="a" value="a1fa4" type="hidden"/>
<input type="text" name="b" value="b1fa9" type="hidden"/>
<input type="text" name="c" value="c1fd2" type="hidden"/>
<input type="text" name="d" value="d1fx1" type="hidden"/>
</form>
</code... | c# php | [0, 2] |
4,852,314 | 4,852,315 | Android - how to make Array<String> into a string for recognizer results | <p>I need the results from recognizer to be a string.. when i use this code i get eclipse error 'cannot convert Array as string.. </p>
<pre><code>code: final ArrayList<String> results2 = data.getStringArrayListExtra (RecognizerIntent.EXTRA_RESULTS);
</code></pre>
<p>also tried, with no luck:</p>
<pre><code>... | java android | [1, 4] |
1,402,873 | 1,402,874 | Simple File Download Counter with ASP.NET? | <p>How can O make a simple file download counter with ASP.NET in C# ? For example when a user clicked and download file i wanna update it with +1 and save it's filename to DB. when user onmouse over link i wanna shows a tooltip with File Downloaded Times.But If user Cancel downloading status it wont update it .</p>
| c# asp.net | [0, 9] |
3,653,935 | 3,653,936 | Dynamically load jquery | <p>I'm working in a really twisted environment in which I cannot handle this problem through the view logic of the MVC framework I'm using (Cakephp). It could happen because I have to load this piece of code inside a page which already has a jQuery script loaded in. </p>
<p>If I simply load jQuery in my piece of code,... | javascript jquery | [3, 5] |
2,815,624 | 2,815,625 | Design tool for ASP.Net Pages | <p>I am looking for some tool so that I can design my web pages(layout, color etc...). Does anything exist like that? (Other than Visual Studio, Dreamweaver...)
(I dont want to write css for now)</p>
| c# asp.net | [0, 9] |
4,839,745 | 4,839,746 | An unwanted object in the last cell of an array | <p>I'm using the following code on a parsed XML array: </p>
<pre><code>$(this).find("cp_group").each(function() {
$("select#comp_1").append('<optgroup label="' + $(this).attr('label') + '"><option>' + $(this).find("cmp").map(function() {
return $(this).text();
}).get().join("</option>... | javascript jquery | [3, 5] |
1,600,862 | 1,600,863 | Buildling an array of vaules from page elements in JQuery/Javascript | <p>I have a set of text boxes in which the user inputs an email address into each one. I want to loop around these and build an array of them. How do I do it?</p>
<pre><code>var emailAddresses = new Array();
$(".email_address").each(
function() {
//add this $(this).val() emailAddresses ... | javascript jquery | [3, 5] |
342,063 | 342,064 | Check if an input folder exists or not in PHP or JavaScript | <p>I have a form which takes a couple of text field inputs and then a folder path.
Now before I submit the form I want to make sure that whatever the folder path the user specified is correct, if not print an error message.</p>
<p>Is there a way I can validate this in the same page before I submit the form?</p>
<p>I... | php javascript | [2, 3] |
3,855,101 | 3,855,102 | Copy text to other input field onblur | <p>I'm using jQuery to copy the value of one input field to another on blur. Here's my code:</p>
<pre><code>$( "input[id$=token-input-search_field]" ).blur( function() {
$(this).val() = $('input[id$=search_field]').val;
});
</code></pre>
<p>But it doesn't seem to work. What am I doing wrong?</p>
| javascript jquery | [3, 5] |
400,018 | 400,019 | jQuery - global variable | <p>I am trying to use variable in different function, I want to set <em>global</em> variable. Is there way how to do it?</p>
<p>I want something like this:</p>
<pre><code>$('.bar1').animate({'height':'10' + "%"},1500, function() {
var bar1_height = $(".bar1").height() * 0.5;
});
</code></pre>
<p>and then use... | javascript jquery | [3, 5] |
5,865,408 | 5,865,409 | How to call javascript function from code behind? | <p>I want to execute javascript function from code behind page.</p>
<p>I have two way that first that I can call javascript of html page in my code behind.</p>
<p>second is that i can write javascript function in to my code behind.</p>
<p>but i am not which one is better and how can i do this.</p>
<p>Please tell me... | asp.net javascript | [9, 3] |
1,568,352 | 1,568,353 | Php - Limit number of entries in database a specific type of field | <p>I'm using php. I have a form which contains 2 questions with 2 radio buttons. I limited the number of entries in my database for each radio button. So, for example the option 1 will became unvailable if the number of entries in database is = limit number I defined. When the user open the form it will appear like thi... | php javascript jquery | [2, 3, 5] |
2,324,017 | 2,324,018 | parsererror in ajax jquery calling a webservice | <p>I have written a webservice like below:</p>
<pre><code>[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json, XmlSerializeString = false, UseHttpGet = true)]
public string GetNews(int tes)
{
return tes.ToString();
}
</code></pre>
<p>and I want to use this function in client so I wrote this lines:</p>
... | jquery asp.net | [5, 9] |
4,036,922 | 4,036,923 | A way to catch up to modern programming techniques | <p>I have been programming, non professionally for about 23 years and find I am a little stuck in my ways. I find a tool I like, and it stays that way for year after year. Unfortunately this means that I am behind the times in my programming.</p>
<p>I am not directly planning on programming professionally per se, howe... | c# java | [0, 1] |
1,913,520 | 1,913,521 | Passing a parameter in jQuery | <p>I am working with speedometer jquery. I want to change the backgroundImage property in thisCss.</p>
<p><a href="http://jsfiddle.net/8DJzW/2/" rel="nofollow">http://jsfiddle.net/8DJzW/2/</a></p>
| javascript jquery | [3, 5] |
2,971,209 | 2,971,210 | fading a paragraph in word by word using jquery? | <pre><code> <p class="example">i want to split this paragraph into
words and fade them in one by one</p>
</code></pre>
<p>the jquery/js:</p>
<pre><code>$(document).ready(function() {
var $txt = $(".example")
,$words = $txt.text()
,$splitWords = $words.split(" ");
$txt.hide();
... | javascript jquery | [3, 5] |
5,146,586 | 5,146,587 | How to connect draggable divs | <p>I have some divs that I clone and can drag and drop in a area, now, I want to connect by lines the divs and if I move the divs, this lines must move too. Something like a flow diagram, I clone the divs using drag and drop, but still don't know how to do this lines.</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
5,772,195 | 5,772,196 | Trying to read UI to persist activity data | <p>Since my app doesn't have any data not represented by the UI, I have tried to read the UI widgets in order to restore the state of the underlying 'model' object when an event such as a screen rotate happens. It doesn't seem to work for EditText but does for Spinners which seems odd. Here are some code fragments:</p>... | java android | [1, 4] |
5,158,261 | 5,158,262 | Is memory encrypted? | <p>I want to store some data in a variable (and I know variables are stored in memory). Does that data in memory get encrypted? Also, is it possible for software to be able to read the variable names stored in memory and be able to actually extract the data from it?</p>
| php c++ | [2, 6] |
2,632,716 | 2,632,717 | replace spaces with commas with javascript | <p>I have a string with keywords and I need to check if this string contains spaces and if yes replace them with commas.<br>
the string can be something like "keyword1 keyword2 ,keyword3 keyword4,keyword5"<br>
or any other combination of spaces and commas.
the final result should be a string of keywords separated by... | javascript jquery | [3, 5] |
5,388,486 | 5,388,487 | Javascript/JQuery bouncing text off left and right sides of a div | <p>I want text to bounce of the left and right sides of a div tag (<code>#header</code>). It works fine when it bounces of the right, then goes back and hits the left. The problem is that after it hits the left and starts to go right again it never hits the right side. It just keeps going and the window scrollbar appea... | javascript jquery | [3, 5] |
387,730 | 387,731 | How to blank the hidden field value from Jquery | <p>Assume that a hidden field </p>
<pre><code><input type="hidden" id="hdn" name="hdn" value="100" />
</code></pre>
<p>So i want to blank the value of hidden field using Jquery.
In javascript we can blank using this syntax</p>
<pre><code>document.getElementById("hdn").value = '';
</code></pre>
<p>but i want ... | javascript jquery | [3, 5] |
2,787,283 | 2,787,284 | jQuery onExists? | <p>Does something like this already exist in jQuery?</p>
<pre><code>function onExists(o, f) {
if (o.length) {
f(o);
}
}
onExists($(":button"), function(o) { o.button(); });
</code></pre>
| javascript jquery | [3, 5] |
731,885 | 731,886 | Dynamically bind controls to the grid view in asp.NET | <p>I just want to bind controls to the grid view but i want to do it dynamically.As an example i just want to enter students marks to text box to adjacent subjects??</p>
<p>thinks students are in row's and subjects are in columns and it similar to matrix in mathematics . but some times no of students and no of subjec... | c# asp.net | [0, 9] |
2,510,858 | 2,510,859 | jQuery delay in firing function | <p>I have the following script in my page that's part of the "DynamicPage" script, and I've added a part to call a function to make my image slider script run. It's in here to resolve a problem I had before. It works, except for a delay of a split second once the page loads. The images below give you an idea of what I ... | javascript jquery | [3, 5] |
5,006,313 | 5,006,314 | Can someone tell me what the problem is with my class header? | <pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
</code></pre>
<p>But I am getting this error... tried making them match and everything, what is it suppose to be?</p>
<pre><code>Server Error in '/' Application.
Compilation Error
Description: An ... | c# asp.net | [0, 9] |
2,938,761 | 2,938,762 | adding php to javascript | <p>How can I add php variable to javascript e.g:</p>
<pre><code>onClick="javascript:alert('echo $name;')Click Me</a>***
</code></pre>
<p>but it is not working</p>
<p>i have not includey original becuse it is not showing original …!!</p>
| php javascript | [2, 3] |
1,679,442 | 1,679,443 | Can jquery animate the css background property? | <p>I know that you can <code>.animate() background-image</code> with jQuery. But can you <code>.animate()</code> <code>background: url(myImageURL) top center repeat-y</code> ?</p>
<p>EDIT </p>
<p>The purpose of the function is to animate from <code>background: undeclared</code> to <code>background: url(images/red_cu... | javascript jquery | [3, 5] |
4,844,161 | 4,844,162 | func_get_args for javascript | <p>How can I get all the function arguments in javascript inside an array?</p>
<pre><code>function(a, b, c){
// here how can I get an array of all the arguments passed to this function
// like [value of a, value of b, value of c]
}
</code></pre>
| javascript jquery | [3, 5] |
4,628,105 | 4,628,106 | Calling dynamic jQuery plugin with dynamic parameters in Javascript | <p>Suppose we need to dynamically construct plugin calls such as </p>
<pre><code>$('#myDiv').myPlugin({a:'a',b:'b'});
</code></pre>
<p>will be something like:</p>
<pre><code>function funcCallBuilder(selector, func, opts){
//dynamically construct plugin call here
}
</code></pre>
<p>using:</p>
<pre><code>funcCallB... | javascript jquery | [3, 5] |
5,776,457 | 5,776,458 | How to set the control value in another open aspx page | <p>My problem is simple, but I cannot find a way to solve it :( <br>
When the user clicks a specific button, I need to open a new aspx page (in a new window) so that he is able to select something that needs to be returned to the original page.
I was able to open the new page with window.open, however, I'm not able to ... | asp.net javascript | [9, 3] |
3,276,799 | 3,276,800 | dismiss or close a div permanently | <pre><code><a href="<?php echo base_url(); ?>"><div class="warningBox">Is this your first time here? Remmeber to change your password!</div></a>
</code></pre>
<p>I currently have a simple css div that displays a message to all my new users. I want to offer them the option to <strong>perma... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.