The fuselet does not actually generate JavaScript code, it is entirely in
ColdFusion and all output content remains in ColdFusion (HTML) format, the
trick to the application is in the <SCRIPT> tag. It calls the applications
and loads the output content directly on to the page, but it (the CFM file)
does not create actual JavaScript content.

As for the view source, no... if you view the source all you see is the
SCRIPT tag you type in to reference the application, no additional content.
If you try to access the URL directly (the one referenced in the tag) you
get an error message, so really the viewer does not see any HTML content.

I've used a similar methods in the past for applications, and you actually
simply write the ColdFusion code as you would regularly, and the
applications calls it and serves it in the HTML page.

The only downfall to this method, however is that is uses FUSEACTION calls,
so if you plan to use this same method on a CF box (i.e. Loading a banner
from a remote server...) it can give problems,

Other than that, it just might do the trick he needs.

James

----- Original Message -----
From: "Dave Watts" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, August 14, 2002 7:21 PM
Subject: RE: Calling CFM file from an HTML page


> > Well, you could always do it the fuselet way! That is
> > possible. (and it'll execute ColdFusion code directly
> > in the HTML page) best part, none will ever be able to
> > see your source code (even if they do a VIEW SOURCE on
> > it, which is always a good thing).
> >
> > You basically have a coldfusion page on the server, and
> > call it as follows:
> >
> > <SCRIPT SRC="http://www.fuselets.com/chat/fuseletchat.htm?...
>
> This would require you to rewrite your CFM file so that it outputs
> acceptable JavaScript, which is a bit different than what the original
> poster was requesting, I think. (I could be wrong about that, though.)
>
> As for no one being able to see your source code, this is no different
than
> any other CFM page - you can't see the server-side code, but you can
> certainly see the generated JavaScript. If the browser executes it, you
can
> see it, one way or another.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
> 
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to