jquery

Can you validate fieldsets individually using the jquery validation plugin from bassassistance?

I have a form that uses the validation plugin, but I need to validate a separate part of the form using slightly different criteria - most of the fields place the error in the next table cell, but for one field I need the error placed somewhere else. This is the validate function for the main form fields: jQuery("#form2").validate({ ...

What's the best way to handle errors/timeout when loading an iframe with jquery?

I'm loading an iframe by changing its src attribute and then registering a handler for its load event, i.e. obj.iframe.attr('src', src); obj.iframe.load(function() { ... }); This works well as long as the iframe loads correctly. I'm wondering if there's an easy way using jquery to set a timeout for the iframe to load and detect errors...

ASP.NET MVC Returning JSON Objects of ViewModels

Hi all, It seems recently that all I ever seem to post about is ASP.NET MVC with JSON - you would think I'd learn by now! However, strange things keep happening that I can't explain! I have a Controller method that returns a JsonResult: public JsonResult GetAllUserTasksForStage(int StageID, string Username) { var uM = ManagerProvi...

jQuery validate decimal seperator and Asp.net MVC

The new Asp.net mvc 2.0 input validation works like a charm, except for decimal seperators when it comes to jquery.validate. When I use the Microsoft MVC ajax libs it works fine. The comma is the decimal seperator server side as well as client side. <script src="/Scripts/MicrosoftAjax.js" type="text/javascript" ></script> <script src="/...

sorting complex JSON object

Refering to earlier questions about referencing elements of and sorting a JSON (javascript) array. See http://stackoverflow.com/questions/2074908/refer-to-an-element-of-json-javascript-object http://stackoverflow.com/questions/979256/how-to-sort-a-json-array Is it possible to sort one branch of a more complex javascript array, such as ...

jquery: Load CSS values for a class from the css file

Hi there I'm look for a way to search a .css style sheet for a class. The particular class would not have been assigned to any particular DOM element as of yet, it is simple in the style sheet. I saw another thread which said I could use document.styleSheet, but this requires me to know which order the css file is loaded by the documen...

JQuery call to .php file and passing three arguments

I want to call a .php file and pass three arguments so that the .php files GETS from the query string. I am new to JQuery. Can someone illustrate how to call the .php file using JQuery? ...

django: dynamically inserting comment form using jquery

I'm building a Q&A site where one can comment on questions and their answers.Its a threaded commenting system with ajax. this is the javascript part: function bindPostCommentHandler() { $('.commentFormWrapper form').submit(function() { var current = $(this); $.ajax({ type: "POST", data: current....

PHP code called via JQuery stopped working.

Initially, I used a .js file that contains AJAX functions to call a .php file. The .php file contains code to dynamically populate a DropDown based on certain parameters passed via QueryString. Everything works fine with the above method. But now I want to populate the DropDowns on page load and so want to use JQuery instead of my old m...

best method in jquery for replacing rows in a table after server side processing such as mysql sorting - .html, .append, .clone, or other?

What is the 'best practice' when returning dynamic data for a table (server side sorting, filtering etc from a db) ? Do you return just the data in json, and repeatedly clone a row element, replacing the values in each row (thus decreasing the size of the ajax call, but increasing the client side processing), or return the full html, an...

Customizing jquery theme for differnt component

There are different UI jQuery components available. If i am using a particular jquery theme and i want to customize the css of any UI component (for example jQuery tab) My question is how to customize the css of jQuery tab without affecting other components? The problem i am facing is If i customize the tab css, my css change is parti...

jqgrid search problem

Hello, the search option that is shiped with JQGrid only searches within the dataset that resides in the grid and not within the whole dataset retrieved by the query,therefore I must paginate and search within every dataset.. is there an option to make search within the whole dataset and not only within the current view of the dataset t...

How to clear Jquery validation error messages ?

Hi, I am using jquery validation plugin for client side validation. but i want to clear error mesages on my form clear button editUser() is called on click of Edit User button. clear button having separated function clearUser(){ // Need to clear previous errors here } function editUser(){ var validator = $("#editUserForm").v...

jquery simple pager with first , last

<code> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>jQuery.pager.js Test</title> <link href="Pager.css" rel="stylesheet" type="text/css" /> <script src="jquery-1.2.6.min.js" type="text/javascript"></script> <script src="jquery.pager.js" type="text/javascript"></script> <script type="text/javascript" la...

What is the fastest JSON parser for JavaScript?

I want to show a list with 1000 rows using Json that's support by Struts2 like pug-in. I use flexigrid (jquery) to parse 1000 rows to display. But it's so slow, and sometimes my browser crashes. (Firefox & IE). So, what is the fastest Javascript framework to parse about 1000 rows? ...

how i can make jquery animation like this

i want make clouds like this page it should dispay in random places in header and move by random method who i can i used settime out function but its not working good please help me ...

How do I remove an active outline from jquery accordion ?

I am using Jquery Accordion. The active link has an outline. I have tried using css: #accordion a:focus { outline: none; } #accordion a:active {outline: none; font-weight:bold;} and also #accordion a:-moz-any-link:focus { outline: none; } None of these seem to work. Can anyone advise a setting or another option to remove the dot...

need to get rel attribute and href attribute when making a while div clickable in jquery

Hey there, having some issues passing parameter values in jQuery. I need a div to open a link that opens as a Shadowbox dialog .. (Shadowbox uses the rel tag) i therefore need to get the value of both the href and rel, but cant' figure it out. i tried to just add .attr("rel") to the string but that didnt work. My jquery: $("div.banner"...

slidedown jquery problem

function show_destination(country_id,airport_id){ $.ajax({ type: "POST", url: "function.php", data: "country_id="+country_id+" }, success: function(msg){ // $(".loader_destination").empty(); //$("#destination_div").html(msg); //$("#destination_div").slideDown("s...

jquery validate type password

Hi i am using jquery validate and i have a login form that validate the validation code show below $("form#loginForm").validate({ submitHandler: function(form){ //code here }, rules: { user_login: { required: true }, user_password: { required: true} ...