Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Organising form submission with html5 'required' elements

$
0
0
Its not clear to me how best to organise form submission whilst retaining the built in browser support for the html5 'required' attribute on the elements.

I have a form that submits via jQuery.post, uses deferreds, works well.

It is triggered by a Submit: can.Control({ ...}) listening for the click event on the form's submit button.

BUT ... this completely bypasses the 'required' element checking .... the browser does not 'know' that I'm submitting.

It's a simple matter to kind of step outside of the can.world and use a jQuery onsubmit and this would work perfectly.

What's the CAN.onical way to do it (:-)

Ron

PS anyone noticed that the latest main Firefox 21 runs like an absolute DOG on canjs stuff compared to earlier versions ? Takes ages to load your site (and my app) but Chrome snaps it together in a second or two.

Viewing all articles
Browse latest Browse all 3491

Trending Articles