| View previous topic :: View next topic |
| Author |
Message |
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
|
Yeah easy cause i wont be able to collect money from you
Poolkop, why html atributes...
He can also do somewhere a script.. form.onSubmit=function
Or he cant ?
Reply with quote
|
| |
|
|
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
|
montanarry,However, I believe you're basically saying the same thing. make the onSubmit event handler be the function that does your XHR juju, and then returns false. In the absense of JS, submit will do it's thing. Of course, then you'll want to do be careful to do your layering right server side.
Reply with quote
|
| |
|
|
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
| |
optomeb Enthusiastic Coder
Joined: 19 May 2006 Posts: 113
| |
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
|
optomeb, If the event handler you use returns false, you should be golden.
Reply with quote
|
| |
|
|
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
| |
optomeb Enthusiastic Coder
Joined: 19 May 2006 Posts: 113
| |
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
| |
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
|
montanarry,I think the argument was actually about syaing myform.onSubmit=function blah(){} vs. saying <form onsubmit="return false;">
Reply with quote
|
| |
|
|
montanarry Enthusiastic Coder
Joined: 13 May 2006 Posts: 175
| |
|