| View previous topic :: View next topic |
| Author |
Message |
montanarry
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 ? |
| |
|
|
|
|
Koplaf
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. |
| |
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
| He can, and he should. I think you forgot to read my negation |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| How exactly do I cancel the event? |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| optomeb, If the event handler you use returns false, you should be golden. |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| Well thats what i said or no ? |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| Well, I believe it does return false... but still! |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| Still what.. |
| |
|
|
Koplaf
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;"> |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| Well i said both |
| |
|
|
|