I have a form validation on server side. The server returns an XML with
tags named 'error' for each error in part.
The response I process it like this
$('error', xml).each(
function(elem)
{
$('#errorHolder').append('
' +
this.firstChild.nodeValue + '
');
$('#errorHolder').css('visibility',
'visible');
}
);
This works on IE if i have 'error' tags, but if I don't have those tags
in my response IE gives the 'Object doesn't support this property or
method'.
My goal is when the form has errors are displayed, else the form is
submited. I tryed to use $('error', xml).size() to find out if there
are errors, but even with .size() I get the 'Object doesn't support this
property or method'.
_______________________________________________
jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/