Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cflocation question

Status
Not open for further replies.

snix1

Programmer
Dec 12, 2000
107
US
Hi! What's wrong with this code?

<cfset id=&quot;&quot;>
<cfif #id# EQ &quot;&quot;>
<SCRIPT language=&quot;JavaScript&quot;>
<!--
history.go(-1);
//-->
</script>
</cfif>
<cflocation url=&quot;getit.cfm&quot;>

I think in the above example, getit.cfm should not execute, but it does.
If I change the cflocation to cfinclude, it's o.k. Looks like the history.go(-1) doesn't operate fast enough (?).
Thanks is advance for your help. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top