[Kss-devel] Form submittal by pressing Enter key
Hedley Roos
hedley at upfrontsystems.co.za
Thu Nov 8 09:48:54 CET 2007
I'll elaborate :)
Page Template:
<form action="http://somewhere_in_plone_site"
method="post"
id="my_form">
<input name="foo" type="text"/>
<input name="submit" type="submit"/>
</form>
kss rule:
form#my_form:submit {
action-server: kss_some_script;
kss_some_script-kssSubmitForm: currentForm();
}
When I click on the submit button kss_some_script is called as expected,
but if I just press the Enter key then it is not (the form just gets
submitted the normal non-ajax way).
Maybe I should just detect keypresses on the entire form?
H
More information about the Kss-devel
mailing list