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 |
|---|---|---|---|---|---|
1,251,183 | 1,251,184 | ASP Chart with multiple X axis columns | <p>I have an SQL table with two columns, salesperson and status. The status can be one of three things, gold, silver and bronze.</p>
<p>How do I go about creating a chart where the salesperson name appears once along the x-axis but has three columns above their name for a count of each status?</p>
<p>Thanks,
Jonno</p... | c# asp.net | [0, 9] |
1,572,136 | 1,572,137 | jquery search each table row for a particular td | <p>Consider there's a table with rows to which a <code>td</code> with class <code>x</code> is added by jqeury on the fly (during DOM manipulation). Later when the user sumbit's this table (table being part of a form), i want to search all the rows for existence of this particular <code>td</code>. If this <code>td</code... | javascript jquery | [3, 5] |
1,741,598 | 1,741,599 | Passing additional arguments into the OnClick event handler of a LinkButton using Javascript | <p>I have a ASP.NET Website, where, in a GridView item template, automatically populated by a LinqDataSource, there is a LinkButton defined as follows:</p>
<pre><code><asp:LinkButton ID="RemoveLinkButton" runat="server" CommandName="Remove"
CommandArgument='<%# DataBinder.GetPropertyValue(GetData... | asp.net javascript | [9, 3] |
6,028,441 | 6,028,442 | Cost of creating objects in JavaScript/JQuery | <p>Could someone please compare and contrast between the costs of creating objects in JavaScript/JQuery and a simple variable declaration? </p>
<p>For Example:</p>
<pre><code>var G = {}
G.obj = (function(){
var x = 10; //'private' attribute, can be accessed internally only
G.y = 20; //'public' prop... | javascript jquery | [3, 5] |
2,288,454 | 2,288,455 | Listview with image from the gallery | <p>I have a 'contacts' application within my app and I would like to be able to set an image against a persons name within the listview. </p>
<p>How can I select a picture from the gallery and set this as the image? I've seen loads of examples where the image is loaded into an array but I don't believe this is what I'... | java android | [1, 4] |
3,005,022 | 3,005,023 | categorization of location to | <p>how to categorized location such as office, school etc from address,
For example.
my address is "gigaspace IT park,vimannagar,pune"
How to infer "office" from address.
Is there any model or any text or algorithm available or calculation from the address i need to do that.</p>
| java android | [1, 4] |
3,403,673 | 3,403,674 | Passing JavaScript Variables to PHP Session | <p>Why I do not get any printing on the screen (m1, m2 or m3)?</p>
<p>i.e. how can I pass JavaScript var to PHP Session. </p>
<pre><code><?php session_start(); ?>
<html>
<head>
<script type="text/javascript">
function disp_text()
{
var p = document.myform.mylist.value;
<?ph... | php javascript | [2, 3] |
1,248,799 | 1,248,800 | Object identity in JavaScript | <p>How to check that two variables point to the same object? Meaning that if I mutate it—the value pointed to by both variables will change. In Python there is <code>is</code> operator, what about JavaScript?</p>
| javascript python | [3, 7] |
4,957,129 | 4,957,130 | Clear text inside DIV | <p>I'm using the following HTML structure:</p>
<pre><code><div id="clock">5:30 AM
<div id="day">Wednesday
</div>
<div id="date">14 December
</div>
</div>
</code></pre>
<p>I update the contents of these elements using Javascript. For "day" and "date" I use <code>$("#... | javascript jquery | [3, 5] |
353,049 | 353,050 | why use AlternatingItemTemplate on listview | <p>why use AlternatingItemTemplate on listview and copy code from ItemTemplate to AlternatingItemTemplate?
i can't see logic? You can alternate with css too...</p>
| c# asp.net | [0, 9] |
2,580,256 | 2,580,257 | Why should I learn C#? | <p>I want to know why I should learn C#? </p>
<p>What features does C# have that Java does not?</p>
| c# java | [0, 1] |
2,223,757 | 2,223,758 | JQuery event.stopPropagation() not working | <p>In my html I have a span of class dragHandle embedded within a li. </p>
<pre><code><div class='treeView'>
<ul class='tree'>
<li><span class="dragHandle"></span>Item 1
<ul>
<li><span class="dragHandle"></span>Item 2 <a href="#">link<... | javascript jquery | [3, 5] |
3,878,595 | 3,878,596 | Grab innertext from an anchor serverside | <p>How can I grab the <code><a></code> inner text? Are there any HTML helpers for this to work serverside with ASP.NET webforms? (this is not an MVC app)</p>
<pre><code>Method()
{
string trackingNumber = Database.GetTrackingNumber();
ExtractText(trackingNumber);
}
string GetTrackingNumber()
{
return... | c# jquery asp.net | [0, 5, 9] |
3,396,711 | 3,396,712 | Handling multilanguage with JQuery only | <p>I use JQuery in my web app and I am wondering what the best way to handle multilanguage in that context is.<br>
I was thinking of creating a file like:</p>
<pre><code>label["login"]["fr"]="Connection"
label["login"]["en"]="Login"
</code></pre>
<p>Once the file is loaded I will then do (for each label) a:</p>
<pre... | javascript jquery | [3, 5] |
2,971,790 | 2,971,791 | I want to share image on facebook wall which i have already uploaded in image folder | <p>How to share image on facebook wall by getting path from image folder in asp.net c#.
That means, image that is in image folder,i want to share this image.</p>
| c# asp.net | [0, 9] |
2,346,823 | 2,346,824 | regular expression check if number is whole number or float i think | <p>Hi all I need an if and else statement that checks if two fields which are min and max are numbers and these numbers can be whole numbers like 0 or 12 or they could be 0.50 to 1,300.99 does anyone know how to check for numbers my code is in the following format:</p>
<p>jQuery:</p>
<pre><code>$(document).ready(func... | javascript jquery | [3, 5] |
579,723 | 579,724 | Jquery Rollovers, issue with click state | <p>Excuse my noobiness when it comes to Jquery, but I have some jquery code that does rollovers for me:</p>
<pre><code>$("img.rollover").hover(function () {
this.src = this.src.replace("_off","_on");
},
function () {
this.src = this.src.replace("_on","_off");
});
</code></pre>
<p>Essentially just switchi... | javascript jquery | [3, 5] |
2,524,917 | 2,524,918 | creating checkbox in Asp.Net | <p>I created a gridview control editmode but now I want to create a checkboxlist and save values in database. How do I to create CheckBoxlist in a gridview editmode?</p>
| c# asp.net | [0, 9] |
3,711,814 | 3,711,815 | Jquery .each() - return value undefined | <p>Why getColorOptionSelect() return undefined value (I'm sure it has a value by debugger ).</p>
<p>It is for sure an issue related to the scope, sorry for my js ignorance </p>
<pre><code>jQuery(document).ready(function () {
colorSelectID = getColorOptionSelect();
alert(colorSelectID);
function getColor... | javascript jquery | [3, 5] |
361,190 | 361,191 | jQuery $('form').serialize() returns only one element of a form serialized | <p>Given the following form:</p>
<pre><code><form id="form" name="form">
<input name="name"/>
<input name="version"/>
<input name="template"/>
<textarea name="elements"></textarea>
<textarea name="features"></textarea>
<textarea name="layout"></textarea>
<... | javascript jquery | [3, 5] |
5,018,494 | 5,018,495 | Uncaught ReferenceError when executing on different computer | <p>The below script works fine on one of my computers but when executing it on another I get <code>uncaught referenceerror $ is not defined</code>. It is the same error on another similar page. Also it says unable to load resource of the ajax.google... source.</p>
<pre><code><script src="http://ajax.googleapis.com/... | javascript jquery | [3, 5] |
1,784,306 | 1,784,307 | What is the equivalent of header('Refresh: 2, blah.php') in jquery | <p>I wonder if there is an equivalent code or any function of jquery that should replace the <code>header('Refresh: 2, blah.php')</code> in php</p>
<p>I tried <code>window.location.href = "blah.php"</code> but doesnt satisfy my needs,..,
I want that after clicking the link it should pause a sometime then redirects,.,.... | php jquery | [2, 5] |
548,332 | 548,333 | Using jQuery to check boxes based on user input (to another check box) | <p>This is a very simple use of jQuery that I can't get working.</p>
<p>When one check box is checked, I'd like the other to become checked.</p>
<p><strong>HTML:</strong></p>
<pre><code><input onchange="toggleRegion()" id="ESARO" type="checkbox" class="region"
value="ESARO" name="ESARO">ESARO
<br /><... | javascript jquery | [3, 5] |
2,913,960 | 2,913,961 | advice on how to create dynamic controls | <p>My web page will get a set of results from the database and display it to the user. However I am not sure about "number" of results.</p>
<p>Each result will have a panel which contains several controls in itself, an image, several labels, etc.</p>
<p>What is the best way to do this dynamically, eg. create these co... | c# asp.net | [0, 9] |
4,170,321 | 4,170,322 | Getting id then selecting that element - jQuery | <p>I'm often finding myself getting various attributes, such as the id of an element or class, then selecting that element and doing something.</p>
<p>What I do now for example is:</p>
<pre><code> var id = $(this).closest(".item").attr('id');
$('#'+id).hide();
</code></pre>
<p>Is using '#' and including the id th... | javascript jquery | [3, 5] |
3,705,345 | 3,705,346 | how to insert value in input, with javascript | <p>So I tried to do something like this -</p>
<pre><code>$('#price').val(price);
</code></pre>
<p>price is 300, and it shows good on browser, in input field, but when I want to take it out and mail it with PHP, in $_POST['price'] it doesn't show up, How can I insert something in inputs value with JavaScript, so I can... | javascript jquery | [3, 5] |
278,635 | 278,636 | Call js-function using JQuery timer | <p>Is there anyway to implement a timer for JQuery, eg. every 10 seconds it needs to call a js function. </p>
<p>I tried the following</p>
<pre><code>window.setTimeout(function() {
alert('test');
}, 10000);
</code></pre>
<p>but this only executes once and then never again. </p>
| javascript jquery | [3, 5] |
3,427,089 | 3,427,090 | How to automate a click on page load? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7943287/auto-click-on-page-load">Auto click on page load</a> </p>
</blockquote>
<p>I need to click on the specified xy position on a page without clicking it using a mouse. I have tried many jquery and js script... | javascript jquery | [3, 5] |
4,709,470 | 4,709,471 | Which JavaScript function is compatible with PHP urldecode function? | <p>On the server side the PHP code will be using <code>urldecode()</code> function to decode, but the JavaScript code is responsible to encode the URL. Which of the following JavaScript function is compatible with the PHP <code>urldecode()</code> function:</p>
<blockquote>
<ul>
<li>escape() </li>
<li>encodeU... | php javascript | [2, 3] |
2,272,607 | 2,272,608 | Access page controls in jquery | <p>I have a web application in VS 2008. I used jquery for validation of different Forms and used it for other purposes. In VS 2008 I get the IDs of page controls in jquery like Ctl001_.... , but now I have upgraded the application to VS 2010 and now all my page controls are giving error in jquery because its changed it... | jquery asp.net | [5, 9] |
1,322,960 | 1,322,961 | PHP echo return confirm function slashes | <p>Hi i have been using this php echo statement </p>
<pre><code>echo "<a href = 'message_delete_script_outbox.php?id=".$row['id']."'"."onclick='return
confirm(/Are you sure, you want to delete?/)'>Delete</a>";
</code></pre>
<p>The statement is working i am seeing this message /Are you sure, you wa... | php javascript | [2, 3] |
686,140 | 686,141 | check if value exists in 2D array | <p>I have a 2d array in the format</p>
<pre><code>emi_309 | present | weak | 6
emi_310 | present | strong | 9
emi_319 | present | medium | 8
emi_315 | present | weak | 5
</code></pre>
<p>I want to check if a value exists in the first column using a simple function</p>
<p>E.g, check if emi_77 exists in the first ... | javascript jquery | [3, 5] |
5,968,593 | 5,968,594 | Android Gmail App fails to attach my CSV file | <p>The following code works when I attach my csv file to the default email application on android, but does not work when I attach that same file to the gmail application. Does anyone have a solution for the gmail problem?</p>
<pre><code>Resources res = getResources();
FileOutputStream outPut;
... | java android | [1, 4] |
3,778,644 | 3,778,645 | Using jQuery, how do I change the elements html value? (div) | <p>Using a ajax request I want to change content of my div.</p>
<pre><code><div id="d1">202</div>
</code></pre>
<p>So I want to change the content to a different number.</p>
<pre><code>$('d1').InnerText???
</code></pre>
<p>Also, say I wanted to increment the number, how could I do that? Do I have to con... | javascript jquery | [3, 5] |
1,146,770 | 1,146,771 | jquery image slider gallery | <p>I'm trying to add images dynamically im my preview element.So when I click a thumbnails image will load and slide.</p>
<pre><code><div id="imageGallery">
<div id="loading"></div>
<a class="thumbnail"><img alt="Image 1" src="../../baContent/image1.jpg" /></a>
<a cla... | javascript jquery | [3, 5] |
3,156,888 | 3,156,889 | Posting and validating a PHP array using jQuery/AJAX | <p>I have a form that I am trying to post to php using jQuery ajax, and it needs to be validated first.</p>
<p>The field looks like this:</p>
<pre><code><select name="inquirymodule[]" id="inquirymodule[]">
<option value="" selected>Select an Inquiry Module</option>
<option value="1">Module 1&l... | php jquery | [2, 5] |
971,816 | 971,817 | Working on a memory matching game - can you display one image in different ways? | <p>I'm working on a memory matching game. Right now, the game is working fine. However, I now need to work on the part of the game where you actually have to flip the cards over. I first was going to have two sets of images: the "back of the card" and the "front of the card." The backs of the cards were all going to be... | javascript jquery | [3, 5] |
1,612,576 | 1,612,577 | Javascript: Glitch with function | <p>I'm currently trying to make the function below work correctly. Recently added the IF ELSE variables to it, and after the my script no longer works. If I remove it of course, everything goes back to normal, minus that feature of course. What am I doing wrong exactly? Thanks in advance!</p>
<pre><code>var image3 = $... | javascript jquery | [3, 5] |
3,086,246 | 3,086,247 | Capture filled PDF form data | <p>I would like to capture filled PDF form data from public facing website and save it in the database on the server. Is it possible?Please let me know.</p>
| c# asp.net | [0, 9] |
2,301,169 | 2,301,170 | jquery slidedown and hide issue | <p>Please check this code:</p>
<pre><code> var data = $(".others-involved-div-wrapper-tobe-copied").html();
data = '<div class="others-involved-div-wrapper" >'+data+'</div>';
$(".others-involved-div-wrapper:last").after(data).slideDown("slow");
if ($(".others-involved-div-wrapper").length > 1){
... | javascript jquery | [3, 5] |
1,039,237 | 1,039,238 | What is the jQuery equivalent for this method | <p>I need to know how would you call <code>document.body.innerText;</code> and <code>document.body.innerHTML;</code> in jQuery. How does jQuery handle javascript methods that start with document.body...</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
2,044,423 | 2,044,424 | External JS file not finding controls, but work with quickwatch | <p>I have the following code in my aspx file:</p>
<pre><code>var blah = "<%= lblErrorsMain.ClientID %>"
</code></pre>
<p>and here is the external js file:</p>
<pre><code>function ShowShowScans2() {
oWebDialogWindow2 = document.getElementById(blah);
oWebDialogWindow2.set_windowState($IG.DialogWindowSta... | javascript asp.net | [3, 9] |
5,122,350 | 5,122,351 | How can I get the width of the browser in pixels using JavaScript? | <p>I want to set the width of an <code><iframe></code> based on the browser's width and height.</p>
<p>Is it possible to get the browser's width in pixels using JavaScript?</p>
| javascript jquery | [3, 5] |
4,238,404 | 4,238,405 | String extraction with javascript | <p>I'm using jquery and have an entire html page stored in <code>var page</code></p>
<pre><code>var page = '<html>...<div id="start">......</div><!-- start -->....</html>';
</code></pre>
<p>How can I extract only the section that starts with <code><div id="start"></code> all the wa... | javascript jquery | [3, 5] |
777,742 | 777,743 | Defining Types on Class declaration? | <p>Im relatively new to Java, and I recently came across a syntax that I have never seen before.</p>
<pre><code>public class loadSomeData extends AsyncTask<String, Integer, String>{ etc..}
</code></pre>
<p>The part that confuses me is the stuff between the <> brackets. I understand what each of the Types are... | java android | [1, 4] |
946,288 | 946,289 | How to stop slide show hide text and image jumping on top while next slide come in? | <p>This Slide show is running perfect with image and text at same time, but the problem arise when you scroll at bottom and every time your next slide changes or come then its jumps on top, don't no why.</p>
<p>This is the reference link : <a href="http://new.kingspointcap.com/home" rel="nofollow">http://new.kingspoin... | javascript jquery | [3, 5] |
2,410,315 | 2,410,316 | how to stop form submit in when in a ajax call | <p>i can only modify the code in the ajax call
a ajax call made when i click the submit in form named $('#form1')</p>
<pre><code>$('#form1').submit(function(){
$.ajax({
url:'some.php',
type:'POST',
data:somedata,
success:function(msg){
if(!msg){
//i wanna to stop form1 submit here,how to do that? yo... | javascript jquery | [3, 5] |
4,040,355 | 4,040,356 | Jquery loading Webpages | <p>Can I load external Website or Webpages into a DIV tag without using Jquery load(); function, since load() function is using AJAX. but apart from that is there any other simple way to loading Webpages </p>
| javascript jquery | [3, 5] |
1,527,150 | 1,527,151 | Downloading and decompress a zip-file in the background? | <p>I need to download a zip file and unpack it, in the background (in an AsyncTask I'd imagine).</p>
<p>As it is now, I've got a DefaultHTTPClient set up, and a ZipInputStream ready to go, but here's where I am stuck - I have no idea how to use these two together. Here's the relevant code in the AsyncTask:</p>
<pre><... | java android | [1, 4] |
4,846,681 | 4,846,682 | JQuery: zoom text on hover | <p>I want to zoom/unzoom a text with animate. The problem is that the text is absolutely positioned inside a relative div and when I animate the font-size the text expands only to the right and bottom. I want it to expand/retract to all sides equally.</p>
<p>Prepared example: <a href="http://jsbin.com/welcome/48103/ed... | javascript jquery | [3, 5] |
3,677,211 | 3,677,212 | Display the query result in many text boxes | <pre><code>msgid title body sendat
1 new this is body 11/11/2011
2 old ths is is 12/11/2011
</code></pre>
<p>I am doing a query and displaying the message with MSGID 1 in a grid
view. I want to display it in text boxes.</p>
<pre><code> title: new
body: th... | c# asp.net | [0, 9] |
4,162,187 | 4,162,188 | What's the simplest & most efficient way of telling if your code is executing on the client or the server? | <p>I have an ASP.NET (C#) class that is used both on the client and server.</p>
<p>Depending on whether the code is being executed on the client or the server, it needs to behave differently.</p>
<p>What is the simplest & most efficient way of telling if the code is executing on the client or the server?</p>
<p>... | c# asp.net | [0, 9] |
1,363,207 | 1,363,208 | Page Directive Error After Copying Default.aspx From Another Project? | <p>In my web-application (asp.net, C#) in solution explore I copy and paste the default.aspx page which is in the other project. When I run the default.aspx page it is giving error like this</p>
<pre><code><%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="Default" %>
</code></... | c# asp.net | [0, 9] |
3,818,145 | 3,818,146 | conditional statement specifying css property | <p>this is most likely very easy but i'm struggling</p>
<pre><code>$(window).bind("load resize", function(){
var wH = $(window).height();
var wW = $(window).width();
var hwH = (wH) / 2;
// ---- slide size w+h ----
$('.slide').css({'height': (wH) +'px', 'width': (wW) +'px'});
$('#features') .css({'height': (wH+hwH)... | javascript jquery | [3, 5] |
5,537,928 | 5,537,929 | ASP.NET File Download problem | <p>In our application we often have a button that will perform a post back, get data, convert it into excel/PDF, and stream it to the client via Response.Write or Response.BinaryWrite. This works perfectly fine when we are in a popup or not.</p>
<p>We just implemented a new feature that creates a msg file. However, ... | c# asp.net | [0, 9] |
1,567,500 | 1,567,501 | Why must I define a variable outside a javascript function definition? (jQuery / #anchor question) | <p>I am writing a jQuery function that relies on knowing the current #anchor of the page. I am using the jQuery URL Parser plugin to get the anchor.</p>
<pre><code> $.fn.vtabs = function() {
alert("Your anchor is "+$.url.attr('anchor'));
}
</code></pre>
<p>This code gives me the anchor "#nav" endlessly (I use #na... | javascript jquery | [3, 5] |
3,653,752 | 3,653,753 | How to use c# code inside <% ... %> tags on asp.net page? | <p>I'm writing an asp.net user control. It has a property FurtherReadingPage, and controls: ObjectDataSource and a Repeater bound to it. Inside the Repeater I would like to display a hyperlink with a href property set to something like <em>FurtherReadingPage + "?id=" + Eval("Id")</em> and I don't know how to do it insi... | c# asp.net | [0, 9] |
2,570,539 | 2,570,540 | Hash sign in jQuery calls | <p>Being a pragmatic coder I tend to miss some obvious things and I wonder,
What's the difference between</p>
<pre><code>$('loc')
$('#loc')
</code></pre>
<p>The more info the better about the ins and outs of #</p>
| javascript jquery | [3, 5] |
4,441,422 | 4,441,423 | how to toggle addClass and removeClass? | <p>my code:</p>
<pre><code><a href=# onclick="obj.addClass('fliph'); return false;">toggle</a>
</code></pre>
<p>i want click <strong>toggle</strong> to <code>obj.addClass('fliph')</code>,then click again run <code>obj.removeClass('fliph')</code>.</p>
<p>how to fix my code?</p>
<p>thanks all! :)</p>
| javascript jquery | [3, 5] |
5,293,559 | 5,293,560 | Get me off the JavaScript postback Failboat | <p>I've got to call two js functions, setfocus on textbox and stop a postback from occuring on single buttonclick. I think I got it if I could only intercept the postback. My js skills are on par with weaksauce. </p>
<p><strong>test case</strong></p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" Co... | javascript asp.net | [3, 9] |
5,400,882 | 5,400,883 | Write on html on load | <p>I have created a function who tracks on which slide I am currently on and display the result
e.g. If I am on slide 2 of 3 it will display 2/3</p>
<p>my problem is that right now it is set to do that every time I click the forward arrow but it displays nothing on page load.</p>
<pre><code>$('.forward').click(functi... | javascript jquery | [3, 5] |
924,859 | 924,860 | What is the earliest and latest events that jquery can hook into? | <p>I've written a tiny plugin that gets the page load/render time. It collects the finish time at $(document).ready and I've put the code snippet that collects the start time right after the <code><title></code> tag. </p>
<p>I'd like this to be less obtrusive, so it seems there should be an earlier event than ... | javascript jquery | [3, 5] |
602,004 | 602,005 | How to validate multiple comma separated email id's in android? | <p>How can i validate multiple comma(,) separated email id's in android.I'm using below code for single email validation.Please can any one help me.</p>
<pre><code>static boolean validEmail(String str_newEmail) {
return str_newEmail.matches("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"+ "[A-Za-z0-9-]+(\\.[A-Za-... | java android | [1, 4] |
5,147,782 | 5,147,783 | Simplifying onclick jquery/JavaScript functions | <p>I am trying to simplify all .js functions on the site to improve page load speed and overall performance of my site. Managed to do most of it on my own, but got stack when started to minimize couple of functions that are mostly call backs and onclick functions called from the functions.js in the page head.</p>
<p>S... | javascript jquery | [3, 5] |
903,031 | 903,032 | Can access a object after postback - ASP.NET | <p>I am really confused with this behavior. Can someone explain this to me?</p>
<p>I have the following class structure:</p>
<pre><code>public abstract BaseUserControl : System.Web.UI.UserControl
{
public List<string> listFieldMapper = new List<string>();
}
public partial class Property : BaseUserCon... | c# asp.net | [0, 9] |
2,253,166 | 2,253,167 | Is there a way to use Java and PHP on the same Apache server or at least, same port? | <p>I am pretty new to Java for Web and my question is if I can use Java and PHP together? I know I can use them together, let's rephrase the question, is there a way to access them at the same port?</p>
<p>Java uses Tomcat, can PHP use tomcat also? </p>
| java php | [1, 2] |
6,016,303 | 6,016,304 | How can I prevent a jquery animation from firing when a selectbox is active | <p>The following jsfiddle demonstrates the problem. In Firefox, hover over 'highlight stories' and try to select from the second drop-down: the containing ul animates closed and it is impossible to select an option. It is also possible to get into a flickering loop by selecting from the top select box and moving the mo... | javascript jquery | [3, 5] |
3,062,886 | 3,062,887 | JavaScript minifier that strips out unused code | <p>Does anyone know of a JavaScript minifer that can detect unused code and strip it out.</p>
<p>Google Closure seems alright but it appears to only compact.</p>
<p>I'm looking for something much more advanced, where it can look through my JavaScript and not only compact but also remove unused code.</p>
<p>Anyone kn... | javascript jquery | [3, 5] |
1,059,424 | 1,059,425 | How to know if the phone is charging | <p>i need to know (throught my app) if the Android device is charging. Any ideas? thanks</p>
| java android | [1, 4] |
3,518,742 | 3,518,743 | Browse dialog for custom server control | <p>I have created a custom server control that inherits from Hyperlink. The output html after control is rendered is a nice looking css button with an icon.
For the icon I have a string property.</p>
<p>What i would like to do is on the source code to open "browse file dialog" for the icon similar to NavigateUrl prop... | c# asp.net | [0, 9] |
3,787,312 | 3,787,313 | Open File Dialogue box in JavaScript | <p>how can I get an "open file dialogue" box in Javascript? ::)</p>
<p>Thanks in advance :)</p>
<p><strong>Edit:</strong> </p>
<p>Duplicate of: </p>
<p><a href="http://stackoverflow.com/questions/438650/open-file-dialogue-box-in-javascript">open-file-dialogue-box-in-javascript</a></p>
<p>and</p>
<p><a href="http... | asp.net javascript | [9, 3] |
3,211,192 | 3,211,193 | Role based security with asp.net | <p>How to implement role based security in each page.</p>
| c# asp.net | [0, 9] |
417,889 | 417,890 | I need help starting out with programming | <p>A couple of days ago, I began learning c++. I downloaded visual studio, looked at tutorials, and wrote some simple programs. I was doing good until I got the pointers. Whats the point of "pointing" to a variable when you can just reference the actual variable. It was really confusing me.</p>
<p>So I began looking o... | c# java python | [0, 1, 7] |
5,285,081 | 5,285,082 | How to Update Database Table after AjaxFileUpload ASP.NET | <p>The file is uploading to the corresponding path but table (fileinfo) is not updating..
How to achieve the table updation after a file is being uploaded to the server</p>
<pre><code> protected void UploadComplete(Object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
{
string str = RadioButton1.T... | c# asp.net | [0, 9] |
620,537 | 620,538 | JDBC runs in pure Java, but not in Android | <p>This code <strong>runs OK</strong> in a pure Java application:</p>
<pre><code> Connection conn = null;
Statement inst;
try {
Class.forName ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance ();
conn = DriverManager.getConnection("jdbc:sqlserver://192.168.1.100\\MSSQLSERVER:14... | java android | [1, 4] |
2,707,419 | 2,707,420 | numerous similar AJAX suggestion boxes without ID's | <p>I have a search box on my site that uses autocomplete to give suggestions, and it works great. Now I want to use it on several INPUT fields on a single page. However, the script uses ID tags to access the contents of the INPUT form box. </p>
<p>I modified this:</p>
<p><code>$('#suggest').autocomplete(</code></p... | javascript jquery | [3, 5] |
5,179,117 | 5,179,118 | please help turn a simple Python2 code to PHP | <p>Sorry to bother again, but I really need help transforming this Python2 code into PHP.</p>
<pre><code>net, cid, lac = 25002, 9164, 4000
import urllib
a = '000E00000000000000000000000000001B0000000000000000000000030000'
b = hex(cid)[2:].zfill(8) + hex(lac)[2:].zfill(8)
c = hex(divmod(net,100)[1])[2:].zfill(8) + hex... | php python | [2, 7] |
5,130,154 | 5,130,155 | Logon failure error when attempting UserPrincipal.FindByIdentity | <p>I've been searching for solutions on this for a while now, but each thread a dead-end unfortunately.</p>
<p>I'm working on a C#/ASP.net web app that will only be used internally by our company. Anonymous access has been switched off both in IIS and my web.config file forcing IIS to use the windows authenticated use... | c# asp.net | [0, 9] |
4,356,852 | 4,356,853 | Getting the clicked element using $(this) | <p>hey I have this silly issue and I hope you could help me to solve it. I have some "a" elements and I just want to add an active class when clicked.</p>
<p>I tried this :</p>
<pre><code><a href="javascript:mifunction()"></a>
js:
function mifunction(){
$(this).addClass('active');
}
</code></pre>
<p>bu... | javascript jquery | [3, 5] |
1,987,536 | 1,987,537 | Enable Dynamic TextBox with Dynamic checkbox checked event | <p>I am adding 2 controls Checkbox1 and Textbox1 dynamically. Textbox1 has been disabled by default. I want to enable Textbox1 if checkbox1 is checked. Thanks in Advance.</p>
<p>Praveen</p>
| c# asp.net | [0, 9] |
598,129 | 598,130 | jQuery add not working with HTML | <p>In the <a href="http://api.jquery.com/add/" rel="nofollow">jQuery <code>add</code> documentation</a>, it lists an <code>add(html)</code> overload which describes the <code>html</code> argument as:</p>
<blockquote>
<p>An HTML fragment to add to the set of matched elements.</p>
</blockquote>
<p>Since there is alre... | javascript jquery | [3, 5] |
4,099,800 | 4,099,801 | Any free tool to convert java to javascript | <p>Is there any free tool to convert java into javascript?</p>
<p>Thanks</p>
| java javascript | [1, 3] |
3,709,247 | 3,709,248 | Is it possible to call a Javascript function from HTML independent of an event? | <p>I have a condition in php based on some session variables. If condition passes, I want to call a Javascript function which is updating my current webpage. Is it possible to place such a call to Javascript function independent of a button or a link or the window load function?</p>
| php javascript | [2, 3] |
4,484,882 | 4,484,883 | Clearing buttons .Text on Android issue | <p>I am making a tic tac toe app for android, and when I run my clear buttons function:</p>
<pre><code> b1.setText("");
b1.setEnabled(true);
b1.setBackgroundColor(Color.LTGRAY);
</code></pre>
<p>To just clear the text for the buttons and enable them for a new game, the space in between the buttons disappea... | java android | [1, 4] |
2,056,447 | 2,056,448 | Drag and drop problems using overflow auto | <p>Hello friends i m trying to make drag and drop functionality on my page but i have facing some problem . u can see my code <a href="http://jsfiddle.net/82jue/2/" rel="nofollow">here</a> .
i just want that when the user drag the box the top and left positions of the box match the mouse top and left positions please ... | javascript jquery | [3, 5] |
4,031,429 | 4,031,430 | Accurate way of finding out number of times a file has been download | <p>I have a download page with a <code>linkbutton</code> that users use to download files. The event handler of the <code>linkbutton</code> sets up the Response type for the user to see the download dialog and chose to save it. I need to find out accurately how many times the file has been downloaded. If I increment a ... | c# asp.net | [0, 9] |
4,403,309 | 4,403,310 | User control "ascx" file with C# | <p>I have a user control, basically consists of a tree view and also a drop down list..
The user control shows something like</p>
<p>(For the tree view)</p>
<pre><code> Books
Learn Algebra in 24hrs (30)
Learn Calculus in 1 week (16)
</code></pre>
<p>(For the Drop Down)</p>
<pre><code>--- Books ----
Learn A... | c# asp.net | [0, 9] |
1,712,062 | 1,712,063 | how to form a 3 digit code after a user enters some value in a textbox asp.net C# | <p>I want to first form a 3-digit code once a user enters some input in a textbox.</p>
<p>I have a database table that has the text value that is to be entered in a text box for these text values there is corresponding numeric value which ranges from 3-999.</p>
<p>suppose user enters 'asd' and corresponding value in ... | c# asp.net | [0, 9] |
463,567 | 463,568 | how to kill/stop a jquery/javascript function? | <p>I have a jquery function :</p>
<pre><code>function getArrowScroll(dirX, dirY, ele)
{
return function()
{
arrowScroll(dirX, dirY, this, ele);
this.blur();
return false;
};
}
</code></pr... | javascript jquery | [3, 5] |
470,430 | 470,431 | C# - Efficient search and replace char array in string | <p>I have e.g. </p>
<pre><code>string str ='Àpple';
string strNew="";
char[] A = {'À','Á','Â','Ä'};
char[] a = {'à','á','â','ä'};
</code></pre>
<p>I want to look through the str and see if found replace with Ascii code 'A' . So the result should be:</p>
<pre><code>strNew = 'Apple';
</code></pre>
<p>Here is my code:... | c# asp.net | [0, 9] |
4,038,578 | 4,038,579 | Styling a list item with a child | <p>I've been going around in circles for hours, I keep getting errors with this code :</p>
<pre><code>$('div.colA div.region-sidebar-left div.menu-block-wrapper').find('li').each(function() {
if ($(this).find('> ul').size() > 0) {
$(this).addClass('has_child');
}
});
</code></pre>
<p... | javascript jquery | [3, 5] |
3,811,541 | 3,811,542 | Possible to make IE7 reload the DOM? Trying to update RSS href url in link tags | <p>I can use this jQuery code to dynamically change the RSS link in the DOM in Firefox & Chrome. <a href="http://path.com/feed" rel="nofollow">http://path.com/feed</a> is normally replaced by a variable, but not for this example.</p>
<pre><code>$('#rssfeed').remove();
$('head').append('<link id="rssfeed" rel="a... | javascript jquery | [3, 5] |
1,357,278 | 1,357,279 | Variable keeps old value | <p>Whenever i click the '#print' button for the second time, the value from the first click prints out before the real value.</p>
<p>For example:
I click button for the first time. The alert box prints out the correct value ('test1'). </p>
<p>I click button for the second time. The alert box prints out first value (... | javascript jquery | [3, 5] |
2,582,396 | 2,582,397 | JQuery match 2 IDs by post-delimiter number | <p>Trying to figure out a way to streamline a script. I have hundreds of icons each with the id "icon_#-#" where the first # relates to a set that particular icon belongs to, and the second # is unique to that icon within the set. Each relates to a box w/ id "box_#-#" where the #-# relates it to a specific icon. For ex... | javascript jquery | [3, 5] |
4,254,745 | 4,254,746 | how to set event if cursor is out of an input tag in jquery | <p>im new to jquery and i want to know how to get value of an input tag when a cursor is out/left to that input element/tag. Thank you in advance.</p>
| javascript jquery | [3, 5] |
1,580,288 | 1,580,289 | Taking value of edittext and putting a decimal point in it | <p>All-
I am working on an app in which the user enters the bill cost the tip rate. I know how to take the values of the edittext fields and preform the necessary math on them, but on the tip rate field I have to add a decimal point in front of the entered numbers. So if the user inputs "2" it shows up in the java code... | java android | [1, 4] |
4,598,780 | 4,598,781 | jQuery: stop a <select> list from moving on keypress? | <p>I have HTML/jQuery like this:</p>
<pre><code><select id="userlist" name="userlist">
<option value=''></option>
<option value="ADJUDICATION">ADJUDICATION</option>
<option value="ADMINISTRATIVE">ADMINISTRATIVE LAW</option> # etc
</select>
$("#userlist").keypress(functi... | javascript jquery | [3, 5] |
5,134,977 | 5,134,978 | javascript variable scope in callbacks | <p>I'm curious how could this be written better:</p>
<pre><code>function Klass(variable) {
this.variable = variable;
this.callAjax = function() {
$.get('/url', { }, function(json) {
console.log(variable); //! <-- shows undefined
}, "json");
}
}
</code></pre>
<p>so I create ... | javascript jquery | [3, 5] |
3,528,725 | 3,528,726 | Java: Carriage returns populating a var in js code? | <p>I am not sure if this is possible, but I'm trying to find a front-end solution to this situation:</p>
<p>I am setting a JavaScript variable to a dynamic tag, populated by backend Java code:</p>
<pre><code>var myString = '@myDynamicContent@';
</code></pre>
<p>However, there are some situations, in which the conten... | java javascript | [1, 3] |
2,492,880 | 2,492,881 | JQuery select value into variable | <p>I have looked all over and cannot figure out why this code isn't working.</p>
<p><a href="http://jsfiddle.net/kCLxJ/" rel="nofollow">http://jsfiddle.net/kCLxJ/</a></p>
<p>When the drop down is set to value "3" or "4", then another field should pop up below the drop down list.
Any ideas?</p>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.