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 |
|---|---|---|---|---|---|
3,724,083 | 3,724,084 | appointment scheduling with jquery | <p>I'm going to create a simple appointment scheduling to set appointment for doctor,some thing like this : <a href="http://arshaw.com/fullcalendar/" rel="nofollow">http://arshaw.com/fullcalendar/</a></p>
<p>I almost know anything about jquery and javascript but I hope this be a commence to learn more and of course my... | javascript jquery | [3, 5] |
3,014,956 | 3,014,957 | French characters to html entities | <p>I am passing some French characters in an ajax call to our database. They are expecting É to be passed as <code>%26Eacute%3B</code>, é to be passed as <code>%26eacute%3B</code>, etc. How can I do this in javascript?</p>
<p>Thanks.</p>
| javascript jquery | [3, 5] |
193,573 | 193,574 | jQuery/Javascript - Remove All target="_blank" | <p>I'm messing around with jQuery and ran in to a problem I can't seem to solve. I know it's possible with jQuery, but can't find a proper example to work off of. I have a page with a couple regular links with the value <strong>target="_blank"</strong> added to it. What's the best approach with jQuery/Javascript to rem... | javascript jquery | [3, 5] |
641,690 | 641,691 | Javascript alert test not working | <p>I should be sleeping but this is really bugging me. I can't get a simple javascript alert box to display in my asp.net project. Hopefully someone can see what I'm doing wrong. My test page is this:</p>
<pre><code><%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="J... | asp.net javascript jquery | [9, 3, 5] |
1,592,083 | 1,592,084 | Create element using JavaScript and jquery | <p>Suggest a better way to do the following in jquery . also give me the native js code to do it</p>
<pre><code>$('<div id="dialog-confirm" title="'+confirmbox.title+'"><p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>'+confirmbox.message+'</p></di... | javascript jquery | [3, 5] |
4,573,022 | 4,573,023 | ASP.NET Usercontrol client side name not resetting after being renamed | <p>I have a usercontrol in an ASP.net website which client side id was "contact_us" with the ct00 etc, but I have renamed the usercontrol to "feedback", cleaned, rebuilt, published and recycled the app pool and still the name "contact_us".</p>
<p>Does anyone have any idea why the client side name is not reflecting its... | c# asp.net | [0, 9] |
2,922,580 | 2,922,581 | injecting today's date in javascript | <p>When the page loads, I want a variable inside my JavaScript to hold today's date. So far I have this:</p>
<pre><code><script type="text/javascript">
var TodayDate = <%Eval('System.DateTime.Now') %>;
</script>
</code></pre>
<p>It massively bugs. Any suggestions?</p>
| javascript asp.net | [3, 9] |
3,859,091 | 3,859,092 | jQuery: Onclick, open a new div with ID | <p>I'm creating a footer chat bar from this tutorial here: <a href="http://www.sohtanaka.com/web-design/facebook-style-footer-admin-panel-part-1/" rel="nofollow">chat bar tutorial</a></p>
<p>I'm trying to make it so when I click a username in the buddylist, it opens up a new chat box div in the chat bar itself. And, w... | php jquery | [2, 5] |
2,206,633 | 2,206,634 | jQuery rich text editor with word counter | <p>I need a rich text editor like this one used on this site, with a word counter on it, i will love to restrict the total work count like on twitter, preferrably written with jQuery, please any tip, i will greatly appreciate it.</p>
| javascript jquery | [3, 5] |
4,957,370 | 4,957,371 | Setting a delay whilst in a for loop Jquery/Javascript | <p>Getting a little confused here, not sure if its the monday morning blues! Its just not working :(</p>
<p>What I am trying to achive is:</p>
<p>Fade in each element with the interval set as the rel.</p>
<p>My code for the HTML is (these are all hidden with CSS)</p>
<pre><code> <div id="rpStage">
... | javascript jquery | [3, 5] |
6,033,856 | 6,033,857 | http module: Request is not available | <p>I'm creating an http module where I want to check if a request is coming from an authenticated user and redirect to the login page if it's not.</p>
<p>I registered the module in the web.config file and I have the following code that's throwing an exception: </p>
<pre><code>public class IsAuthModule : IHttpModule
... | c# asp.net | [0, 9] |
3,439,869 | 3,439,870 | Trigger window.print() two or more times | <p>I have a page which contains, let's say 3 divs which I want to print seperatly - and I can do that manually. However, the webapp is running Chrome with silent printing and I need to print these 3 divs, in 3 seperate print jobs. A print stylesheet is not what I need - 3 SEPERATE PRINT JOBS IS NEEDED...</p>
<p>So I n... | javascript jquery | [3, 5] |
2,278,386 | 2,278,387 | delay images for display purposes not efficiency using javascript? | <p>I have run into numerous sites that use a delay in loading images one after the other and am wondering how to do the same.</p>
<p>So i have a portfolio page with a number of images 3 rows of 4, what i want to happen is for the page to load,except for the images in img tags. Once the page has loaded i want images 1... | javascript jquery | [3, 5] |
2,121,159 | 2,121,160 | Math.pow JS vs. PHP | <p>I need help to "translate" this snippet to PHP from JS.</p>
<p>The original JS code is this:</p>
<pre><code>result = A * ( B / 1200 ) /
( 1 - 1 / Math.pow( 1 + ( B / 1200 ), C * 12 ) ) * D;
</code></pre>
<p>I need this code in PHP. I try with this, but it gives me a different result:</p>
<pre><code... | php javascript | [2, 3] |
2,067,573 | 2,067,574 | Sound error is played when $(document).keydown is called using ALT + Some Key. [?] | <pre><code>$(document).keydown(function(e){
if(e.altKey && e.keyCode == 77){
document.title = 'Something';
return false;
}
});
</code></pre>
<p>The function is pretty simple, it's an event listener to get when the User press ALT M, then do something.
But this code is playing a sound error... | javascript jquery | [3, 5] |
4,073,821 | 4,073,822 | Leading space is not getting retained in IE | <p>I am working on one application, i am facing one problem on Internet Explorer while retrieving inner HTML of div.</p>
<p>I have below input for retrieving :</p>
<pre><code><div> This is first segment</div>
</code></pre>
<p>I have used jquery script to extract content.
i.e.</p>
<pre><code>$('div').htm... | javascript jquery | [3, 5] |
364,056 | 364,057 | fadeOut a prepend div | <p>I've prepended a div like </p>
<pre><code><div id="p">
lol
</div>
</code></pre>
<p>with <code>$("#stream").prepend("<div id="p">lol</div>");</code> and then, when i click on a button, i wanna fadeOut it. <code>$("#p").fadeOut();</code> doesn't work, how to fix it?!</p>
<p>The prepend it's... | javascript jquery | [3, 5] |
3,606,900 | 3,606,901 | >Javascript Comparing 2 dates | <p>I have this code in comparing dates</p>
<pre><code>var startDate = jQuery("#startDate_field_id").val();
var endDate = jQuery("#endDate_field_id").val();
var startDateSplit = startDate.split("-");
var endDateSplit = endDate.split("-");
var start = new Date();
var end = new Date();
start.setFullYear( startDateSplit[0... | php javascript jquery | [2, 3, 5] |
5,333,510 | 5,333,511 | how can I access my public method from aspx code behind to a public class? | <p>I have a public method in my aspx code behind called PhotoDatabinding, what it does is to bind the database to List view control.</p>
<pre><code>public void PhotoDatabinding()
{
lnqPhotoDataContext dbCon = new lnqPhotoDataContext();
var res = from p in dbCon.Photos orderby p.PhotoID descending select new { ... | c# asp.net | [0, 9] |
5,756,207 | 5,756,208 | use jQuery to expand/collapse text | <p>I want to cut off text based on a fixed height.When the text is cut off, a "more" link is used to expand to text. When the text is expanded, a "less" link is used to collapse the text. I wrote the js as this:</p>
<pre><code>$(document).ready(function () {
// line height in 'px'
var maxheight=218;
... | javascript jquery | [3, 5] |
1,923,032 | 1,923,033 | Android drawBitmap draws a kind of checkerboard pattern | <p>Okay maybe I'm missing something here but when I do </p>
<pre><code> canvas.drawRGB(0x80, 0x80, 0x80);
</code></pre>
<p>I get a clean and expected grey screen:
<img src="http://i.stack.imgur.com/BIqrD.png" alt=""></p>
<p>But when I use this code</p>
<pre><code>pixels = new int[800*480];
...
for(int x = 0; x &... | java android | [1, 4] |
3,236,642 | 3,236,643 | Filter strings with jQuery/Javascript | <p>Im trying to use $.get to load pages without reloading the page. </p>
<pre><code><script>
$('#top_links a').click(function (e) {
e.preventDefault();
var link = $(this).attr('href');
$('#content').empty();
$.get(link, { },
function(data) {
$('#content').empty().append(dat... | javascript jquery | [3, 5] |
3,384,367 | 3,384,368 | How to trigger a class-targeted method AFTER the class has been added to an element? | <p>In the below markup, the <code>#enable</code> button will add a class to the <code>#show</code> div. This class has a method attached to it that fades in/out the <code>#hidden</code> span.</p>
<p>However, even though the class is added to the <code>#show</code> div, the method attached to the class isn't triggered.... | javascript jquery | [3, 5] |
5,632,229 | 5,632,230 | Grab code behind property in Javascript? | <p>I would like to burn in a c# code behind property into the javascript alert(<%= someProperty%>); . For some reason it is not working. Is there a way you can burn the codebehind property into the javascript? thanks</p>
| c# asp.net javascript | [0, 9, 3] |
4,368,367 | 4,368,368 | ASP.NET - Passing a C# variable to HTML | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1531586/why-works-in-one-situation-but-not-in-another">Why <%= %> works in one situation but not in another</a> </p>
</blockquote>
<p>I am trying to pass variables declared in C# to html. The variables ha... | c# asp.net | [0, 9] |
1,939,921 | 1,939,922 | Android SharedPreferences NullPointerException on getSharedPreferences | <p>I'm trying to create a single class which will deal with storing and retrieving two user settings 'radius' and 'cluster'.</p>
<p>Upon loading the 'Settings' activity I get a null pointer exception.</p>
<p><strong>Snippet from the user settings:</strong></p>
<pre><code> storage = new Persistence();
radius =... | java android | [1, 4] |
5,141,669 | 5,141,670 | Applying Jquery Accordion on a class | <p>How to apply jquery accordion function to a div with a particular class... i.e. div id='abc'we use $("#abc").accordion(); but how to accomplish if we have div class='abc'??</p>
| javascript jquery | [3, 5] |
4,088,281 | 4,088,282 | How can I get elements I add with jQuery to follow the actions I've applied to a class? | <p>I've found out that when I use jQuery to add something to a page (via <code>.append</code> ) then the class actions I've set don't seem to apply to the new elements. <br />For example in my <code>$(document).ready</code> function I'll add a <code>$(".clickable").click(doSomething)</code> it works for anything that's... | javascript jquery | [3, 5] |
1,328,643 | 1,328,644 | jQuery Sliding a div | <p>I want to slide a div up, and after it has slided up completely, I want to slide the other <code><div></code> down (which is by default hidden).</p>
<p>I am trying following code, it does what I want, but I only don't get the effect that the div slides down after the first has slided up completely, it looks l... | javascript jquery | [3, 5] |
3,281,691 | 3,281,692 | Display alert when the user enters text in input area | <p>I am trying to display an alert when the user enters text into the search box but it does not work. Please guide. </p>
<p><a href="http://jsfiddle.net/zcH54/" rel="nofollow">http://jsfiddle.net/zcH54/</a></p>
<pre><code><div id="form" style="float:right;" >
<form method="get" >
<input type="... | javascript jquery | [3, 5] |
649,427 | 649,428 | How to get a value of element that was added with ajax in a "live" event? | <p>Here's the thing -
a click event adds a bunch of elements on the page, and they all have the same id (is there something wrong here?).</p>
<p>I use a live function to assign click event to all of these elements:</p>
<p><code> $("#tag").live('click', function() {
console.log($("#tag").html());
});</cod... | javascript jquery | [3, 5] |
5,656,635 | 5,656,636 | Loading all of a users songs into a tableview and playing the song when they tap | <p><img src="http://i.stack.imgur.com/bUcWK.png" alt="TableView with music loaded"></p>
<p>After this point I do not know how to let the user tap on a cell and play the song they tap on. Any help would be great. I am a little stumped </p>
| c++ iphone | [6, 8] |
4,720,616 | 4,720,617 | Converting Python code to PHP | <p>What is the following Python code in PHP?</p>
<pre><code>import sys
li = range(1,777);
def countFigure(li, n):
m = str(n);
return str(li).count(m);
# counting figures
for substr in range(1,10):
print substr, " ", countFigure(li, substr);
</code></pre>
<p>Wanted output for 777</p>
<pre><... | php python | [2, 7] |
5,569,778 | 5,569,779 | jquery menu hanging (not working properly) | <p>my dropdown menu is given below , which is dynamically created at server side,,,
but it <strong>becomes hanged</strong> sometimes automatically (not working)......
can anyone help me about this..........plz see it--></p>
<pre><code> if (Request.QueryString["cate_id"] != null)
{
string cate_id... | javascript jquery | [3, 5] |
4,842,637 | 4,842,638 | Can i consolidate function calls in JQuery? | <p>I have following and would like to be able to use one function only preferably...</p>
<pre><code>$(document).ready(function(){
$("#home_p1").editInPlace({
url: './include_eip_77994477/eip.php',
});
$("#home_p2").editInPlace({
url: './include_eip_77994477/eip.php',
});
$("#home_p3").editIn... | javascript jquery | [3, 5] |
3,591,614 | 3,591,615 | Javascript ConfirmBox not showing when called in Update Panel | <p>I'm trying to show a javascript confirm box whenever a link button in my repeater is clicked and has passed some condition.</p>
<p>My Repeater is inside an Update Panel that is inside an Ajax Accordion Content Template.</p>
<pre><code><Accordion><UpdatePanel><Repeater>this is where the link butto... | c# javascript asp.net | [0, 3, 9] |
4,266,939 | 4,266,940 | Explanation on how this code using web namespace | <pre><code>HttpContext context = ((HttpApplication)sender).Context;
</code></pre>
<p>In the above example, why do we cast sender to a HTTPApplication and not HTTPContext? </p>
<p>Also, what is the purpose of the brackets? I know they are for casting, but if you get rid of HTTPApplication and the surrounding brackets,... | c# asp.net | [0, 9] |
1,020,240 | 1,020,241 | android getInputType in JAVA code | <p>I defined a EditText in XML with attribute <strong>android:inputType="numberSigned"</strong>, so, when I try to get it in Java Code like: <p></p>
<blockquote>
<p><code>int type = mEditText.getInputType();</code><br>
<code>switch(type){</code><br>
<code>case InputType.TYPE_NUMBER_FLAG_SIGNED:</code><br>
<cod... | java android | [1, 4] |
4,776,317 | 4,776,318 | How to provide elements/tags dynamically inside the find() in jquery | <p>I have created several div with id's such as window1, window2 and so on. Now all I want to is find the <p> tag from these above created divs. I am doing this inside the for loop but it is not working for me. Here is what I am doing</p>
<pre><code> for(connectWindow=1;connectWindow<=xmlLength;connectWindow... | javascript jquery | [3, 5] |
3,369,139 | 3,369,140 | How to alter and animate a div the right way? | <p>i have a div like this:</p>
<pre><code><div class="class1">
<div class="class2"></div>
<div class="class3"></div>
<div class="class4">
<div class="class5"></div>
</div>
</div>
</code></pre>
<p>This div exists several times on the ... | javascript jquery | [3, 5] |
4,635,383 | 4,635,384 | jQuery seems to have an enable function, but not a disable function. Why? | <p>Until now I was using the following to disable/enable form fields -</p>
<pre><code>$('#fieldid').attr('disable','disable');
$('#fieldid').removeAttr('disable');
</code></pre>
<p>And that got the job done. But yesterday, I absent-mindedly typed the following to enable the field -</p>
<pre><code>$('#fieldid').enabl... | javascript jquery | [3, 5] |
4,066,971 | 4,066,972 | how to check if a control of a certain type? | <p>When I use th below code, it works. All the controls are hidden.</p>
<pre><code>foreach (Control ctr in eItem.Controls)
{
ctr.visible = false;
}
</code></pre>
<p>However, I want to hide only labels and dropdownlists. That why I'm trying to use the below code without success</p>
<pre><code>fo... | c# asp.net | [0, 9] |
3,097,990 | 3,097,991 | val() returns Placeholder value instead of the actual value in IE8,9 when the field is empty | <p>Placeholder attribute shown below works fine in firefox but if val() is called when the field is <strong>empty</strong> it returns the placeholder value instead of the actual value in the text.</p>
<p>JSFiddle - <a href="http://jsfiddle.net/Jrfwr/2/" rel="nofollow">http://jsfiddle.net/Jrfwr/2/</a></p>
<pre><code>&... | javascript jquery | [3, 5] |
4,868,919 | 4,868,920 | Treeview asp.net | <p>I have a treeview control on an asp.net page. Everytime I select a node in the tree, a duplicate copy of the tree is displayed under it. I am unable to understand. I have not written any code so far. I'm probably missing out on some property that I should have set. No matter which node I click on another tree is dis... | c# asp.net | [0, 9] |
5,023,303 | 5,023,304 | SetInterval says function does not exist | <p>I don't know what I am missing here. When the setInterval starts to run it says the function does not exist. I know it is there ( I did not include the variables...as that is not the issue). Any idea on why I am getting an error saying the functions don't exist?</p>
<pre><code>function midgroundFunc() {
$('#mid... | javascript jquery | [3, 5] |
1,063,365 | 1,063,366 | How to Loop Through a JavaScript Object | <p>I used </p>
<blockquote>
<p>console.log(response);</p>
</blockquote>
<p>and got the following in console (in Firebug). How do I loop through to check if "LMNOPQ" exists?</p>
<pre><code>data [Object { name="Excel in ABCD", category="Book", id="327361517327399", more...}, Object { name="LMNOPQ", category="... | javascript jquery | [3, 5] |
2,194,234 | 2,194,235 | Use C# to write ASP code on a page | <p>I have ASP code like this:</p>
<pre><code><ext:Panel ID="pnlHelp" CtCls="help-panel" AnimCollapse="true"">
<Content>
<h1>some text</h1>
<p>
More text[...]
... | c# asp.net | [0, 9] |
2,524,526 | 2,524,527 | HTMLDocument getElementById for a custom control returns null, why, and is there a different way to access it? | <p>I have the following in an aspx page inside a body tag:</p>
<pre><code><form id="Form1" method="post" runat="server">
<customControl:menu id="Menu1" runat="server">
</customControl:menu>
</form>
</code></pre>
<p>And from a different aspx page I have this javascript function:</p>
<pre><co... | javascript asp.net | [3, 9] |
5,370,154 | 5,370,155 | Looping and pausing after loading ajax content in Javascript JQuery | <p>I have what I though was a simple problem to solve (never is!) I'm trying to loop through a list of URL's in a javascript array I have made, load the first one, wait X seconds, then load the second, and continue until I start again.
I got the array and looping working, trouble is, however I try and implement a "wait... | javascript jquery | [3, 5] |
4,062,569 | 4,062,570 | How to get CPU utilization using Javascript or Java | <p>How can I get the CPU utilization of client's machine.</p>
<p>I have created a Java web application and where I need to get the CPU utilization of client's machine.</p>
<p>Can it be done using either Javascript or Java?</p>
| java javascript | [1, 3] |
3,114,906 | 3,114,907 | Append option values to a hidden field? | <p>With the push of a button, I'm iterating through a list of options in a select. I wish to append all of these option (values of the options) to a hidden fields, separated by a pipe <code>|</code>. So far I've come up with this, however, It just puts the last value of the option in the select in the hidden field?</p>... | javascript jquery | [3, 5] |
1,284,174 | 1,284,175 | authorization via url checking | <p>i have a table <strong>USERS</strong> with 3 columns:
<strong>userid,username,password</strong>.</p>
<p>Then table <strong>Menu</strong> with columns: <strong>id,url,canview</strong></p>
<p>How do i check a url on page load to verify if a user is allowed to view that url in asp.net & C#?
i.e if canview = yes ... | c# asp.net | [0, 9] |
1,308,596 | 1,308,597 | populate document using javascript pattern | <pre><code><table id="session">
<thead>
<tr>
<div class="borderContainer">
<div></div>
</div>
<script type="template" id="thead">
<div class="borderContainer">
<div></div>
... | javascript jquery | [3, 5] |
2,796,643 | 2,796,644 | How can I access a multidimentional php array in javascript? | <p>The code is like this:</p>
<pre><code><SCRIPT LANGUAGE="JavaScript">
function showReview(){
//javascript stuff
<?php
$http="obj.href ='http://localhost/PROJECT1/thispage.php'";
if (array_key_exists(0, $arr)){
$http .= "+'&PQID={$arr[0]['ID']}'... | php javascript | [2, 3] |
3,451,099 | 3,451,100 | How Do I Find the Index of An Element Within an Array | <p>Say I have html similar to the following</p>
<pre><code><ul>
<li> hi </li>
<li> hoi </li>
<li> privyet </li>
<li class="selected"> bonjour </li>
<li> hallo </li>
</ul>
</code></pre>
<p>and I use jQuery to get all the <code>li</code> ... | javascript jquery | [3, 5] |
1,301,585 | 1,301,586 | How to catch exception occured in DAL of ObjectDataSource object? | <p>I have ObjectDataSource and GridView on one of the pages of my asp.net web project.</p>
<p>To initialize ObjectDataSource i use Init event:</p>
<pre><code> protected void ObjectDataSource1_Init(object sender, EventArgs e)
{
ObjectDataSource1.EnablePaging = true;
ObjectDataSource1.Type... | c# asp.net | [0, 9] |
4,437,445 | 4,437,446 | nodeName for selected text in Javascript | <p>I am making a HTML text editor.
For this,i have a div with contenteditable set to true.
For making a selected text "bold",i am trying to find node of the selected text.
How should i do this or is there is any other way to implement this(particular in ie).</p>
| javascript jquery | [3, 5] |
2,183,448 | 2,183,449 | Convert .NET UTC Time in JavaScript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/206384/how-to-format-a-json-date">How to format a JSON date?</a> </p>
</blockquote>
<p>I have an HTML page that uses JQuery. My JQuery hits a .NET Web Service that does the following:</p>
<pre><code>return Date... | c# javascript | [0, 3] |
3,854,927 | 3,854,928 | How does one share data between a C++app and a C# app without files? | <p>I have a C++ application with data that needs to be shared with a C# application.
I'm currently transferring the data via files, but with speed and quantity of the data becoming an issue I would like to find a way to share the data through memory.</p>
<p>I'm a beginner to intermediate programmer at best, and so far... | c# c++ | [0, 6] |
3,952,881 | 3,952,882 | data appear and disapear when jquery loads | <p>i have this code bellow and i have select options with <code>$menucompare</code> values .</p>
<pre><code><script>
function displayVals() {
var singleValues = $("#menucompare").val();
$("#hiddenselect").attr("value", singleValues );
$("p").html("Procent of: " + singleValues);
}
$("select").c... | php jquery | [2, 5] |
2,330,051 | 2,330,052 | Virtual scrolling grid In asp.net | <p>I would like to implement a Virtual scrolling Grid like Yahoo Inbox. I Don't want to use Telerik or other third party dlls.</p>
<p>I'm looking for an open source solution.</p>
| c# asp.net | [0, 9] |
5,044,488 | 5,044,489 | Accessing a public variable from another class? | <p>The app I'm currently developing has more than one class created, with a corresponding
.xml file for each. My app requires progressing from one screen to the next
after a calculation has been completed.</p>
<p>In one class, I have declared a public double called V, which is the result
of a voltage calculation.</p>
... | java android | [1, 4] |
1,788,483 | 1,788,484 | find() function not working on page load in jquery | <p>I have the following jquery code to remove the style attribute of all <code>table</code>, <code>tr</code> and <code>td</code> elements located inside a <code>div</code> with <code>id="testdiv"</code>. </p>
<pre><code>$(document).ready(function(){
$("#testdiv").find("table, tr, td").removeAttr("style");
});
</c... | javascript jquery | [3, 5] |
1,311,249 | 1,311,250 | fire event after scrollling scrollbars or mousewheel javascript | <p>i would like to know if it is possible to fire an event <strong>after</strong> the scrolling of the page, when using the scrollbar or mousewheel (or possibly with a swipe on a touch device). it's like detecting when the user has stopped scrolling, where i would like to load AJAX stuff after that rather than load whi... | javascript jquery | [3, 5] |
859,362 | 859,363 | asp .net Scan folder once a day | <p>I have web application in asp .net. I want to scan a folder once a day in order to find if new files are imported and do some processing. Where do you suggest me to put this code?. Do i have to make a service?. </p>
| c# asp.net | [0, 9] |
2,522,571 | 2,522,572 | Can you enumerate links in C# that pass attributes to a method? | <p>I am trying to create a directory for our website in C#/ASP.NET. I already have the ability to search by name and position when you type it in a textbox. I want to add the functionality of searching by the first letter of the last name or by clicking on positions. </p>
<p>I wanted to create my array of letters an... | c# asp.net | [0, 9] |
3,931,501 | 3,931,502 | Getting string value from input in query to reveal div | <p>just wondering why this isn't working for me:</p>
<pre><code> $(document).ready(function(){
$('.box').hide();
$("#name").blur(function() {
var value = $(this).val();
$("div:contains("+value+")").FadeIn(1000);
});
});
</code></pre>
<p>Pretty new at Javascript/JQuery, and trying to figure out wher... | javascript jquery | [3, 5] |
5,840,901 | 5,840,902 | Server Error in '/' Application, The resource cannot be found | <h2>Server Error in '/' Application.</h2>
<p>The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. </p... | c# asp.net | [0, 9] |
5,263,983 | 5,263,984 | returning List<string> from JSON call in Jquery has undefined length | <p>I am making a call to a webservice from jquery and trying to return an List (I have also tried a string[]). When I get the results back I can see it holds an array with the values I need, but I can not iterate through them in Javascript because there is no length value.</p>
<p>my C# Webservice is as follows:</p>
... | c# javascript jquery asp.net | [0, 3, 5, 9] |
3,270,870 | 3,270,871 | cannot download data in csv format from yahoo with python or java | <p>i have two p rograms (java and python) which download data from yahoo finace.
I am using this URL</p>
<p><a href="http://finance.yahoo.com/d/quotes.csv?s=GE&f=sl1d1" rel="nofollow">http://finance.yahoo.com/d/quotes.csv?s=GE&f=sl1d1</a></p>
<p>It has always worked until two days ago. i tried to debug, but i... | java python | [1, 7] |
3,439,545 | 3,439,546 | Javascript cookie expiration/deletion on different browsing scenarios | <p>A client requested cookie functionality where if the browser is not closed, the cookie has a 30 minute expiration, but then it needs to be removed if/when a user closes the browser.</p>
<p>Here's how I was going to do it: </p>
<pre><code>delCookie = function() {
document.cookie = 'cookieName=;expiration=Thu, ... | javascript jquery | [3, 5] |
1,972 | 1,973 | Not able to use Log android | <p>I'm making about my 4th android app, and nothing that I try to log is showing up, I'm so confused. All my other apps will log things just fine, but this won't I think this is the error message for logging,
<code>ignoring message with no sender credentials</code>
Although I'm not sure, as it shows up alot. Here is wh... | java android | [1, 4] |
5,784,195 | 5,784,196 | Adding offset to each line | <p>I am new to javascript, so excuse my lack of actual code.</p>
<p>I have a block of text that I want to fit into a space. I want to break it into rows. I need to find where the newlines are to add a new line and some offset. Then I want to subtract the offset from the row word length (if needed) and get a new cycle ... | javascript jquery | [3, 5] |
386,824 | 386,825 | Convert from JavaScript to jQuery Syntax? | <p>Is there in the world any tool or sample-based tutorial on converting JavaScript to jQuery Syntax?
Not scattered documentation but sample-based converting.</p>
<p>Need to re-write this snippet:</p>
<pre><code>var cssmenuids = ["navmenu"];
var csssubmenuoffset = -1;
function createcssmenu()
{
for (var i = 0; i... | javascript jquery | [3, 5] |
1,207,671 | 1,207,672 | ASP Checkbox and JS | <p>I'm trying to check to see if the aspboxes are checked in js. Can I set an ID number to the listItems and check each one by one?</p>
<pre><code> <asp:CheckBoxList ID="CheckBoxList1" runat="server">
<asp:ListItem Text="Asset Classes" value="Asset Classes"></asp:ListItem>
... | javascript asp.net | [3, 9] |
4,510,825 | 4,510,826 | Automatically showing div on mouseover | <p>This is probably a simple problem I'm having, but for the life of me, I can't seem to figure it out. If any of you could help me with this, I would be much obliged.</p>
<p>I'm using JQuery to make a menu appear when a user hovers over a certain div. The menu will be displayed on the top left of the div.
I got this ... | javascript jquery | [3, 5] |
5,030,900 | 5,030,901 | jQuery function not moving... can't find anything wrong with it? | <p>I'm trying to take these moving clouds: <a href="http://vintageskytheme.tumblr.com/" rel="nofollow">http://vintageskytheme.tumblr.com/</a> (it's a theme I've already bought from themeforest, but its for tumblr)</p>
<p>I'm trying to put it on wordpress. here: <a href="http://pawprintsinmypancakes.com/" rel="nofollow... | javascript jquery | [3, 5] |
3,488,808 | 3,488,809 | I have binded a grid with List<int> (temporary list), how can i pick the list text into controls text in item template in grid view | <p>I have binded a grid with List (temporary list),
how can I pick the list text into controls text in item template in grid view.</p>
<p><strong>aspx</strong></p>
<pre><code><asp:GridView ID="gvDenomination" runat="server">
<Columns>
<asp:TemplateField HeaderText="Value">
&... | c# asp.net | [0, 9] |
2,652,916 | 2,652,917 | Random Integer: Android | <p>I'm guessing this is very simple, but for some reason I am unable to figure it out. So, how do you pick a random integer out of two numbers. I want to randomly pick an integer out of 1 and 2.</p>
| java android | [1, 4] |
2,612,975 | 2,612,976 | Cycle through int values | <p>I need some input.</p>
<p>Say you have an int-based Enum with values 1 through 10. If you then have a variable that is, say, value corresponding to 7, how can you easiest set it to next value in the given range without going out of bounds? If the value reaches the limit, it should reset itself to first in the range... | c# javascript | [0, 3] |
3,967,467 | 3,967,468 | how to register events for ajax returned html tags? | <p>I'm new to jquery so I don't know if I have titled the question correctly. For post back html marks, I can register events for the like:</p>
<pre><code>$(document).ready(function () {
$(":input[data-autocomplete]").each(function () {
...});
</code></pre>
<p>now I need to allow user to click a button to add more... | javascript jquery | [3, 5] |
1,437,501 | 1,437,502 | Which is best way to design a webpage? | <p>I'm interested in developing a website using asp c#. I am new to asp.net c# platform. I want to design a website with css styles that have drop down menu items and new style. So how to start design and which software should I use?</p>
| c# javascript asp.net | [0, 3, 9] |
3,236,278 | 3,236,279 | How do I count how many span of the same id on my page? | <p>I have this html code:</p>
<pre><code><span id="post"></span>
<span id="post"></span>
<span id="post"></span>
<span id="post"></span>
<span id="post"></span>
<span id="post"></span>
<span id="post"></span>
<span id="post"><... | javascript jquery | [3, 5] |
2,161,664 | 2,161,665 | ASP.NET Conditional Markup Rendering According to Web.config Key | <p>I have a key in web.config as -</p>
<pre><code><add key="IsDemo" value ="true"/>
</code></pre>
<p>I want to show/hide markup based on above web.config entry for a <strong>non-server html tag</strong> without using code behind file (as there is no .cs file and there are no runat=server controls).
Something si... | javascript asp.net | [3, 9] |
3,330,223 | 3,330,224 | styling external widget | <p>My website has an external widget that displays a table.</p>
<p>The widget comes with some inline CSS. Is there a way to remove this CSS before appending the widget to my page, so that only my css file rules will apply?</p>
<p>The markup looks like this:</p>
<pre><code><div id="widgetContainer">
<scr... | javascript jquery | [3, 5] |
4,368,710 | 4,368,711 | jquery attribute selector problem: Dynamic attribute selector | <p>My code is here</p>
<pre><code>$("a[href=$.jqURL.url()]").hide();
</code></pre>
<p><code>$.jqURL.url()</code> return current page url. </p>
<p>But this code don't work</p>
<p>Is it possible to select dynamically?</p>
| javascript jquery | [3, 5] |
1,466,169 | 1,466,170 | my array "is not a function" error message | <p>I am trying to store some DOM information into an Array so I can use it elsewhere.</p>
<p>This works if I use a Variable, but if I try to use an Array I get "Arrayname is not a function" error message? I'm not sure why this would work in a Variable and not an array.</p>
<p>This is the code I'm running:</p>
<pre>... | javascript jquery | [3, 5] |
4,070,936 | 4,070,937 | How to access element id and other attributes using jQuery? | <p>I have JavaScript method which acts when a particular class (mcb) of forms are submitted:</p>
<pre><code>function BindCloseMessage() {
$(".mcb").submit(function(event) {
alert("closing..."); //Here I want to get the id of form
event.preventDefault();
});
}
</code></pre>
<p>In place of alert... | javascript jquery | [3, 5] |
3,728,660 | 3,728,661 | calling click event of a button serverside | <p>how can i click or load the click() event of a button in codebehind?<br>
i already treid</p>
<pre><code> btn.Click();
</code></pre>
<p>but this gives an error<br>
i am using asp.net</p>
| c# asp.net | [0, 9] |
2,375,267 | 2,375,268 | php header("location: test.php") not working. But java script redirect working | <blockquote>
<p><strong>php header("location: test.php")</strong></p>
</blockquote>
<p>not working. But java script redirect working .</p>
<p>I tried with header() doesn't redirects?</p>
<blockquote>
<p><strong>header("location: test.php");</strong></p>
</blockquote>
<p>but i tried with java script its working<... | php javascript | [2, 3] |
4,168,735 | 4,168,736 | how can change the text string to date object? | <p>i am getting string from server and i need to covert that fetching string in to new date object.. for doing this, i tried this function, but no use, any one can help me to convert strings to date object?</p>
<p>my code is :</p>
<pre><code>var nationZone = {
getNewYorkLocalTime : 'getTime.php?lat=40.71417&... | javascript jquery | [3, 5] |
5,885,020 | 5,885,021 | setTimeout for each instance of object | <p>I have this object (this is only part of it, obviously...):</p>
<pre><code>function room() {
this.data = {
sender_name: '',
room_id: 0
}
this.create = function (sender_name) {
// (code to set this.data)
this.removeTimer();
}
this.removeTimer = function() {
... | javascript jquery | [3, 5] |
5,192,755 | 5,192,756 | Jquery show & hide not working but native change to style.display does work | <p>Why does toggling display between block/none work but jQuery show/hide does not?</p>
<p>Javascript:</p>
<pre><code><div style="width: 100px; height: 100px; background-color: red;"
onmouseover="document.getElementById('div1').style.display = 'block';"
onmouseout="document.getElementById('div1').style.... | javascript jquery | [3, 5] |
4,725,222 | 4,725,223 | 3rd Party Script Breaking my JS | <p>I have a 3rd party script that displays some data on my site. When the script loads it breaks all of the JS on any page the script is in. I remove the script and my page works without issue. </p>
<p>Are there ways to prevent 3rd party scripts from interacting with my page in a way the breaks the page?</p>
<p><str... | javascript jquery | [3, 5] |
4,191,146 | 4,191,147 | Killing The Application In Android | <p>I have an application which shows a notification in the status bar for users to click to get resumed into the activity.</p>
<p>In the application, I will also have a close application button which runs:</p>
<pre><code>android.os.Process.killProcess(android.os.Process.myPid());
</code></pre>
<p>When I click the cl... | java android | [1, 4] |
5,017,581 | 5,017,582 | How to represent static struct in Java | <p>Following is a static struct in C++. How can this be represented in java.</p>
<pre><code>static struct {
int c1;
int c2;
} pair[37]= {{3770,3780}, {3770,3781}, {3770,3782}, {3770,3785},
{3770,3786}, {3770,3787}, {3771,3780}, {3771,3781},
{3771,3782}, {3771,3785}, {37... | java c++ | [1, 6] |
2,125,127 | 2,125,128 | How to use jQuery/Javascript to fadein/out text after a while | <p>On <a href="http://envylabs.com/" rel="nofollow">Envylabs' site</a> they have a feature where, below the logo, some text keeps changing after a few seconds. </p>
<p>I'm trying to find out what kind of JS/jquery function would do that. Can someone point to a tutorial for this?</p>
| javascript jquery | [3, 5] |
2,300,775 | 2,300,776 | How can I access JavaScript function argument outside the function? | <p>Can I access the function arguments outside the function?</p>
<p>Here is my code:</p>
<pre><code>function viewmessage(username,name) {
//alert(name + " : " + username);
$('#heading').html(name);
$.get('/notification/viewmessage', {user:username}, function(data) {
$('#messagesfro... | javascript jquery | [3, 5] |
3,301,738 | 3,301,739 | Problem in empty select - remove all options from select | <p>If I have select with id="select_test", how to delete all options inside but select stay on page, so I can load again some new options ? ( I get answer how to load, but I cannot empty, I tried like <code>$('#select_test').empty();</code></p>
<p>and </p>
<pre><code>$('#select_test').find('option').remove();
</code>... | javascript jquery | [3, 5] |
1,262,962 | 1,262,963 | Why is my jquery val() not picking the actual selected value from my select box? | <p>When I type <code>$('select[id*=lstAdvGradYear]')</code> chrome gives me </p>
<pre><code><select name="Views\ContentArea$ctl00$lstAdvGradYear" id="Views\ContentArea_ctl00_lstAdvGradYear" class="ddReplace" style="display: none; ">
<option value="2016">2016</option>
<option value="2015"&g... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.