>>> Keith Ball <[EMAIL PROTECTED]> 10/21/99 2:33:35 PM >>>
>How can I post data to a URL rather than just
>GET it by using javascript...


>here is what I get but I want to post the MOCCA or
>the SAMOC to the page.

><form method="post" action="/servlets/UpdateList">
><select
>     name="site_vers"
>     onChange="var D=this.options[this.selectedIndex].value;
                           if (D) top.location.href=D;"
> >

At the moment you are just using the JS to alter the context of the
page (which will obviously be a GET).

You're onChange() needs to do a form.submit() instead to get the post
effect.

For this to work with frames (it looks like you're using them - yes?)
you will need to set a target on the form tag.




Nic Ferrier

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to