[thelist] JavaScript variable into CF variable

Minh Lee Goon v7ac at sdsumus.sdstate.edu
Mon Nov 19 14:05:42 CST 2001


Evolt,
I've been trying to find an alternate method of displaying the path of a
page in my custom 404 page. Using #cgi.Path_Info# didn't work. None of
the UDFs, custom tags, or error variables displayed the path attempted
by the user. Instead, it only displays the path to the custom 404 page.

I think the JavaScript method (window.location.href) might be the answer
but now I have to figure out how to be able to use that variable
somewhere else on the page. For example:

<script>
     var BaseRef = window.location.href;
</script>

I'd like to use the variable BaseRef somewhere else in that page,
possibly as a CF variable. Any suggestions how I can do this?


Minh Lee Goon
-------------
Web Administrator
Information Technology Services
South Dakota State University
Brookings, South Dakota




More information about the thelist mailing list