Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #17052
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: the right "form" element for ajax |
| Date | 2012-11-06 17:08 +0000 |
| Organization | Personal Software |
| Message-ID | <timstreater-CCC9BA.17081306112012@news.individual.net> (permalink) |
| References | <015e6c83-d721-441b-8e07-5393238fe005@googlegroups.com> |
In article <015e6c83-d721-441b-8e07-5393238fe005@googlegroups.com>, amado.alves@gmail.com wrote: > A recurring issue I see but could not find a definitive answer. > > When we send user data via AJAX the attribute "action" of the HTML element > "form" is useless and even looks like it can get in the way. Usually we call > the send data function right from the "onclick" event of a "button" element, > and use the getElement functions to fetch the user input. There's no "action" > in the "form". Actually we don't even need the "form" element at all. But per > the HTML reference the "form" element is required and its "action" attribute > too (or isn't it?) Certainly none of the forms in my app ever gets submitted. I have a feeling (but could be wrong), that in HTML5 you can omit the form altogether. You could ask on alt.html, f'rinstance. -- Tim "That excessive bail ought not to be required, nor excessive fines imposed, nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
the right "form" element for ajax amado.alves@gmail.com - 2012-11-06 08:19 -0800
Re: the right "form" element for ajax Tim Streater <timstreater@greenbee.net> - 2012-11-06 17:08 +0000
Re: the right "form" element for ajax Martin Leese <please@see.Web.for.e-mail.INVALID> - 2012-11-06 11:02 -0700
Re: the right "form" element for ajax amado.alves@gmail.com - 2012-11-06 14:35 -0800
Re: the right "form" element for ajax Tim Streater <timstreater@greenbee.net> - 2012-11-06 22:52 +0000
Re: the right "form" element for ajax RobG <rgqld@iinet.net.au> - 2012-11-06 20:23 -0800
csiph-web