Rythmist wrote:
> Try the below using one form and javascript to submit:
What a jammin' idea! I rarely depend on javascript, so I hadn't even thought
of it, but this particular part of the site will be used by only a few
people to administrate other parts of the site, so I know what browsers
they'll be using - thus javascript is in!
I didn't try your particular code yet, but will do.
Thanks much.
Jack
> <html>
> <head>
> <title>My Test</title>
> <script language="JavaScript">
> <!--
> function gowhere(num)
> {
> if (num == 1){
> document.myform.submit("a.pl")}
> if (num == 2){
> document.myform.submit("b.pl")}
> if (num == 3){
> document.myform.submit("c.pl")}
> }
> //-->
> </script>
> </head>
>
> <body>
>
> <form name="myform">
> <input src="button.jpg" name="I1" width="77" height="24" border="0"
> type="image" onclick="gowhere(1)"><br>
> <input src="button.jpg" name="I2" width="77" height="24" border="0"
> type="image" onclick="gowhere(2)"><br>
> <input src="button.jpg" name="I3" width="77" height="24" border="0"
> type="image" onclick="gowhere(3)">
> </form>
> </body>
> </html>
>
>
> -----Original Message-----
> Date: Thursday, May 14, 1998 6:48 PM
> Subject: WC:>: Form spaces in html layout
>
>
> >HTML question:
> >
> >I'm trying to get a number of img buttons that are all snug up
> against each
> >other to be separate forms and still stay sung up against each other. For
> >example:
> >
> >Note: tag open and close marks changed to ( and ) for our html mail
> friends:
> >
> >(form action="a.pl" method="post")
> >(input type="image" src="button_a.gif" border="0")
> >(input type="hidden" name="uid" value="3")
> >(/form)(br)
> >(form action="b.pl" method="post")
> >(input type="image" src="button_b.gif" border="0")
> >(input type="hidden" name="uid" value="4")
> >(/form)(br)
> >(form action="c.pl" method="post")
> >(input type="image" src="button_c.gif" border="0")
> >(input type="hidden" name="uid" value="5")
> >(/form)
> >
> >I was hoping the buttons would all end up butting right up against each
> >other in a vertical stack, but, as my experience with <form> and </form>
> has
> >told me to expect, there are large spaces between the buttons. They still
> >stack up, but they have the equivalent of a <P> in between them. It
> >seems that either (form) or (/form) create spaces, I'm not sure which (or
> >both?).
> >
> >I tried running all the tags together on one line, but nothing changed. I
> >also tried removing the (br) tags. I can't remove the hidden tags, and
> >actually need to use 3-5 in each form.
> >
> >Anyone know of a work-around, or do I have to resort to putting
> them all in
> >one form that calls a script that does a redirect? (Rather not make that
> >extra trip to the server).
> >
> >Ideas? Any more info on the spacing decisions made by browsers
> when drawing
> >(form) and (</form) tags?
> >
> >Oh, why am I doing this? To make a nice, neat menu instead of a bunch of
> >random length, set height, ugly gray buttons.
> >
> >TIA,
> >Jack
> >
> >
> >____________________________________________________________________
> >--------------------------------------------------------------------
> > Join The Web Consultants Association : Register on our web site Now
> >Web Consultants Web Site : http://just4u.com/webconsultants
> >If you lose the instructions All subscription/unsubscribing can be done
> >directly from our website for all our lists.
> >---------------------------------------------------------------------
>
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------