Wendy,
Thanks for the reply. your solution is working for me. i guess
hidden fields work out better than attempting to use the parameters in
the actionmapping.
thanks again.
andy
On Tue, 27 Jul 2004 10:18:24 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Andrew Close" <[EMAIL PROTECTED]>
> > function sl_addMemberProdNbrs(frm) {
> > frm.action += "?prodType=Member";
> > frm.submit();
> > return;
> > }
>
> Instead of messing with the action of the form, actually add the attribute
> to the form. You might need prodType to be an existing, hidden form
> element, then just set it. My onClick functions look like this:
> function sortByCostCenter() {
> document.forms[0].mode.value="sortByCC";
> document.forms[0].target="_self";
> document.forms[0].submit();
> }
>
> The 'mode' is a hidden form element, so mode.value is what you set in order
> for it to be sent to the server.
>
> I'm no JavaScript expert, but it works...
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]