RE: form submission with image in nn

by Rebecca Campbell <rcampbel(at)standard.com>

 Date:  Wed, 12 Jan 2000 12:38:46 -0800
 To:  "'pbabcock(at)bgsgroup.com'" <pbabcock(at)bgsgroup.com>
 Cc:  hwg-languages(at)hwg.org
  todo: View Thread, Original
<a href=# onclick="txthidden.value=h">

-----Original Message-----
From: Phil Babcock [mailto:pbabcock(at)bgsgroup.com]
Sent: Wednesday, January 12, 2000 11:19 AM
To: sdjthorin(at)geocities.com
Cc: hwg-languages(at)hwg.org
Subject: Re: form submission with image in nn


I tried that, but NN doesnt seem to recognize <a> wihout the href part.
Any other clues?  Basically what is happening is that when I do
onclick="txthidden.value='h'" the txthidden.value either isnt getting set
or is getting reset to " " when the form submits.



*********** REPLY SEPARATOR  ***********

On 1/12/00 at 1:10 PM SDJThorin wrote:

->Instead of doing it that way, which, I believe, is an IE only
->method, do it with an anchor & image, which most browsers will
->be able to understand.
->
-> ----------------------------------------------------------------
->   <A onclick="txtHidden.value='H'"><IMG></A>
->
->   Note : Only shows tag & onclick event placement
-> ----------------------------------------------------------------
->
->Happy Coding,
->
->	Stephen.
->
->
->Phil Babcock wrote:
->> 
->> Hi all
->> If I use this code in IE then the form gets submitted properly and all
the
->> 'variables' from the form are passed properly when someone clicks on
the
->> image.  However, in NN, the txtHidden field gets written and then
->> immediately cleared when the form submits.  Anyone know how to get this
to
->> work in NN??
->> 
->> <form name="frmpreviews" action="preview.asp" method="post">
->> <select NAME="cmbPreview">
->> <option selected value="10011067">blah</option>
->> 
->> <input type=image align=absmiddle src="images/high.gif" border=0
height=25
->> width=50 onclick="txtHidden.value='H'" name=imageH>
->> </form>
->
-> ----------------------------------------------------------------
-> |   /~\      ^| |^      /~\    The WyldeSide                   |
-> |  /   /\   (o) (o)   /\   \       Web Designs & Programming,  |
-> | |   |  | (  o~o  ) |  |   |      For Your Needs              |
-> | \   \   \  ) O (  /   /   /  http://www.wyldeside.com        |
-> ----------------------------------------------------------------


Phil Babcock
Lead Web Designer
BGS Group Inc.

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.