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({
...
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...
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...
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="/...
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 ...
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...
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?
...
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....
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...
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...
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...
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...
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...
<code>
<html xmlns="http://www.w3.org/1999/xhtml">
<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...
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?
...
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
...
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...
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"...
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...
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} ...