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,269,430 | 1,269,431 | create a copy of an ASP.NET Control object | <p>I have a cached control object form a UserControl in asp.net cache.
I like to access my control and make a copy of it to freely change it without having any affect on the base cached control.</p>
| c# asp.net | [0, 9] |
3,779,965 | 3,779,966 | how to know if someone is logged via javascript? | <p>in php i would do </p>
<pre><code>if (isset($_COOKIE['user']) && $_COOKIE['user'] == $valueFromDb)
echo 'logged';
</code></pre>
<p>But in javascript how can I check it?</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
5,312,791 | 5,312,792 | Multiple if() in one | <p>This:</p>
<pre><code>if (A || B) { X; }
if (C && D) { X; }
if (F != G && H + I === J) { X; }
</code></pre>
<p>Can be replaced by:</p>
<pre><code>if ((A || B) || (C && D) || (F != G && H + I === J)) { X; }
</code></pre>
<p>But can it be replaced by:</p>
<pre><code>if (A || B || C ... | php javascript c++ | [2, 3, 6] |
149,180 | 149,181 | Multidim json array javascript, how to grab values | <p>I have this data response from an AJAX call:</p>
<pre><code>{"18:00":{"twopersons":1,"fourpersons":0}}
</code></pre>
<p>Which gets stored into a variable by <code>statsarray = data;</code></p>
<p>Now how can i loop through statsarray and output the <code>twopersons</code> value?</p>
<p>So I can alert:</p>
<pre>... | javascript jquery | [3, 5] |
3,620,406 | 3,620,407 | How to simulate slow page load in ASP.NET? | <p>How to simulate slow page load in ASP.NET?</p>
| c# asp.net | [0, 9] |
4,868,834 | 4,868,835 | How to extract Google search keyword using Request.UrlReferrer and c# | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1567695/how-to-get-keywords-used-from-a-search-engine">How to get Keywords used from a Search Engine</a> </p>
</blockquote>
<p>The question is clear..</p>
<p>I want to extract the search keyword from the Url Re... | c# asp.net | [0, 9] |
5,802,718 | 5,802,719 | How to connect javascript to mozilla sqlite stored file | <p>i have created a database using mozilla firefox add-on ,now i want to connect it to my android project using java script .Please let me know the code</p>
<p>Any ideas appreciated... thanks!</p>
| javascript android | [3, 4] |
2,877,992 | 2,877,993 | JQuery onclick condition stop link? | <p>I have a link:</p>
<p>Link</p>
<p>using::</p>
<pre><code>$('#myID').click(function(){
if($("#myCheckbox").is(":checked")) {
alert('Yes it is...'); //continue as normal
}
else {
alert('Not checked');
//exit do not follow the link
}
...
</code></pre>
<p>so is //exit do not ... | javascript jquery | [3, 5] |
1,054,202 | 1,054,203 | javascript or jquery : mouse events | <p>Need your help in understanding this code..Is this Javascript ( expression language ) or JQuery. I tried to understand but didn't get it.</p>
<pre><code>var interval = 0, changed = false;
...............
...............
var start = function () {
$(document).on('mousedown mousemove scroll touchstart touchmove k... | javascript jquery | [3, 5] |
4,203,256 | 4,203,257 | Setting value for javascript variable from code behind (C#) | <p>I understand the difference between Client-side and Server-side scripting. I have a javascript function and variable in my <code>MasterPage</code>:</p>
<pre><code><script language="JavaScript" type="text/javascript">
var needToConfirm = false;
window.onbeforeunload = confirmExit;
funct... | c# javascript asp.net | [0, 3, 9] |
4,157,779 | 4,157,780 | Is this functionality possible? | <p>Does anyone know if the following is possible please? (and the best way to do it)</p>
<ul>
<li><p>code that searches through a pages content</p></li>
<li><p>finds any names that are defined in a seperate text file</p></li>
<li><p>if it finds any matches it adds a hyperlink to the name</p></li>
<li><p>the hyperlink ... | php javascript jquery | [2, 3, 5] |
3,772,250 | 3,772,251 | FilenameFilter, searching for folders | <p>I have this class that implements <code>FilenameFilter</code></p>
<pre><code>package Logic;
import java.io.File;
import java.io.FilenameFilter;
public class Filter implements FilenameFilter {
String name;
public Filter(String name) {
this.name = name;
}
@Override
public boolean accept(File dir, St... | java android | [1, 4] |
1,684,595 | 1,684,596 | How to prevent OnSelectedIndexChanged to cause postback unless the user uses the mouse or the enter key? | <p>here's a dropdownlist that posts back on selected index changed. </p>
<pre><code><asp:DropDownList ID="_ddlClientType" runat="server" AutoPostBack = "true"
OnSelectedIndexChanged="ClientType_SelectedIndexChanged" >
<asp:ListItem Value="-1" Text="CANCEL.."></as... | jquery asp.net | [5, 9] |
1,337,689 | 1,337,690 | How to get the response from a modal dialog? | <p>I currently have this:</p>
<pre><code>Builder yesandno = new AlertDialog.Builder(this);
yesandno.setTitle("QuickResponse");
yesandno.setMessage(message);
yesandno.setPositiveButton("YES", null);
yesandno.setNegativeButton("NO", null);
yesandno.show();
</code></pre>
<p>How should I go by setting an event... | java android | [1, 4] |
1,302,607 | 1,302,608 | JQuery or JavaScript: How determine if shift key being pressed while clicking anchor tag hyperlink? | <p>I have an anchor tag that calls a JavaScript function.</p>
<p>With or without JQuery how do I determine if the shift key is down while the link is clicked?</p>
<p>The following code does NOT work because keypress is only fired if a "real key" (not the shift key) is pressed. (I was hoping it would fire if just the... | javascript jquery | [3, 5] |
5,482,066 | 5,482,067 | Access to class attributes by using a variable in Python? | <p>In PHP i can access class attributes like this:</p>
<pre><code><?php // very simple :)
class TestClass {}
$tc = new TestClass{};
$attribute = 'foo';
$tc->{$attribute} = 'bar';
echo $tc->foo
// should echo 'bar'
</code></pre>
<p>How can i do this in Python?</p>
<pre><code>class TestClass()
tc = TestClass
... | php python | [2, 7] |
495,172 | 495,173 | DetailsView Preview mode? | <p>DetailsView1.DefaultMode = DetailsViewMode.Insert;</p>
<p>After inserting how can i Preview Data before Submitting/Inserting data in the table?</p>
<p>I know the code would be:
DetailsView1.DefaultMode = DetailsViewMode.ReadOnly;</p>
<p>Where do I put this code BEFORE submitting/inserting data in the table?</p>
| c# asp.net | [0, 9] |
1,099,065 | 1,099,066 | Replacing characters using javascript replace and substring | <p>I have a string in js like this:</p>
<pre><code>var frmSearch ="LoginID=:PersonName=:CallIDNumber=:NumberCalledTo=%2B92+3344038368:NumberCalledFrom=%2B92+3344038368:Notes="
</code></pre>
<p>I want to remove space (%2B) and replace + with ~ from NumberCalledTo and NumberCalledFrom. numbers can be of different lengt... | javascript jquery | [3, 5] |
3,790,178 | 3,790,179 | get the value of hidden parameter present in a div using jquery | <p>I have a div whose id is "mainDiv" and a hidden field is in this div whose class name is "myHiddenField". Now I want to get the value of that hidden parameter using jquery.</p>
<p>I have tried:</p>
<pre><code>$("#mainDiv .myHiddenField").val()
</code></pre>
<p>and </p>
<pre><code>$("#mainDiv .myHiddenField").att... | javascript jquery | [3, 5] |
4,531,931 | 4,531,932 | Avoid iPhone reload page | <p>I've got a Wordpress site which has a registration wizard. When it comes to second step, when executing from iphone, the page reloads so data get lost and it can't continue.</p>
<p>Searching I saw this reload thing is a <a href="http://www.google.es/search?q=wp+log+activity&ie=utf-8&oe=utf-8&aq=t&rl... | php iphone | [2, 8] |
1,159,863 | 1,159,864 | setting checkbox value | <p>I have this code:</p>
<pre><code>$('#chkBox').click(function() {
$('#hiddenBox').val($('input').is(':checked'));
});
</code></pre>
<p>I want it to be where if i click on the checkbox, in my hidden field, I set the value to true else if it's not clicked, the value would be false. Can anyone help?</p>
| javascript jquery | [3, 5] |
2,456,446 | 2,456,447 | How to get type of input object | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1940471/how-do-i-determine-an-html-input-element-type-upon-an-event-using-jquery">How do I determine an HTML input element type upon an event using jQuery?</a> </p>
</blockquote>
<p>I want to get type of input o... | javascript jquery | [3, 5] |
652,867 | 652,868 | JQuery add class with name of closest label | <p>I have a table that needs some custom theming. It has a lot of text inputs and they all need custom widths. I figured it would be nice to simply add custom CSS classes based on the label name of each field. I am part of the way there but for some reason I am picking up all the label names for any given label in the ... | javascript jquery | [3, 5] |
2,394,337 | 2,394,338 | pragmatically add items to dropdownlist in detailsview update mode and bind the data | <p>i have a detailview with a dropdownlist</p>
<pre><code><asp:TemplateField HeaderText="nid" SortExpression="nid">
<EditItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" onclick="btnUpdate_Click">
</asp:DropDownList>
... | c# asp.net | [0, 9] |
4,738,528 | 4,738,529 | How send C# DateTime object into Javascript? | <p>I want to send C# DateTime object into Javascript. How can I accomplish that?</p>
| c# javascript | [0, 3] |
4,219,742 | 4,219,743 | Javascript addition query | <p>Don't feel foolishness in my question. Below is my scenario. Please advice</p>
<p>var num = 02;
var add = num + 1 ;</p>
<p>Getting result is 3, but I need it as 03. Is it possible.</p>
| javascript jquery | [3, 5] |
4,463,325 | 4,463,326 | Given a ISO 8601 weeknumber, how would you get the dates within that week | <p>I got a weeknumber from a jquery datepicker, when a user selects a date. But now I want to get all the days within that week.</p>
<p>I could add a click event that loops through all the td's of the tr the selected date is in and graps it's value but I'm looking for a more reliable way.</p>
<p>So my question is, gi... | javascript jquery | [3, 5] |
741,250 | 741,251 | Error mousemove event can't show button in other frame? | <p>I have a sample code:</p>
<pre><code><div id="background-1" style="background: url('image1.png') no-repeat left center; width: 200px; height: 200px; float: left;">
<div id="button-wrapper" style="position: absolute; opacity: 1; z-index: 100;">
<input type="button" value="submit">
... | javascript jquery | [3, 5] |
2,320,978 | 2,320,979 | Jquery X,Y position send over ajax | <p>I need an example that uses jquery to send the current x,y position of a <code><div></code> (the top left pixel) to a php file using ajax where the position can then be processed.</p>
| php jquery | [2, 5] |
4,852,376 | 4,852,377 | improve my jquery validation plugin code | <p>Just hoping soemone can help me to write better code than I can come up with on my own.</p>
<p>I am using the jquery validation plugin. I have some fields that are mandatory ONLY if certain options are chosen.</p>
<p>The below code works fine. But the thing is, is that that my list of 'OR's is much longer than I'... | javascript jquery | [3, 5] |
1,940,771 | 1,940,772 | jquery: simple animate question | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/190560/jquery-animate-backgroundcolor">jQuery animate backgroundColor</a> </p>
</blockquote>
<p><a href="http://johanberntsson.se/dev/fysiosteo/" rel="nofollow">http://johanberntsson.se/dev/fysiosteo/</a></p>
<... | javascript jquery | [3, 5] |
2,080,337 | 2,080,338 | Jquery traversing using prev() | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5452917/jquery-prevselector-not-working">jQuery: prev(<selector>) not working?</a> </p>
</blockquote>
<p>Consider this markup:</p>
<pre><code><tr class="store">
<td>...</td>
<... | javascript jquery | [3, 5] |
1,584,529 | 1,584,530 | how can i get all field when click on record | <p>I need to insert a value into the text input when a user selects a record, and I don't know if it's possible or not.</p>
<p>Here is my code: </p>
<pre><code> <table border="2" cellspacing="3">
<tr>
<td><input type="checkbox" id="select" /></td>
<td>Hello&l... | javascript jquery | [3, 5] |
393,784 | 393,785 | how to restart main activity while retaining some data | <p>This is my first app and I'm trying to write a simple Liar's Dice game. </p>
<p>I wrote everything in the main activity class, rolls random dice, textedit boxes to enter bids and buttons to bid and call. </p>
<p>So after the game runs, how do I get it to keep track of the score and run again? </p>
<p>I've tried m... | java android | [1, 4] |
2,088,160 | 2,088,161 | http://10.0.2.2 works on the android emulator but not on android device used as a emulator | <p>I connected my android device via USB to use it as a emulator, if I access the URL from eclipse emulator it works but the same if I access from device as emulator it gives connection time out error.</p>
<p>is there any settings do I need to change for this? or is there any possible solution for this?</p>
<p>Thanks... | java android | [1, 4] |
876,543 | 876,544 | How do I do the equivalent of "myClass[].class" with ArrayList<myClass>? | <p>I'm using the GSON library and calling the fromJson() method:
<a href="http://google-gson.googlecode.com/svn/tags/1.2.3/docs/javadocs/com/google/gson/Gson.html" rel="nofollow">http://google-gson.googlecode.com/svn/tags/1.2.3/docs/javadocs/com/google/gson/Gson.html</a></p>
<p>My old code:</p>
<pre><code>String s = ... | java android | [1, 4] |
4,946,181 | 4,946,182 | Android and java Association | <p>Can anybody please tell me that how closely Android Application Development is associated with Java. That is, is it possible for a person working in Android Development to work on Core Java or J2EE or J2SE ever?</p>
<p>Let me make my question a bit more clear: " As Android is based on Java, but does it depends on J... | java android | [1, 4] |
5,817,694 | 5,817,695 | How to display the current page even after clicking browsers back button | <p>Is it possible to keep displaying the same page even after the user click's the browsers back button?</p>
<p>Its like a multiple-step form which on submit makes a redirect to the resulting page and once the form has been submitted I don't want the user to be able to navigate back to any of the previous pages using ... | javascript jquery | [3, 5] |
5,773,739 | 5,773,740 | JQuery Get current ID of Widget | <p>I have have the following</p>
<pre><code><div id="dualList"></div>
</code></pre>
<p>And I have written a plugin but for the sake of testing I have stripped it away. I am having problems with the plugin displaying the id of the div.</p>
<pre><code><script>
(function($) {
$.fn.DualList = func... | javascript jquery | [3, 5] |
3,203,279 | 3,203,280 | String is not replaced in CreateUserWizard Registration Email | <p>My website allows users to create accounts. </p>
<p>Upon creating, an email verification with a URL will be send to the user's email. </p>
<p>Problem: The sending of email worked but unfortunately the verification URL did not appear.</p>
<p>And for </p>
<pre><code><a href="<%VerifyUrl%>"<%verifyUrl%&... | c# asp.net | [0, 9] |
6,025,770 | 6,025,771 | Audio analyzer for finding songs pitch | <p>Is there anyway to analyze the audio pitches programmatically. For example, i know most of the players show a graph or bar & if the songs pitch is high @ time t, the bar goes up at time t .. something like this. Is there any utility/tool/API to determine songs pitch so that we interpolate that to a bar which goe... | java c++ iphone | [1, 6, 8] |
826,504 | 826,505 | how to give gridview first column left margin from gridview? | <pre><code><asp:GridView ID="grdUploadedFiles" runat="server" AutoGenerateColumns="False" AllowPaging="True"
PageSize="7" DataKeyNames="ID" OnRowEditing="grdUploadedFiles_RowEditing" OnRowUpdating="grdUploadedFiles_RowUpdating"
OnRowCancelingEdit="grdUploadedFiles_RowCanceling... | c# asp.net | [0, 9] |
4,002,691 | 4,002,692 | De-cluttering ASP.NET javascript | <p>I'm just getting into ASP.NET Been avoiding it for years as I'm a desktop application advocate.</p>
<p>Anyway, I was wondering if there's a way to stop the generated html being so cluttered with javascript. Is there a way to make the generated script go into a referenced js file rather that inline with the page.</p... | asp.net javascript | [9, 3] |
6,002,337 | 6,002,338 | Inputing results to inArray from .html (or innerHtml) and making it work | <pre><code>$("form").submit(function () {
if ($.inArray($("input:first").val().toUpperCase(), ["UNITED STATES", "USA", "AMERICA"]) > -1) {
//function here
});
<div class="answers">"UNITED STATES", "USA", "AMERICA"</div>
$("form").submit(function () {
if ($.inArray($("input:first").val().toUpperCase(), ... | javascript jquery | [3, 5] |
3,064,979 | 3,064,980 | Jquery detect input focus | <p>I am creating a conversion web app to teach myself Javascript. The user can input data with a number pad (basically a calculator without the operators). I also set up a function to detect keystrokes (1-9) which insert data just like the number pad. And also character 'c' which clears all data </p>
<p>My problem is ... | javascript jquery | [3, 5] |
2,691,919 | 2,691,920 | send commands to a backgrounded jobs stdin | <p>I have a java server application that, when its running, you can interact with it sending commands via stdin. I want to write a web interface that can send these commands to it. </p>
<p>In order to do that I need some way of getting commands from php to the stdin for this backgrounded job. Is there a way to do this... | php python | [2, 7] |
1,715,371 | 1,715,372 | Communicating with iFrame contents | <p>There is an iFrame that contains a whole document <code>(<html> to </html>)</code>. This document contains some <code>script</code> tags too. My question is, can we call the functions of the scripts which are present in the iFrame?</p>
| javascript jquery | [3, 5] |
883,176 | 883,177 | Use jQuery Media Plugin with audio/video stored in database | <p>I am using jQuery media plugin for making a media player. My media player should play audio/video. files stored in a sql server database that is retrieved by another aspx page with ContentType header equal to MIME Type.</p>
<p>so i can reach a stored media with "abc.aspx?id=123" Url.</p>
<p>the problem is jQuery m... | jquery asp.net | [5, 9] |
1,449,466 | 1,449,467 | Start timer on web application start | <p>I would like to start a <code>System.Threading.Timer</code> in my application when it launches (maybe deploy is the correct word). I have seen that you can use <code>Application_Start()</code> but this is only <a href="http://stackoverflow.com/questions/1384131/configuring-asp-net-to-start-a-method-before-each-appl... | c# asp.net | [0, 9] |
254,155 | 254,156 | sort divs by the number, no randomize | <p>I found this great script: <a href="http://jsfiddle.net/yomoore/RJMhT/119/" rel="nofollow">jsfiddle</a></p>
<p>Over here: <a href="http://stackoverflow.com/questions/4205166/showing-random-divs-using-jquery">Showing random divs using Jquery</a></p>
<p>The problem is that on reload the divs are randomized. I need t... | javascript jquery | [3, 5] |
5,402,829 | 5,402,830 | hide/show certain div according to links rel on hover | <p>got an easy question, using jquery, how do i create a menu, with links on the left and with content on the right, for example, if i hover the link with rel="link1", the content div on the right with id="link1" should be displayed, and when i hover another link with rel="link2", the content div with id="link2" will b... | javascript jquery | [3, 5] |
4,291,701 | 4,291,702 | choppy animation issues | <p>i'm having some trouble with choppy jquery animation.</p>
<p>My question is about the "Work" div that appears after the opening screen. I need the word "work" to move diagonally southeast. It moves, but the movement is very choppy (i'm using the latest version of firefox). Can anyone help me figure out why?</p>
<p... | javascript jquery | [3, 5] |
2,799,064 | 2,799,065 | make tooltip display on click and add a modal to it | <p>strangely, I find it difficult to bind jquery's onclick event handler to this fiddle. I don't even know what I'm doing wrong. The html is as follows:-</p>
<pre><code><ul>
<li><a id="tooltip_1" href="#" class="tooltip" >Trigger1</a><li>
<li><a id="tooltip_2" href="#" cl... | javascript jquery | [3, 5] |
3,970,398 | 3,970,399 | Global Variable in php and Javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8127988/passing-variable-between-pages">passing variable between pages</a> </p>
</blockquote>
<p>I need to create a variable that I can use in one PHP page to assign a category to this variable. When I've assign... | php javascript | [2, 3] |
1,892,858 | 1,892,859 | Proper way to decode SecurityElement.Escape using Javascript | <p>I've tried several methods to decode encoded xml using javascript. For some reason all of them ignore ' which causes it to fail. I can do a string.replace to fix the issue, but wondering why this happens or if there is some other method I should be using.</p>
<p>I've tried decodeURIComponent as well as another... | c# javascript asp.net | [0, 3, 9] |
603,670 | 603,671 | JQuery live doesn't work | <p>I try to get .live content into a div when there is a keyup... I looked at the forumtopic here but I didn't find the answer...</p>
<p>Why does my code not works? I use this JQuery:</p>
<pre><code><script type="text/javascript" src="jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javas... | javascript jquery | [3, 5] |
1,856,786 | 1,856,787 | Writing python code on android | <p>I recently got a android tablet (nexus 7) and would like to be able to write python programs on it (not for it) without access to the internet or needing to access any other device to run the program.
If somebody could suggest an app, or tell me how to set it up, it would be great.
If however, someone could suggest ... | android python | [4, 7] |
2,717,329 | 2,717,330 | radio button change style on checked | <p>i have a set of radio buttons. </p>
<pre><code><ul class="ProductOptionList">
<li>
<label>
<input class="RadioButton" type="radio" value="157" name="variation[1]"/>
Lemon (200 ml)
</label>
</li>
<li>
<label>
<input class="RadioButton chosen" type="radio" value="160... | javascript jquery | [3, 5] |
4,114,997 | 4,114,998 | Function to return only date | <p>I have made a function to convert a textbox value to date.
I want to store the converted date in a datetime field in my business object with only date and not time like in format(yyyy-MM-dd)</p>
<p>My function is returning date along with time</p>
<pre><code>public static DateTime ExtractDate(string myDate)
{
... | c# asp.net | [0, 9] |
5,707,250 | 5,707,251 | replace a textnode that has non-textnode siblings | <p>For this HTML</p>
<blockquote>
<p><label
id="nameWrapper"><input
type="checkbox" name="name"
/>guest</label></p>
</blockquote>
<p>What's the shortest javascript code to replace <code>guest</code> with other text? What I can think of is,</p>
<pre><code>$('#nameWrapper').contents().filter(... | javascript jquery | [3, 5] |
199,957 | 199,958 | Create JS array from input field values | <p>I have x number of input fields with class='agency_field'. How can I create a JS array that contain the values of all fields with this class?</p>
<p>Using jQuery, this gives a syntax error:</p>
<blockquote>
<p>$(".agency_field").each(function(index)
{ agencies[] = $(this).val(); });</p>
</blockquot... | javascript jquery | [3, 5] |
4,984,633 | 4,984,634 | Correctly way to find some variable with 2 case | <p>I want to find some variable from 2 different element patterns.</p>
<pre><code>var something = $('.class').attr('data-something');
if(typeof something === 'undefined') {
var something = $('.class').attr('data-another');
}
if(typeof something != 'undefined') {
// do action...
console.log(something);
... | javascript jquery | [3, 5] |
227,527 | 227,528 | Any online tools for converting jQuery into good old fashion Javascript online? | <p>I'm fiddling around with various video resizing methods similar to Zurbs <a href="http://www.zurb.com/word/responsive-video" rel="nofollow">flex video</a> and found the easiest option, for me, on css-tricks site <a href="http://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php" rel="nofollow">here</a... | javascript jquery | [3, 5] |
2,580,963 | 2,580,964 | What's The Error In this code | <p>this code works fine in php to generate the custom scripts generators</p>
<pre><code> <?php
$arrs = array("script.js","ui.js","jform.js");
foreach ($arrs as $var)
{
?>
<script type="text/javascript" src="<?php echo $var ?>" >
</script>
<?php
}
?>
</code... | c# asp.net | [0, 9] |
3,976,668 | 3,976,669 | How to find source of submit using javascript | <p>Please help me to solve this problem:
I have a form in which i have written onSubmit calling a javascript function.
please tell me in that javascript function how can i check that who was the event generater ( i mean on which button click this even raised)..
Note: onsubmit function call is in form tag..
i am using ... | asp.net javascript | [9, 3] |
2,966,658 | 2,966,659 | Convert List to Structure Using Javascript or JQuery | <p>I've apologize if this is a trivial task, and I've also been googling and searching high and low for some solution I can get my head around but so far no dice. So anyways....</p>
<p>I have this:</p>
<pre><code>var myList = "key1,value1,key2,value2"
</code></pre>
<p>And I want to populate a struct with this string... | javascript jquery | [3, 5] |
1,937,200 | 1,937,201 | How to capitalize only the first letter of a string, while lowercasing the rest? | <p>My string is:</p>
<blockquote>
<p>1 STATE OF GOA THROUGH CHIEF</p>
</blockquote>
<p>I want the output to be like</p>
<blockquote>
<p>1 State of goa through chief</p>
</blockquote>
<p>How can I keep the first letter capital and convert other to small? I had used <code>.ToLower()</code>, but it converts all ... | c# asp.net | [0, 9] |
2,766,984 | 2,766,985 | How do I out put the JSON format for other website? | <p>How do I out put the JSON format for other website?
I wrote the code below. I've tried to retrieve the information from the JSON server but it didn't return anything back.</p>
<p>JSON SERVER</p>
<pre><code><%@ Page Language="C#" %>
<%@ Import Namespace="System" %>
<script runat="server">
prot... | c# jquery | [0, 5] |
5,011,486 | 5,011,487 | Jquery position method | <p>As per Jquery API documentation:</p>
<p><strong>.position()Returns:</strong> <em>Object</em></p>
<p><strong>Description:</strong> <em>Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.</em></p>
<p>This method does not accept any arguments.Reference <a h... | javascript jquery | [3, 5] |
5,990,276 | 5,990,277 | Opening a window in aspx using javascript | <p>I am using the below code to open a new window while the function return the success message. At the same time i want to close the self window. Now am getting the error:</p>
<blockquote>
<p>newwindow is not defined</p>
</blockquote>
<pre><code> var value = getQueryStrings();
var cust_id = value["cust_id"];
try... | javascript asp.net | [3, 9] |
3,886,585 | 3,886,586 | How to trigger a class-targeted method AFTER the class has been added to an element? | <p>In the below markup, the <code>#enable</code> button will add a class to the <code>#show</code> div. This class has a method attached to it that fades in/out the <code>#hidden</code> span.</p>
<p>However, even though the class is added to the <code>#show</code> div, the method attached to the class isn't triggered.... | javascript jquery | [3, 5] |
1,882,964 | 1,882,965 | show only Error message of asp validators by javascript | <p>i trying to pop up only error message's for validation's control not text.
The code which i tried is showing null for error message's. </p>
<pre><code>function fnOnUpdateValidators() {
for (var i = 0; i < Page_Validators.length; i++) {
var val = Page_Validators[i];
va... | javascript asp.net | [3, 9] |
2,006,662 | 2,006,663 | Passing Vars from Jquery to PHP | <p>I was attempting to pass a variable from Jquery to PHP and then I am using that variable on my webpage. My jquery script is not failing as my alerts all come up, but I seem to have a problem grabbing the variable with my php page as I am getting an "Undefined index name on line 6 error" which is were I using my $_P... | php jquery | [2, 5] |
2,422,060 | 2,422,061 | Is there a way i can disable the information bar for ActiveX controls using JavaScript or XHTML? | <p>I save this file as test.html and when I opened this file in IE, I am getting Information Bar for ActiveX Controls, Is there any way we can disable this thing using javascript code or jQuery code?</p>
<pre><code><html>
<body>
<h1>My First Web Page</h1>
<script type="text/javascript">
i... | javascript jquery | [3, 5] |
160,556 | 160,557 | Submit JQuery array alongside PHP form data to PHP script | <p>I'm dabbling in JQuery, and have run up against an issue I'm not quite able yet to figure out. Here is the context:</p>
<p>I have a HTML form, utilising MySQL & PHP, used to edit a CMS post. This post would have a list of attachments (eg. images for a gallery, or downloadable files). Using JQuery, the user can ... | php jquery | [2, 5] |
913,686 | 913,687 | $("#form").attr("method", "post") is In java Script ASP.NET | <p>I have a Grid view where I have a hyper link button which displays ID, by clicking on it I make a Ajax call to the server and get the specific URL to navigate against of the ID. After the Ajax call complete I call the following
Codes to open the respective page in New Tab/Window.</p>
<pre><code>function RedirectP... | javascript jquery asp.net | [3, 5, 9] |
5,680,198 | 5,680,199 | setInterval started with a button or started alone | <p>How can i active/fire/trigger the setInterval with a button? and if the button is not clicked how to make it auto fire on 3 second, but if i click on the button it fire it on 0.1
second and restart evrything. please help me out guys</p>
<pre><code>$('button').click(function(){
setInterval(function(){
up... | javascript jquery | [3, 5] |
868,810 | 868,811 | Parse variables from querystring in javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values">How can I get query string values?</a> </p>
</blockquote>
<p>I have the following querystring:</p>
<pre><code>"active_tab=delivered&active_tab=all&active_tab=de... | javascript jquery | [3, 5] |
1,284,577 | 1,284,578 | How to access a server side variable in the databound event of the formview | <pre><code> protected void dvUserMaster_DataBound(object sender,EventArgs e)
{
string CustCreatedBy = DataBinder.Eval(e.ToString(),"strcustomer_name").ToString();
string EmpCreatedBy = DataBinder.Eval(e.ToString(), "stremployee_name").ToString();}
</code></pre>
<p>strcustomer_name is the string which i want to ... | c# asp.net | [0, 9] |
2,283,603 | 2,283,604 | Shadow builder in android | <p>I am working on a dragdrop game, but I have small problem, that when I click in a view the shadow builder appears first at the right-top-corner and then it moves with the touch place.</p>
<p>Also the shadow builder is smaller than the initial view. How can I make it as the initial view?</p>
<pre><code>private fina... | java android | [1, 4] |
4,247,234 | 4,247,235 | Confirmation box javascript | <p>Problem:</p>
<p>I have a confirmation box which pops up whenever I click on the save button. It saves the data fine when I click on OK. But when I click on cancel it does not cancel changes. It saves them instead. Could you please help me solve this issue:</p>
<p>Here is the JavaScript for it:</p>
<pre><code>/
&l... | c# javascript asp.net | [0, 3, 9] |
5,649,168 | 5,649,169 | jQuery hidden value not being sent | <p>Is there a certain or special of dealing with hidden fields in jQuery? I am using a hidden input field and am not receiving a value. Obviously, my code is incorrect and would be grateful if someone could show me the error. many thanks</p>
<pre><code><input id="customer" name="customer" type="hidden" value="<?... | javascript jquery | [3, 5] |
2,985,002 | 2,985,003 | Problem With Custom Control on Page Using a MasterPage | <p>I have a content page which has a related master page.
I register a prefix <%@ TagPrefix ..... and can load other custom controls at that namespace.
However, one particualar control at the same namespace, when added to the aspx page, breaks it.
The control in question inherits from asp:Panel, has a parameterless ... | c# asp.net | [0, 9] |
1,868,962 | 1,868,963 | Elegant way to combine ASP.NET validation with JQuery | <p>How can I best combine JQuery with ASP.NET client side validation model?</p>
<p>I've generally avoided implementing ASP.NET validation model because it always seems overkill for what I was doing. For the site I'm working on now I'm just collecting non critical user data and only need somewhat basic validation. I do... | asp.net jquery | [9, 5] |
5,134,037 | 5,134,038 | Android ignores javascript prompt | <p>I'm simply asking the user to answer two questions. On most browsers the answers are displayed in the test1 and test2 divs respectively. Except on the native browser of Android v2.3.4 (HTC Sensation) where test2 remains 'unknown'. Any help much appreciated.</p>
<pre><code><html>
<head >
<script sr... | javascript android | [3, 4] |
2,758,651 | 2,758,652 | To read an image from Android Emulator | <p>This is my code to convert image file into byte array.</p>
<pre><code> public String GetQRCode() throws FileNotFoundException, IOException {
/*
* In this function the first part shows how to convert an image file to
* byte array. The second part of the code shows how to change byte array
* back ... | java android | [1, 4] |
2,401,296 | 2,401,297 | uploading app problem in developers site | <p>hi i have posted one of my app in market.android.com when i am trying to post second app it shows "You have another application on Market with the same package name. Go to that other application, and click upgrade" I dont want to upgrade it but i want my second app to be posted. When i tried to change the package na... | java android | [1, 4] |
3,908,640 | 3,908,641 | How do I use Android's Handler.PostDelayed to make an event happen at a specified time? | <p>I want to have my application execute code at a point in the future.</p>
<p>I want to do:</p>
<pre><code> Date now = new Date();
for (Date beep : scheduledBeeps) {
if (beep.after(now))
{
Logger.i("adding beep");
m_beepTimer.postAtTime(beepNow, beep.getTime());
... | java android | [1, 4] |
3,973,632 | 3,973,633 | jQuery function when one list item has the active class, I want all other list items to automatically not have the active class ? | <p>My webpage is at <a href="http://www.sarahjanetrading.com/js/status" rel="nofollow">http://www.sarahjanetrading.com/js/status</a></p>
<p>All the HTML, CSS and jQuery code + images are available there for anyone to access.</p>
<p>My issue is that currently the jQuery code I have only makes the active states toggle ... | javascript jquery | [3, 5] |
861,629 | 861,630 | Fire event at a certain time of the day | <p>Is it possible with javascript (jQuery solutions are fine too) to fire an event/call a function at certain times of the day e.g.</p>
<p>call myFunctionA at 10:00</p>
<p>call myFunctionB at 14:00
etc..</p>
<p>Thanks</p>
<p>Mark</p>
| javascript jquery | [3, 5] |
4,624,600 | 4,624,601 | Mouse Click curser effect throughout site | <p>I think it would be cool to set a custom cursor click effect with jQuery. Something similar to Android Incredible 2 browser where it highlights click-able items in green when selected. Except mine would be the cursor with a box around it something like 1px width, very subtle, and it would kind of float/toggle until ... | javascript jquery | [3, 5] |
4,108,224 | 4,108,225 | A field initializer cannot reference the nonstatic field, method, or property | <p>Using C# and asp.net I receive the error below. I'm note sure what could be the problem. Could you point me out in the right direction? Thansk</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace MySite
{
public class Reminders
{
public Dicti... | c# asp.net | [0, 9] |
4,514,535 | 4,514,536 | Best approach for learning Java after C++? | <p>I've been using C++ for about 6 or 7 years now, and I consider myself fluent in it. I've never bothered with Java until now, but I find myself out of the job (company went under) and I need to expand my skill set. Someone recommended Java, so I am wondering if there is any advice for where somebody like me might s... | java c++ | [1, 6] |
2,792,326 | 2,792,327 | Any shorter way to add attributes to specified elements using jQuery? | <p>Assuming I have a wide table with many columns, and I want to add <code>colspan=2</code> to:</p>
<p><strike><code>td#2, td#10, td#15</code></strike></p>
<p><code>td#3, td#11, td#16</code></p>
<p>Do I have to do it specifically: </p>
<pre><code>$("table td").eq(2).attr('colspan','2')
$("table td").eq(10).attr('co... | javascript jquery | [3, 5] |
1,582,020 | 1,582,021 | Eval() in ASP. How to pass values on redirect throught session | <p>I have this image button inside a grid view which redirects the groupname to the send message.aspx. </p>
<pre><code> <asp:ImageButton ID="img_Send" ImageUrl="Styles/Images/Message.jpg" Enabled="True" Width="" runat="server" PostBackUrl='<%# Eval("GroupName", "SendMessage.aspx?GroupName={0}") %>'></as... | c# javascript asp.net | [0, 3, 9] |
5,675,213 | 5,675,214 | is it possible to make duble include in javascript and php? | <p>I am using the following code to check if the user liked my facebook page or not ?</p>
<pre><code> <style>xxxxxxxxxxxxxxxxx</style>
<script src="http://www.google.com/jsapi"></script><script>google.load("jquery", "1");</script>
<script type="text/javascript" src="ht... | php javascript | [2, 3] |
4,645,588 | 4,645,589 | IE8 window.opener problems | <p>Having problems with IE8...</p>
<p>I have a button that onclick fires the <code>showImageBrowser()</code> function.</p>
<pre><code>function showImageBrowser(params) {
var open = window.open('http://localhost/admin/browse?'+params,'newwin','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizabl... | javascript jquery | [3, 5] |
925,882 | 925,883 | (jQuery) How do I find the first link which has a specific class? | <p>If I have a link <strong>somewhere</strong> (not predetermined) down the tree like this:</p>
<pre><code><div id="foo">
<div>
<div>
<a href="asdf.com">link</a>
<a href="#bar" class="specialLink">link</a>
<a href="#bar2" class="specialLink">link&... | javascript jquery | [3, 5] |
5,868,703 | 5,868,704 | Integrating audio player which support both mozilla and IE | <p>I want to integrate (php) a audio player which supports both mozilla and internet explorer, with a player image on the webpage that should contain all the functionalities forward, rewind, pause, volume...</p>
| php javascript | [2, 3] |
2,709,183 | 2,709,184 | unable to remove the validation classes while clicking the cancel option in dialog box | <p>hello i'm using <a href="http://www.position-relative.net/creation/formValidator/demos/demoValidators.html" rel="nofollow">these validation</a> for my application. these works fine, when i'm using these in dialog box it works but after showing validations and pressing cancel the validations remains appear in the bac... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.