Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
4,595,279 | 4,595,280 | Check if a remote file exists | <p>When retrieving remote files from a serrver via HTTP, there is one situation where I do not know the exact number of files I fill need to retrieve, incrementing a part of the filename until either the file does not exist or I hit a pre-defined threshold.</p>
<p>What is the best way to test if a remote file exists u... | c# asp.net | [0, 9] |
2,156,905 | 2,156,906 | global variable in javascript? | <p>i have this code:</p>
<pre><code> $(".link").each(function() {
group += 1;
text += 1;
var links = [];
links[group] = [];
links[group][text] = $(this).val();
}
});
var jsonLinks = $.toJSON(links);
</code></pre>
<p>after it has looped e... | javascript jquery | [3, 5] |
2,178,334 | 2,178,335 | StringBuffer Append Space (" ") Appends "null" Instead | <p>Basically what I'm trying to do is take a String, and replace each letter in the alphabet inside, but preserving any spaces and not converting them to a "null" string, which is the main reason I am opening this question.</p>
<p>If I use the function below and pass the string "a b", instead of getting "ALPHA BETA" I... | java android | [1, 4] |
5,023,751 | 5,023,752 | Find contours of objects on photo | <p>I need to find contours of objects on images and that borders paint in blue ( like parameter I have Bitmap). Is there any library for this task or can anyone suggest me concrete algorithm for this task ?</p>
| java android | [1, 4] |
3,252,699 | 3,252,700 | Can I call the function Ready() again in jQuery | <p>I have this code </p>
<pre><code> $(".insert").click(function(){
$(".insert").ajaxStop(function(){
$(".load").hide();
});
$(".insert").ajaxStart(function(){
$(".load").show();
});
$.ajax({
type: "GET",
... | javascript jquery | [3, 5] |
2,405,848 | 2,405,849 | Highlight selected list item only on long click? | <p>I'm using this to make a list item visible selected:</p>
<pre><code><item android:state_activated="true" android:drawable="@android:color/holo_blue_light" />
</code></pre>
<p>But I want the item only to be highlighted if a longclick is performed (so to say: only during the context menu bar is displayed above... | java android | [1, 4] |
1,079,726 | 1,079,727 | jQuery Deconstruction | Init()'s constructor property set to jQuery? | <p>Regarding <a href="http://code.jquery.com/jquery-latest.js" rel="nofollow">latest jQuery</a> - Note I substitute aliases to make the code more readable.</p>
<p><code>jQuery()</code> </p>
<p>will call a method which does:</p>
<pre><code>new jQuery.prototype.init()
</code></pre>
<p>and inside this method the const... | javascript jquery | [3, 5] |
1,254,505 | 1,254,506 | jquery form name selector not working when passed as a parameter | <p>I have a function which takes 4 parameters i.e form name, class of button , function , eventType
all i want to do is select the element button of the form and call the function accordingly but it doesnt work for me
<strong>Works when i hard code the form name and button class</strong></p>
<pre><code>registerFormEve... | javascript jquery | [3, 5] |
3,062,380 | 3,062,381 | To verify that any item has been selected using Jquery Selectors | <p>I have a situation like this,
Iam trying to select a label using Id selector and sets its value..Due to some reason it doesnt seem to be working</p>
<pre><code> $(document).ready(function () {
$("#Label3").val("hii");
});
</code></pre>
<p>How do I verify that <code>$("#Label3")</code> ... | javascript jquery | [3, 5] |
3,686,291 | 3,686,292 | How to share html content from a webview? | <p>Please tell me how to share the Contents of webview. I have used <strong>myjavascriptinterface</strong> class for registering, but I don't where the contents of webview is stored. please guide properly so that i can understand properly the usage my javascriptinterface class.</p>
| java android | [1, 4] |
5,958,258 | 5,958,259 | jQuery: Get reference to click event and trigger it later? | <p>I want to wrap an existing click event in some extra code.</p>
<p>Basically I have a multi part form in an accordion and I want to trigger validation on the accordion header click. The accordion code is used elsewhere and I don't want to change it.</p>
<p>Here's what I've tried:</p>
<pre><code> //Take the click... | javascript jquery | [3, 5] |
4,557,385 | 4,557,386 | jQuery .ready() automatically defining variables for each element with ID in DOM | <p>I have noticed some unexpected behaviour when using the jQuery <code>.ready()</code> function, whereby afterwards you can reference an element in the DOM simply by using its ID without prior definition:</p>
<pre><code><html>
<script src="jquery.js"></script>
<script>
$(document).read... | javascript jquery | [3, 5] |
643,981 | 643,982 | Organising code that includes php and javascript files | <p>I have a website where I am including a php library file and a javascript library file. I have condensed the problem to the following files:</p>
<p><strong>index.php</strong></p>
<pre><code><?php
include('constants.php');
?>
<html>
<head>
<script type="text/javascript" src="lib.js">... | php javascript | [2, 3] |
2,999,072 | 2,999,073 | How to save innerhtml to text file, html file on some folder using java script? | <p>I am using .aspx page, i want to save some data on button click, which i extracted using function</p>
<pre><code> function save() {
var t1 = document.getElementById('test').innerHTML;
alert(t1);
}
</code></pre>
<p>to .text file, .html file some folder on desktop.
the folder should a... | javascript asp.net | [3, 9] |
4,113,044 | 4,113,045 | How to format 2010-11-24 date in C#? | <p>I am using </p>
<pre><code>((DateTime)newsItem.Date).ToString(@"yyyy MM dd")
</code></pre>
<p>which gives me 2010 11 24 but not 2010-11-24.</p>
<p>I want dashes in between the numbers of date.</p>
| c# asp.net | [0, 9] |
2,052,826 | 2,052,827 | no action is firing on Next button in android web browser | <p>I am using type="tel" attribute for numbers dialpad in adroid browser. My Problem is the "Next" button is not working in the keypad.</p>
<p>How to workout on the "Next" button. Please suggest me. Is it possible with javascript? Thanks</p>
| javascript android | [3, 4] |
3,543,514 | 3,543,515 | Applying jQuery function to dynamically added item | <p>My question is basically <a href="http://stackoverflow.com/questions/1240184/applying-jquery-function-to-dynamically-added-item">the same as this one</a> (which never got properly answered).</p>
<p>How can I use a jQuery function on an item I add dynamically?</p>
<p>Specifically, I want to use the <a href="http://... | javascript jquery | [3, 5] |
796,262 | 796,263 | JQuery children element set event | <p>Im trying to create an event for each (a) element in a list (ul). But im doing something wrong</p>
<pre><code>function EnableAjaxOnMenu(ElementID, TagName) {
var elm = jQuery("#" + ElementID).children(TagName).click(function () {
GetPageByUrl(jQuery(this).attr("href"));
//ChangeSelectedMenuIte... | javascript jquery | [3, 5] |
4,797,477 | 4,797,478 | Run code over and over | <p>In my application I am showing a clock in a <code>TextView</code>, and I want to update it in real time. I tried to run it like this:</p>
<pre><code>public void clock() {
while(clock_on == true) {
executeClock();
}
}
public void executeClock() {
TextView timeTv = (TextView) findViewById(R.id.ti... | java android | [1, 4] |
5,484,788 | 5,484,789 | Using JQuery, how do I turn a .click() event into something that happens with no user action? | <p>I'm currently working with the following code:</p>
<pre><code>$("li.className").click(function () {
$(this).fadeTo(1000, 0);
});
</code></pre>
<p>which turns the <code><li></code> opacity down on click. How do I make this happen with no user interaction at all, such as when the page loads or after a certa... | javascript jquery | [3, 5] |
4,522,617 | 4,522,618 | Get the ID for an element when in status MouseOver | <p>I have an element with event <code>onMouseOver</code>. I need to get the ID for the element when the event is fired.</p>
<p>Here my HTML structure:</p>
<pre><code>'<div id="see_all" class="btn_backtostart_catview">' +
'<div class="btn_backtostart_slice_l_catview"></div>' +
'<div class... | javascript jquery | [3, 5] |
3,094,951 | 3,094,952 | Creating asp.net website dynamically on the fly | <p>I have an ASP.NET website
I need some tool that generate copy of this site on server with a small changes in web.config file.</p>
<p>For example: user fill in small form and it creates for him a new copy of this site with db on the server.</p>
| c# asp.net | [0, 9] |
4,955,663 | 4,955,664 | Why in ViewHolder pattern should the ViewHolder class be static? | <p>I am just trying to have a better understanding of the following pattern I regularly use to optimize <code>ListView</code></p>
<p>My readings only pointed me to the fact that a static inner class is treated as top level class. What is the benefit of such a thing compared to a member class (non static)?</p>
<pre><c... | java android | [1, 4] |
4,035,948 | 4,035,949 | Call URL before closing of Browser Window | <p>I want to call an URL in the unload-Function of a Webpage but in the unload-function the get request is not working. My code looks like this:</p>
<pre><code>$(window).unload( function () {
jQuery.get("someurl")
} );
</code></pre>
<p>We want to be informed about the closing of the window for some logging of use... | javascript jquery | [3, 5] |
3,532,868 | 3,532,869 | Calling javasript function inside a jquery generate <a href> | <p>I have a problem with this piece of code:</p>
<pre><code>$(document).ready(function() {
$('.notActiveId').change(function() {
if ($(this).attr('value').length === 0 ) {
$("#notActiveButton").html('');
} else {
$("#notActiveButton").html('<a href="javascript:void(... | javascript jquery | [3, 5] |
2,792,277 | 2,792,278 | How do I get a Font from a string? | <p>In the the <code>System.Web.UI.DataVisualization.Charting.Chart</code> control a font can be set by referring Font by it's family name. How do I do something similar in code?</p>
<pre><code> <asp:Chart runat="server">
<legends>
<asp:Legend Font="Microsoft Sans Serif, 8.25pt, style=Bold"... | c# asp.net | [0, 9] |
1,091,188 | 1,091,189 | Is Python-based software considered less-professional than C++/compiled software? | <p>I'm working on a plugin for some software that I'm planning on selling someday. The software I'm making it for has both a C++ SDK and a Python SDK.</p>
<p>The C++ SDK documentation appears incomplete in certain areas and isn't documented that well.</p>
<p>The Python SDK docs appear more complete and in general are... | c++ python | [6, 7] |
3,189,871 | 3,189,872 | What is the best control to use to display items from a database? | <p>I'm writing a website that will sell items from one of my classes. It will be linked to a SQL Server db where I will pull pricing, item name, quantity and description. If I wanted to display the items from the database in a thinkgeek fashion, what would be the best control to use so I can custimize the display to ac... | c# asp.net | [0, 9] |
455,931 | 455,932 | Handling 404's better in .NET | <p>As some of you guys are running some pretty big sites I wanted to get your opinion on handling 404’s. I have tried loads of different setups with .Net but can never actually get it to do the right thing. I always seem to get some kind of redirect or false header returned, never a 404. This is a real pain because sea... | c# asp.net | [0, 9] |
2,499,512 | 2,499,513 | jquery : time operations | <p>I have 2 time inputs as 7:07:02 and 7:00</p>
<p>How can I find the difference between these two,I prefer to use jquery, Is there any jquery plugins available for this ? ( please let me know if you know other solutions for this )</p>
<p>Thanks a lot </p>
| javascript jquery | [3, 5] |
4,425,520 | 4,425,521 | Detect if Android app has been installed on the device using a mobile web page - PHP and JS | <p>I have a requirement like this and something similar to that has been implemented by Android Pit app-store.</p>
<p>I need to check if the Android app has been installed on the device using a mobile web page (PHP and JS), and if installed launch the app immediately.</p>
<p>These are the intermediate pages used by A... | php javascript android jquery | [2, 3, 4, 5] |
4,308,039 | 4,308,040 | Shoutbox Multiple Windows/tabs not displaying all shouts | <p>I have a problem with my Shoutbox, when you have say 2 tabs open on your Web Browser and you are sending / receiving messages..
This is an issue in all Browsers.</p>
<p>Problem: It shares the messages between both tabs so you see some shouts in one tab and some in the other.. Never all of them in either of both ta... | php jquery | [2, 5] |
2,986,661 | 2,986,662 | Image as TabIndicator | <p>using a image as tabIndicator it always appears at the center i want it to take up the whole space available in that tab can I make it something like fill parent ???</p>
| java android | [1, 4] |
5,378,947 | 5,378,948 | Detect the row and get the td value using javascript. (Dynamic table) | <p>I totally want to avoid using inline javascript! But i have a table which is being dynamically generated from a mysql database using php. I want that if a user clicks on any of the rows it creates a modal with the information about the clicked row. Now i am able to initialise the modal, however the first column of t... | javascript jquery | [3, 5] |
2,457,685 | 2,457,686 | Jquery open url in new tab | <p>I'm making a personal script to search google in another language and I've got a url that I've passed from a php script. I want to use jquery to open that url in a new tab (only in google chrome).</p>
<p>I tried:</p>
<pre><code> window.open("http://localhost/123", '_blank');
</code></pre>
<p>It unfortunately Ope... | javascript jquery | [3, 5] |
5,783,752 | 5,783,753 | javascript read php function | <p>How to make this working. javascript should read the php value by return and disply it.</p>
<p>thank you,</p>
<pre><code><html>
<body>
<script type="text/javascript">
var _date = "<?=
$xml = new DOMDocument();
$xml->load( 'http://web.com/public.xml' );
$elements = $xml->getEleme... | php javascript | [2, 3] |
2,759,425 | 2,759,426 | Can I assign the value like this? | <pre><code> Exactly I ned to do something like this is this possible?
<%
var Controller = null;
if (Model.ID== "ABC")
{
Controller = "Name";
}
else
{
Controller = "Detail";
}
%>
<% using (Html.BeginForm("edit", Controller, FormMethod.Post, new { @id="exc-" + Model.SID}))
... | c# asp.net | [0, 9] |
2,546,233 | 2,546,234 | C# ASP.NET and javascript onclientclick function not found | <p>I have a link button and javascript setup like so</p>
<pre><code><asp:LinkButton ID="lnkbutton"
CssClass="Button"
OnClientClick="javascript:PlayVideo();"
runat="server">Play Video</asp:LinkButton>
<script type="text/javascript">
funtion PlayV... | c# javascript asp.net | [0, 3, 9] |
1,661,475 | 1,661,476 | javascript executed from server side in java? | <p>I was looking for real information about this, I am working some system on Java EE, I worked all my life on web, now I am getting into systems, my boss told me he makes javascripts works from "server side" to manage polls and stuffs, still I didnt think was right and I told him I thought javascript was only executed... | java javascript | [1, 3] |
4,186,567 | 4,186,568 | attempt to change type="button" to hyperlink | <p>the following code works for my button, which displays an image when clicked:</p>
<pre><code><input type="button" onclick='javascript:showImg("<%# FieldValue %>")' />
</code></pre>
<p>I want to change this to a hyperlink 'display' but the following code doesnt work.</p>
<pre><code><asp:HyperLink ID... | javascript jquery asp.net | [3, 5, 9] |
3,374,658 | 3,374,659 | Javascript/Jquery simple user experience functions | <p>I am starting to write some javascript for my site to create a better user experience but i am getting a little confused on what exactly is happening, and maybe it is clearly evident to someone else what I am doing wrong or missing. I have two javascript functions that work perfect after the first time of use and if... | javascript jquery asp.net | [3, 5, 9] |
314,009 | 314,010 | How to call javascript function of a web browser control of C#? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1437251/calling-a-javascript-function-in-the-c-sharp-webbrowser-control">Calling a Javascript function in the C# webBrowser control</a> </p>
</blockquote>
<p>I want to call a JavaScript function through C#, usin... | c# javascript | [0, 3] |
5,205,881 | 5,205,882 | What is the proper way to include code from an external file in ASP.NET? | <p>I've been using PHP for years to build websites. Often I will use an include to bring in, say a navigation menu:</p>
<pre><code><?php include 'includes/nav.php'; ?>
</code></pre>
<p>I am much more of a novice when it comes to ASP.NET (C#). I am wondering what is the correct (and most efficient) way of doin... | c# asp.net | [0, 9] |
4,432,699 | 4,432,700 | Are Java and C# as "customizable" as Python? | <p>At the time of asking, I am using Python most of the time, and I have not used Java or C# much, although I have a (basic) idea of how they work. I am thinking to possibly start to use Java or C# more, but it seems from the little I know about them that they aren't as "customizable" as Python, but I may be wrong.</p>... | c# java python | [0, 1, 7] |
3,460,095 | 3,460,096 | Print PDF file to default printer on client side using Jquery or javascript | <p>I am creating an PDF file to print badges for Cloud Based application. Until now it's fine.</p>
<p>Now I need to print this PDF file on client side default printer. As they are using DYMO printer. My code is not supporting the dymo printer.</p>
<p>So is there any code, using javascript or jQuery to do this? .</p>
... | javascript jquery | [3, 5] |
904,642 | 904,643 | handling views by ID | <pre><code>for(id=1;id<=33;id++) {
i = new TextView(this);
i.setClickable(true);
i.setOnClickListener(this);
i.setId(id);
i.setBackgroundResource(R.drawable.yes);
AbsoluteLayout.LayoutParams lp2= new AbsoluteLayout.LayoutParams(abc, abc,abc ,abc);
al.addView(i, lp2);
}
i = (TextView) fin... | java android | [1, 4] |
2,277,802 | 2,277,803 | Incrementing one of the classnames of an element with jQuery | <p>I have a number of div elements with three class names each. There is an image inside each one. They're consecutively numbered (<code>i1, i2, i3</code>...) through class names. The class names are something like <code>"img small i14"</code>. I need to increment the numbers of these class names for each element.</p>
... | javascript jquery | [3, 5] |
3,734,087 | 3,734,088 | is it possiable to call our server side(like gridview events) event from javascript | <pre><code><img src='<%# "ThumbNailImage.ashx?ImID="+ Eval("ImageID") %>' id="ImgShow" runat="server"
align="top" style="border: solid 1px Gray;" height="150"
width="170" onclick="javascript:myFunction();" >
... | asp.net javascript | [9, 3] |
2,397,700 | 2,397,701 | how to make any text file on the client computer? | <p>how to make any text file on the client computer ?</p>
<p>can i get any C# asp.net sample code ?</p>
<p>thanks in advance</p>
| c# asp.net | [0, 9] |
3,850,973 | 3,850,974 | Jquery to append a div and to remove a div | <p>Here is my problem, </p>
<p>I have a select box where i need to validate if the val() becomes 0, then append a text insed a span with class error stating that 'Please select a value'. Else need to remove that div. These happens when i click the submit button. Here is my code, </p>
<pre><code>if ($('.combo option:s... | javascript jquery | [3, 5] |
2,237,721 | 2,237,722 | using master page | <p>I have master page in asp.net.i want to display user in master page but in my knowledge master page is loading once at a time.How it possible when Session["User"] only get when login attempt.But master page is already loaded. </p>
| c# asp.net | [0, 9] |
2,810,397 | 2,810,398 | Need a javascript equivalent for java URL and URL connection class | <p>If we need to read the content of the webpage, using a java URL and URL connection class we can read the contents of the webpage by providing url. This can be done at the server side. I want to do the same at client side using javascript or jquery,..</p>
<pre><code>import java.net.*;
import java.io.*;
import java.u... | javascript jquery | [3, 5] |
3,226,428 | 3,226,429 | jQuery response saved as PHP variable | <p>I have a php page which generates links based on results from an "USERS" table, "NAME" row.
I'm using a jQuery tooltip so that a div appears when those links are hovered.
When the hover happens, I am able to get the link's text using <code>$(this).text()</code>, however, I don't seem to be able to parse the result s... | php javascript jquery | [2, 3, 5] |
2,464,745 | 2,464,746 | message box show in asp.net problem | <p>I have an email compose page. When the user clicks on the "Send" button, if there is any error, the page is redirected to an error page. If the email is sent out successfully, it displays a javascript alert message. The way it's done now is using a label control, LblMessage.Text="alert('Your email has been sent succ... | c# asp.net | [0, 9] |
792,386 | 792,387 | How to retrieve the image in javascript | <p>I have one url , which returns an image tag.Now i need to call this url using javascript , and embed this return under a div tag.
I was trying $.get(), but "data" is returning some text.How to retrieve the image in javascript.
note: pls provide sln with javascript/jquery.</p>
<p>Edit: data returns GIF40 or soem th... | javascript jquery | [3, 5] |
5,510,920 | 5,510,921 | Jquery show div after form post | <p>I have a link on a page that toggles the visibility of a div. The div contains filter options for a form, which is posted. I would like to retain the filter visibility after a post; so if its open before post, it remains open after post.</p>
<p>Here is my script code so far:</p>
<pre><code>$(document).ready(functi... | php javascript jquery | [2, 3, 5] |
3,391,709 | 3,391,710 | .jar won't run when launched from C# program | <p>I'm using C# to develop some programs for Kinect. C# doesn't have anything as good as Java's Robot for simulating Keystrokes or Mouse movements, so I'm using Java for that. At the moment, I'm creating .jar files and trying to run them from the C# application (although I'm suspicious that there's a better way to do i... | c# java | [0, 1] |
1,982,697 | 1,982,698 | Passing multiple Eval parameters to a JavaScript function from ASPX | <p>I already know how it works with a single parameter </p>
<pre><code>OnClientClick='<%# String.Format("confirm_ticket({0});return false;",DataBinder.Eval(Container,"DataItem.idAgir"))%> '
</code></pre>
<p>but is it possible to pass 2 parameters?</p>
<p>thanks in advance</p>
| c# javascript asp.net | [0, 3, 9] |
1,581,323 | 1,581,324 | jquery basic of dollar sign - named vs anonymous | <p>I have a couple of interview questions</p>
<ol>
<li><p>What is the different between <code>$(function(){});</code> and <code>$(document).ready(function(){});</code></p></li>
<li><p>What is the difference between <code>$(function(){});</code> and <code>var func=function(){};</code> How are each of them called?</p></... | javascript jquery | [3, 5] |
263,642 | 263,643 | Method in WebUserControl is called many times | <p>I have a method in WebUserControl which is called twice in my code once from the Page_load event of WebUsercontrol (Inside !isPostback) and second in the page_Load event of Page where this WebUserControl is used (again in !ispostback).</p>
<p>But I kept a breakpoint on this method and observe that this is called a... | c# asp.net | [0, 9] |
1,571,909 | 1,571,910 | jquery preloading multiple images | <p>I managed to do preloding of 1 image like this:</p>
<pre><code>var img = new Image();
$(img).load(function () {
//do something after
}).attr('src', response.image1);
</code></pre>
<p>How can I make the same for multiple pictures. Let's assume that my response is a json object which has several image sources.
... | javascript jquery | [3, 5] |
2,526,828 | 2,526,829 | How to respond to mouse button clicks in Javascript? | <p>I want to be able to write code to respond (seperately) to the following events:</p>
<ol>
<li>Right hand click</li>
<li>Left hand click</li>
<li>Middle button click (optional - nice to have but I can live without this).</li>
</ol>
<p>Is there an inbuilt way in Javascript that I can respond to these events, or do I... | javascript jquery | [3, 5] |
2,411,654 | 2,411,655 | Is it impossible to make an Android game stutter-free? I am going crazy here | <p>I have been working on an Android game for the past 6 months or so, and have posted on here several times about various lag issues that I cannot get rid of.</p>
<p>I ended up grabbing the LunarLander example and stripping it down to its very core components to see if I could make anything at all that doesn't lag. A... | java android | [1, 4] |
103,025 | 103,026 | Set up Notifications in Android application? | <p>I have app for job search, it works over httppost to activate PHP function and get filtered(depends what kind of search user choose)data(JSon format) from mysql database on server. <br/>
What I want to do now is to put one checkbox for notifications, and if user check it before click on search, to be able to get not... | java android | [1, 4] |
3,456,628 | 3,456,629 | Retrieving month name with the month number | <p>I'm modifying a calendar and there is a case where I'm given a month number and I need to compare it with a month name. </p>
<p>Of course, I could create a switch statement, but I was wondering if I can obtain the month name from the number or vice versa to do the conditional.</p>
<p>Thanks!</p>
| java android | [1, 4] |
1,432,161 | 1,432,162 | jQuery that works in Firefox but not in IE | <p>Ok guys/girls.</p>
<p>Below is some jQuery that runs in Firefox but no IE. I have no idea why it craps out in one and not the other. </p>
<p>Anyone??</p>
<pre><code>function SwapTextAssetforPOS() {
$("*").each(function () {
if ($(this).children().length == 0) {
$(this).text($(this).text... | javascript jquery | [3, 5] |
927,159 | 927,160 | Adding jQuery to a 3rd party page fails | <p>I am trying out a few things, and among those I tried to insert jquery on a site, namely, <a href="http://www.tesco.com/wine" rel="nofollow">http://www.tesco.com/wine</a>. </p>
<p>For some reason, I was not able to able access jQuery even though I was able to successfully append a new script tag to the body element... | javascript jquery | [3, 5] |
3,832,439 | 3,832,440 | jquery image gallery slide animation | <p>I am trying to make a simple image gallery like this. <a href="http://dimsemenov.com/plugins/royal-slider/#image-gallery" rel="nofollow">http://dimsemenov.com/plugins/royal-slider/#image-gallery</a> When I click a thumbnail image, image element will create and loading image will appear a little time and created el... | javascript jquery | [3, 5] |
1,873,864 | 1,873,865 | Selecting all elements | <p>This should be really simple but I'm a javascript/jQuery rookie, so here we go:</p>
<p>With the following code I can select a certain element</p>
<pre><code>var user = $(".ui-selected .user-name").html();
</code></pre>
<p>But if there are multiple elements with the above classes, only the first value gets selecte... | javascript jquery | [3, 5] |
2,152,225 | 2,152,226 | how does form authentication work in asp.net? | <p>Please any one help me... i am new in asp.net...</p>
| c# asp.net | [0, 9] |
3,856,800 | 3,856,801 | How to add new items in our project dynamically from our program? | <p>Is there is any method to add new items or existing items in our project from our program?</p>
<p>For example:
if i need to add example.aspx page from my program then how to add it?? And it should save in solution explorer.</p>
| c# asp.net | [0, 9] |
147,178 | 147,179 | How to get the highlighted texts? | <p>I am trying to get the selected texts from the user(the highlighted text that user highlights).</p>
<p>I have the following:</p>
<pre><code>function getSelectedTexts(){
var t = '';
if(window.getSelection){
t = window.getSelection();
console.log('1');
}else if(document.getSelection){
t = document.... | javascript jquery | [3, 5] |
2,501,049 | 2,501,050 | how to use ISynchronizeInvoke to communicate with a device? | <p>I have a finger print scanner and it's SDK (brand : Suprema BioMini usb device).
they have provided some sample C# codes for <strong>windows form</strong> applications.
To initialize device following code segment is used,</p>
<pre><code>UFScannerManager ScannerManager;
ScannerManager = new UFScannerManager(this);
<... | c# asp.net | [0, 9] |
1,222,611 | 1,222,612 | fetch values from cross browsers cookie | <p>Can we Fetch Values from Cross Browser Cookie ???
For Example USer Can use mozilla or chrome or any other browser </p>
<p>when we <code>print_r($_COOKIE);</code></p>
<p>All Browsers Cookie Will Print. </p>
| php javascript | [2, 3] |
3,653,676 | 3,653,677 | handling a POST request | <p>I am trying to POST some data but I am not achieving what I need to. </p>
<p>No matter what <code>list-item</code> I click on, it is POSTing the value of the top most <code>list-item</code>. </p>
<p>this is the jquery function: </p>
<pre><code>$(".list-item-wrap a").click(function(){
$.post("display2.php", { ... | php javascript jquery | [2, 3, 5] |
5,478,961 | 5,478,962 | Remote poll using jQuery/javascript | <p>I want to let my users create their own polls so they could paste my code somewhere on their website and users may rate their own game characters (with 1-5 stars rating).</p>
<p>I want to use jQuery or javascript for this purposes, but I have no idea how to start developing something like that. It should be free fr... | javascript jquery | [3, 5] |
1,745,290 | 1,745,291 | JavaScript and JQuery - Encoding HTML | <p>I have a web page that has a textarea defined on it like so:</p>
<pre><code><textarea id="myTextArea" rows="6" cols="75"></textarea>
</code></pre>
<p>There is a chance that a user may enter single and double quotes in this field. For instance, I have been testing with the following string:</p>
<pre><c... | javascript jquery | [3, 5] |
4,247,486 | 4,247,487 | jQuery Parent Class Attribute | <p>I want to add a slide up affect with jQuery to a DIV when a link inside of the DIV is clicked, but the problem i am running into is the class of the DIV's are defined by a loop. So, i can't define the DIV class in the jQuery line, because each DIV class is different and i cannot determine ahead of time what they are... | javascript jquery | [3, 5] |
716,875 | 716,876 | How to pass data while setting HttpResponse.RedirectLocation with c# in 3.5 framework | <p>I am doing a SEO-friendly redirect, using Visual Studio 2008 (I am stuck on this version) like so:</p>
<pre>
public static class RedirectExtension
{
public static void RedirectPermanent(this HttpResponse response, string pathUrl)
{
response.Clear();
response.Status = "301... | c# asp.net | [0, 9] |
4,478,199 | 4,478,200 | Losing DropDownList value on postback | <p>I have the following drop down list:</p>
<pre><code><asp:DropDownList runat="server" ID="ddlShipping" CssClass="shippingMenu" AutoPostBack="true">
<asp:ListItem Text="3-5 working days (£12.50)" Value="" />
<asp:ListItem Text="3-5 working days - Pre-Midday (£25)" Value="" />
<asp:Lis... | c# asp.net | [0, 9] |
334,007 | 334,008 | Consolidating jQuery functions with multiple named selectors | <p>I'm looking for a techniuqe similar to a switch function in PHP so I can use a single function for multiple named selectors. Additional code would be added based on which selector calls the function.</p>
<p>My example is a 'Save' button along a 'Save And Close' button where the latter has additional code to close a... | javascript jquery | [3, 5] |
5,881,082 | 5,881,083 | jQuery keyup only keys that affects textarea content | <p>How can I detect if the value of a textarea changes using jQuery? I'm currently using keyup() but this triggers every key stroke of course, I dont want my code to run if it's an arrow key that was pressed or any other key that doesn't have an impact on the value of the textarea.</p>
<p>Take a look:</p>
<pre><code>... | javascript jquery | [3, 5] |
815,118 | 815,119 | how to find the vertical distance from top in px of an element using jQuery | <p>How do I find the vertical distance from the top of the page to where the element exist in the DOM using javascript/jQuery?</p>
<p>I've something like</p>
<pre><code><ul>
<li>one</li>
<li>one</li>
<li>one</li>
<li>one</li>
<li class="test... | javascript jquery | [3, 5] |
5,055,083 | 5,055,084 | How to send data from a C# ASP.NET Web Page to a java webservices | <p>I have created a C# ASP.NET web page(Front End) to collect information from user and I would like to know how to send the information to a java web services to process the information which is from the web page?</p>
| java asp.net | [1, 9] |
1,695,968 | 1,695,969 | Creating admin page in asp.net application | <p>I am considering best option to create multi-purpose admin page in my asp.net application. In that section should be searching users in database, adding users, review single users or whole groups, etc. I have two ways, how to do it:</p>
<ol>
<li><p>create single page for every option. It means: on first page will b... | c# asp.net | [0, 9] |
5,381,406 | 5,381,407 | AsyncFileUpload Change Request Size | <p>I am currently working on an ASP.net C# web app. I am using the AjaxControlToolkit ASyncFileUpload, however, when I upload a certain file I get the error message Maximum Request Length Exceeded. Is there a way that I can increase the size limit for file uploads.</p>
<p>Thanks for any help you can provide. </p>
| c# asp.net | [0, 9] |
2,764,509 | 2,764,510 | How to get a time stamp posted? | <p>Hi I am trying to get a time stamp in the format of "posted: ten minutes ago" or "posted yesterday" or "posted three days ago" etc. I want to have an activity with a button and when the button is clicked I want to open a new activity and display the time stamp in the format I explained in the new activity. This i... | java android | [1, 4] |
3,966,190 | 3,966,191 | destroy $_SESSION after cliking 'Cancel' button | <p>I would like to destroy $_SESSION['userList'] after cliking 'Cancel' button. However, the $_SESSION['userList'] is destroied when page load.</p>
<p>Below is my code:</p>
<pre><code><a href='#' class="btn" onClick="resetForm()"><span>Cancel</span></a>
<script type="text/javascript">
... | php javascript | [2, 3] |
5,238,036 | 5,238,037 | Whats the best way to run a time consuming script in ASP.NET at regular intervals on shared hosting? | <p>I would like to run a time consuming script (to update a database from a 3rd party API) at regular intervals. I was wondering what the best practice for this would be:</p>
<ol>
<li>What should the 'script' be - an ASP.NET service? Bearing in mind I am on shared hosting, this may not be possible (but I would like to... | c# asp.net | [0, 9] |
3,141,388 | 3,141,389 | Function to look through folder and use a wildcard | <p>been a lurker on Stack Overflow for a while, love the site.</p>
<p>Now its my turn. From the code below, i am making the background image random each time the page loads.</p>
<p>Would anyone be so kind as to help me make this more efficient so that i don't have to manually enter my filenames ? Im looking for some ... | javascript jquery | [3, 5] |
5,590,255 | 5,590,256 | Select form option on page load | <p>I would like to select the option contained within a php variable on page load.</p>
<pre><code><?php
$pre = 78;
?>
<select id="form8" name="form8">
<option value="15">15</option>
<option value="25">25</option>
<option value="64">64</option>
<option value="78">7... | php javascript jquery | [2, 3, 5] |
3,189,317 | 3,189,318 | what is the "===", and whats the big difference between it and the "==" | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/359494/javascript-vs-does-it-matter-which-equal-operator-i-use">Javascript === vs == : Does it matter which “equal” operator I use?</a> </p>
</blockquote>
<p>whats does the <code>===</code> mean when... | javascript jquery | [3, 5] |
1,708,333 | 1,708,334 | Jquery - Difference between internal & external jquery files | <p>I have a html page with 1000+ lines of jquery. The page loads and works fine. </p>
<p>Is it correct to write 1000+ lines of jquery within a page? Or should create an external <code>.js</code> file(s) & call these from my html?</p>
<p>Which one is best? Thanks in advance...</p>
| javascript jquery | [3, 5] |
5,488,333 | 5,488,334 | access textfield values from java script in php | <p>function addRow(tableID) {</p>
<pre><code> var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var cell1 = row.insertCell(0);
var element1 = document.createElement("input");
element1.type = "text";
... | php javascript | [2, 3] |
4,102,251 | 4,102,252 | Using a variable into a string | <p>I just want to insert the variable $src (it fetches the url of an image)</p>
<pre><code>$src = $('a[class="button"]').attr("src");
</code></pre>
<p>into this string</p>
<pre><code>$("a[class=panel]").append("--wanna insert $src here--");
</code></pre>
<p>How can I do this?</p>
| javascript jquery | [3, 5] |
5,461,736 | 5,461,737 | J-query J-player is not auto playing | <p>I have used jPlayer in my music site .The actual songs data in dynamic.It is been adding on user checks from 10 listed songs on every page.jPlayer is getting added with the playlist but not autoplaying.when i'm clicking manually only it is getting palyed.
I tried with playItem= 0,playItem= 1,playItem= 2...etc.,</p>
... | php javascript jquery | [2, 3, 5] |
4,346,601 | 4,346,602 | How can I get the Clipboard text in Mozilla, Not setting text to clipboard | <p>I am performing a search operation like Ctrl+F in a web page with some improvements like searching multiple items once and auto cleaning text etc..<br>
But in IE i can get the clipboard text easily.. But the problem is.. As our previous tools are developed in Mozilla I am looking to make this also in mozilla. </p>
... | javascript jquery | [3, 5] |
2,270,890 | 2,270,891 | ASP.NET - How To View MS Word File from server, edit then save on server? | <p>I have developed an (C#) asp.net web application based on document management
and I want to view the selected ms word file from server files on the client machine then when the client save the selected file, It will be saved back on server.</p>
| c# asp.net | [0, 9] |
4,934,781 | 4,934,782 | Making a phonecall from a AlertDialog | <p>Hi I've got a AlertDialog that shows the users some information and two buttons "yes" or "no". If the user press "yes" the application should call a specific number, but the application crashes. My sourcecode:</p>
<pre><code>new AlertDialog.Builder( this )
.setTitle( "" )
.setMessage("")
.setPositiveBut... | java android | [1, 4] |
1,760,515 | 1,760,516 | How to create friends and status updates using App engine | <p>Hi guys i posted a question earlier related to this topic but i believe the question was to broad. So this time i will try to be more specific.</p>
<p>I would like to use Google's AppEngine to create a social networking environment for my app.</p>
<p>For example, it will allow a user to log in, see friends status,... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.