You can't access CGI environment variables in javascript, but you can access
some variables in javascript that the browser sends which are part of http
request headers and then placed in the cgi scope, including the referrer.
Try using document.referrer in JavaScript to get what you are looking for.


--
Pete Freitag - Adobe Community Professional
http://foundeo.com/ - ColdFusion Consulting & Products
http://petefreitag.com/ - My Blog
http://hackmycf.com - Is your ColdFusion Server Secure?




On Thu, Sep 29, 2011 at 1:30 PM, Rick Faircloth <[email protected]>wrote:

>
> Ok... I'm tired of searching.
>
> Can JS read CGI variables?
>
> e.g.
>
> var referer = cgi.http_referer.slice('/').pop();
>
> if ( referer === 'index.cfm' )
>
> etc.
>
> Rick
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347909
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to