Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
3,339,654 | 3,339,655 | Multi Level Filter using in a CheckBox using JavaScript | <p>I have a check box list which filters the results.
with Options :</p>
<blockquote>
<p>Spa(7) <br/>Bar(3) <br/>Spa/Bar(4)</p>
</blockquote>
<p>The values in brackets(7,3,4) respectively indicates the total Rooms having the mentioned facility.
When I select Spa, then my desired list should display only 7 results(... | javascript jquery | [3, 5] |
3,010,826 | 3,010,827 | php/python date conversion | <p>Guys, I have a python script which builds up a MySQL table with timestamps that look like: </p>
<pre><code>2011-04-18 09:54:45
</code></pre>
<p>To interface with this MySQL table, I need a php script to match updates. If I run this in PHP:</p>
<pre><code>$todaysdate = date(DATE_RFC822);
print $todaysdate;
</code... | php python | [2, 7] |
6,006,778 | 6,006,779 | Writing a cookie from a static class | <p>I have a static class in my solution that is basically use a helper/ultility class.</p>
<p>In it I have the following static method:</p>
<pre><code>// Set the user
public static void SetUser(string FirstName, string LastName)
{
User NewUser = new User { Name = String.Format("{0}{1}", FirstName, Las... | c# asp.net | [0, 9] |
5,378,220 | 5,378,221 | jQuery error callback on ajax call if server is down | <p>I am using jQuery and I am making AJAX request from the many methods available to me. I am testing error callback condition and so far so good.</p>
<p>If I bring the server down then firebug shows the request in RED which means it was an error. However error callback is not getting called. Is this expected ? Or sh... | javascript jquery | [3, 5] |
3,161,181 | 3,161,182 | HTML encode asp.net tree view nodes | <p>I would like to know how to html encode nodes in a asp.net treeview control? I have a requirement that requires the nodes to have items that accepts "<" ">" symbols.</p>
<p>The code sample below is what I'm currently using as a treenode.</p>
<pre><code>public class SampleTreeNode : TreeNode
{
public SampleT... | c# asp.net | [0, 9] |
5,378,697 | 5,378,698 | Problem using Javascript to redirect to a URL with a query string | <h3>Javascript</h3>
<pre><code><script type="text/javascript">
function Edit(id)
{
if(confirm("Are you sure to edit?")==true)
{
location.href='employee_set.php&edit='+id;
}
}
</script>
</code></pre>
<h3>PHP</h3>
<pre><code><?php
if(isset($_GET["edit"])==false) {
echo "no re... | php javascript | [2, 3] |
1,562,880 | 1,562,881 | Javascript onbeforeunload- Show an image on Exit | <p>I am using following code so that if user closes the browser button it shows a confirmation box, whether to stay on page or not.</p>
<p>What I want to do is if someone closes the browser it should show an image, with "yes" or "no" options. When "yes" is clicked it should close the browser and if "no" is clicked it ... | javascript jquery | [3, 5] |
3,624,228 | 3,624,229 | get closest() with attr() | <p>How can you get the closet with an attribute?</p>
<pre><code>$('tr[data-order]:closest', $(this)).css({background:'red'});
</code></pre>
<p>I need to get the parent <code>tr</code> with attriute <code>data-order</code> </p>
| javascript jquery | [3, 5] |
285,111 | 285,112 | Connection refused exception | <p>I am getting this exception:</p>
<pre><code>org.apache.http.conn.HttpHostConnectException: Connection to http://www.google.es refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPool... | java android | [1, 4] |
133,773 | 133,774 | Regular Expression for (dd-mm-yyyy) not working properly | <p>I have a RegularExpressionValidator in my ASP.Net page</p>
<p>I am using it for checking the valid date including leap year against the TextBox Control.</p>
<p>The code is:</p>
<pre><code><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ErrorMessage="Enter Valid Date" Display=... | c# asp.net | [0, 9] |
1,268,729 | 1,268,730 | reading / updating array of arrays object in javascript / jquery | <p>I am trying to do the following but I am not sure how to do it. I have a grid (like excel) where the user will enter information. The grid has columns like "empno", "paycode", "payrate", "hours" etc. The user will enter a separate record in the grid for each paycode for each employee in the system. so the grid will ... | javascript jquery | [3, 5] |
2,607,082 | 2,607,083 | How can I intercept the audio stream on an android device? | <p>Let's suppose that we have the following scenario: something is playing on an android device (an mp3 par example, but it could be anything that use the audio part of an android device). From an application (android application :) ), I would like to intercept the audio stream to analyze it, to record it, etc. From th... | java c++ android | [1, 6, 4] |
3,256,453 | 3,256,454 | master and content pages and jquery | <p>I want to use jQuery in my ASP.NET 3.5 website that uses master pages and content pages. How do I do document ready() functions for the child pages for those that will use jQuery ? Where do I put the code?</p>
<p>I figured the jQuery declarations should go in the master page, but don't know how to make sure any jQu... | asp.net jquery | [9, 5] |
1,029,971 | 1,029,972 | How do i deactivate highlights on MapHilight? | <p>I have run into a problem that i cannot seem to figure out how to do and was hoping that you might have some insight.</p>
<p>im working on this page: <a href="http://rrpcompliance.com/map/html/" rel="nofollow">http://rrpcompliance.com/map/html/</a></p>
<p>note: right now the only states i am focusing on are washin... | javascript jquery | [3, 5] |
4,290,172 | 4,290,173 | Using Python to grab output from a C++ program (thru cout) | <p>I have the following code in Python</p>
<pre><code>import subprocess
import time
info = subprocess.STARTUPINFO()
info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
info.wShowWindow = subprocess.SW_HIDE
t1 = time.clock()
h = subprocess.Popen([r"C:\Users\MyName\Desktop\test.exe"], startupinfo=info)
h.communicate()
t2... | c++ python | [6, 7] |
421,047 | 421,048 | Why am I losing my characters from my html string when trying to add html dynamically using javascript | <p>I have a page that I am trying to dynamically add some links to. The links are getting added to the page fine, but the '[' and ']' at either end of the line are getting dropped. The code from my .js file is:</p>
<pre><code>var html = "[ <a href='#'>Change</a>&nbsp;|&nbsp;<a href='#'>Remove... | javascript jquery | [3, 5] |
2,708,702 | 2,708,703 | PHP/Javascript: Restart Form Button Isn't Working, Code Insde | <p>Basically I want a confirmation box to pop up when they click the button asking if they sure they want to restart, if yes, then it destroys session and takes them to the first page. Heres what i got...</p>
<pre><code>echo "<form id=\"form\" name=\"form\" method=\"post\" action=\"nextpage.php\">\n";
echo " &l... | php javascript | [2, 3] |
1,548,399 | 1,548,400 | Is there a c++ wrapper that compile php into a c++ program? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1090124/convert-php-to-c-code">Convert PHP to C++ code</a> </p>
</blockquote>
<p>Is there a c++ wrapper that compile php into a c++ program?</p>
<p>I want to program something for the steam distribution platfor... | php c++ | [2, 6] |
2,976,962 | 2,976,963 | JSON failing to parse when strings contain HTML markup | <p>Why does this ajax fail when html tags are added to the json, if the <code><br /></code> is not there then is works. The only work around that I can think of is by encoding the text.</p>
<p>Do you know why or /and have any other suggestions.</p>
<p>Thanks</p>
<pre><code> $.ajax({
type: "POST",
... | javascript jquery | [3, 5] |
3,004,570 | 3,004,571 | How to ask for confirmation to delete checklist items? | <p>I have some dynamically generated checklist-items. When user deletes them, confirmation box should appear. How can i do that ?</p>
<pre><code>protected void btndelete_Click(object sender, EventArgs e)
{
try
{
string conn = ConfigurationManager.ConnectionStrings["sqlco... | c# javascript asp.net | [0, 3, 9] |
510,519 | 510,520 | Spellchecker not working when text contains an url | <p>I am using one free spellchecker named pure javascript spell checker.But right now if somebody enters a url(starting with http://) in the text area and then do a spell check in that case its showing error in Firefox but in IE its working fine.So is there any way in javascript to escape an entire url from the user in... | javascript jquery | [3, 5] |
3,311,366 | 3,311,367 | modify click event script to be more specific | <p>I have to the following function that I would like to modify so that it only binds the click event to all href's that = /ShoppingCart.asp?ProductCode="whatever" (whatever = whatever is in there") but not if it is specifically /ShoppingCart.asp?ProductCode="GFT". It must also check or convert a gft or Gft to upper ca... | javascript jquery | [3, 5] |
498,259 | 498,260 | How to detect when the Battery's low : Android? | <p>I want to close my app when the battery level of the device gets low.
I have added following codes in manifest.</p>
<pre><code> <receiver android:name=".BatteryLevelReceiver"
<intent-filter>
<action android:name="android.intent.action.ACTION_BATTERY_LOW" />
<actio... | java android | [1, 4] |
1,133,104 | 1,133,105 | cant pass php variables to javascript | <p>I'm trying to pass a php variable to a javascript function via the onClick attribute.Heres the piece of code that I have tried but its not working
php Section:</p>
<pre><code><li id="' . $todo1 . '" class="items">' . $todo1 . '<button onclick="ajaxdelete(' . $todo1 . ')">Delete</button></li&g... | php javascript | [2, 3] |
5,875,886 | 5,875,887 | Wait until function is loaded | <p>How can I in jQuery test when a javascript function is fully loaded?
I would like to use a gif, which displays loading, while the javascript function loads, and hide it when the function is fully loaded?</p>
| javascript jquery | [3, 5] |
3,453,050 | 3,453,051 | How to get the <html> tag HTML with JavaScript / jQuery? | <p>Using <code>$('html').html()</code> I can get the HTML within the <code><html></code> tag (<code><head></code>, <code><body></code>, etc.). But how can I get the actual HTML of the <code><html></code> tag (with attributes)?</p>
<p>Alternatively, is it possible to get the entire HTML of the p... | javascript jquery | [3, 5] |
3,279,601 | 3,279,602 | Disable the asp button after first click because it save multiple records in slow connection | <pre><code><asp:Button
ID="btnUpdate"
runat="server"
OnClick="btnUpdate_Click"
Text="Update"
CssClass ="btn"
ToolTip="Update"
Width="58px" />
</code></pre>
<p>`This is my code for button, want to use javascript..help plz</p>
| c# javascript | [0, 3] |
365,189 | 365,190 | Two jquery datepicker instances in one control ASP.NET | <p>I have two text boxes that use the datepicker plugin on the same page.</p>
<p>I use the code below to set attributes for each by using their cssclasses, however the minDate for datepickerLatest does not seem to work on the calendar. It works fine for datepickerEarliest</p>
<pre><code><asp:TextBox runat="server"... | jquery asp.net | [5, 9] |
314,898 | 314,899 | android : External jar files adding? | <p>I'm trying to add some external jar files in my project.
Anyone tell me how to add external jar files to current project? Thanks in Advance.</p>
| java android | [1, 4] |
1,371,580 | 1,371,581 | Looking for asp.net 3D surface charts | <p>I need something to create 3D surface charts in ASP.Net. Could anyone recommend a 3rd party component set? I also do not want to use Giga Soft's, Nevron's, or ComponentOne's components. I am open to non-free solutions.</p>
| c# asp.net | [0, 9] |
3,631,293 | 3,631,294 | Holding Information in Android App | <p>I've only just started to write in Java on Android, so please bear with me.</p>
<p>I have some settings I want to hold in my app, normally I would have used an xml file. Trouble is i'm not sure how to load it into the xml parser to read it. </p>
<p>I thought I might be able to drop it into /res/values/Info.xml and... | java android | [1, 4] |
1,018,596 | 1,018,597 | Fastest way to traverse a DOM element tree in Javascript / JQuery | <p>I am trying to traverse a DOM select element that looks like this:</p>
<pre><code><select>
<option value='1'>Text 1</option>
<option value='2'>Text 2</option>
<option value='3'>Text 3</option>
<option value='4'>Text 4</option>
. . .
<o... | javascript jquery | [3, 5] |
95,406 | 95,407 | Is there a way to fire jQuery's live() or delegate() without a user event? | <p>I am trying use jQuery to poll dynamic DOM nodes, created outside of the jQuery object (with Google Maps API methods). I can do this easily by, for example, binding delegate() to a click event. However, I need to poll the DOM, without any additional user actions (user should not have to click), as part of a function... | javascript jquery | [3, 5] |
3,182,454 | 3,182,455 | Loop with Deferred objects and promises | <p>I have the following code </p>
<pre><code> $.when(tableInsert("index.php/get/sync/riesgos", insert_riesgo, evalua.webdb.db, callback)).then(function(){
update_records("riesgos");
$.when(tableInsert("index.php/get/sync/estancias", insert_estancia, evalua.webdb.db, callback)).then(function(){
... | javascript jquery | [3, 5] |
4,343,013 | 4,343,014 | AndroidManifest.xml errors | <pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android">
<application android:icon="@drawable/ic_launcher" android:label="@string/app_name">
<activity android:name=".hba1c" android:label="@string/app_name"
... | java android | [1, 4] |
5,105,668 | 5,105,669 | Return an integer from OnClickListener to outside the function (Android, Java) | <p>So hey guys I want to return an integer to outside my OnClickListener function:</p>
<pre><code> hello.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
int choice = 1;
}
});
if (choice == 1) {
//Do stuff here
}
</code></pre>
<p>Sorry for this newb... | java android | [1, 4] |
1,483,628 | 1,483,629 | how to navigate the users to Login.aspx even if i set HomePage.aspx as the start page? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/549/the-definitive-guide-to-forms-based-website-authentication">The Definitive Guide To Forms based Website Authentication</a> </p>
</blockquote>
<p>how to navigate the users to Login.aspx even if i set HomePage... | c# asp.net | [0, 9] |
710,618 | 710,619 | How can I access ListViewDataItem from an ItemTemplate without using code behind? | <p>I'm trying to access <code>ListViewDataItem</code> from inside an <code>ItemTemplate</code> in an ASP.NET C# page that does not have code behind.</p>
<p>the page is very simple and does not have any code on it. it is dynamicaly binds to a datasource on page and shows a list of data. </p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
5,042,037 | 5,042,038 | getElementById issue | <p>I have got this button:</p>
<pre><code><input type="button" value="Rep"
id="rep" name="rep" class="rep" style="width:50px"
onclick="triggerLabel(1);this.disabled=true;addRep(<?php echo $comment_id; ?>);"/>
<script type="text/javascript">
function triggerLabel($commentID)
{
... | javascript jquery | [3, 5] |
1,150,778 | 1,150,779 | Is putExtra the only way of passing data to a new Activity? | <p>I have created a SettingsActivity for my app. In this <code>Activity</code> I am using the <code>SharedPreferences</code> class to do handle the user editable preferences.</p>
<p>While setting up the <code>SharedPreferences</code>, I have to load them in the <code>onCreate</code> of my main activity and then again... | java android | [1, 4] |
4,633,024 | 4,633,025 | JQuery .show() not working for div inside an already referenced div | <p>show() does not work</p>
<p><a href="http://jsfiddle.net/Pppy6/5/" rel="nofollow">http://jsfiddle.net/Pppy6/5/</a></p>
<pre><code><div class="hello" id="hello">2<div class="ola" id="ola">showMe!</div></div>
.ola {
display:none
}
$('#hello').text(parseInt($('#hello').text()) + 1);
$('... | javascript jquery | [3, 5] |
4,133,207 | 4,133,208 | Convert php code to Java/android | <p><a href="http://pastebin.com/Cz8gbxs8" rel="nofollow">http://pastebin.com/Cz8gbxs8</a></p>
<p>is there a way to convert this php code, to a java code?</p>
<p>Thanks, anyway</p>
| java php android | [1, 2, 4] |
974,016 | 974,017 | Trigger event on a page when a popup window is closed | <p>Page <em>x</em> creates a pop-up window (page <em>y</em>). When page <em>y</em> is closed, I need an event to trigger on page <em>x</em>.</p>
<p>Any help is appreciated. Thanks.</p>
| javascript jquery | [3, 5] |
1,852,894 | 1,852,895 | Exchanging data from web | <p>I am creating a program which calculates the solar radiations received on earth. The program is complete and working. I have made it specifically for my city, but I want to generalize it for the whole world. Only one thing is standing between me and my goal:</p>
<pre><code>double Hm[] = {
4.38, 5.18, 5.93, 6.65, ... | java android | [1, 4] |
2,368,050 | 2,368,051 | jQuery - find the specified components on the form | <p>I'm searching for <code>inputs</code> on my form and adding them to the <code>inputs</code> variable: </p>
<pre><code>var inputs = $(this).parents("form").eq(0).find(".input:visible:enabled");
</code></pre>
<p>How can I extend this search of the other components like <code>select</code>. So, add the <code>inputs</... | javascript jquery | [3, 5] |
1,212,176 | 1,212,177 | Null Reference Exception is thrown sometimes | <pre><code><script language="javascript">
res = "&res="+screen.width+"x"+screen.height+"&d="+screen.colorDepth
top.location.href="Login.aspx?action=set"+res
</script>
Source Error:
An unhandled exception was generated during the execution of the current web request,Information regard... | javascript asp.net | [3, 9] |
2,610,107 | 2,610,108 | Binding a dropdown with year | <p>I have to bind a drop down box with years starting from 2008 to current year in C#. How can I achieve it. </p>
| c# asp.net | [0, 9] |
2,063,609 | 2,063,610 | Why do jQuery samples often omit script type? | <p>For example <a href="http://jqueryui.com/datepicker/">here</a> the code goes like this:</p>
<pre><code><html lang="en">
<head>
<!-- whatever -->
<script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
</head>
<!-- wha... | javascript jquery | [3, 5] |
2,220,459 | 2,220,460 | For Loop with doubles and arrays and Lists | <p>What is the correct syntax to iterate through an array of doubles and add the weights to the values List? The following fails, I've tried all types of combinations but the correct one?</p>
<pre><code>private double[] weightArray =new double[] {200,215,220,215,200};
List<double[]> values = new ArrayList<... | java android | [1, 4] |
5,694,308 | 5,694,309 | Calling javascript after dom is finished | <p>We use an outside system to serve ads on our site. Currently in our header files, we have some js which uses jquery to insert the data to our ad holder which is a div that appears on every page, i.e.</p>
<pre><code>$("#adSpot").prepend('put my ad here');
</code></pre>
<p>Our third party ad system just started usi... | javascript jquery | [3, 5] |
1,519,791 | 1,519,792 | Using .wrap() for each x amount of objects | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3366529/wrap-every-3-divs-in-a-div">Wrap every 3 divs in a div</a><br>
<a href="http://stackoverflow.com/questions/3475594/jquery-use-wrap-to-wrap-multiple-elements">jQuery - use wrap() to wrap multiple elements?<... | javascript jquery | [3, 5] |
1,635,862 | 1,635,863 | Why parent element is undefined in Firefox only when onerror event of IMG tag is called? | <p>I am trying to unhide a DIV element if my extension in Firefox is not installed. </p>
<p>For this purpose i am using the following technique.</p>
<p>This doesn't work in Firefox. it says</p>
<p><strong>ExtensionNeeded is undefined.</strong> </p>
<p>I get the alert though. Please have a look at my code.</p>
<pre... | javascript asp.net | [3, 9] |
3,634,880 | 3,634,881 | Mimic ASP.NET web forms encryption method using php | <p>I've tried searching a lot but so far everything seems to be about hashing.</p>
<p>I have a database with users created using the .net web forms framework. In web.config it is set to the encryption method to store users' passwords. I also see a validation and decryption key.</p>
<p>If I have access to these encryp... | php asp.net | [2, 9] |
3,291,753 | 3,291,754 | How to iterate over two arrays in jQuery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/617735/simultaneously-iterating-over-two-sets-of-elements-in-jquery">Simultaneously Iterating Over Two Sets of Elements in jQuery</a> </p>
</blockquote>
<p>I have two variables:</p>
<pre><code>var $distance = $... | javascript jquery | [3, 5] |
275,085 | 275,086 | error in c# code of time zone info | <p>i am not using any java script.
my code is:</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
System.Collections.ObjectModel.ReadOnlyCollection<TimeZoneInfo> TimeZoneColl = TimeZoneInfo.GetSystemTimeZones();
DropDownList2.DataSource = TimeZoneCol... | c# asp.net | [0, 9] |
2,580,143 | 2,580,144 | close and reset height and width to its original sizes on "close" click | <p>I have this html:</p>
<pre><code><div class="box">
<div class="info">
<p>..some content..</p>
<a href="#" class="close">Close</a>
</div>
</div>
<div class="box">
<div class="info">
<p>..some content..</... | javascript jquery | [3, 5] |
5,814,457 | 5,814,458 | How to concatenate path to base url when a url redirects? | <p>I'm making a request to:</p>
<p><code>http://www.baseaddress.com/path/index1.html</code></p>
<p>According to the arguments I sent, I'm getting a redirect to one of this two:
<code>http://www.baseaddress.com/path2/</code><br>
OR
<code>http://www.baseaddress.com/path/index2.html</code></p>
<p>The problem is that th... | java android | [1, 4] |
3,727,220 | 3,727,221 | jquery not seeing new html loaded into dialogue box | <p>I am having some trouble with getting jquery to recognize classes/ids of content that has been loaded into a dialogue box. All the jquery code (including the code that deals with the as yet unloaded classes) is loaded before the dialogue box is created, however the html that eventually goes into the dialogue box is ... | javascript jquery | [3, 5] |
480,734 | 480,735 | passing asp.net class object in javascript in ajax call | <p>I am having the below code in my project </p>
<pre><code>$.ajax({
type: "POST",
url: "Alerts.aspx/TestMethod",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnSuccess,
error: OnError
});
</code></pre>
<p>now I want... | javascript jquery asp.net | [3, 5, 9] |
5,916,395 | 5,916,396 | Loading data using jQuery | <p>I have a list of states in a drop down menu (<code>select</code>). I have a page for each state. Each page has the state abbreviation as a name, for example: <strong>Alabama</strong> is <code>al.htm</code>. I want to load the contents of <strong>htm</strong> depending on the selection of the state name; and the same... | javascript jquery | [3, 5] |
5,850,201 | 5,850,202 | Webservice Android | <p>I have a asp.net Webservice which returns me XML. What should i use in Android and how to parse? </p>
| asp.net android | [9, 4] |
5,086,365 | 5,086,366 | error Incorrect syntax near | <p>I had Registration form and I had in this form text box for username ,and when I test the web form I added this user in text box user name (Kaz'em) and I had this error</p>
<p>(Incorrect syntax near 'em'.
Unclosed quotation mark after the character string ''.)</p>
<pre><code>public bool RegisteredUser()
{
bool... | c# asp.net | [0, 9] |
2,056,021 | 2,056,022 | gridview inside datalist row_data_bound | <p>I have a datalist that contains a gridview inside its itemtemplate. on the item-data_bound of the datalist i assign a certain datasource to the datagrid of that item then i add an eventhanlder for the row_data_bound of the grid.then i bind the grid.
Attach it to the grid:
gv.RowDataBound += new GridViewRowEventHandl... | c# asp.net | [0, 9] |
1,096,927 | 1,096,928 | Comparison between Javascript objects | <p>I have made a simple accordion for my site using jQuery... It worked great, but I've recently started working on a change where if you click the currently opened segments title (the clickable area to slide up/down), it should close the current section.</p>
<pre><code>var sideMenu = {
activated: {},
... | javascript jquery | [3, 5] |
5,793,354 | 5,793,355 | getting values from price range slider jquery | <pre><code><meta charset="utf-8">
<title>jQuery UI Slider - Range slider</title>
<link rel="stylesheet" href="jquery.ui.all.css">
<script src="jquery-1.7.1.js"></script>
<script src="jquery.ui.widget.js"></script>
<script src="jquery.ui.mouse.js"></script>
<... | php jquery | [2, 5] |
3,167,879 | 3,167,880 | Javascript IE Redirection Loop (with some PHP) | <p>For some reason, the following causes a redirection loop in IE, but not in Chrome or Firefox.</p>
<pre><code><?php
if (isset($_POST['a']) OR strlen($_POST['a'])>0)
{
die($_POST['a']);
}
?>
<html>
<head>
<script type="text/javascript" src="fpjs2.js"></script>
</head>... | php javascript | [2, 3] |
3,187,781 | 3,187,782 | How to add forms inputs in an unordered list element | <p>I'm dynamically generating an asp form, and I would like to add the <strong>label</strong> and <strong>input</strong> elements inside a list.</p>
<p>For example, I would like to end up with something like:</p>
<pre><code><ul>
<li><label for="input"/><input id=input"/></li>
</ul>... | c# asp.net | [0, 9] |
2,911,678 | 2,911,679 | Passing values from one page to another page in JS | <p>I have one query on JavaScript.</p>
<p>How we can pass values from one page to another page?</p>
<p>I am working with ASP.NET. My requirement is, I need to validate the user, whether his session expired or not. If the session expired then I need to show a pop up with two textboxes to enter his credentials.</p>
<p... | javascript asp.net | [3, 9] |
4,753,424 | 4,753,425 | ASP.NET how to get file name in specific folder on server | <p>I have this website which I am coding in ASP.NET - C#.</p>
<p>My problem is that I have image boxes, but the user can upload images with any name. Now each image box has its own folder, and at any point, there can be only one file in that folder, which is a .JPG file. </p>
<p>the path looks like this:</p>
<pre><c... | c# asp.net | [0, 9] |
1,715,185 | 1,715,186 | How to properly manage contexts for an android application(non-activity classes) | <p><strong>Similar posts that do not have the answer i'm looking for.</strong> </p>
<p><a href="http://stackoverflow.com/questions/987072/using-application-context-everywhere">Using Application context everywhere?</a></p>
<p><a href="http://developer.android.com/reference/android/app/Application.html" rel="nofollow">... | java android | [1, 4] |
4,491,873 | 4,491,874 | How can I insert a new row into a grid view control? | <h1>Duplicate:</h1>
<blockquote>
<p><a href="http://stackoverflow.com/questions/594088/how-to-insert-row-in-grid-view/">How can I insert a new row into a grid view control?</a></p>
<p><a href="http://stackoverflow.com/questions/181158/how-to-programmatically-insert-a-row-in-a-gridview">How to programmatically i... | c# asp.net | [0, 9] |
4,501,369 | 4,501,370 | Asp.net login script | <p>i'm new to asp.net, i'm writing a login & registration script for learning database application. But the script seems not work. it stills can add duplicated username. Here is the script</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using... | c# asp.net | [0, 9] |
4,662,798 | 4,662,799 | C# reference type behaviour | <p>I have some confusion with reference type following is the test example
please tell me how it will works</p>
<pre><code>class TestClass
{
public int i = 100;
}
class MyTestClass
{
public void Method()
{
int i = 200;
var testClass = new TestClass();
testClass.i = 300;
Ano... | c# asp.net | [0, 9] |
5,931,819 | 5,931,820 | Where is the Component Initialize Method in Asp.NET 3.5 | <p>I want to create my own naming convention for page events rather than AutoEventWireUp but I couldn't find Component Initialize methods any where ? Should I override it ? But in which class it is defined ?</p>
<p>Thanks...</p>
<p><strong>Edit :</strong></p>
<p>For example : I don't want to use <code>Page_Load</cod... | c# asp.net | [0, 9] |
2,115,560 | 2,115,561 | how to edit column value before binding to gridview after retriving from database? | <p>After i retrieved a set of datatable from database, i need to edit the rows value before binding to the gridview.
for example, a set of datatable is retrived from database. </p>
<p>eg: [userid], [userEmail] --> 1 , james@hotmail.com</p>
<p>i would like to change "james@hotmail.com" to "james" then bind it to grid... | c# asp.net | [0, 9] |
3,591,606 | 3,591,607 | 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] |
5,403,095 | 5,403,096 | How to handle both Quick Search Box results and recent suggestions for search? | <p>I'm trying to implement both <a href="http://d.android.com/guide/topics/search/adding-recent-query-suggestions.html" rel="nofollow">recent suggestions</a> and <a href="http://d.android.com/guide/topics/search/adding-custom-suggestions.html" rel="nofollow">custom suggesions</a> in global search in the same applicatio... | java android | [1, 4] |
2,976,325 | 2,976,326 | Why is Javascript called Javascript, if it has nothing to do with Java? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2018731/why-is-javascript-called-javascript-if-it-has-nothing-to-do-with-java">Why is JavaScript called JavaScript, if it has nothing to do with Java?</a> </p>
</blockquote>
<p>Why Javascript is called Javascrip... | java javascript | [1, 3] |
1,198,008 | 1,198,009 | What is the difference between....? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1626010/what-is-the-difference-between-container1-and-container2-fin">What is the difference between $(“<em>”, $(“#container1”)) and $(“#container2”).find(“</em>”)?</a... | javascript jquery | [3, 5] |
4,876,022 | 4,876,023 | NamingEnumeration in c# | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7334055/rewriting-java-code-to-c">Rewriting Java code to c#</a> </p>
</blockquote>
<p>does anyone know the equivelent of: <code>NamingEnumeration answer = ctx.search</code> in c#. The following is a piece from ... | c# java | [0, 1] |
1,582,197 | 1,582,198 | Convert Feb 17, 2012 to 17/02/2012 with jQuery | <p>I have this code:</p>
<pre><code>var Date = "Feb 17, 2012";
</code></pre>
<p>How can I convert it to</p>
<pre><code>Date = "17/02/2012"
</code></pre>
<p>using jQuery?</p>
| javascript jquery | [3, 5] |
5,008,439 | 5,008,440 | Creating visual designs for android applications | <p>I've been on and off with Android development but one thing that has confused me is how do you do custom looking interfaces? I'm not exactly sure as to what terms to look for or how it is done. I've not found any working examples either.</p>
<p>What terms should I look for to learn how this is done?</p>
| java android | [1, 4] |
428,191 | 428,192 | Trying to use jQuery.load() to upload http:// file | <p>I'm trying to load html page from server into another page on the same server, using jquery.load() method.
This is the code:</p>
<pre><code><div id="mydiv">
<script type="text/javascript" >
$('#mydiv').load('http://www.myurl.com/ns/pagename.html');
</script>
</div>
</code></pre>
<p>It'... | javascript jquery | [3, 5] |
1,276,544 | 1,276,545 | jQuery get previous month from php | <p>I have made this script that get's the month and the year from calendar.php and I would like when I click the link previous month to get the previous month but also when month number reach 1 make the year - 1. How can I do something like that? </p>
<pre><code><html>
<head></head>
<script src=... | php jquery | [2, 5] |
2,447,134 | 2,447,135 | passing hidden field values to javascript function | <p>is it possible to get the value of the hidden field that is defined in the gridview to the javascript function so I have a gridview that has a linked button defined in it. If the user clicks on the link button, I am invoking a javascript function. I want the hidden field values in the javascript function. </p>
<p>a... | javascript asp.net | [3, 9] |
4,004,203 | 4,004,204 | How to embed a jquery library in javascript? | <p>I have a jquery library code in jquery.xyz.js .
I have an html file which uses the fucntion defined in jquery.xyz.js in this manner . </p>
<pre><code><html>
<body>
<script type="text/javascript">
document.write("This is my first JavaScript!");
$(function(){ $("ul#xy01").xyz(); });
</script&g... | javascript jquery | [3, 5] |
5,533,748 | 5,533,749 | textbox value set in javascript is not avaliable in serverside page load event | <p>I have following situation.I have set a textbox value by calling a JavaScript function from serverside.The textox value is assigned perfectly but it is not on server side it is showing blank.
This is my code.</p>
<pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load... | javascript asp.net | [3, 9] |
3,569,557 | 3,569,558 | Get the suffix of a dynamically selected id within a hover method | <p>I have the following JQuery selector with a hover method attached to it:</p>
<pre><code>$("a[id^='foo']").hover(
function () {
$(this).css("color", "#eeeeee");
},
function () {
$(this).css("color", "#ffffff");
}
);
</code></pre>
<p>However, I want to alter a td decoration underneath the links wit... | javascript jquery | [3, 5] |
3,072,050 | 3,072,051 | how to get stored procedure's batches query in different dataset | <p>I'm trying to fetch all the data from one stored procedure for different different Dataset in a single page.</p>
<pre><code>CREATE PROCEDURE [dbo].[usp_Details](@status int, @Id int)
AS
begin
Select u.Id,u.FName,u.ImageName,u.ImagePath,u.Sex FROM [User] as u
where u.Id IN (SELECT MyId as Id FROM Friends WHERE Fr... | c# asp.net | [0, 9] |
4,803,293 | 4,803,294 | Bind a handler to an object | <p>How can I bind a handler to an object so that when it is changed a function will occur? You can do this with elements like this: <code>$(element).change(function() { alert("something changed"); });</code>, but as far as I can see there isn't a similar way for objects, so what could I do?</p>
| javascript jquery | [3, 5] |
4,006,708 | 4,006,709 | setInterval doesn't work? | <pre><code>var until = $("#time").html();
function updateTime() {
$("#time").html(
date("d", until) + " day(s)<br />" +
date("h", until) + " hour(s)<br />" +
date("i", until) + " minute(s)<br />" +
date("s", until) + " second(s)"
);
}
setInterval("updateTime(u... | javascript jquery | [3, 5] |
5,145,223 | 5,145,224 | how to set text an integer and get int without getting error | <p>This is the code i used in getting the intent for integer. The String get intent works fine and displays well but when i put the integer i get a force close error. I might be doing something wrong here. This is the code:</p>
<pre><code>package kfc.project;
import android.app.Activity;
import android.content.Intent... | java android | [1, 4] |
891,855 | 891,856 | The name 'txtinput1' does not exist in the current context | <p>First off , I know the question looks very similar to the question <a href="http://stackoverflow.com/questions/1316757/cant-access-control-id-in-code-behind">here</a></p>
<p>But somehow the fixes suggested there arent working for me. So here goes.
I have the following code
in my aspx page :</p>
<pre><code> <... | c# asp.net | [0, 9] |
5,827,296 | 5,827,297 | How to remove <li></li> from ul? | <p>how to remove a particular <code><li></li></code> from the ul list?
i am adding it dynamically...
and i need to remove it when the user click on clear. how can i do that?</p>
| javascript jquery | [3, 5] |
1,419,125 | 1,419,126 | Creating a drop down alert field on top of the page | <p>I am building a voting system for my site and I want to set it up to have a 300px drop down bar on top of page saying "Thank you for Voting" when the button is clicked. Anyone have a suggestion on how to do this?</p>
| javascript jquery | [3, 5] |
1,264,351 | 1,264,352 | Reverse Geocoding works in Debug mode but not in Run Mode | <p>I have a pretty strange situation related to geocoding in Android. I have a class where I find latitude and longtitude information and translate this into address info using location based services.</p>
<p>Application is working fine in Debug mode where x,y pair is translated to Address information but when I run a... | java android | [1, 4] |
3,097,173 | 3,097,174 | javascript validation in a form | <p>I am having trouble getting this validation to work. I am validating that a selectbox has been chosen and not left on the default option within my form.</p>
<p><strong>Form:</strong></p>
<pre><code><label for="reason">How can we help?</label>
<select name="reas">
<option value="Please S... | javascript jquery | [3, 5] |
4,239,599 | 4,239,600 | How to send app request in iphone/php webservices to facebook in using query string | <p>I want to send request by simple query string but I have problems with getting notification on facebook. Also when I send the request and I pass the id of receiver in (to) parameter then I get the request on my own id.</p>
<p>How could I send the app request and get the notification on facebook ?.</p>
<p>I use php... | php iphone | [2, 8] |
5,205,749 | 5,205,750 | Start Java Platform from C# | <p>I have a windows application that uses WebBrowser in wich users can watch some flash animations and java applets. </p>
<p>I would like to start java platform on aplication start (even the user is not needing it), so user is not waiting for the platform to start, when he wants to look at the applets.</p>
<p>Any ide... | c# java | [0, 1] |
946,596 | 946,597 | Run .exe on client system from server-side c# code | <p>I want to run an exe on client system from my c# asp.net website. When I use <code>Process.Start()</code>
it throws an error:</p>
<blockquote>
<p>The requested operation requires elevation.</p>
</blockquote>
<p>How do I set permissions to run that exe?</p>
| c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.