Hello. I have a $.post function inside of a loop. All it does it call a php function to validate an input. If the input validates, it returns "true" (which I tested and works). At this point I use a callback to do some processing and it is not working.
For example if i am looping over three items, the callback function processes the th...
I do have a credit card number form. The number is divided into four parts just as on a real credit card.
I want to add a JavaScript taste to the form where when a user types four letters in a field, the focus automatically goes to the next tag. But not in the last tag. By doing this, a user doesn't have to type "tab" key to move a focu...
Hi all
I need to show text message dynamically once i enter into my site newly using jquery and which should be there for certain time period and rest to some place holder. that is which wants to start from left and show the message and rest on the right side. which is similar to animation effect..anyone kindly help me to do using jquer...
Hi, I need to store an array in a jQuery cookie, any one help me please?
...
I noticed most questions related to client-side script on SO are JQuery related and that got me thinking. I'm wondering what the ease of these libraries is doing to actual KNOWLEDGE of JavaScript and the DOM.
So much is done for you that my fear is there is a growing number of web developers that actually know very little about JavaScr...
Hi
I have some questions regarding calendars
Is there any good calendar generates for either asp.net mvc or jquery. I would like to find something that can make calendars and have features like this.
Generates all the months (but of course only features the current month that is being displayed)
If the name of the calendar event is ...
Here's an interesting problem:
I have some jQuery that looks like this:
$(document).ready(function() {
$.ajax({
type: "POST",
url: "http://localhost:63056/Service1.asmx/PrintOrderRecieptXml",
data: {"CouponCode":"TESTCODE","Subtotal":14.2600,"ShippingTotal":7.5000,"TaxTotal":0.0000,"GrandTotal":21.7600,"Ord...
I have the following code in jQuery...
$("#sortable2").sortable({
connectWith: '.connectedSortable',
dropOnEmpty: true,
receive: function (event, ui) {
var colNum = $(ui.item).attr("id").replace(/col_/, "");
$.post("/Category/Insert", { title: colNum });
},
the var colNum = $(ui.... )
this gets the id f...
I am using a select element to change the search type on a media site (i.e. search by genre, search by artist).
I have created the dropdown and can get the selected option via a variable but now I need to replace the name attribute on the input element with the variable/selected option. I have seen the below code to change the "value",...
I am loading an external page that relies heavily on jquery into a div with the $.ajax(); method.
The obvious problem is that the new content needs to be binded to the dom for jquery to work... Everyone talks about just using $.getScript to do this but I can't get it to work. Can some one give me an example and not just a link to the j...
Is it possible to get the serialized list of items from a UL in jquery by calling the serialize method directly instead of using a callback? The code snippet:
var sortableLinks = $("#category_links_list_3");
var linkOrderData = $(sortableLinks).sortable('serialize');
category_links_list_3 is the id of the UL
The DOM structure is:
<...
I'm trying JQUERY on my machine, but for some reason, nothing seems to work. Here's the test file:
<html>
<head>
<script type="text/css" src="jquery.js">
</script>
<script type="text/javascript">
$("p").mouseover(function () {
$(this).css("color","black");
});
$(document).ready(function(){
$("body").css("background-...
this is my sample code
var myCookie;
var initial_arr = new Array();
var myCookie_arr = new Array();
var cookieItem;
$(function() {
...
/* This quite works but can't actually achieve what I want */
$('#add_item').click(function(){
initial_arr.push(msg.txt);
...
I'm using the tablesorter jQuery plugin to do some sorting of my tables. The site I'm using this on is programmed in .Net 3.5 and I am using the ASP.NET AJAX and updatepanels to perform my asynchronous page updates.
The problem I'm running into is when using the table sorter, I have some columns that I want to disable sorting on. I have...
Hi,
I want to add class to <a>, what has some url. For exampe :
$(document).ready(function() {
var pathname = window.location.pathname;
$(".navholder ul li a").each(function() {
$(this).addClass('sel');
});
});
I want to add "sel" class to <a> what has href=pathname.
Theoretically something like this :...
I have a form with name orderproductForm and an undefined number of inputs.
I want to do some kind of jQuery.get or ajax or anything like that that would call a page through Ajax, and send along all the inputs of the form orderproductForm.
I suppose one way would be to do something like
jQuery.get("myurl",
{action : document...
Hello,
So I have 2 divs, each with n-elements.
There are n-pairs of elements across the 2 divs.
Each pair uses the same 'class'.
Is it possible to remove a particular pair at a time? I currently am using the following code:
function leaveGroup(id)
{
var e = document.getElementById(id);
var f = $(e).parentNode;
// R...
jquery:
$.post("process_login.php",
{username : $("#username").val(), password : $("#password").val()},
function(data) {
$("#login_results").fadeIn("slow").html(data);
}
)
html:
<table>
<tr><td id="login_results"></td></tr>
<tr><td><input type="text" id="username" /></td></tr>
<tr><td><input type="password" i...
This is my Django Project structure:
Project
-app_ABC
-json_data
-filter_saved.txt
-site_media
-css
-images
-scripts
-search.js
In My script (search.js) ->I am going to create a script that can write content to file as json format:
function WriteJSONFile(str){
var fh = fopen("json_data/filter_saved....
HTML:
<ul id="list">
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li class="action">item</li>
</ul>
jQuery:
$("#list li:last").addClass("active");
This almost works, but the "action" item takes the "active" class when its present which I don't want. How do I rewrite the above jQuery so it always ignores the li...