redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Tuesday 23 July 2019 13:56

Ask your IT question here

text input node


Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> HTML forum
View previous topic :: View next topic  
Author Message
Koplaf
Enthusiastic Coder


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.

Reply with quote
 
optomeb
Enthusiastic Coder


Joined: 19 May 2006
Posts: 113
Action is required according to w3
Reply with quote
 
Koplaf
Enthusiastic Coder


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.
Reply with quote
 
montanarry
Enthusiastic Coder


Joined: 13 May 2006
Posts: 175
optomeb, then also put onSubmit="return false"
Or something like that
but i dont know exact

Reply with quote
 
Klimapol
Enthusiastic Coder


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

Reply with quote
 
montanarry
Enthusiastic Coder


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


Joined: 27 May 2006
Posts: 134
Nothing about it "just works"
Reply with quote
 
montanarry
Enthusiastic Coder


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
Enthusiastic Coder


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
Enthusiastic Coder


Joined: 01 Jun 2006
Posts: 123
montanarry,Using unobtrusive javascript also means not using html attributes to attach event handlers
Reply with quote
 
Page 3 of 6 Goto page Previous  1, 2, 3, 4, 5, 6  Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> HTML forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

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

© 2018 RedHo