I suspect he doesn't have an existing form in the first place.

For simple <a href="> links you can generate FORM submits by creating a
form on the page that has all hidden fields (one hidden field per FORM
variable). Change the existing hyperlinks to have onclick handlers that
call a javascript function (passing in the desired values) to set the
values of the hidden fields, and then submit the form (all via JS).
It's not that hard to do (depending on your knowledge of JS) but there
are some tricks to it (like having the onclick return false).  

I'm not sure if the urls in an imagemap can be manipulated in this way
though...  If not then maybe you need a redirecting page... Have your
urls go to a page as they do today and have that page create a form with
method=POST and with hidden fields all filled in, then use JS on that
page to auto-submit the form.  Lame, but it would probably work fine.

I suppose you could use CFHTTP to post to the other page too, but then
the request comes from your server, not the user's browser, and that can
be problematic.

        Mark

-----Original Message-----
From: Larry Lyons [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 31, 2006 10:19 AM
To: CF-Talk
Subject: Re: I know it sounds crazy ...

>Thanks everyone.  The responses are all great!
>
>Dave was right.  I'm got a hyperlink from an imagemap and I'm passing 
>to an application.  It only accepts FORM.Variable_name and not 
>URL.variable_name.  I do have access to this application's code, but 
>the ASp admits it's a home grown methodology. On the way home tonight, 
>I was thinking if I could find the file that processes the 
>FORM.Varaiable_name, couldn't I do a cfset and pass the 
>URL.variable_name to FORM.Varaiable_name?
>
>Comments? 
>
>Thank again guys.

As Dan suggested, use a GET as the form method. Then just duplicate the
URL scope in the form scope, as in <cfset form = duplicate(URL)>

hth,
larry



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258603
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to