If you use that JS the form won't be submitted. You need to use JS to modify
the form's action then submit. Something like:

onclick="document.display.action='groups-add-action.cfm?AddUser=#User#';docu
ment.display.submit();

My JS is a bit rusty but it's something like that

Regards,
Matthew Walker
http://www.matthewwalker.net.nz/

----- Original Message -----
From: "phumes1" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 6:44 AM
Subject: Re: <CFFORM


> Hi,
>
> How can I submit the <CFFORM using javascript from the <OPTION tag?
> For some reason the below buttons "Add" and "Delete" won't work?
>
> <cfform name="display">
>
> ..stuff missing...
>
> <option value="groups-list-action.cfm?MyGroups=#User#">#User#</option>
>
> </cfform>
>
>
> I want to be able to pass the #User# variable to my other templates from
> the buttons below.
>
> <input type="button" value="Add" class="navlinks"
> onClick="parent.location='groups-add-action.cfm?AddUser=#User#'">
> <input type="button" value="Delete" class="navlinks"
> onClick="parent.location='groups-delete-action.cfm'">
>
>
>
>
+---------------------------------------------------------------------------
--------+
>
> Philip Humeniuk
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
+---------------------------------------------------------------------------
---------+
>
>
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to