1) URL parameter absolutely works in cflocation
In
/wwwroot/cfdocs... you find this example
<cfif TripQuery.RecordCount is 1>
<cflocation url="tripdetail.cfm?ID=#TripQuery.tripID#">
<cfelse>
<cflocation url="tripdetail.cfm?ID=#Form.RecordID#">
</cfif>
2) I use session.returnpage ="../somewhere/pagename.cfm"
and pair it with
<cfif session.returnpage IS NOT "">
<cflocation url="session.returnpage">
<cfelse>
<go other places
</cfif>
...it's pretty flexible
3) If you need to do more than URL parameter like go out of a frameset or so
you may want to consider this:
<script language="javascript">
parent.location.href = '/base/somewhere/index.cfm';
</script>
Axel
> Hi everybody
> need help on this
>
> I have this code on an action template
>
> <CFQUERY NAME="AddHL" datasource="db">
> INSERT into table1(listID, secondID, emailID)
> VALUES('#Form.ListID#','#Form.secondID#','#form.emailID#' )
> </cfquery>
> <CFLOCATION URL='Form2.cfm'>
> I need to go back to the previous form with the value of form.id which
> comes from the calling template. Is there a way to insert that value
> in the cflocation url? I tried it but it gives me an error wHAT i WANT
> TO DI IS
>
> <cflocation url='form2.cfm?id='form.id>
>
> thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304764
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4