| View previous topic :: View next topic |
| Author |
Message |
Koplaf
Joined: 28 May 2006 Posts: 130
|
optomeb, You could set it up so that if the user has JS, then the submit action gets blocked, but you does some XMLHTTPReq stuff to get the job done.
If there is no JS, then the submit will do it's magic. |
| |
|
|
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| Action is required according to w3 |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| On the server side, you'll hook them into the same functions, so you won't haveot know the difference. |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
optomeb, then also put onSubmit="return false"
Or something like that
but i dont know exact |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
montanarry, no
you'd attach an event listener
Cancel the event
And then do XHR stuff instead
Of course then you have to know how to use XHR and what to do with the response |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| What? |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| Nothing about it "just works" |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
Why cant he put event listener
If the html sends the form after enter
Then block it with the <form onSubmit="return false;">
I still bet 20 that it has to be this way  |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| montanarry, That's an easy bet for you to make, being as none of us is on hand to collect. |
| |
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
| montanarry,Using unobtrusive javascript also means not using html attributes to attach event handlers |
| |
|
|
|