redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

text input node


Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Web Design Forums -> HTML forum
View previous topic :: View next topic  
Author Message
montanarry



Joined: 13 May 2006
Posts: 175
What?
  Reply with quote


Klimapol



Joined: 27 May 2006
Posts: 134
Nothing about it "just works"
  Reply with quote
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 Razz
  Reply with quote
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.
  Reply with quote
Poolkop



Joined: 01 Jun 2006
Posts: 123
montanarry,Using unobtrusive javascript also means not using html attributes to attach event handlers
  Reply with quote
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 ?
  Reply with quote
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.
  Reply with quote
Poolkop



Joined: 01 Jun 2006
Posts: 123
He can, and he should. I think you forgot to read my negation
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
How exactly do I cancel the event?
  Reply with quote
Koplaf



Joined: 28 May 2006
Posts: 130
optomeb, If the event handler you use returns false, you should be golden.
  Reply with quote
montanarry



Joined: 13 May 2006
Posts: 175
Well thats what i said or no ?
  Reply with quote


optomeb



Joined: 19 May 2006
Posts: 113
Well, I believe it does return false... but still!
  Reply with quote
montanarry



Joined: 13 May 2006
Posts: 175
Still what..
  Reply with quote
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;">
  Reply with quote
montanarry



Joined: 13 May 2006
Posts: 175
Well i said both
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
montanarry, it still reloads the page
  Reply with quote
montanarry



Joined: 13 May 2006
Posts: 175
Lemme try
  Reply with quote
Koplaf



Joined: 28 May 2006
Posts: 130
montanarry,Then you'll have some difficulty finding a taker for your bet. I thought you were only saying the latter.
  Reply with quote
montanarry



Joined: 13 May 2006
Posts: 175
I said both
  Reply with quote
Koplaf



Joined: 28 May 2006
Posts: 130
OK.
I'm not that worried about it.
  Reply with quote
montanarry



Joined: 13 May 2006
Posts: 175
Very Happy
  Reply with quote


optomeb



Joined: 19 May 2006
Posts: 113
montanarry,sorry, it was a false at the wrong place (apparently). It is a bit complex...
  Reply with quote
montanarry



Joined: 13 May 2006
Posts: 175
Ok i will check how it work
If it works
  Reply with quote
Koplaf



Joined: 28 May 2006
Posts: 130
I wish my could were faster.
  Reply with quote
montanarry



Joined: 13 May 2006
Posts: 175
optomeb, so you have a <input type="text" in it ?
  Reply with quote
Page 2 of 3 Goto page Previous  1, 2, 3  Next
Post new topic   Reply to topic    Web Design Forums -> HTML forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group