HighDots Forums  

Re: Formular data exchange: Is the code cleanly HTML?

alt.html alt.html


Discuss Re: Formular data exchange: Is the code cleanly HTML? in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Formular data exchange: Is the code cleanly HTML? - 01-13-2008 , 01:38 PM






Markus Stein wrote:
Quote:
In a previous thread I asked "How to exchange data between forms in one
document with pure HTML"?

Now I find a solution not with pure HTML but with a little bit of Javacript
(onclick="this.form.textfeld.value='...'). But I have not a question
about JavaScript but about the correctness of my code.

It works. But is it also correct?
*IF* JavaScript is enabled, but whether or not JavaScript is enabled on
the client's computer is *not* in your control. Therefore if this is
required for the page to function, then the answer is "no", it is not
correct. What would be correct is to use JavaScript if available, but
also provide a fallback if it is not. The fallback would require the
user to submit the form and a server-side script would fill in the value
for the second form when it rebuilds the page. Note however that a
server-side script will only receive values from a single form, the one
submitted...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.