Might work better if you add CFID and CFTOKEN to the SRC line, then you
don't rely on cookies for session - and then you could use the NN version
for all browsers - should plug those browsers that failed.

The IE on the Mac probably displayed the save as dialog because you don't
have the CFCONTENT in the IE file.

        ----------
        From:  Dan Haley [SMTP:[EMAIL PROTECTED]]
        Sent:  Wednesday, 27 September 2000 23:42
        To:  Fusebox
        Subject:  RE: nothing about stocks or beer glasses - hiding
javascript inst ead

        If someone hadn't nicely notified me off list that our ::$DATA fix
was no
        longer in place, you could have just seen the source code that way .
. . :)
        Also, from the replies, it appears this works in a couple of
browsers, but
        is easily gone around by using a different browser.  That said, here
is the
        source and you are welcome to do what you will with it!


        ********** Here is the file that displays in the browser:
        <html><head>
        <cf_browser>
        <cfif browser["type"] eq "MSIE">
                <script language="javascript" type="text/javascript"
        src="jsy/test2.cfm"></script>
        <cfelse>
                <cfset session.canseejs = "true">
                <script language="javascript" type="text/javascript"
        src="jsz/test2.cfm"></script>
        </cfif>
        </head>
        <body><a href="#" onclick="test(); return false;">click
        here</a></body></html>

        *********** In the jsy directory for IE browsers, here is the
        application.cfm
        <cfif cgi.http_referer eq ""><cfabort></cfif>

        *********** In the jsy directory for IE browsers, here is test2.cfm
        <!--- include meta tags for controlling caching - don't know if
there is any
        effect,
                        but it seemed to work --->
        <cfinclude template="/fusebox/headers.cfm">
        function test() {
        alert('<cfoutput>#cgi.http_referer#</cfoutput>');
        }

        *********** In the jsz directory for NN browsers, here is test2.cfm
        <cfinclude template="/fusebox/headers.cfm">
        <cfcontent type="text/javascript">
        <cfif not isdefined("session.canseejs") or not
        session.canseejs><cfabort></cfif>
        function test() {
        alert('<cfoutput>#cgi.script_name#</cfoutput>');
        alert('<cfoutput>#session.canseejs#</cfoutput>');
        }
        <cfset session.canseejs = "false">


        -----Original Message-----
        From: David Burt [mailto:[EMAIL PROTECTED]]
        Sent: Wednesday, September 27, 2000 9:06 AM
        To: Fusebox
        Subject: RE: nothing about stocks or beer glasses - hiding
javascript
        ins tead


        what does the source of those two files look like?

        
----------------------------------------------------------------------------
--
        To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to