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,946,399 | 2,946,400 | FadeTo across sliced images | <p>I have an image that is sliced into 9 images into multiple div.</p>
<p>I want to implement fading focus on 3 group of sliced images. Once I mouseenter to a group of images, the other group of images will fadeout.</p>
<p>The problem arises when I hover across the images within the same group, the other images will ... | javascript jquery | [3, 5] |
5,283,132 | 5,283,133 | How to add to `date` four days? | <pre><code> var $date = $('#field').val();
date = get_date_from_string($date);
alert(date); //Sun Feb 10 2013 00:00:00 GMT+0100 (CET)
</code></pre>
<p>How to add to <code>date</code> four days?</p>
| javascript jquery | [3, 5] |
823,422 | 823,423 | Placing code from webform into class | <p>I have some code in a button_click event in my webform that performs some actions
(writing some xml files).</p>
<p>But i wish to place all my XML code in 1 class within my webproject.</p>
<p>But how do i exactly acces controls from my webform on this class?
And how do i link those 2 with each other?</p>
<p>Ive t... | c# asp.net | [0, 9] |
339,675 | 339,676 | Passing & symbol in jquery | <p>I am trying to insert an email link using jquery, but if the email body has a <code>&</code> in it, it will not work.</p>
<pre><code>$('#em_button').html('<a href="mailto:?subject=A Photo: ' + js_images[getImg].title + '&body=I thought you would like this photo: ' + thisPage + '?id=' + getGall + '&im... | javascript jquery | [3, 5] |
5,466,944 | 5,466,945 | How to pass a PHP array to JS and generate a JS array | <pre><code>$allVal = array(array(123, 0), array(345, 1), array(456, 2));
</code></pre>
<p>Code at above is an PHP array, currently I would like to pass this array to javascript and the output in Javascript should look like the following:</p>
<pre><code><script type="text/javascript">
var d = [[123, 0], [... | php javascript | [2, 3] |
366,483 | 366,484 | Issues in computing total width in Jquery using outerWidth | <p>I have a table layout in my aspx with three tds. Each td contains inner elements like div or another table. I need to compute the total width of these tds using jquery. I used outerWidth property of jquery. ie. var totalWidth = $("#td1").outerWidth(true) + $("#td2").outerWidth(true) + $("#td3").outerwidth(true); I a... | jquery asp.net | [5, 9] |
3,692,318 | 3,692,319 | Android device: how to view all http requests to the Internet? | <p>I need a tool (may be an Android application) that displays all current http requests from a device. In my interests is to view all http requests to get mp3 files which (requests) is generated by one application.</p>
<p>So, the tool could allow us to view all http requests or requests of a particular application.</... | java android | [1, 4] |
3,164,845 | 3,164,846 | what is the c# equivalent to javascript's unescape()? | <p>I am trying to analyze some javascript, and one line is </p>
<pre><code>var x = unescape("%u4141%u4141 ......");
</code></pre>
<p>with lots of characters in form "%uxxxx".</p>
<p>I want to rewrite the javascript in c# but can't figure out the proper function to decode a string of characters like this. I've trie... | c# javascript | [0, 3] |
1,869,175 | 1,869,176 | Simple jquery not working | <p>This is my first time using jquery, and I don't know why this simple section won't work. I have two buttons, one which hides a div and another which shows it, but the buttons keep doing a postback even though I have set the UseSubmitBehaviour to false. </p>
<pre><code><script type="text/javascript">
$(documen... | jquery asp.net | [5, 9] |
3,385,686 | 3,385,687 | stack trace line numbers are wrong with debug=false and compilerOptions="/debug:pdbonly" | <p>I'm using asp.net 3.5</p>
<p>In web.config, I have debug=false and compilerOptions="/debug:pdbonly" to compile with optimizations and still get line numbers in my stack traces. This works for the most part, but I had a bug in a function in my App_Code folder and the stack trace said the error was on a line that co... | c# asp.net | [0, 9] |
492,630 | 492,631 | how to get browser window object using java script or jQuery | <p>I would like to get window object of the already open window and I don't want to open a new window when expected window is closed.</p>
<p>I tried the following option:</p>
<pre><code>var windowObj = window.open('','windowName', '');
</code></pre>
<p>However it opens a new window when expected window is not presen... | javascript jquery | [3, 5] |
5,204,792 | 5,204,793 | Pass data to encapsulated javascript code | <p>in my webapp I have a variable like this</p>
<pre><code>var data = {
getItem: function(key){
...
}
}
</code></pre>
<p>In all of my scripts I can use</p>
<pre><code>data.getItem("Test");
</code></pre>
<p>But how can I use it in <code>jquery plugins</code>? Plugins often have following structure... | javascript jquery | [3, 5] |
4,060,585 | 4,060,586 | How to insert value into html array with jQuery? | <p>I have a form and input type hidden:</p>
<pre><code><?php echo "<input type=\"hidden\" name=\"ref[]\" value=\"".$i."\" />"; ?>
</code></pre>
<p>Let's say <code>ref[]</code> has the values <code>{'1','2','3','4'}</code> and I want to use jQuery to insert 'a' in between '2' and '3'. Can I do it with jQue... | javascript jquery | [3, 5] |
5,815,928 | 5,815,929 | How to solve hacking php form | <p>I used livevalidation script to validate php forms but i think that my website was hacked because some inputs allow to insert number not letter.</p>
<p>Another problem hacker make my selection tag insert data wrong not in my form.</p>
<p>So please can anyone help me ?</p>
| php javascript | [2, 3] |
4,786,947 | 4,786,948 | Jquery: Setting permanent height to an specific tab & resize plugin | <p>I am working with jquery sliding tabs. I have found a resize plugin that helps the tabs adjust to expanding content. The only thing is that i want to set a permanent height to tab 1(st_content_1). The code i have below works but it is a bit faulty. </p>
<ul>
<li>Should place in the function if statements?</li>
<li>... | javascript jquery | [3, 5] |
1,503,191 | 1,503,192 | how to determine if user left our site | <p>We're tryin to implement some kind of feedback, which I saw in MSDN web-site. More concrete when user first enters to our site, I want to show a pop-up which will ask user to leave comment rite before he would leave our web-site, and depending on user's answer( it would be some kind of confirmation box with Yes and ... | jquery asp.net | [5, 9] |
1,094,428 | 1,094,429 | Is that possible to use a same user control in a page for multiple times? | <p>It's all about the control id. I am developing chat function in my asp.net project. I need to show a chat div for a target user that the current user is chatting with. Each chat div is loaded a user control. I'm wondering if there are more than one control shows in a same web page, what is the control id. For exampl... | c# asp.net | [0, 9] |
5,405,185 | 5,405,186 | On Text Input Focus Value Changing | <pre><code>$('input[type="text"][name="catch_very"]').focus(function() {
if($(this).attr('value') == 'Please Verify That You're Human') {
$(this).attr('value') = '';
}
});
</code></pre>
<p>I'm trying to remove the text 'Please Verify That You're Human' when the user clicks on the select box, does anyon... | javascript jquery | [3, 5] |
3,116,777 | 3,116,778 | The 'easiest' method to get MySQL on localhost in my Android Application | <p>I've successfully managed to use POST to run a PHP script on my website, which allows the phone application to add a new entry to the database (MySQL), and delete an entry. </p>
<p>The next step is the one I have been struggling with for the last few hours now, and that is getting the information FROM the DB onto t... | php android | [2, 4] |
2,817,009 | 2,817,010 | hide() function doesn't work in jQuery | <p>I am having problems with jQuery validation of a form.</p>
<p>This is my javascript file: test.js.</p>
<pre><code>$(function() {
$('.error').hide();
$(".button").click(function() {
$('.error').hide();
var name = $("input#name").val();
if (name == "") {
$("label#name_error").show();
$("inp... | javascript jquery | [3, 5] |
2,638,850 | 2,638,851 | Find width by appending span to body | <p>I am working in jquery and javascript.Here is my problem.
I have want to find a pixel length of a string.
So what is did is</p>
<pre><code> var text = 'abc';
$('body').append('<span id="string_span" style="font-weight: bold; font-size: 0.7em">' + text
+ '</span>');
console.log("width of text... | javascript jquery | [3, 5] |
949,528 | 949,529 | c++ / c# Problem in named pipe | <p>This is my c++ code</p>
<pre><code>HANDLE hPipe = ::CreateNamedPipe(_T("\\\\.\\pipe\\FirstPipe"),
PIPE_ACCESS_DUPLEX,
PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE,
PIPE_UNLIMITED_INSTANCES,
... | c# c++ | [0, 6] |
2,745,007 | 2,745,008 | what is difference between multidimensional array in java and c++? | <pre><code>char a[][4] = {{'a','a','a'},
{'a','a','a'},
{'a','a','a'},
{'a','a','a'}};
</code></pre>
<p>In c++ you must initialize the last index of an array.</p>
<p>In java if you do this it will result in an error.</p>
<p><strong>Can someone explain me why??</strong><br... | java c++ | [1, 6] |
2,867,747 | 2,867,748 | How to get values of textbox and dropdownlist controls in a gridview on a button click event? | <p>On the page load there will be gridview with a default row....there is a button with a + sign at the bottom...on the button click i want to create a new rows in the grid..before that i need to make sure that all fields have values.But I am getting null values..</p>
<p><img src="http://i.stack.imgur.com/bw0IK.png" a... | c# asp.net | [0, 9] |
725,575 | 725,576 | Freestanding independent javascript scrollbar | <p>I need a freestanding scrollbar. It wouldn't be attached to any div... just an independent scrollbar that I can hook into when scrolled by a user to get the current position. Would be great if it worked with mouse wheels..</p>
<p>I'm using <a href="http://www.flotcharts.org" rel="nofollow">flot</a> to chart some ti... | javascript jquery | [3, 5] |
678,243 | 678,244 | Keeping anchor bookmark in the page without moving to the bookmark | <p>Is there any way to use an anchor as a bookmark without actually moving the page. The bookmarking is handled through JavaScript. </p>
<p>What I want is to keep the '#bookmark-id' in the url but I don't want the page to automatically scroll to the object.</p>
<p>I've tried</p>
<pre><code>e.preventDefault();
</code... | javascript jquery | [3, 5] |
1,036,602 | 1,036,603 | How do I convert this bit of C++ code to C#? | <p>Trying to convert some code, but for all my googling I can't figure out how to convert this bit.</p>
<pre><code> float fR = fHatRandom(fRadius);
float fQ = fLineRandom(fAngularSpread ) * (rand()&1 ? 1.0 : -1.0);
float fK = 1;
</code></pre>
<p>This bit</p>
<pre><code>(rand()&1 ? 1.0 : -1.0);
</... | c# c++ | [0, 6] |
3,330,724 | 3,330,725 | Breaking parent function of jQuery each function | <p>I have a $.each jQuery function sitting in a parent javascript function, how do I break the parent function upon a certain index (i)?</p>
| javascript jquery | [3, 5] |
237,046 | 237,047 | Pass an ID on button click | <p>I have this code below that create rows and cells for a list of products. There is a button that I want to use to get additional product information. Basically the user will search for something and it will display limited results. When the user clicks on the button it will call a method that will do something else.... | c# asp.net | [0, 9] |
1,745,276 | 1,745,277 | Detect Javascript enabled on server side | <p>I have seen a few ways to detect if javascript is enabled. I have a unique situation. The Global.asax handles all thrown errors</p>
<pre><code>protected void Application_Error(Object sender, EventArgs e)
{
//email development team
}
</code></pre>
<p>Recently, I have had issues with people disabled javascript o... | c# javascript asp.net | [0, 3, 9] |
5,417,694 | 5,417,695 | How to do PHP explode(", "), list(), foreach() in Java style | <p>I have PHP code and i am translating it to Java, but how do we do PHP like explode(), list(), foreach() with Java? Following PHP code are my example problems:</p>
<pre><code>1. PHP:
/**
* @return: Array
*/
public function parse($digest)
{
$array = array();
$parts = explode(", ", $diges... | java php | [1, 2] |
1,029,338 | 1,029,339 | convert any video to .flv format in asp.net with trust level low | <p>I try to convert any video to .flv format in asp.net. I have hosted my web application into shared environment with "Trust Level = Low", In that i am using one executalbe file "ffmpeg" to convert any video file into *.FLV format. but they need Full Trest level</p>
<p>I need help on converting any video file to FLV... | c# asp.net | [0, 9] |
3,442,805 | 3,442,806 | jQuery image swap on hover | <p>When you hover over the Dharma arrow image in my sample link, it's meant to replace the bunny picture with the same you're hovering.</p>
<p>I was doing it <a href="http://jsfiddle.net/Kyle_Sevenoaks/3ehnB/" rel="nofollow">here at jsFiddle.net</a></p>
| javascript jquery | [3, 5] |
5,688,531 | 5,688,532 | assigning the result of a jsp confirm box to a php variable | <pre><code>//this is in php.
function msgbox($msg, $type)
{
if ($type == "alert")
{
// Simple alert window
?> <script language="JavaScript"> alert("<? echo $msg; ?>"); </script> <?
}
elseif ($type == "confirm")
{
// Enter Confirm Code H... | php javascript | [2, 3] |
4,059,930 | 4,059,931 | How can I say this in jQuery? | <p>I want to append some text after 2 closing divs to a sector element.</p>
<pre><code><a href="" class="thingIClicked">Click me</a>
</div>
</div>
// this is where I want to append the text
</code></pre>
<p>My code appends the text after the link. How can I say "append it after the 2nd closin... | javascript jquery | [3, 5] |
4,507,968 | 4,507,969 | Hide lightbox form on close; using colorbox.js | <p>Using colorbox.js, I am opening a form in a lightbox when the user clicks on the corresponding link. Right now, when the user visits the page the form is hidden but when the they click on the link the form is viewable in the lightbox. When the close the lightbox out, the form is then visible on the actual page. I wo... | javascript jquery | [3, 5] |
1,266,384 | 1,266,385 | How to display in a form the next object of a collection? | <p>I have a list of objects produced.
after click on next I want to display the next product in the form</p>
<p>in my asp page I have the following form:</p>
<pre><code><form id="formNF" runat="server">
<asp:TextBox ID="txtRef" runat="server"></asp:TextBox>
<asp:TextBox ID="txtArticle" runat="se... | c# asp.net | [0, 9] |
4,762,983 | 4,762,984 | Android: assets alternative | <p>I'm using <strong>assets</strong> as standard <strong>icons storage</strong> but now I have request that these icons should be <strong>updated</strong> for some cases. I know that I can't touch assets, so do you have any suggestions where to store them?? These files should be <strong>pre-installed</strong> and <stro... | java android | [1, 4] |
2,346,597 | 2,346,598 | Using a rotation vector in earlier Android systems | <p>Hey, for an application I am writing I need to use the data which is given in <a href="http://developer.android.com/reference/android/hardware/SensorEvent.html#values" rel="nofollow">Sensor.TYPE_ROTATION_VECTOR</a>. The bad news are that I program, among others, to my G1 device, which runs Android 1.6, i.e. API Leve... | java android | [1, 4] |
3,404,420 | 3,404,421 | how to display text from response from javascript | <pre><code>using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
NurseCounter n... | c# javascript | [0, 3] |
3,465,483 | 3,465,484 | submit form with textarea and multiple file? | <p>if i have one form that include some input, textarea, select, and multiple file. such as</p>
<pre><code><form>
<input type="text" id="name" />
<textare id="address"></textarea>
file 1 : <input type="file" id="file[]" name="file[]" />
file 2 : <input type="file" id="file[]" name="fil... | php jquery | [2, 5] |
1,825,685 | 1,825,686 | Escaping parenthesis in jquery find | <p>Here's what I have:</p>
<pre><code>item.find('div:contains(' + name + ')')
</code></pre>
<p>However, in some cases, name contains parenthesis. In one case, name has this value:</p>
<pre><code>"brown (ok xl (1))"
</code></pre>
<p>And item.find('div:contains(' + name + ')') doesn't work. The parenthesis are the pr... | javascript jquery | [3, 5] |
1,097,996 | 1,097,997 | Calling a function on an element inserted into the DOM | <p>I have no control over when and how this element is added to the DOM. But when it does get added I would like to call a call a jQuery function on it. I am looking to match <code>form[data-validate]</code> elements then call a jQuery function I wrote: <code>validate</code></p>
<p>A temporary solution I have come up ... | javascript jquery | [3, 5] |
237,034 | 237,035 | jQuery code lines from array | <p>This works ok:</p>
<pre><code>$('#icon1').live("hover", show_popup, hide_popup);
$('#icon2').live("hover", show_popup, hide_popup);
$('#icon3').live("hover", show_popup, hide_popup);
</code></pre>
<p>But this does not works and has no error:</p>
<pre><code>var icons = ['#icon1', '#icon2', '#icon3'];
for (icon in ... | javascript jquery | [3, 5] |
4,072,860 | 4,072,861 | Unable to get correct offset of floated div | <pre class="lang-html prettyprint-override"><code><div id="content">
<div class="oddpost">
<div class="arrow"></div>
</div>
<div class="oddpost">
<div class="arrow"></div>
</div>
<div class="oddpost">
<div class="arrow"></div>
&... | javascript jquery | [3, 5] |
16,841 | 16,842 | Add and remove class on click | <p>I have a tab menu, and i want onlick be be added a <code>class="selected"</code> - and on click on one of the other tabs, the class should be removed from the current link, and then be added to the link i've clicked on...</p>
<p>I've tried this but didnt work</p>
<pre><code>$('.tab-links a').click(function(){
$... | javascript jquery | [3, 5] |
5,184,863 | 5,184,864 | Print multiple files using PHP or javascript | <p>I am working on a Job Portal Web Application. AM creating functions for Admin. That he should see three checkboxes for employee like:
1.) Html Form
2.) CV (in .doc)
3.) Certificates (could be many)</p>
<p>Admin will check the boxes, he/she want to print then click on one "Print" button. And it should print all file... | php javascript | [2, 3] |
2,377,266 | 2,377,267 | create tree structure from an xml | <p>i have a XML like</p>
<pre><code><rootXml>
<category id="1" name="Dept 1" folderPath="/css" leftHt="400"
leftWd="50" rightHt="400" rightWd="50">
<category id="2" name="Service 1" folderPath="/news/world"></category>
<category id="3" name="Service 2" folderPath=... | java javascript | [1, 3] |
4,238,150 | 4,238,151 | java.lang.NoClassDefFoundError | <p>I am currently getting an ArrayDeque class def not found error when testing my app on my phone(version 2.2) however i dont get the error when run in an emulator (2.3.3)
Heres the Error:</p>
<pre><code>java.lang.NoClassDefFoundError: java.util.ArrayDeque
</code></pre>
<p>Any help would be hugely appreciated.</p>
| java android | [1, 4] |
5,887,608 | 5,887,609 | ASP.NET Get the Ids of each control in a list of controls using javascript | <p>in an ASP.NET/C# application, I have a list (or array) of controls (for example textboxes) declared and added in the code behind.</p>
<pre><code>List<TextBox> LstOfBoxes = new List<TextBox>();
</code></pre>
<p>I want to use Javascript to change the visibility of all the controls in the list (or array).... | c# javascript asp.net | [0, 3, 9] |
1,581,707 | 1,581,708 | How to update array value javascript? | <p>I have an array of 3 objects of keyValue constructor in javacsript:</p>
<pre><code> function keyValue(key, value){
this.Key = key;
this.Value = value;
};
var array = [];
array.push(new keyValue("a","1"),new keyValue("b","2"),new keyValue("c","3"));
</code></pre>
<p>I also have a function 'Update' w... | javascript jquery | [3, 5] |
871,430 | 871,431 | Why does my JS code act so intermittently? | <p>The JS code below is meant to get the height of the browser and the height of the .banner div. If the banner height is greater than the browser height, append two divs (.title and .social) to the body otherwise don't do anything and leave .title and .social divs where they are.</p>
<p>I'm also wanting the .title an... | javascript jquery | [3, 5] |
3,349,985 | 3,349,986 | Can you capture an image from the webcam on an iphone in Javascript? | <p>Basically just looking to see if you can capture an image from the webcam in javascript? I know you can capture the GPS position in an iphone in javascript so I'd figure there might also be extensions to do images as well.</p>
<p>ideally doing this in a cross platform way would be great. Basically it would mean... | javascript iphone | [3, 8] |
5,674,785 | 5,674,786 | javascript/jquery how to make ticker of images? | <p>I need something like a stock ticker but instead of AAPL, MSFT, ORCL i want to show small images floating by of a fixed size. I want to be able to stop them as they pass by. how can this be done. I would like to use jquery if possible. Need a way to dynamically add/remove the images from the ticker. thanks</p>
| javascript jquery | [3, 5] |
4,591,080 | 4,591,081 | jQuery - some beginner questions | <p>I'm a very beginner to jQuery, and I'm having some basic questions:</p>
<ol>
<li><p>Is it advisable to use jQuery whenever it is possible to replace something by using it? For example, is it prudent to bind all events to elements using it, instead of through HTML?</p></li>
<li><p>Is it better to host the jQuery .js... | javascript jquery | [3, 5] |
2,165,457 | 2,165,458 | How can I add an onclick to a generic control in asp.net? | <p>I want the programmer to pass a Control to a method, and then I want to add an onclick to it. But control doesn't have an Attributes property. Is there an interface or something deriving from Control that I can use, to add an onclick attribute to it? </p>
<p>Note that I want to add a javascript onclick (clientclick... | asp.net javascript | [9, 3] |
859,818 | 859,819 | jquery to execute and change the picture after button's click event finished executing? | <p>I have a pic and a button in the same page. On clicking that button Backup is being taken. I want to change the picture after the button event is over. Any jQuery that will be suitable for this purpose, and that will execute after button's click event is over</p>
| jquery asp.net | [5, 9] |
4,055,731 | 4,055,732 | call the same name functions in jquery? | <p>i have 2 file js in my asp website named</p>
<pre><code>1-jquery.datepick.js
2-jquery.hijridatepick.js
</code></pre>
<p>these file have the same name functions but second one apear popup hijricalender i call it by</p>
<pre><code> <script type="text/javascript">
$(function () {
$('[id$=Text... | javascript jquery asp.net | [3, 5, 9] |
1,065,461 | 1,065,462 | Custom Functions in Thread | <p>I have a simple Question:</p>
<p>I have a Thread named rlMF. I created it this way:</p>
<pre><code>public Thread rlMF = new Thread(new Runnable() {
public void run() {
reloadMissingFiles();
stopTh();
}
public void stopTh() {
activityStopped = true;
}
});
</code></pre>
<p>N... | java android | [1, 4] |
3,080,157 | 3,080,158 | display a desired tab upon clicking a link | <p>I have a facebook bubble notification. If the user would click the View All messages, the messages tab should be opened. How can I achieve this?</p>
<p>this is what I've tried:</p>
<pre><code><script>
$('.view_applications').click(function(){
$( "#tabs" ).tabs("select", "#tabs-5" );
return true;
});</scri... | php jquery | [2, 5] |
4,740,067 | 4,740,068 | getting content of a span in jquery | <p>I have a structure as follows and I want to get content of spans using jquery. How can I do it? Thanks. </p>
<pre><code><div id="question">
<span id="question_zone_0">
<span class="myclass">
<span id="myword0">myword0</span>
</span>
<spa... | javascript jquery | [3, 5] |
3,504,073 | 3,504,074 | keeping basket more permanent | <p>I need to keep my basket more permanent I have two options and I want to choose the best one.</p>
<p>I have eCommerce web site application in asp.net and there is a basket include products which are selected by users before, so options:</p>
<p> 1- keep basket in database (<em>consider ... | c# asp.net | [0, 9] |
4,568,192 | 4,568,193 | How to show busy cursor untill the iframe loads completly? | <p>I have the following code.</p>
<pre><code> <html>
<body>
<div>
<iframe>
<html>
<body>
content
</body>
</html>
</iframe>
</div>
</body>
</html>
<... | javascript jquery | [3, 5] |
713,491 | 713,492 | jQuery post div content and php echo | <p>I want to post the contents of a div via jQuery, redirect to php file, and then echo the div contents on the php file. </p>
<p>html</p>
<pre><code><div id="edit_content">
<p>This is a test</p>
</div>
<a href="processingscript.php" id="submit_script">Submit</a>
</code></pre>... | php jquery | [2, 5] |
67,085 | 67,086 | jQuery function to check if an email address exists | <p>I have a very limited jQuery experience and I was wondering if you can help me with a function that has to check, with an AJAX request, if an email address exists or not. </p>
<p>Until now I have this piece of code for email checking:</p>
<pre><code>$('input#email').bind('blur', function(){
$.ajax({
url: 'aj... | php jquery | [2, 5] |
3,360,604 | 3,360,605 | how to use the round maths function in asp.net? | <p>I am use the textbox value like <code>1455.23</code>, use the round function my output is <code>0000145523</code> but customer not enter float values like <code>1234</code> my output is <code>0000123400</code> pls give me suggestion
<strong>my code is format.cs</strong></p>
<pre><code>public bool formatAmount(float... | c# asp.net | [0, 9] |
371,819 | 371,820 | What is exactly a "thread-safe type"? When do we need to use the "lock" statement? | <p>I read all documentation about thread-safe types and the "lock" statement, but I am still not getting it 100%.</p>
<p>When exactly do I need to use the "lock" statement? How it relates to (non) thread-safe types? Thank you.</p>
| c# asp.net | [0, 9] |
3,543,116 | 3,543,117 | select the #targetElem siblings(div class="content") animate | <p>the html is</p>
<pre><code><a class="minimize" href="#targetElem" >Min</a>
<div id="targetElem">
<p class="handler"></p>
<div class="content">
content area
</div>
</div>
</code></pre>
<p>the javascript is the following code</p>
<pre><code>$(document).ready(fun... | javascript jquery | [3, 5] |
420,325 | 420,326 | Highlighting search results do not work in some situation | <p>I am very new in Javascript.</p>
<p>I want to make some basic stuffs that can be used in my future project.</p>
<p>One of the stuffs I need is highlighting some keywords.</p>
<p><a href="http://jsfiddle.net/4wMjP/1/" rel="nofollow">http://jsfiddle.net/4wMjP/1/</a></p>
<p>You can find the working code for the fun... | javascript jquery | [3, 5] |
3,196,912 | 3,196,913 | asp.net jquery loading values on page after post back | <p>Im currently trying to use a jQuery plugin:
<a href="http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/" rel="nofollow">jQuery Autocomplete Tokenizer</a>
Now after posting back the page, I want to re-load the values back into the textbox for whatever items had been entered.</p>
<p>Now the... | javascript asp.net jquery | [3, 9, 5] |
4,865,146 | 4,865,147 | Delaying javascript function execution | <p>I am using jQuery(Latest release) and have a function called "calculate()" which gets called every time a field is edited and the field exited(blur etc). (To allow "dynamic" calculation")
The calculation takes under 4 seconds to complete, but if the user changes another element on the form before the calculation is ... | javascript jquery | [3, 5] |
4,900,008 | 4,900,009 | filter to a gridview in c# | <p>I Have a gridview having column
names(batchname,firstname,schedule,startdate,enddate,labname)</p>
<p>I want to add a filter to a gridview. Can I add a filter bellow each column of the gridview header.Or Should i use it outside the gridview? Here I m using it outside the gridview.And fire a event of TextChanged.I ha... | c# asp.net | [0, 9] |
5,096,501 | 5,096,502 | Adding values of multiple text box values | <p>I have multiple text boxes with a class name <code>.paymentamount</code>.i want to add all values of text boxes of the same class but i am getting error nan.Code is this</p>
<pre><code>function paymentData()
{
$('.paymentamount').keyup(function(){
var amountSum=0;
$('.paymentamount').each(functi... | javascript jquery | [3, 5] |
2,243,126 | 2,243,127 | How do I send data in a url to test a php file? | <p>I am trying to see what is wrong with a php script a wrote. The script is getting information from an android application and then using that data to search a table and send information back. The client side is written like this:</p>
<pre><code> nameValuePairs.add(new BasicNameValuePair("num1", num1));
nameV... | php android | [2, 4] |
2,795,402 | 2,795,403 | Executing client-side script on link click | <p>I need my web page to open a window and enable a disabled button when a link or a button is clicked.
From what I've read on other posts on here, if I try and open a new window in Page_load most browsers will assume it's a pop-up and block it so I've been trying to do it client side with JS. </p>
<p>Currently, I'm t... | c# javascript asp.net | [0, 3, 9] |
3,125,255 | 3,125,256 | SimpleDateFormat timezone bug on Android |
<p>I've been trying to isolate a bug in my application. I succeeded in producing the following "riddle":</p>
<pre class="lang-java prettyprint-override"><code>SimpleDateFormat f1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
SimpleDateFormat f2 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
Date d = f1.parse(... | java android | [1, 4] |
5,085,043 | 5,085,044 | Error when using jquery redirect href | <pre><code><form class="frmSearch" id="myform" method="post" action="" >
<input type="radio" checked="checked" value="0" name="selection" class="type" />
<label>Type0</label>
<input type="radio" value="1" name="selection" class="type" />
<label>Type1</label>
... | php jquery | [2, 5] |
4,961,649 | 4,961,650 | I can't pass Map<Integer,ArrayList<String>> via Intent | <p>I have the following collection:</p>
<pre><code>Map<Integer,ArrayList<String>> map = new LinkedHashMap<Integer,ArrayList<String>>();
</code></pre>
<p>But when I try to pass it via an <code>intent</code> to another activity</p>
<pre><code>intent.putExtra("name", map);
</code></pre>
<p>I ta... | java android | [1, 4] |
1,362,609 | 1,362,610 | Jquery Validation? | <p>Hi there i am looping some fields with php. </p>
<pre><code>$number = 5;
for ($i = 1; $i <= $number ; $i++) {
name : <input name="name[]" type="text" class="required" title="Name Surname Please"/>
}
</code></pre>
<p>Am using jquery validation to control the fields,</p>
<pre><code>$("#form").validate({
... | php jquery | [2, 5] |
3,030,438 | 3,030,439 | jQuery function to check if an email address exists | <p>I have a very limited jQuery experience and I was wondering if you can help me with a function that has to check, with an AJAX request, if an email address exists or not. </p>
<p>Until now I have this piece of code for email checking:</p>
<pre><code>$('input#email').bind('blur', function(){
$.ajax({
url: 'aj... | php jquery | [2, 5] |
5,728,023 | 5,728,024 | ASP.NET web application | <p>I am trying to make a web application using C# in asp.net.
Can someone kindly give me the instructions starting from downloading asp.net including links, if possible to achieve this?</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
2,876,390 | 2,876,391 | jQuery javascript way of checking if some html exist on page | <p>Before appending more code, I want to make sure:</p>
<pre><code><a href='index.php?option=com_content&view=article&id=36'>Hello</a>
</code></pre>
<p>isn't already on the html page inside the div where id='faqs'</p>
<pre><code><div id='faqs'>
<a href='index.php?option=com_content&v... | javascript jquery | [3, 5] |
4,737,463 | 4,737,464 | Creating alert message | <p>I want to create my own simple alert dialog with jQuery. Two problems: how do I disallow people to click on any elements in body before user clicks OK button in alert? And, how to make body all dark except one element? Thanks.</p>
| javascript jquery | [3, 5] |
2,146,032 | 2,146,033 | inserting arraylist values into database | <p>i have used a checkbox list in my project .am storing all the checked items values in arraylist using code below</p>
<pre><code> ArrayList services= new ArrayList();
for (int i = 0; i < chkservices.Items.Count; i++)
{
if (chkservices.Items[i].Selected == true)
{
s... | c# asp.net | [0, 9] |
407,520 | 407,521 | How to show <tr> tag on clicking button and prevent page refresh | <p>My Requirement is to hide a tag initially, if user clicks forwardbutton without checking any radio or checkbutton we have show the tag and have to prevent page refresh. But it is permanently not submitting on click, Plese someone help me.</p>
<pre><code>$(document).ready(function()
{
var y=$('input').filter(':che... | javascript jquery | [3, 5] |
167,193 | 167,194 | Can I get operating system's measurement system (metric or US) in javascript | <p>is there a way to measurement system using javascript/JQuery? I need to display some distance and speed values on the page, but It looks like that there is no such function call I can get this information.</p>
| javascript jquery | [3, 5] |
263,141 | 263,142 | Save image based on absolute elements | <p>I want to save image based on absolute positioned elements.
I have got door creator app written in PHP.
User selects door shape, then decorations. Jquery generate that door with decoration (decoration is an absolute element, so user can create his own door).</p>
<p>But how can I process such thing ? Door are backg... | php jquery | [2, 5] |
2,227,045 | 2,227,046 | Outputting data with JQuery & PHP | <p>I have a general question regarding quality of writing code ...</p>
<p>I'm working on website, that outputs data from MySQL with PHP and it is being called with <code>$.get() / $.ajax()</code> with jQuery....</p>
<p>Now my question is .. the data I´m exporting for example: an array of comments (from class Comments... | php jquery | [2, 5] |
3,692,576 | 3,692,577 | Determine User Input Contains URL | <p>I have a input form field which collects mixed strings. </p>
<p><em><strong>Determine if a posted string contains an URL (e.g. <a href="http://link.com" rel="nofollow">http://link.com</a>, link.com, www.link.com, etc) so it can then be anchored properly as needed.</em></strong></p>
<p>An example of this would be s... | php javascript jquery | [2, 3, 5] |
1,394,235 | 1,394,236 | why base.onload(e) needed for custom page base class | <p>I have a page base class (.NET4):</p>
<pre><code>public class SitePageBase : System.Web.UI.Page
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
}
}
</code></pre>
<p>And derived class</p>
<pre><code>public partial class WebsitePage : SitePageBase
{
protected void Page_Load(o... | c# asp.net | [0, 9] |
2,291,084 | 2,291,085 | random selection from array | <p>I have this block of code below which is to control questions which are to be displayed from the array.
I am having problem with the the 3rd line of code, an i am not entirely sure what the problem is.</p>
<p>rnd1, rnd2 are both double. Eclipse is telling me that rnd2 should be an int. however i was advised that th... | java android | [1, 4] |
5,634,507 | 5,634,508 | C# ASP.Net Webforms - string - static vs static readonly | <p>I have hit a bit of confusion in regards to using these varibles within an ASP.Net application.</p>
<p><code>public static string Complete = "Complete";</code></p>
<p>As far i'm aware, this value will be global for all users, but the value is not guaranteed to exist due to the application pool recycling and the va... | c# asp.net | [0, 9] |
850,750 | 850,751 | jQuery slideUp slideDown help, it's slideToggle | <p>If i click a division it will slidUp and if i click that division again it will slideDown.
How can i do this ?</p>
<pre><code>$("#id_color_tags").click(function(){
$("#rightsidefive").slideToggle();
})
</code></pre>
<p>Tried that but that didn't work.</p>
| javascript jquery | [3, 5] |
1,146,976 | 1,146,977 | What is the quickest way to get the absolute uri for the root of the app in asp.net? | <p>What is the simplest way to get: <code>http://www.[Domain].com</code> in asp.net?</p>
<p>There doesn't seem to be one method which can do this, the only way I know is to do some string acrobatics on server variables or Request.Url. Anyone?</p>
| c# asp.net | [0, 9] |
1,903,481 | 1,903,482 | How can I check whether a option already exist in select by JQuery | <p>How can I check whether a option already exist in select by JQuery?</p>
<p>I want to dynamically add options into select and so I need to check whether the option is already exist to prevent duplication.</p>
| javascript jquery | [3, 5] |
1,445,333 | 1,445,334 | Java and C++ - String | <p>I have a Java Client and C++ server. All values are sent as byte array. The numeric values are received fine but the string values when stored in char array in C++, have special characters like new page or new line feed at the end of the value. Can someone suggest a solution to the problem?</p>
| java c++ | [1, 6] |
5,993,020 | 5,993,021 | Learn Java from Python background | <p>I have been programming in Python for a while now, and I'd like to learn a more "hireable" language like Java or the C/C++/C# family. I'm acquainted with (though not necessarily good at) all of them. I'm leaning towards Java because it runs just about everywhere, and I'd like to start developing for the Android. </p... | java python | [1, 7] |
791,815 | 791,816 | How to parse Link, HashCode and ScreenName in Twitter Feeds using C# | <p>I am using the following code to parse the string in javascript. And this is working fine.
Now I wants the same thing in C#. I want to parse string using C#. How can I do it.</p>
<pre><code>(FeedText).parseURL().parseUsername().parseHashtag()
String.prototype.parseURL = function () {
return this.replace(/[A-Za... | c# asp.net | [0, 9] |
2,529,334 | 2,529,335 | How to inject javascript code dynamically before body tag using php? | <p>Iam using a custom mvc framework that i built myself. I would like to ask how can we dynamically include javascript files to the bottom of my page?</p>
<p>Create Account Page (createaccount.php)</p>
<pre><code><?php include('header.php'); ?>
<div class="container maincontainer">
<h3>Create an Ac... | php javascript | [2, 3] |
685,448 | 685,449 | How to add number of days to today's date? | <p>I need to be able to add 1, 2 , 5 or 10 days to today's date using jQuery. </p>
<p>I'm a novice and trying hard to learn.</p>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.