Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
2,171,432 | 2,171,433 | jQuery help wanted ... | <p>I have a site there is a pop up window in right. and have a button. My query is , if i click that button then the pop up windows will come to left and if i again click that button then the pop up window will go back it's previous place i mean right. it's like slideToggle . I have try something . but it comes only le... | javascript jquery | [3, 5] |
2,453,642 | 2,453,643 | Pop up enabling | <p>I have a web app in ASP.NET, when you a click a link, am opening a pop up window in a new page, while i do that, if pop ups are disabled in end user computer, is there a way to detect that & enable pop up blockers? so that the new window can automatically open.</p>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
4,012,903 | 4,012,904 | How to: Swap options with jQuery using Address | <p>I am looking for a way to swap to option values between them.
I made a simple fiddle which would swap inputs but when I change it to select options it doesn't seem to work.</p>
<p>I'm using the method of Address. Eg:</p>
<pre><code>var prevAddress = $(this).parent().prev('.forms').find('.first option');
var ne... | javascript jquery | [3, 5] |
3,012,706 | 3,012,707 | On button click, select a sibling element with JQuery | <p>I have this code:</p>
<pre><code><div class="item">
<div class="hidden">44</div>
<input type="submit" id="btnAddCommentForAnswer" value="Add Comment" />
<script type="text/javascript">
$(document).ready(function () {
$('#btnAddCommentForAnswer').click(function () {
... | javascript jquery | [3, 5] |
3,122,062 | 3,122,063 | JQuery html function on a td | <p>I am trying to place some html within a td that has an id but this doesn't seem to work. Can JQuery not put html in a td by using its id as a selector??</p>
<p>I do this:</p>
<pre><code>$('#total_match').html("<b>Test</b>");
</code></pre>
<p>Here is the td:</p>
<pre><code><td id="total_match">&... | javascript jquery | [3, 5] |
5,514,459 | 5,514,460 | How to add alphanumeric check to jQuery validation plugin? | <p>This exact question was asked here:</p>
<p><a href="http://stackoverflow.com/questions/1053618/using-the-jquery-validation-plugin-how-can-i-add-a-regex-validation-on-a-textbox">using the jquery validation plugin, how can I add a regex validation on a textbox?</a></p>
<p>But unfortunately the solution posted isn't ... | javascript jquery | [3, 5] |
3,160,553 | 3,160,554 | $.load() is not working in ie | <p>i have the following code;</p>
<pre><code>$("#testbtn").live("click", function(){
$("#targetdiv").load("http://localhost/test/test.php");
});
</code></pre>
<p>but it is not working in ie but working fine in chrome firefox safari etc...</p>
| php jquery | [2, 5] |
4,980,804 | 4,980,805 | How to receive Application ID from C2DM? | <p>I have completed my application and launched in android market.Now I want to add notification. I registered in C2DM and received a mail.But I am so confused. Please anybody tell me the procedure for receiving Registration ID from C2DM?</p>
| java php android | [1, 2, 4] |
633,102 | 633,103 | Is there any possibility how to send an AJAX after close the browser window? | <p>Is there any possibility how to send AJAX after close the browser window? </p>
<p>I have a browser game with movement in JavaScript (jQuery) and if I send Ajax after each movement it would be difficult for the server. So I want to send one AJAX when user close the window (or bookmark).
It must be functional in all... | javascript jquery | [3, 5] |
3,542,138 | 3,542,139 | How To Concatenate JavaScript Value to HTML Input 'name' Field? | <p>I have one variable <code>value</code> in my jQuery ready function, and I have one HTML input tag. I want this variable to be concatenated to input tag name field. Please help me.</p>
| javascript jquery | [3, 5] |
1,339,453 | 1,339,454 | Add row to the beginning of a table - JavaScript - jQuery | <p>What is the best method in jQuery to add an additional row to a table as the first row?</p>
<p>I have a table like this</p>
<pre><code><table id="mytable" cellpadding="0" cellspacing="0">
<tr>
<td>col1</td>
<td>col2</td>
<td>col3</td>
</tr>
<tr>
<td>... | javascript jquery | [3, 5] |
5,606,078 | 5,606,079 | Inserting a character inside the body of a paragraph | <p>If someone enters a very long title/sentence, the text will stretch across the web page.</p>
<p>Is there a way to break the text so it continues on to the next line?</p>
<p>Using overflow hidden will hide the text.</p>
<p>I think I should be using the wbr tag.</p>
<p><strong>Should I use the insert(); method for... | c# asp.net | [0, 9] |
3,348,663 | 3,348,664 | How to disable arrow keys for dropdown/selector element? | <p>What is a good jquery/javascript approach to prevent a user from using the up and down arrow keys to select options in a dropdown box (i.e. to force the user to only use the mouse to select menu options)? Thanks!</p>
| javascript jquery | [3, 5] |
3,638,911 | 3,638,912 | 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] |
2,812,388 | 2,812,389 | Find text when <br> is not in front of <img> | <p>I need to find out the content before <code><img></code> tag in my HTML if it does not have <code><br/></code> before it. And if <code><img></code> jas some other content before it then I need to add <code><br/></code> before it.</p>
| javascript jquery | [3, 5] |
3,580,541 | 3,580,542 | How do I make javascript file work on any page that inherit from the master page? | <p>I am new to asp.net. I have a question, How do I make javascript file work on any page that inherit from the master page? Because i put <code><link type="text/javascript" href="scripts/JScript.js" /></code> in the masterpage and it didn't seem to work?</p>
| c# javascript asp.net | [0, 3, 9] |
1,310,216 | 1,310,217 | Android: Displaying a 2-D animation on top of Existing View/Activity | <p>I've been banging my head against the wall for a couple hours trying to figure out the best way to overlay an animation on top of a current View. I have a ListView, and I want to display an animation (say a frame-by-frame bomb explosion) on top of the ListView when a user clicks a button.</p>
<p>Can someone point m... | java android | [1, 4] |
3,195,506 | 3,195,507 | Force a full screen Activity to remeasure/redraw on resume? | <p><strong>Edited to add more details:</strong>
(originally asked nearly two months ago...still haven't found a solution)</p>
<p>I have an activity with a somewhat complicated view. Not complicated in a technical sense...there's just a lot going on. All activities in this particular app are set to FullScreen NoTitle... | java android | [1, 4] |
2,657,422 | 2,657,423 | Javascript Android - plot ECG graph without using 3rd party API's | <p>I need to plot an ECG graph using Javascript without using any API's. I will get a response (graph-co-ordinates) from the server and i have to plot a graph. It can be done in Javascript "CANVAS" or "SVG". But i dont know where to start. Give me some guidance for this criteria.</p>
| java javascript android | [1, 3, 4] |
1,231,401 | 1,231,402 | How can i raise activate event in Asp.net?Is there any possibility? | <p>We have activate event in windows application like that is there any event in asp.net? How can i raise activate like event in Asp.net?Is there any possibility?</p>
| asp.net javascript | [9, 3] |
5,437,104 | 5,437,105 | Image gallery with Jquery | <p>I am creating a jquery image gallery, I tried a little bit with my script. But its not working fine, so onclick of thumbs images the larger images should open.</p>
<p>this is what I have tried</p>
<p><a href="http://jsfiddle.net/T657N/14/" rel="nofollow">http://jsfiddle.net/T657N/14/</a></p>
| javascript jquery | [3, 5] |
1,007,791 | 1,007,792 | HttpBrowserCapabilities not working while using Chrome | <p>I am using HttpBrowserCapabilities to check the users browser. But when using chrome to debug i'm getting in objBcp as "AppleMAC-Safari". While using IE it shows correctly as "IE".</p>
<pre><code> System.Web.HttpBrowserCapabilities objBcp= Request.Browser;
if(objBcp.Browser=="Chrome")
{}
</code></pre>
... | c# asp.net | [0, 9] |
5,887,450 | 5,887,451 | jQuery problem with multiple radio selects | <p>I'm trying to validate a form that contains several different radio buttons. A few radio buttons in the form have the same classname 'video_type'. </p>
<p>In the jQuery validation script, after the form is submitted I want to check if any of the radio buttons with the classname 'video_type' have been selected. If t... | javascript jquery | [3, 5] |
5,515,064 | 5,515,065 | Android multiple activities access one java class | <p>I am new to android development and appreciate any help.
I have multiple android activities that have to access one java class. This class has synchronized getters and setters, but I'm having problems making a single instance of this class across the activities. Is there any way to easily do this?</p>
| java android | [1, 4] |
5,355,930 | 5,355,931 | When to use anonymous JavaScript functions? | <p>I'm trying to understand when to use anonymous JavaScript functions.</p>
<p>State differences between the functions? Explain when you would use each.</p>
<pre><code>var test1 = function(){
$("<div />").html("test1").appendTo(body)
};
function test2() {
$("<div />").html("test2").appendTo(body)... | javascript jquery | [3, 5] |
146,002 | 146,003 | IndexOutOfRange/ System.FormatException in Gridview | <p>I have a gridview with checkbox in my codebehind page. The functionality is that I need to select the records to be deleted using checkbox and click the delete button. I use the below code to do that.. But when I select the last row it does not get deleted. Instead it throws IndexOutOfRange/ System.FormatException .... | c# asp.net | [0, 9] |
3,656,244 | 3,656,245 | Disabling submit button stops form from being submitted PHP / Javascript | <p>I think I got a classic problem but I was not able to find a working solution so far.</p>
<p>I have got a form , the user clicks "Send" and everything works fine using a PRG pattern and doing both client-side and server-side validation.</p>
<p>The problem arises when any user (let's assume he entered valid inputs)... | php jquery | [2, 5] |
4,462,376 | 4,462,377 | Autocomplete text and SQLite | <p>There is a text field with Autocomplete text. Autocomplete goes diractly from the database. Autocomplete works correctly. For example, if you type "H", and there is "HONDA" in the database, then you will be prompted with a hint "HONDA". If you enter it in the database and there is nothing there, then nothing appears... | java android | [1, 4] |
4,197,595 | 4,197,596 | Too much redundant javascript code | <p>On my asp.net pages i need to control for Dirty controls. I'm not that good in javascript so i found a solution on the internet for doing that by doing so : </p>
<pre><code><script type="text/javascript" language="javascript">
//Demo of completely client side dirty flag.
function setDirty() {
... | c# javascript asp.net | [0, 3, 9] |
1,061,744 | 1,061,745 | Asp.Net : How to provide email preview for the different email providers | <p><p>In my asp.net application I need to show the email preview of created email, like with gmail the email will display some different formatting & with hotmail it will some different formatting...</P></p>
<p>
So, How to provide email preview for the different email providers like gmail, hotmail rediffmail etc..... | c# asp.net | [0, 9] |
1,442,043 | 1,442,044 | javascript function that run php file who delete table row in database,mysql | <p>As title says, I was wondering is there any way to create function in javascript that will delete row in table? To call some php to delete row in table? I need help quickly! Thanks in advanced!</p>
| php javascript | [2, 3] |
1,677,213 | 1,677,214 | how to create one simple android game? | <p>hi how to create one game in android application i am very new android any one tell me basic things....simple android game now i am using android 2.2 version </p>
| java android | [1, 4] |
976,155 | 976,156 | return; return true and return false - what are the differences? | <p>In languages like javascript/c++, sometimes there are <code>return false;</code> or <code>return 0;</code> being used. However, in languages like PHP, <code>return;</code> stops the script, and <code>return false;</code> returns the (bool) false and continues the script.</p>
<p>It is confusing me alot lately.</p>
... | php javascript | [2, 3] |
3,515,276 | 3,515,277 | Jquery operation on DOM element with '.' in ID has no effect | <p>e.g. "Live" version here: <a href="http://jsfiddle.net/Ltmbd/5/" rel="nofollow">http://jsfiddle.net/Ltmbd/5/</a></p>
<pre>
<html>
<body>
<select id="some.list" >
<option value="1" >AAA</option>
<option value="2" >BBB</option>
</select>
</b... | javascript jquery | [3, 5] |
5,764,647 | 5,764,648 | jQuery expandable menu | <pre><code><div id="firstDiv">
<div id="secondDiv">
<ul id="accordionMenu">
<li><a href="#">menu item</a></li>
<li><a href="#">menu item</a>
<ul>
<li><a href="#">suboptio... | javascript jquery | [3, 5] |
118,818 | 118,819 | finding value of dynamically created combobox | <p>I'm using VS2010,C#, I have a table that its data should be created dynamically (from an SQL server table), I have to add a combobox (with 3 items) to one of the columns, this combo box is also created dynamically, then I give each combo a unique ID, it has autopost back set to off and also enableviewstate and views... | c# asp.net | [0, 9] |
2,184,348 | 2,184,349 | how to set attributes by jquery and access them by c# | <p>I wanna change or add custom attributes in client side by jquery and check them in server side by c#</p>
<p>(for example add a custom attributed named "Loaded=1" to an image HTML element when the image is loaded successfully and in server side I access to this attribute through Image control Attributes Collection)<... | c# jquery asp.net | [0, 5, 9] |
3,124,884 | 3,124,885 | removeAttr() issue | <p>Hands up - I can't figure it out what's wrong with it. Is that a bug or a wrong code ?</p>
<pre><code> $(document).ready(function() {
$("#rem_but").click(function(){
var mail_name = $("#mail_rem").val();
var dataString = 'mail_name='+ mail_name;
if (mail_name.val() == "") { $("#rem_but").attr... | javascript jquery | [3, 5] |
4,760,016 | 4,760,017 | select loses focus when mouse is over options | <p>I am trying to do a hover effect as follows:</p>
<pre><code><div>Some Text</div>
</code></pre>
<p>should be substituted by a <code><select></code> upon mouseover. as soon as the mouse leaves that select it should display either the value previously displayed or the new selected value.</p>
<p>Unf... | javascript jquery | [3, 5] |
2,439,869 | 2,439,870 | convert 1,00 to 100 in .Net | <p>How do I convert the number "1,00" to "100" in .Net?</p>
<p><strong>Clarification:</strong> I have this code:</p>
<pre><code>VALOR = order.Total.ToString("#0.00");
</code></pre>
<p>It returns the text "1,00" but I need "100" (without comma).</p>
| c# asp.net | [0, 9] |
1,339,036 | 1,339,037 | Getting some experience with asp.net | <p>Hi I recently learned asp.net webforms and looking to get some experience under my belt using it.I found a website that provided some exercises here:</p>
<p><a href="http://www.wiseowl.co.uk/free-exercises/asp.net-4.0-c-sharp.htm" rel="nofollow">asp.net exercises</a></p>
<p>There weren't that many and I managed t... | c# asp.net | [0, 9] |
5,326,683 | 5,326,684 | How should I store a small amount of event data and share it between two asp.net pages? | <p>I am a PHP developer and have been asked to make some amends to an Asp.Net site. There is a hardcoded table on one page which contains event information (Date, venue etc). The page uses javascript to toggle table row colours based on whether the event has already happened. </p>
<p>I need to add a block on another p... | c# asp.net | [0, 9] |
1,688,067 | 1,688,068 | jQuery is it possible to equal js var to php var | <p>is it possible to equal js var to php var?</p>
<pre><code><?php $count=0; ?>
<?php $count++; ?>
</code></pre>
<p>...</p>
<pre><code><script>var $total = {<?php $count; ?>};</script>
</code></pre>
<p>soemthing like this</p>
| php jquery | [2, 5] |
2,220,832 | 2,220,833 | How to only clear file upload field? | <p>Here is the JSfiddle: <a href="http://jsfiddle.net/buyC9/128/" rel="nofollow">http://jsfiddle.net/buyC9/128/</a></p>
<p>I want to clear only the file upload field when pressed on clear.</p>
<p>My HTML:</p>
<pre><code><h1>Upload image:</h1>
<input type="file" name="blog[opload]" id="blog_opload" cla... | javascript jquery | [3, 5] |
3,478,075 | 3,478,076 | How to rewrite this Javascript code using Jquery? | <pre><code>function SelectDistrict(argument)
{
var sel=document.getElementById("city");
sel.style.display = '';
sel.options.length = 0;
sel.options.add(new Option('Please select a location',''));
var i=1;
var tempInt=parseInt(argument);
if (tempInt%10000==0)
{
var place1=document.getElementById('place1');
place1.in... | javascript jquery | [3, 5] |
5,907,784 | 5,907,785 | Android: Null Pointer Exception at Text View | <p>Here is a code for which I face the Exception</p>
<pre><code>public class SHOSuper extends Activity{
String officerName;
String arr[];
String[] offN;
public void onCreate(Bundle savedInstanceState) {
try{
super.onCreate(savedInstanceState);
final TextView tv;
tv=(TextView)findViewById(R... | java android | [1, 4] |
4,086,179 | 4,086,180 | JQuery - How to keep link selected after the form has been submitted | <p>I'm not sure if this is the place to ask this question but here I go.</p>
<p>I was wondering how can I keep a link selected once I submit my form and the data is displayed back to me. I basically want to know how to keep my link highlighted after I submit my form data using JQuery or PHP if possible.</p>
<p>Here i... | php jquery | [2, 5] |
856,829 | 856,830 | How to write regular expression that matches only numbers,text,spaces and only two special characters | <p>How to write regular expression that matches only numbers,text and only these two special characters # and -
[a-zA-Z0-9#-\s]+ anything else should be rejected</p>
| c# asp.net | [0, 9] |
205,605 | 205,606 | Delete does not ask for confirmation | <p>When Delete button is clicked, the confirmation box should pop up if the selected node has child nodes. Otherwise, it should not do anything.</p>
<p>Right now, when I click on delete, it just deletes without confirming.</p>
<p>Here is the code:</p>
<pre><code> <asp:Button ID="btn_delete" runat="server" Height... | c# javascript asp.net | [0, 3, 9] |
1,366,522 | 1,366,523 | Hide the parent element if the child value matches certain string JQuery | <p>In a table I have a <code><td></code> whose html is either <strong>True</strong> or <strong>False</strong>. If the value is <strong>False</strong> then hide the <strong>parent</strong>.</p>
<p>HTML :</p>
<pre><code><tr>
<td class="IsRequired" align="left" valign="middle" style="width:3px;">Fals... | javascript jquery | [3, 5] |
3,651,554 | 3,651,555 | How to get an int[] from a string of integers in javascript / jQuery? | <p>I'd like to allow a user to be able to enter a list of IDs into a textarea and allow the IDs to be seperated by whitespace such as a new line as well as by commas.</p>
<p>Then I'd like to convert that into an int[] or throw an error if the string is bad: contains letters, decimals, etc.</p>
<p>But I'm having troub... | javascript jquery | [3, 5] |
1,785,437 | 1,785,438 | How can I tell when all images on a page are loaded using jQuery? | <p>I’m using jQuery for my project. <code>$(function(){...})</code> fires the function “when the DOM is ready” — this doesn’t say that all images are loaded, right?</p>
<p>Is there an event that gets fired when every image is loaded too?</p>
| javascript jquery | [3, 5] |
5,791,035 | 5,791,036 | how to find linkbutton id in javascript, | <p>my linkbutton is in datalist, this datalist is in panel, this panel is in ajax updatepanel</p>
<p>if linkbutton is not selected then need to alert a message...</p>
<p>how can i achieve this...</p>
| asp.net javascript | [9, 3] |
609,000 | 609,001 | JQuery .post method problem with comma in php | <p>This Works fine and count returns 2:</p>
<pre><code>$request_ids="166409183417843,1913616994605";
$sent = explode(',',$request_ids);
$count = count($sent);
</code></pre>
<p>But when using Jquery to post to another page sent var returns only the last id and count returns 1.</p>
<p>Page of origion:</p>
<pre><cod... | php jquery | [2, 5] |
4,651,964 | 4,651,965 | Accessing Java API information with Python | <p>I'm looking for a very simple way, from Python, to get information about Java classes:</p>
<ul>
<li>name of the class</li>
<li>what it extends and implements</li>
<li>methods with returns types and parameters</li>
<li>attributes with type information</li>
</ul>
<p>Basically all of the information you'd need to gen... | java python | [1, 7] |
2,294,758 | 2,294,759 | how to put javascript variable in php echo | <p>I want to add javascrept variable to php echo </p>
<pre><code>arr[i]='<?php echo $winner[javascript variable]; ?>';
</code></pre>
<p>Thanks </p>
| php javascript | [2, 3] |
4,932,151 | 4,932,152 | What is the best way to dynamic load connection strings | <p>I've seen some other posts in this topic, but thought I would ask the qustion with a description on my problem.</p>
<p>I have a login page wich uses SQL provider for the user login. Then the user should be redirected to the main application. This is a web based CRM application wich we have muliple clients.</p>
<p>... | c# asp.net | [0, 9] |
763,056 | 763,057 | What is the JQuery code for this snippet? | <p>I have a parent page that contains a textarea and a link to open a child window. The child window has another textarea and a button. User enters some text in the textarea in the child window and clicks the button, a javascript gets fired that updates the content of the textarea in the parent window with that of the ... | javascript jquery | [3, 5] |
2,747,845 | 2,747,846 | what data type should select to store song url and name in asp c#? | <p>I want to upload a mp3 and store song details in audio table and save that song to a folder. and when user click the play button then pass that song url to windows media player to play the song...</p>
<p>i has created a table like:</p>
<pre><code>Column Datatype Allownulls
s_ID (primary) ... | c# asp.net | [0, 9] |
1,543,256 | 1,543,257 | Action after a variable number of async events have complete | <p>I have a variable number of asynchronous events that I want execute. I want to be able to take some further action after they have ALL completed.
The code snippet below shows my attempt at calling the events using the jquery deferred object.. Could anyone help? (I know the code won't run as is). bubble.transitionTo... | javascript jquery | [3, 5] |
4,846,310 | 4,846,311 | How to localize a non-embedded javascript file with resource? | <p>In my project, there are embedded and non-embedded javascript codes. And i did localization of the embedded codes like below and it works.</p>
<pre><code>CN.DEFAULT_CONFIG = {
strings : {
year: '<%=GetGlobalResourceObject("Resource", "YEAR") %>'
</code></pre>
<p>...
..
.</p>
<p>But, this method ... | javascript asp.net | [3, 9] |
5,285,311 | 5,285,312 | Change input when div state changes | <p>I have this div and this input:</p>
<pre><code><fieldset>
<input/>
<label></label>
<div class="toggle_box">
<div class="switch"></div>
</div>
</fieldset>
</code></pre>
<p>I want the input to be <code>checked</code> when the state of <cod... | javascript jquery | [3, 5] |
2,142,142 | 2,142,143 | Explain Java Notation 'new' with bracketed code | <p>I see this notation, a new operator with a class name and then bracketed code, occasionally in Android examples. Can someone explain this? In the example below, <em>PanChangeListener</em> is a class (or maybe an interface) and 'new' creates an instance, but what role does the bracketed code play with respect to th... | java android | [1, 4] |
3,296,827 | 3,296,828 | Deserializing JSON as a Generic List | <p>I have a filter string as shown in the below format:</p>
<pre><code>{"groupOp":"AND","rules":[{"field":"FName","op":"bw","data":"te"}]}
</code></pre>
<p>I need to deserialize this as a Generic list of items.</p>
<p>Can anyone guide me on how to do this?</p>
| javascript asp.net | [3, 9] |
5,018,956 | 5,018,957 | how to check/uncheck checkbox by using value in query | <p>HTML CODE:</p>
<pre><code><form id="myform">
<input type='checkbox' name='foo[]' value='1'>
<input type='checkbox' name='foo[]' checked='true' value='2' >
<input type='checkbox' name='foo[]' value='3' >
<input type='checkbox' name='foo[]' checked='true' value='4' >
</form>
</... | javascript jquery | [3, 5] |
1,448,861 | 1,448,862 | How to check if a plugin's function exists? | <p>I have this code:</p>
<pre><code>$(document).ready(function() {
$('.tabs-container').tabs({
tabs: '.bar',
tabs_container: '.foo'
});
});
</code></pre>
<p>Sometimes the tabs plugin script isn't loaded which causes the rest of the page's js to break due to this error in the console:</p>
<... | javascript jquery | [3, 5] |
3,517,702 | 3,517,703 | String with CR from .get functions | <p>I have a mobile app coming along nicely.
It uses <code>jQuery.get</code> to get the data from the server and formats that data into the page using
<code>jQuery.before</code>. Works a treat.</p>
<p>However when the data from the <code>.get</code> has Carriage Return (CR) the javascript processing falls apart.</p>
... | javascript jquery | [3, 5] |
5,914,163 | 5,914,164 | Javascript matching to see if an email or phone number has been supplied | <p>I created a contact form with a text area input only field, which allows the end user to fill out and include a method on how to be contacted. They can choose to enter an email, phone number or both within their message.</p>
<p>I am using jQuery along with javascript to process the form and check if a contact metho... | javascript jquery | [3, 5] |
2,071,557 | 2,071,558 | Event which triggers when stylesheets, not only the DOM, are loaded on the page | <p>I tried to use the <a href="http://api.jquery.com/ready/" rel="nofollow">http://api.jquery.com/ready/</a> callback for executing a code, which I would like to get started only when the page is fully loaded. However, this triggers when the DOM is loaded, and it can often happen that the stylesheets are not loaded ful... | javascript jquery | [3, 5] |
3,619,262 | 3,619,263 | Is it possible to pass GET or POST variable to external javascript | <p>I am wondering whether is it possible to pass any variable to <strong>external</strong> java-script file</p>
<p><strong>For example</strong></p>
<p>I have <strong>this</strong></p>
<pre><code><script type="text/javascript" src="gallery.js"></script>
</code></pre>
<p><strong>I'd like to know</strong>... | javascript jquery | [3, 5] |
303,539 | 303,540 | jquery ajax is loading entire external html rather than targeted div | <p>I have a simple ajax request loading in an external html file but it's pulling in the entire page rather than just the specific div I requested. Does this only work using the .load?</p>
<pre><code> $.ajax({
url: 't3.html #test',
success: function(data) {
$('.incoming').append(data);
}
});
</code></pre>
| javascript jquery | [3, 5] |
4,585,283 | 4,585,284 | Jquery: please help explain this code because I need to tweak it | <p>Can someone explain this to me? I'm trying to understand exactly why drop down lists inside a li tag work okay but when using a form the menu disappears when clicked anywhere. </p>
<pre><code>menu.find('ul li > a').bind('click', function (event) {
event.stopPropagation();
}
</code></pre>
<p>It works in combo ... | javascript jquery | [3, 5] |
5,353,193 | 5,353,194 | How to block a php script from being executed directly from address bar? | <p>I have something like this:</p>
<pre><code>$.getJSON('/scripts/commons/theScriptDoTravelBackInTime.php',{
}, function(){
// etc.. etc...
}
});
</code></pre>
<p>Is there a way to stop the php script from being executed simply by a direct call in the
address bar like <a href="http://www.myserver/scripts/commons/t... | php jquery | [2, 5] |
511,797 | 511,798 | How to show Image Preview using javascript or jquery in Internet Explorer | <p>I'm not able to show the image preview in Internet Explorer.</p>
<p>I'm using FileReader() it working fine all the browsers but not in ie(version 9) and lower versions.</p>
<p>I need the alternative for FileReader to diplay the preview.</p>
<pre><code> $('#FileUpload').live('change', function () {
... | javascript jquery | [3, 5] |
3,037,289 | 3,037,290 | How to let the web application sends automatic emails with the link to the last created quiz in the system? | <p>I am a new ASP.NET developer. I need to develop the web application to be able to send emails automatically everyday at 7am. I know how to do that using Windows Task Scheduler. All what I need to do is creating a page that contains a script which send emails to all users in the database with link to the last created... | c# asp.net | [0, 9] |
5,355,310 | 5,355,311 | Grid View Format By Row | <p>I'm wondering if it is possible to format a Grid View like the pattern below</p>
<pre><code>Usual Grid View:
Name Address Age Gender <--- Fields Name
Example Example Example Example <--- Values
What I want to look like
"Fields" "Values"
Name Example
Address Example
... | c# asp.net | [0, 9] |
2,641,382 | 2,641,383 | Determine the number of elements in a variable | <p>If i have a js variable that contains some html tags, how can I determine the number of tags inside the variable? Something like this:</p>
<pre><code>contents = "<p>something</p><p>something else</p>";
$(contents).find("p").length > 2;
</code></pre>
<p>Basically, I'm doing a <code>$(".so... | javascript jquery | [3, 5] |
3,227,059 | 3,227,060 | jQuery hide div function | <p>Is there any function for hiding 'DIV's or other html elements on right click, some tutorial, script, simple code javascript or jquery. Example: when is click on link or <p> tag or 'li' or 'Ul' or 'a' with right click to hide this element... How to do that?</p>
<p><strong>UPDATE:</strong> Yes, all your solutions is... | javascript jquery | [3, 5] |
173,537 | 173,538 | Updating a data object with a new value | <p>I'm trying to update a data object with a new value. I have </p>
<pre><code> if($("#ArticlesHolder").data(event.data.id) != null)
{
$("#ArticlesHolder").data(event.data.id, {name:event.data.name, nr:newNr, price:event.data.price, articlenr:event.data.articlenr});
}
</code></pre>
<p>N... | javascript jquery | [3, 5] |
2,642,058 | 2,642,059 | jQuery syntax problem | <p>This is my simple function and I have</p>
<pre><code><p>This is paragraph 1.</p>
</code></pre>
<p>like this but this function is not working? What is wrong here?</p>
<pre><code>function select(){
$('p')[0].innerHTML="Helooo!!";
}
</code></pre>
| javascript jquery | [3, 5] |
1,986,960 | 1,986,961 | how to select only the background in jQuery | <p>I would like to add two events to my items.</p>
<p>One for the "background" of the document: $(document).click(function() {do()});</p>
<p>One for the divs in the document: $("div").click(function() {do2()});</p>
<p>The problem is that when I click on a div, both functions, do and do2 are called.</p>
<p>How can I... | javascript jquery | [3, 5] |
4,244,141 | 4,244,142 | Onclick not added until after Postback | <p>I have the following:</p>
<pre><code><asp:Button id="SubmitButton" Text="Submit" runat="server" OnClientClick="Do();"
OnClick="SubmitButton_Click"/>
</code></pre>
<p>When the page is first rendered, I go to the view source in my browser and see that the <code>onclick="Do();"</code> is not added to my ... | asp.net javascript | [9, 3] |
5,398,316 | 5,398,317 | How to write a script when successful online Order made ,sends receipt to network printer?? | <p>Is there a script that when someone places a successful online order, it will send a command to a network printer to print of a receipt of the order?</p>
| php javascript | [2, 3] |
2,928,238 | 2,928,239 | Get entry assembly from ASP.NET application | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4277692/getentryassembly-for-web-applications">GetEntryAssembly for web applications</a> </p>
</blockquote>
<p>There is class library which gets its executing assembly location by calling <code>GetEntryAssembly(... | c# asp.net | [0, 9] |
2,847,927 | 2,847,928 | jQuery: There's a more efficient way of doing this, isn't there? | <p>I have a plugin which essentially sorts a table on the server side and puts the content back into a container. I have a binding function which adds a click event to the table header cells to call the parent form submission. I feel like this isn't the best way of going about this. Any ideas?</p>
<pre><code>$.fn.mypl... | javascript jquery | [3, 5] |
5,397,501 | 5,397,502 | Problems submitting dynamic checkbox values | <p>I'm working on creating a dynamic list of checklists and came to the below implementation. I have been trying for a week now to get the fnameID text values on the submit button click to send the values into the database. I do not want to use the postback oncheckedchanged.on each check because the checklist is over... | c# asp.net | [0, 9] |
573,571 | 573,572 | jQuery code layout style | <p>So I just started learning how to use jQuery and so far I really like it except for the 'standard' code layout in the book I'm reading about it. My question is, is there any problem with using a different style for laying out the code?</p>
<p>Here is what seems to be the standard:</p>
<pre><code>$(document).ready... | javascript jquery | [3, 5] |
3,193,685 | 3,193,686 | convert Jquery code to javascript | <p>Please can any body convert this small code to javascript?</p>
<pre><code>(function($) {
$(document).ready(function(){
$("p").click(function () {
$("p").filter(function(){
return ($(this).text().search(/(أ|ب|ت|ث|ج|ح|خ|د|ذ|ر|ز|س|ش|ص|ض|ط|ظ|ع|غ|ف|ق|ك|ل|م|ن|ه|و|ي)/) > -1);
... | javascript jquery | [3, 5] |
1,493,823 | 1,493,824 | Multiple file selection issue with jquery uploader (blueimp) in IE8 & IE9 | <p>I use the jquery file upload from <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow">blueimp</a>.</p>
<p>I have an issue in IE8 and IE9 ( I hate it :) ) with multiple file selection. </p>
<p>The jquery file upload framework works with HTML5.</p>
<p>A simple HTML code I used:</p>
<pre><code>&l... | javascript jquery | [3, 5] |
3,461,839 | 3,461,840 | Ms Word Text to binary | <p>I need to convert a Ms Word file's text to binary and store it in database. I have managed to open up the file and TrackRevisions also. How can I save the MS word text in database and retrieve it back and show it in MS Word</p>
| c# asp.net | [0, 9] |
1,323,792 | 1,323,793 | Running a Java (.jar) app inside a C# app | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/512124/use-a-jar-java-library-api-in-c">Use a .jar java library API in C#?</a> </p>
</blockquote>
<p>I have a jar file I want to run in a C# application, is there anyway to do this?</p>
| c# java | [0, 1] |
4,924,966 | 4,924,967 | ASP.NET - How to get and set MasterPage attribute in page code behind? | <p>I have an ASP.NET page that uses a MasterPage. I have a <code>public</code> <code>bool</code> attribute in the MasterPage called <code>ShowChangePassword</code>. I want to set this to true or false in the page that uses this MasterPage.</p>
<p>I have the following code, but I can't set the attribute:</p>
<pre><cod... | c# asp.net | [0, 9] |
4,160,198 | 4,160,199 | Why do I have a shared cache when I `jQuery.extend` two objects with the same caching object? | <p>I can explain the problem best with this simple code snippet:</p>
<pre><code> var child1 = {name: 'child1'};
var child2 = {name: 'child2'};
var parent = {
_cache: [], // storage var
writeCache: function(key, val)
{
console.log('writing cache::'+this.name);
... | javascript jquery | [3, 5] |
5,717,714 | 5,717,715 | Looking for advice on what approach to take for multiple image swaps | <p>I'm working on designing an interactive university campus map and need some direction with what I am looking to do.</p>
<p>Link to page: <a href="http://www.torontoclassfind.com/startpage.html" rel="nofollow">http://www.torontoclassfind.com/startpage.html</a></p>
<p>I want to be able to click on the links in the t... | javascript jquery | [3, 5] |
2,635,418 | 2,635,419 | Get minimum and maximum value using linq | <p>I have a list that has values as displayed below<br>
Using Linq how can i get the minimum from COL1 and maximum from COL2 for the selected id.</p>
<pre><code>id COL1 COL2
=====================
221 2 14
221 4 56
221 24 16
221 1 34
222 20 14 ... | c# asp.net | [0, 9] |
2,825,420 | 2,825,421 | Facebook link inspector | <p>I'm building a website and am looking for a way to implement a certain feature that Facebook has. The feature that am looking for is the link inspector. I am not sure that is what it is called, or what its called for that matter. It's best I give you an example so you know exactly what I am looking for.</p>
<p>When... | php javascript | [2, 3] |
4,409,851 | 4,409,852 | Change Attribute Every Second | <p>I want an image to change every second. I'm having trouble with setInterval. Could someone post a quick snippet on how to do this</p>
<p>This is what I came up with.</p>
<pre><code>var images = 'images/image_*.png';
for(var i = 1; i <= 5; i++){
function changeImg(){
var path = images.replace('*', i);
... | javascript jquery | [3, 5] |
4,725,177 | 4,725,178 | CustomValidator not calling javascript | <p>I am trying customvalidator control of asp.net but the problem is that it is not calling the javascript function. However it is calling the server side version of the validation method..</p>
<pre><code> <asp:CustomValidator EnableClientScript="true"
ID="RegularExpressionValidatorFixed... | c# javascript asp.net | [0, 3, 9] |
214,286 | 214,287 | prevent direct access to jquery post url | <p>i've a jquery script which <code>post/get</code> data to .php script. but i wanna prevent direct access to the php script. for example if the user look at the html source code,they will be able to access the php script directly by copying the url from the js file and i dont want that. how do i prevent users from doi... | php jquery | [2, 5] |
3,618,046 | 3,618,047 | Issue modifying control from static method | <p>There are a few questions on here that are similar, but they didn't work for me.</p>
<p>I have a custom drop down list on a page, the page name is <code>WebForm1</code>. On <code>WebForm1</code> I have an assembly reference to it: <code><%@ Register Assembly="GroupDropDownList" Namespace="GroupDropDownList" TagP... | 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.