Hi, i need some help with the validate plugin. I have 4 fields who need to be validated as a whole: when all the fields are filled i have to concatenate them and then perform some checks on the string. If anything's wrong i have to show one single message and add the error class to all the fields. If the user correct the data and then the whole string is correct the error message is hidden and all the error classes are removed.
I basically have two problems: - accessing all the fields and not only the one currently being edited - updating the status (i.e. the presence of the error class) of all the fields in the group
i got around the first one by directly accessing the IDs of the field i need but it surely isn't the best solution, i guess there's something i can do to access the values of a group's fields "relatively".
I tried grouping the fields and the validation seems to work (the length check is just a stand-in for the real check) but i can't get how to update the class of all the elements of a group.
Hi! I've recently updated the jquery-ui library and the style package from 1.8.4 to 1.8.18 and i've noticed a change in behavior: if i open a dialog and then change its contents with an ajax request the dialog no longer resizes to encompass the new content.
With 1.8.4 it correctly changed its height to show the new content, with 1.8.18 it keeps the same height and shows the scrollbar.
I browsed the release-notes of each version between 1.8.4 and 1.8.18 and it says they actually removed the autoResize option defaulting it to auto (which i never used anyway) and fixed another couple of bugs about the dialog widget.
Firefox and IE7+ works ok, but i couldn't find a way to make it work on IE6.
Does anybody else have the problem? Is there anything i can try?
Thanks in advance for your help. Marcello
EDIT I created a page with the bare essentials, removing everything but the dialog and the javascript code to append text inside it. Everything stands: FF+Chrome work, IE6 doesn't.
Is it possibly an untracked bug?
Here's the simplified code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
$("#testo").append("Lorem ipsum dolor sit amet, consectetur adipiscing elit. ");
}
}
});
});
-->
</script>
<title>Untitled Document</title>
</head>
<body>
<div id="insertDialog">
<p id="testo">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ante lacus, laoreet ornare posuere vel, dapibus at est. Nulla ac leo non diam varius mollis.</p>
</div>
</body>
</html>
The code for the dialog is pretty simple:
$('#insertDialog').dialog({
autoOpen: false,
width: 400,
minwidth: 400,
bgiframe: true,
closeOnEscape: true,
resizable: false,
title: "Aggiungi",
modal: true
});
(i tried to set resizable both TRUE and FALSE, to no avail)
The remote call is a jsp that checks a database and correctly returns true or false. The "success" clause of the remote call parses the results and if the remote check returned true it populates a dropdown menu with another ajax call.
The problem is that the validate part of the script quits working if the success clause is present. The remote call works (i sniffed it) and correctly return true or false. But the validate() ignores the result and doesn't show the error message if the answer is false.
If i change the success clause content to even a simple alert it still doesn't work.
If i delete the success clause everything works fine.
Any idea why this happens? Thanks in advance! Marcello
Hi all, i have a pretty simple question, but i can't find a answer in the documentation.
I need to know if a form i have in a page has already been validated at least once. Is there some specific method to use? A property to check? Anything?
Hi all, i'm trying to use the autocomplete plugin with a remote call but i'm getting a weird problem: the code correctly invoke the remote address and gets a response back, but it doesn't show anything in the textfield to which it's linked and throws a javascript syntax error.
Unfortunately the code isn't live so i can't show you a test page, but the code itself is really simple and perfectly works if the dataset with the possible matches is loaded locally.
Hi all, i'm having a problem reading checked values from radio button: i have two sets of radio buttons and i need to read the value linked to each selected/checked button. Googling for answers i found this snippet: $("input[@name='NAME']:checked").val() but it only works if there's just one set of buttons on the page. If there are more then one of them (the first in the html code) "takes charge" and all the buttons return the same value. You can find a test case here: http://www.kikentai.org/jquery/test.html Try fiddling around with the radio buttons before clicking the "click me!" button... Thanks for your help! Marcello