Why couldn't you just write a javascript that changes
the <form action=""> parameter if searchA is checked
rather than searchB...then submits the form?

ie - <form action="/htdig" onSubmit="checkSearch();">


the javascript checkSearch() function would test which
radio button was checked, and then dynamically change
the "action" attribute to the correct search url.

--
Anthony E.

--- Gilles Detillieux <[EMAIL PROTECTED]>
wrote:
> According to Richard Shandelman:
> > I installed the htdig software and indexed the
> site, which generated the
> > standard search page.
> > 
> > We are totally redesigning our site and are
> incorporating SoftCart
> > ecommerce functionality.
> > 
> > I'd like to modify the search function to include
> just the textfield,
> > replace the "search button" with a "go" image, and
> add two radio
> > buttons; one to select htdig, and the other to use
> the soft cart search
> > engine.
> > 
> > Could you please tell me how I can do that.
> 
> Well, I just got a tip today on an excellent web
> authoring FAQ.  Its section
> on forms should help with your HTML coding
> questions:
> 
>     http://www.htmlhelp.com/faq/html/forms.html
> 
> The added wrinkle is that you want one of the input
> parameters to select
> which search engine CGI program to call.  The only
> way I know of to do
> that is with a wrapper script that gets the CGI
> parameters, looks at
> the parameter defined by the radio buttons to see
> which engine to call,
> and then converts the query string to the format and
> input parameter
> name set used by the desired engine, then calls that
> engine passing it
> the new query string.  The contrib/ewswrap directory
> in the htdig source
> distributions contains a few sample wrapper scripts,
> written in Perl,
> which may help as a starting point.
> 
> -- 
> Gilles R. Detillieux              E-mail:
> <[EMAIL PROTECTED]>
> Spinal Cord Research Centre       WWW:   
> http://www.scrc.umanitoba.ca/~grdetil
> Dept. Physiology, U. of Manitoba  Phone: 
> (204)789-3766
> Winnipeg, MB  R3E 3J7  (Canada)   Fax:   
> (204)789-3930
> 
> _______________________________________________
> htdig-general mailing list
> <[EMAIL PROTECTED]>
> To unsubscribe, send a message to
> <[EMAIL PROTECTED]> with a
> subject of unsubscribe
> FAQ: http://htdig.sourceforge.net/FAQ.html


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to