something like: <form action="x.taf"> <input name="name" type="text" value=""> <input type="submit" name="submit" value="submit"> <input type="submit" name="submit" value="link"> </form>
<@IF EXPR="<@ARG submit>='submit'> Your name as <@ARG name> <@ELSE> We ignored your name. Go to <a href="target">link</a>. </@IF> -- Bill ---------- Original Message ----------- From: <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wed, 30 May 2007 14:13:05 -0700 Subject: Witango-Talk: [OT]: Exiting a form (HTML + JavaScript) > Hi all, > > My question regards the best way to control the exit from a form that > contains both <input>s and links. > I would like to be able to warn the user, when he activates a link, that > changes were made and the submit button has not been clicked so that > he can take the appropriate decision. > > I have 2 solutions to this issue: > 1- make links to act like submit; but this implicitly saves info > that he might not want to; 2- use a JavaScript variable that > memorizes any change in <input>s and can be evaluated when the user > clicks a link; this means that every entry has to be wired-up for > the event. > > I can live with (2), but I thought maybe there is a better/simpler > solution, a global "this page has been modified" attribute that can > be checked before switching context and I do not have to wire every input. > > Any thoughts on this subject would be highly appreciated. > > Many thanks, > Mike B. > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.8.3/824 - Release Date: 5/29/2007 > 13:01 > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ------- End of Original Message ------- ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
