Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
2,278,610 | 2,278,611 | Strange behavior checking for Web Storage availability | <p>Here's my code:</p>
<pre><code>if(typeof(Storage)!==undefined) {
// Web storage support
if(localStorage.hashes != "") {
var hashes = jQuery.parseJSON(localStorage.hashes);
for (var i = 0; i < hashes.length; i++) {
// Do stuff here
}
}
else {
var hashes ... | javascript jquery | [3, 5] |
621,025 | 621,026 | Clean up dynamically loaded scripts | <p>I'm working on a dynamic web app and I ran across the following issue:</p>
<p>Basically I have a single dynamic page managed by javascript, whose <code><div class="content"></div></code> is repopulated each time a user clicks a link in the navigation bar (dynamic load, no page change). The content that ... | javascript jquery | [3, 5] |
4,836,729 | 4,836,730 | Jquery table row add stoping | <p>View link keeps adding rows to table upon each additional click. I need to stop ıt.
I have 2 objects ın a JavaScript array, whıch ıs passed to prıntfeed functıon by GetVıewData.
When I clıck on each vıew lınk It adds 2 rows, whıch ıs fıne. After clıckıng agaın ıt adds 2 more, and so on. How could I stop thıs functıo... | javascript jquery | [3, 5] |
3,833,025 | 3,833,026 | How to do something with jquery after the DOM is ready but before the UI is rendered? | <p>I have a jQuery script that changes the src attribute of an <code><img></code> and a few other page elements. </p>
<p>My script is hooked to the document-ready callback using <code>$()</code>. When I refresh the page I see the original content for half a second. I want to avoid that.</p>
<p>Is there a way fo... | javascript jquery | [3, 5] |
3,524,303 | 3,524,304 | Cannot Send Post Request Jquery $.Post on Internet Explore 9 ActiveX Filtering | <p>I have a problem with Iexplore 9 ActiveX Filtering.</p>
<p>I create an application which is set session through jquery $.post, when I turn on ActiveX filtering in Iexplore 9, it blocks the post request.</p>
<pre><code>$('.sidid').click(function(){
val = $(this).val();
if ($(this).is(':checked')) { //when c... | php jquery | [2, 5] |
910,051 | 910,052 | Finding nth div of a certain class with .eq | <p>I have the following HTML</p>
<pre><code><div id="MyDiv">
<div class="MyClass">test1</div>
<div class="MyClass">test2</div>
<div class="MyClass">test3</div>
<div class="MyClass">test4</div>
</div>
</code></pre>
<p>I'm trying to use the jquery eq... | javascript jquery | [3, 5] |
3,324,830 | 3,324,831 | Get connection string from app.config | <p>I'm trying to make this simple call:</p>
<pre><code>DataContext dc = new DataContext(ConfigurationManager.ConnectionStrings["MyDB"].ConnectionString)
</code></pre>
<p>And here's my app.config file:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
&l... | c# asp.net | [0, 9] |
2,240,376 | 2,240,377 | Asp.net duplicate form submissions on reload | <p>How do I prevent a form that is posted a second time because of a page reload in a browser from being added to my database again with C# Asp.Net.</p>
<p>Thanks,
Steven</p>
| c# asp.net | [0, 9] |
5,055,644 | 5,055,645 | DomEvent AddHandler Issue | <p>I am having issue in my web application in asp.net. i am receiving the below error :</p>
<blockquote>
<p>Error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.</p>
</blockquote>
<p>This issue occurs while trying to navigate to another page after opening and clo... | c# jquery asp.net | [0, 5, 9] |
4,171,048 | 4,171,049 | Java Script is not redirecting using window.location | <p>I am calling the js function from the href </p>
<pre><code>function topicApproval()
{
var approve = confirm('Do you wish to proceed?');
if(approve)
{
window.location('http://www.sample.com');
}
}
</code></pre>
<p>Here is the function called Yes</p>
<p>But it is not redirecting........
Please help me..</p>
| php javascript | [2, 3] |
5,499,493 | 5,499,494 | jQuery equivalent to [function].parameters from javascript | <p>I've had this javascript function that I've used many many times over ...</p>
<pre><code>function showHideObjects()
{
var args;
args = showHideObjects.arguments;
for(var i=0;i<args.length;i++)
{
if(document.getElementById(args[i]))
{
if(args[i+1] == 'flip')
... | javascript jquery | [3, 5] |
1,467,107 | 1,467,108 | extending c# textbox control | <p>I am extending the textBox control, and i want to call a javascript function on its OnLoad(EventArgs e). how can i do this? </p>
<pre><code>public partial class MyTextBox: TextBox
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
//call to a javascript function? ... | c# javascript | [0, 3] |
2,711,554 | 2,711,555 | How can I get a server-side control's tag? | <p>How can I get a server-side control's tag? I'm guessing it's something like below:</p>
<pre><code>TextBox textBox=new TextBox();
GetTag(TextBox textBox)
{
...
}
</code></pre>
<p>And the result is something like <code><asp:TextBox /></code> (the control's design time tag).</p>
<p>When I change the contr... | c# asp.net | [0, 9] |
1,831,176 | 1,831,177 | File upload progress bar: is flash-based the only way possible | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/653063/upload-progress-using-pure-php-ajax">Upload progress using pure PHP/AJAX?</a> </p>
</blockquote>
<p>I'm trying to have a file upload input field in my form and to have a status bar that shows upload progr... | php javascript jquery | [2, 3, 5] |
1,809,264 | 1,809,265 | How do I intercept emails? | <p>The stuff is obvious but not as simple. I need to build a simple as possible "automated email client" that will act as a reader for a certain email address: extracting attachments, inserting stuff into a database, interpreting content etc. My problem is, how to hook these emails, how to intercept them?</p>
<p>I'd p... | c# java | [0, 1] |
701,454 | 701,455 | Two windows.onload on same page | <p>I have some external js scripts that i offer to my users to be embedded on their site. Individually they work fine, but if you try to append two in the same page one of them crash (no error on console). I think the problem have to be with calling windows.onload several times. </p>
<p>Here how two embeded codes look... | javascript jquery | [3, 5] |
3,454,805 | 3,454,806 | Only Cyrillic input text form | <p>How do I restrict input text into a web form textbox only <strong>Cyrillic</strong> characters?</p>
| javascript jquery | [3, 5] |
5,090,793 | 5,090,794 | define a web request for the specified URL | <p>what is the best way to validate a valid url and through error message?</p>
<p>i am using something like this:</p>
<pre><code> HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
</code></pre>
<p>i am doing try and catch to catch the error message</p>
<p>is that enough or can be do better then that?</p>... | c# asp.net | [0, 9] |
4,673,757 | 4,673,758 | why is thread.join commonly used to stop threads in android | <p>looking at several android examples i see a trend where threads are paused using join() method:</p>
<p>EDIT: please assume that the 2 threads are properly defined. edited the calls to join() </p>
<pre><code>public class MainUI extends Activity{
private GraphicsViewThread g;
private BackendDataViewThread b;
... | java android | [1, 4] |
1,052,592 | 1,052,593 | Play music one after each other | <p>I am working on a game in Android and i wanted to add a sort of playlist of music. I have about 10 music files and i want to be able to play the second one when the first one has finished and so on. Is there anyway to do this?</p>
| java android | [1, 4] |
1,663,405 | 1,663,406 | Expertise in C#,java | <p>I am a novice in c#,java and i want to become Professional in both in 2 to 4 weeks.Can anyone please specify me the correct and exact way of achieving my goal.By exact way i mean,what practices to follow,what books to follow,what all available online resources best for me and what all projects to work on from novice... | c# java | [0, 1] |
4,716,512 | 4,716,513 | Regex ReplaceAll Doesn't Work | <p>I copied this code from another StackOverflow post. However, I am having some issues with it. The items matching the pattern specified should be replaced but they are not.</p>
<p>The code is:</p>
<pre><code>protected String FixHexValuesInString(String str){
Log.v(TAG, "before fix: "+ str);
Matcher matcher ... | java android | [1, 4] |
313,039 | 313,040 | Modify contents in scrollable div keeping the position | <p>I have a div containing around 20 little divs inside, so that when you click on one, the big div is scrolled to center the small one; then its margins are increased. Problem is, when the margins are increased, the small div is pushed downwards, because the scroll position stays in the same place. I can fire another ... | javascript jquery | [3, 5] |
2,637,357 | 2,637,358 | php file_get_contents HTTP request failed! HTTP/1.1 401 on asp | <p>I'm trying get a content HTML from a page in asp with <code>file_get_contents</code>.
When load page with browser, it works, no problem.</p>
<p>To print status response I get 200 ok.</p>
<pre><code><%
Response.Write(Response.Status);
%>
</code></pre>
<p>But when I use <code>file_get_contents</code>, I get ... | php asp.net | [2, 9] |
4,109,046 | 4,109,047 | jQuery Animate not working on Chrome | <p>I'm having a little issue here with Google Chrome. My code works pretty well with Safari, which makes me think it should work fine with Google Chrome. But Chrome doesn't animate as expected. What could be wrong?</p>
<pre><code>$(function() {
var sourceFoto = $(".empreendimento .main-photo img").attr("src");
... | javascript jquery | [3, 5] |
4,386,613 | 4,386,614 | Expandable Listview Group Indicator half off screen? | <p>I am using a custom Group indicator as shown in the code below. Now if I leave the default I can use setBounds perfectly, but when using my custom image which is the same dimensions and setup as the same .9 patch file it is always half off screen. No matter what values I use for setBounds()</p>
<pre><code> ... | java android | [1, 4] |
3,970,099 | 3,970,100 | Triggering a click for a control in a update panel problems | <p>I'm using a RadListView and i want to click a checkbox/button (It displays as a checkbox but its designer code shows it as a button). But every time i call the click method the page refreshes instead of updating the update panel which contains the list view.</p>
<p>How do i call the click event without the page pos... | jquery asp.net | [5, 9] |
3,554,756 | 3,554,757 | How to Create a Radio Button Dynamically with jQuery? | <p>I am developing a small application in which I want to create 20 radio buttons in one row.</p>
<p>How can I do this using jQuery?</p>
| javascript jquery | [3, 5] |
1,416,453 | 1,416,454 | How to use Google translate API from code | <p>I am trying to create an app that send a word to <em>translate.google.com</em>, take the result of the translation and display it to the user. I composed the URL but I do not know how to extract the word/phrase from the webpage. </p>
<p>EXAMPLE PSUEDO
en is code for english and es is code for spanish</p>
<pre><cod... | java android | [1, 4] |
1,083,978 | 1,083,979 | vertical expand div | <p>I have two DIV</p>
<p>one on the right the the other on the left side</p>
<p>I'm looking for a code that give me link and by clicking on this link both divs will expand to 100% (mean that one of them will slide down) and by click again they will return back to be side by side</p>
<p>Thanks in advanced</p>
<p>I ... | javascript jquery | [3, 5] |
3,350,529 | 3,350,530 | help with NullReference exception in C# | <p>The following is a web method that is called from ajax, I have verified with firebug that the script is indeed passing two string values to my method:</p>
<pre><code>public string DealerLogin_Click(string name, string pass)
{
string g="adf";
if (name == "w" && pass == "w")
{
HttpContext.... | c# asp.net | [0, 9] |
87,940 | 87,941 | Find dynamically added user control | <p>I have added user control dynamically. My intention is to find which other user controls are related to the clicked user control. </p>
<p>Relationships between the <code>imagesButtons</code>(part of user control) in database. Just need to find the user control as whole or the <code>Code behind</code> values of the... | c# asp.net | [0, 9] |
1,321,976 | 1,321,977 | How to set default checkbox status with javascript? | <p>I am used to doing this in jQuery </p>
<pre><code>$('#RememberMe').attr('checked', true);
</code></pre>
<p>but I can't remember how to do it in Javascript I thought that </p>
<pre><code>document.getElementById("RememberMe").value = "True";
</code></pre>
<p>would work, but it doesn't, it changes the value but d... | javascript jquery | [3, 5] |
1,277,865 | 1,277,866 | Why isnt my jquery working when I use external pages | <p>Im using jquery to load in 2 external pages, one called search.php and the other is called info.php. I am displaying them each on a single page called user.php but only when there link has been clicked in the navigation bar. Unfortunately I am currently experiencing a problem, when I use this section of script:</p>
... | javascript jquery | [3, 5] |
3,242,883 | 3,242,884 | Detecting History Change using PHP? | <p>Here is what I would do in JavaScript. Is there any way to do it in php?
I am working on a project that needs this functionality but cannot use JavaScript.</p>
<pre><code>setInterval ( "checkHistory()", 1000 );
function checkHistory() {
if (oldHistLength != history.length) {
removegateway();
oldHis... | php javascript | [2, 3] |
5,676,525 | 5,676,526 | Pass var to a href | <p>I´m trying to pass the src of an image to an a href that is created via javascript.</p>
<p>For example I have this <strong>var</strong>:</p>
<pre><code>var src = $(img).attr('src');
</code></pre>
<p>And I want to pass the <strong>src</strong> to the href in this modal (instead of the 'javascript:void(0)'):</p>
<... | javascript jquery | [3, 5] |
4,194,744 | 4,194,745 | ASP.NET bundle does not work when deployed (debug="false") | <p>In development bundling works as expected with uncombined and unminified files but after deploying a site with web.config set enable the bundles</p>
<pre><code><compilation debug="false" targetFramework="4.5" />
</code></pre>
<p>the result of get a request to a bundle may include a comment at the top similar... | javascript asp.net | [3, 9] |
3,951,113 | 3,951,114 | PHP to C#.NET/ASP.NET | <p>How to write this in C #? Can you use Dictionary to this?</p>
<pre><code>$count = 0;
if(count($_SESSION['goods']) > 0) {
$count = count($_SESSION['goods']) -1; // array start on zero.
}
$_SESSION['goods'][$count]["products_id"] = $_POST["products_id"];
$_SESSION['goods'][$count]["price"] = $_POST["price"];
$... | c# php | [0, 2] |
3,973,003 | 3,973,004 | Reset a view in an asp.net MultiView | <p>I'm using an asp.net MultiView control with 2 Views inside.
First view has a "create" button to create new customer. Clicking the "create" button will display the 2nd View of the MultiView which allows to enter customer information.
Second view has a "return" button to return back to the 1st view.</p>
<p>The proble... | c# asp.net | [0, 9] |
2,836,267 | 2,836,268 | Introduction to c# for c/c++ users | <p>I have 6+ years of c/c++ experience. Tomorrow starts a university assignment where I will have to use c#. Therefor I would like to have a list of links which you think important, an extensive tutorial - in short everything you think worthy.</p>
<p>codingstyle, best practices, ...</p>
<p>(I don't know any specifics... | c# c++ | [0, 6] |
2,524,770 | 2,524,771 | the 'Color Animations plugin' doesn't wokr on webkit(safari chrome) | <p>the Color Animations doesn't wokr on webkit(safari chrome)</p>
<p><a href="http://plugins.jquery.com/project/color" rel="nofollow">http://plugins.jquery.com/project/color</a></p>
<pre><code><script type="text/javascript" src="jquery.color.js">s</script>
$('#start').animate({ 'backgroundColor':'yellow' ... | javascript jquery | [3, 5] |
4,438,793 | 4,438,794 | Manipulating HTML from the asp.net code-behind | <p>I am able to get the HTML from the code-behind, like this one:</p>
<pre><code>protected override void OnPreRenderComplete(EventArgs e)
{
StringWriter sw = new StringWriter();
base.Render(new HtmlTextWriter(sw));
sbHtml = sw.GetStringBuilder();
Response.Write(sbHtml + "<!-- processed by code-behin... | c# asp.net | [0, 9] |
178,006 | 178,007 | Increase ID number as a button is clicked in js | <p>I have a button each time it is clicked, a new select input will be added. But I want the id and name of the select changed as well.My codes was:</p>
<pre><code><section>
<div class="container">
<select id="myId_1" name="myName_1">
<option value="1">1</option>
<option... | javascript jquery | [3, 5] |
1,156,729 | 1,156,730 | Will jquery live work for $('#somebutton').data('events').click? | <p>The events for a button get wired up after the page loads, so I need to use live for this.</p>
<p>Will live work for this:</p>
<pre><code>$('#somebutton').data('events').click;
</code></pre>
| javascript jquery | [3, 5] |
3,862,298 | 3,862,299 | Javascript: How to retrieve a value from a popup after a click event is fired | <p>I have a page where clicking on a link will open a popup window. The popup window will contain some value. Now when user clicks on a div tag, I want to copy the text of that div into a text box of the main window. </p>
<p>I have used following code to open a popup - </p>
<pre><code>popup = window.open(location, "p... | javascript jquery | [3, 5] |
4,559,881 | 4,559,882 | Move focus to a particular field | <p>I have a button that will add show a form on the page. how can I move the focus to the first field of the form when that button is clicked?</p>
<p>simple example:</p>
<p>HTML:</p>
<pre><code><form style="display:none;" id="newForm">
<input type="text" id="firstField">
</form>
<input type="... | javascript jquery | [3, 5] |
297,623 | 297,624 | How can I retrieve all mouse coordinates between mousedown to mouseup event | <p>As per the jQuery docs below code can be used to capture mouseup and mouse down events. But my requirement is bit different</p>
<pre><code>$("#dic").mouseup(function () {
}).mousedown(function () {
});
</code></pre>
<p>But How can I calculate mouse moving co-ordinates between mousedown position to mouseup pos... | javascript jquery | [3, 5] |
5,534,084 | 5,534,085 | How to remove all tags after certain tag? | <p>I need to remove tags going after <code>#first</code> and only in <code>#container</code>.
How can I do it with jQuery?</p>
<pre><code><div id="container">
<div id="first"></div>
<div id="remove_me_1"></div>
<div id="remove_me_2"></div>
<div id="remove_me_3">&... | javascript jquery | [3, 5] |
2,585,451 | 2,585,452 | ASP.NET/Jquery: document ready in update panel? | <p>I have the following user-control:</p>
<pre><code><%@ Control Language="C#" AutoEventWireup="true" CodeFile="FadingMessage.ascx.cs" Inherits="includes_FadingMessage" %>
<asp:PlaceHolder Visible="false" runat="server" ID="plhMain">
<span id="<%= this.ClientID+"_panel" %>" style="background-colo... | c# asp.net jquery | [0, 9, 5] |
2,552,209 | 2,552,210 | How to write the code for self expiring download link for asp.net website? | <p>I am planning to sell digital goods on my website (Asp.net). After successful payment the customer will be redirected to the download page of my website, which will display the link to download the digital content stored in my server. </p>
<p>I want to secure the location of the file, by creating a disposable link ... | c# asp.net | [0, 9] |
4,502,396 | 4,502,397 | How to rewrite this, so that it doesn't trigger a checkbox | <p>My problem is that on pageload a checkbox is triggered and because of this an ajax call is made which makes my page load very slowly. </p>
<p>I have located the code that triggers these checkboxes:</p>
<p><strong>My jQuery script</strong></p>
<pre><code>$('.checkGroup > input[type="checkbox"]').live('change',f... | javascript jquery | [3, 5] |
2,476,096 | 2,476,097 | Adding classes to LI with JQuery LI to every 7th item | <p>I am using this code to add a class to every 7th LI items and the first one too:</p>
<pre><code>$('ul li:first, ul li:nth-child(7n)').addClass("first");
$('ul li:first, ul li:nth-child(1)').addClass("first");
</code></pre>
<p>My problem is that it just adds the class to the 1st and the 7th item but if I add anot... | javascript jquery | [3, 5] |
4,985,019 | 4,985,020 | JavaScript: How to select "Cancel" by default in confirm box? | <p>I am displaying a javascript confirm-box message when user clicks on "Delete Data" button. I am displaying it as shown in this image: </p>
<p><img src="http://www.exforsys.com/images/js/0800.jpg" alt="alt text"></p>
<p>In the image "OK" button is selected by default, I want to select "Cancel" button by default, so... | javascript jquery | [3, 5] |
5,403,368 | 5,403,369 | asp.net and jquery ui draggable beginners | <p>Hi im very new to jquery and combining it into my asp.net work stuffs.</p>
<p>Ive read the order you reg the jquery files matters, so ive put the core file at the top ?
I really dont understand what im getting wrong here :</p>
<pre><code> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="serv... | jquery asp.net | [5, 9] |
2,330,077 | 2,330,078 | Why is this Javascript loop taking one minute for 100 iterations? | <p>I am using the below code in my program but it seems that these few line of code is taking too much time to execute. For 100 iteration it is consuming 1 mins approx. for 200+ iteration my broser is showing a warning message that script is taking too much time. As per the scenario 500+ ids can be pushed into the arra... | javascript jquery | [3, 5] |
1,428,559 | 1,428,560 | how to jquery event bind to function | <pre><code><input id='btnExcelRead' name='btnExcelRead' type='submit' runat='server'/> <- actually asp:button
<input id='excelUpload' name='excelUpload' type='file' />
<input id='txtStartDate' type='text' />
<input id='txtEndDate' type='text' />
</code></pre>
<p>..</p>
<pre><code>$(fun... | javascript jquery | [3, 5] |
5,824,077 | 5,824,078 | jQuery .each being applied to broadly | <p>I have a small script which makes an <code>li</code> element click-able and sets the location to that of a link inside of the <code>li</code>. This runs without error and my two <code>console.log()</code> calls are reporting back what I would expect, however, when you click on the <code>li</code> (whichever <code>li... | javascript jquery | [3, 5] |
2,886,688 | 2,886,689 | AutoSuggest in a asp.net | <p>How to auto suggest in a text box in a asp.net page. I want to display names of the users from the user table.</p>
| c# asp.net | [0, 9] |
5,669,098 | 5,669,099 | API For Voice Chat, support JavaScript as front-end and PHP as the server-side language? | <p>Title says it all.</p>
<p>I've searched up <code>audio chat api</code> on Google, and couldn't really find anything, other than TeleSocial, which I can't even figure out how to use. I also searched up <code>voice chat api</code> on Google, and not finding much either.</p>
<p>Anybody know of a voice chat api (which... | php javascript | [2, 3] |
5,982,247 | 5,982,248 | state of listbox not saved | <p>I have wizard control and on second page I have ListBox. Since I have disabled viewstate, I am rebinding data source of ListBox on each button click (prev /next).</p>
<p>I can not use Request.Form to get selected values since user can come from first page. </p>
<p>I am hoping that even if I set viewstate disabled,... | c# asp.net | [0, 9] |
4,020,312 | 4,020,313 | How to catch application error outside global.asax? | <p>How to catch application error outside global.asax ? I want to catch unhandled exception outside global.asax </p>
| c# asp.net | [0, 9] |
4,868,280 | 4,868,281 | User location not found :- latitude and longitude in android | <p>My code putput always goes in else part. IT means {location} is null.</p>
<p>Any suggestions?</p>
<pre><code>locManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
locManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,0, locationListener);
location = locManager.getLastKnownLocation(... | java android | [1, 4] |
3,358,466 | 3,358,467 | Simple php script to python | <p>How do I convert this simple php script using python?
It basically checks whether the variable $<em>POST['page'] is set, and if it is, checks whether the respective page</em>.html file exists, and outputs it back to jQuery.</p>
<pre><code><?php
if(!$_POST['page']) die("0");
$page = (int)$_POST['page'];
if(fil... | php python | [2, 7] |
2,577,633 | 2,577,634 | App_Code and server | <p>I'm having a "tiny" issue with my <code>App_Code</code> folders.</p>
<p>I'm learning ASP.NET and, therefore, ordered a webserver with the support of ASP.NET 4.0. I'm using Visual Web Developer to program my webpages. When I upload my website to this webserver everything runs fine.</p>
<p>However, if I then add ano... | c# asp.net | [0, 9] |
40,959 | 40,960 | android event after landscape calculation | <p>I enabled onConfigChanges event and properly handling when device turns from portrait into lanscape. However, after onConfigChanges, when page is calculated again and finishes it, which event is fired? Thank you</p>
| java android | [1, 4] |
1,527,850 | 1,527,851 | Relative Positioning of DIV | <p>There is div named "dvUsers". there is an anchor tag "lnkUsers".</p>
<p>When one clicks on anchortag, the div must open like a popup div just below it.</p>
<p>Also the divs relative position should be maintained at window resize and all.
How to do that using javascript/jquery?</p>
| javascript jquery | [3, 5] |
2,709,270 | 2,709,271 | Do I still need $(document).ready(function(){ })? | <p>I've been developing in javascript for a few months and I have been using <code>$(document).ready(function(){</code> at the beginning of all my scripts. I've noticed other folks don't use this in their scripts but I can't seem to get mine working without it. I'd like to keep my code cleaner, but for all my google se... | javascript jquery | [3, 5] |
3,784,523 | 3,784,524 | Jquery click event is not working properly | <p>I want a new text input box will be appended when i click onto the latest generated text box. </p>
<p>But It generates new text input box only when i click the first text input box. So, any solution?</p>
<pre><code><script type="text/javascript">
$(function(event){
$('.add-new').click(function(){
$('.a... | javascript jquery | [3, 5] |
5,742,444 | 5,742,445 | Inserting values into database from the contact us form of a website | <p>Below is the code of properly designed contact us form:</p>
<pre><code> <div class="contact_left_panel">
<p>
<label>Name*</label>
<input type="text" value="" name="your-name" class="name">
</p>
<p>
<label>E-Mail*</label>
<input ... | c# jquery | [0, 5] |
1,487,383 | 1,487,384 | Disable gridview refresh after SQL insert? | <p>I'm using a gridview and SQL data source .</p>
<p>After I'm inserting information in data table if I refresh the page the query is executed again and if I refresh it again it will execute again.</p>
<p>Is there any way to disable refresh or make the events unique to be executed only once when the event is raised w... | c# asp.net | [0, 9] |
3,730,586 | 3,730,587 | applying methods to single elements in an array - jquery/javascript | <p>I've created an array of elements called <code>$images</code> (all the elements in the <code>hidden</code> class.) Then when I try to apply <em>any</em> method to just <em>one</em> element in the array, I get a <code>$images[1].attr is not a function</code> error. However, when I try <code>$images.attr('id')</code... | javascript jquery | [3, 5] |
5,349,838 | 5,349,839 | How Do I Change Div's Content With jQuery To Different PHP Files - Using Hyperlinks - No Refresh Of Page | <p>How Do I Change Div's Content With jQuery To Different PHP Files - Using Hyperlinks - No Refresh Of Page</p>
<p>Lets say I have a div with the id of statsdiv</p>
<p>Then Lets say I have These Pages:</p>
<p>page1.php
page2.php
page3.php</p>
<p>And 3 links.</p>
<p>page1 | page2 | page3</p>
<p>I need it to preloa... | php jquery | [2, 5] |
3,654,037 | 3,654,038 | Testing URL equivalence in JavaScript/JQuery (obtaining canonical form of URL) | <p>The same URL can be represented in many different representations.<br>
e.g. Assuming the browser's currently loaded page is<code>http://www.example.com/about.html</code></p>
<p>The following URLs can be considered equivalent from the browser's point of view:</p>
<ul>
<li><code>http://www.example.com/contact-us.htm... | javascript jquery | [3, 5] |
1,862,607 | 1,862,608 | How to reduce my repeated jQuery code | <p>first post here at this great website! </p>
<p>I would like to reduce the amount of code for the following, espacially as there are more parts I need to add in the future - I'm sure there must be an easy way but I'm just not seeing it. Thanks for your help!</p>
<pre><code>$(document).ready(function(){
$(funct... | javascript jquery | [3, 5] |
2,565,053 | 2,565,054 | Can I combine two functions into one using Javascript? | <p>I have the following code that I would like to simplify. With javascript and jQuery is there an easy way that I could combine these two functions? Most of the code is the same but I am not sure how I could create a single function that works differently depending on what is clicked. </p>
<pre><code>$(document).read... | javascript jquery | [3, 5] |
3,323,541 | 3,323,542 | How can I detect if element is not display on screen do to scrolling? | <p>When the user scrolls down on my website, I'd like to detect when the very top header is out of view. Is this possible with jquery? </p>
| javascript jquery | [3, 5] |
3,488 | 3,489 | Clarification/explanation of RegisterClientScriptInclude method | <p>I've been looking on the Internet for a fairly clear explanation of the different methods of registering javascript in an asp.net application. I think I have a basic understating of the difference between registerStartupScript and registerClientScriptBlock (the main difference being where in the form the script is i... | asp.net javascript | [9, 3] |
5,344,324 | 5,344,325 | jquery changing innerhtml of a P isn't working | <p>I have what I thought was a simple select with jQuery to change some text on a paragraph. It works perfect the traditional way i.e.</p>
<pre><code>document.getElementById('message_text').innerHTML = "hello";
</code></pre>
<p>But with jQuery it doesn't. I have checked the values of <code>$('#message_text')</code> a... | javascript jquery | [3, 5] |
2,236,738 | 2,236,739 | Is it possible to run Android apps in JVM? | <p>I am trying to run symbolic testing on Android apps to collect some information, for example, the execution tree. Thus I want to run it in JVM instead of the emulator because there are a lot of existing symbolic testing tools for Java applications. </p>
<p>I tried to run HelloAndroid which is a sample app outputtin... | java android | [1, 4] |
2,442,006 | 2,442,007 | How to open URI in the native browser (android) | <p>I want to open the page ya.ru in the native browser. That's what I have</p>
<pre><code>list.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
String url = "http://ya.ru";
Intent intent1 = new Intent(Intent.ACTION_VIEW);
... | java android | [1, 4] |
606,029 | 606,030 | ~ 'MachineToApplication' beyond application level ~ What does this error means? | <p>What should i do when this error prompt my screen</p>
<p>In VS2008 Express Edition</p>
<ol>
<li>C:\Users\ami\Desktop\MyAddressBookasd\MyAddressBook\UpdateTheRecord.aspx: ASP.NET runtime error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error... | c# asp.net | [0, 9] |
5,883,823 | 5,883,824 | Display database value based on which radio button is selected | <p>I am suppose to display the database values in a gridview based on which radio button is selected. I'm currently using a RadioButtonList and I'm supposed to display certain transactions based on the transaction date they select in the radio button. For example, if they select View past 1 Month transaction, my gridvi... | c# asp.net | [0, 9] |
341,769 | 341,770 | Custom ReferenceID property for buttons and menu classes | <p>For ASP controls - let us say we are using button, is it possible to derive from BUTTON, a derived control and create new property called, say , ReferenceID (type say integer) and use that property.</p>
<p>I would like to have a unique id for the control other than the ID we are having</p>
| c# asp.net | [0, 9] |
6,029,469 | 6,029,470 | Jquery Continuously Loop Animation | <p>I'm new to jquery so forgive me if this is a simple question. I need to know how to infinitely loop this animation. It is a text scroll animation and I need it to repeat after it's finished.</p>
<p>Here is the jquery:</p>
<pre><code><script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jque... | javascript jquery | [3, 5] |
5,554,279 | 5,554,280 | dynamically add remove rows in table using jquery | <p>I have construted my table as follows:</p>
<pre><code> <table id="dataTable">
<thead>
<tr><th>Name</th>
<th>Value</th></tr>
</thead>
<TR><TD>Scooby Doo</TD><TD>6</TD><TD&g... | javascript jquery | [3, 5] |
3,106,085 | 3,106,086 | Summary of form in a <div> with jQuery | <p>I have two input boxes and two select boxes and would like to display a summary of data selected and entered in real time prior to submitting the form. jQuery seems the way to go, but how! </p>
<pre><code><form id="form1" name="form1" method="post" action="">
<select name="Select1" id="Select1">
<... | javascript jquery | [3, 5] |
1,582,195 | 1,582,196 | get ID of clicked control | <p>Using jQuery I'm trying to get the id of control, which I clicked (radiobutton). I read <a href="http://stackoverflow.com/questions/10578566/jquery-this-id-return-undefined">this question</a> and tried almost everything from there:</p>
<pre><code>alert($(this).get(0).id);
alert($(this).id);
alert($(this).attr('id')... | c# jquery asp.net | [0, 5, 9] |
2,893,452 | 2,893,453 | Split text of textarea on cursor position. (asp.net c#) | <p>what I want to do is to split the text of textarea on cursor position. For example if the text is "hello my world" when the user clicks at the end of hello and press some button then the text should be splitted into two a="hello" and b="my world". Is there anyway I can achieve this ?</p>
| c# javascript jquery asp.net | [0, 3, 5, 9] |
1,621,080 | 1,621,081 | Bookmark on click using jQuery | <p>Is there a way to save the current page as a bookmark (through jQuery or otherwise) when a specific button is clicked?</p>
| javascript jquery | [3, 5] |
1,241,000 | 1,241,001 | Ending up with multiple calls (due to cyclical referencing) - JQuery | <p>My objective is fairly simple. In my webapp, I have two pages and I want to call each one from the other page.</p>
<p>But the way I have implemented the function calls in Javascript seems to be flawed. I have read up on <code>closure</code>, <code>bubbling</code>, <code>recursion</code> and <code>event.stopPropagat... | javascript jquery | [3, 5] |
5,063,202 | 5,063,203 | Show a javascript loader image while function is executing | <p>I want to click a button, show a loader image, execute a time-consuming function, hide the loader image. When I attempt this, the page freezes until the entire event runs, so the loader image is never seen.</p>
<p>Here is a sample:</p>
<pre><code>$('#btn').click(function() {
$('#LoadingImage').show();
<... | javascript jquery | [3, 5] |
431,905 | 431,906 | Posting data via js/jQuery | <p>I am really new to Javascript and its many brilliant libraries, I find even the most simple scripts hard to perform. </p>
<p>I do want to learn this language, because it would be powerful for creating client websites, however at the moment I am trying to do something relatively simple, this is to flag a personal me... | javascript jquery | [3, 5] |
3,179,681 | 3,179,682 | Comma separated values: from strings to objects to list | <p>I'm measuring myself with a small javascript headache, maybe I'm just too tired.</p>
<p>I have 3 variables with strings containing comma separated values (I don't know how many) which I want to combine into jQuery objects.</p>
<pre><code>"name1,name2,name3,nameN"
"value1,value2,value3,valueN"
"id1,id2,id3,idN"
</c... | javascript jquery | [3, 5] |
1,583,105 | 1,583,106 | 'jquery' is not a valid script name. The name must end in '.js' | <p>My APS.Net project is working well, when suddenly we had a power failure. When I ran my web app, it is now showing a lot of <em>"Could not load assembly Sanitizer..." then "Could not load "HtmlAgility..."</em> errors. I was able to resolve these previous errors by uninstalling/reinstalling them using <em>Manage Nuge... | jquery asp.net | [5, 9] |
5,458,864 | 5,458,865 | Get all the events bound by .on() in jQuery | <p>I've a page load some contents by Ajax, and also bind events via <code>.on()</code> method to the new comming elements.</p>
<p>Is there anyway to get all the binding events on <code><div class="inner"></code>?
I've try <code>$("div.inner").data('events')</code> in the console <strong>after all contents loaded... | javascript jquery | [3, 5] |
5,283,698 | 5,283,699 | How to define a property instead of public variable in C# | <pre><code>public static string SEARCH_STRING = "searchkey";
string key=Request.QueryString.Get(SEARCH_STRING);
</code></pre>
<p>How to change the above code to make SEARCH_STRING be accessed using a Property(get; set;) instead of a public variable</p>
| c# asp.net | [0, 9] |
760,746 | 760,747 | C# Image and label issue | <p>I have an issue when I'm trying to make my image or label visible in my web app. </p>
<pre><code>using System;
using System.Linq;
using System.Web.Security;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Web.Services;
using System.IO;
using System.Web.UI.Adapters;
public ... | c# asp.net | [0, 9] |
233,226 | 233,227 | Merge two paragraphs together and deleting an element in middle | <p>I have a div contentEditable with paragraphs and appended after each p is a span telling me the length of the paragraph the user can edit the line & thus update the number shown in the span, (done with something on these lines .each(fu..(){ p append '<span>'+ this.length ..)</p>
<p>Let's say something like t... | javascript jquery | [3, 5] |
637,186 | 637,187 | How to remove only position(top and left) of Style attr using JQuery? | <p>I am dynamically setting the position attr of the element only when the view is out of viewport of the window, in other case default value is set from the css file , </p>
<pre><code>.css( { "left": (left + 20) + "px", "top": (top+10) + "px" } );
</code></pre>
<p>Once the dynamic position is set, I want to remove t... | javascript jquery | [3, 5] |
2,417,456 | 2,417,457 | Change text based on select box value | <p>Full Disclosure: I am bad at javascript.</p>
<p>I'm trying to write something that takes the value of a select box (in this case, it contains a list of themes the user can choose from), compares it against an array containing all the themes allowed, and display a preview link to the user.</p>
<p>Below is some sele... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.