I am using trhe followinf jQuery to hide the form apart from the header of the form:
When a form errors ie a field is missed is there a way to capture that so i can make sure the form is not closed and hidden ?
I am using trhe followinf jQuery to hide the form apart from the header of the form:
When a form errors ie a field is missed is there a way to capture that so i can make sure the form is not closed and hidden ?
If you call the form using AJAX then it shouldn't reload the page or anything so it shouldn't close your slide toggle, it would remain visible. This scenario is one of the situations the AJAX option was made for.
I would prefer to do that but when a form uses AJAX it pits the script tags onto the page and then it doesnt validate in HTML5 :(
1.6 will be adding CDATA around the script output, which should correct this when validating for XHTML but i'm not 100% if this will validate with HTML5, i'm guessing it will. You know not validating for something minor doesn't mean it's broken right?
It's like using an HTML5 field on a non-HTML5 doctype page, it's still going to work just fine with browsers that support it and fall back just fine with browsers that don't.
In most circumstances I would not mind if it doesnt validate as you say because it still functions and still falls back nicely but in this case it is a requirement from the client that it needs to validate. Believe me I have spoken to them at length on the subject but because they are promoting the fact the site is all singing and dancing they want to have everything working prefectly and all validating.
Thanks for the update I am looking forward to the next release :)