<A href="#" onclick="func()">link</A>
<script language="javascript">
function func() {
//get the value of the radio button selected ..
window.location.href = http://........?value= \\value of radio button
}
</script>
-----Original Message-----
From: Chris Probert
Sent: Tuesday, June 27, 2000 6:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic HREF parameter values?
Try pointing the HREF to a JavaScript function specified in a
<script/> block at the top of the page, you should then be able
to access the value of the radio button using the DOM and use
this to append to a URL stream. Then set the self.location
parameter to this URL. This certainly works in IE, but I'm not
sure about Netscape.
> From: "Hines, Bill" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Dynamic HREF parameter values?
> A co-worker has a JSP page that has some <A HREF links on it to
other JSP
> pages. Now, on one of these links, he must pass a parameter that
is the
> value of a selected radion button on this same page as the link. I
know he
> can do that by turning the hyperlinks into submit buttons and
making the
> whole thing a form, but there are many of these links and it would
be ugly.
> How can he include the value of a selected radio button on a page
as a
> parameter to this HREF target? I never had to tackle that one
before and I'm
> not real familiar with JavaScript and the DOM but I think it might
be an
> answer somehow.
>
> Thanks in advance..
>
Chris Probert
[EMAIL PROTECTED]
Electronic Trade Services
St. Alkmunds House
103 Belper Road
Derby
DE1 3ER
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets