I don't know if you found a solution for this or not, but anyhow here is
what i suggest....
you can put all your items in one form and create a hidden filed for your
_function. and when you click on the GO button first set the value of the
_function field to "list&_start=1" and then submit the form and when you
click on a differnet button or image, first set the _function value to
whatever you want it to do and then submit the form....

This is what i did when i had different actions in the same form, i hope it
works for you too. 

Farzana

-----Original Message-----
From: Garth Penglase [mailto:garth@;bbmedia.com.au]
Sent: Tuesday, October 22, 2002 8:57 AM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: [OT] form/javascript prob



-- 
Hi everyone,
thought i might ask the list even though it is off topic.


I have the following code and my problem is that the search field 
(named 'Prod_Name') needs to be part of a different form. Now before 
you say, "well put it between separate <form></form> tags with the 
appropriate action", I can't, because it causes my HTML to screw up 
my layout - a common occurrence when two form tags follow each other.

If anyone has an idea of how to do this, maybe using javascript to 
submit the search string via a different form tag, I'd really 
appreciate your input because all of the JS and HTML that I tried 
doesn't work. There's probably a simpler approach I'm overlooking.

.....
I'm using a form tag at the top to try to separate the search string 
in the field down below and post it:

<form name='nav_search' action='./look.taf?_function=list&_start=1' 
method='post'></form>


<tr>
        <td align="right" height="31" bgcolor="#006666" class="textsearch">

<form action="" name="SearchBar" method="get">
<SELECT ID="F3" NAME="BrandID" class="textsearch" 
onChange="MM_jumpMenu('parent',this,0)">
<OPTION VALUE="">Select a brand</OPTION>
<OPTION VALUE="./look.taf?_function=brand&Brand_uid1=71">Amber</OPTION>
</SELECT>&nbsp;<input type="text" name='Prod_Name' size="25" 
class="textsearch" maxlength="50" value="">&nbsp;</td>

   <td bgcolor="#006666"><a 
href='javascript:document.nav_search.submit()'><IMG 
SRC="http://hhb.com.au/nav/gobutton.gif"; border="0" height=26 
width=28 alt="Get Search Results"></a></td>

</form>
</tr>
........

thanks
Garth
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to