> Thanks Bill - I have tried some but I've been trying to
> get to the new page with CFLOCATION. My understanding
> from searching Allaire's web site is that CFLOCATION and
> JavaScript don't get on, but if you have another alternative
> I'd be interested.
It's not that CFLOCATION and JavaScript don't get along - they're completely
unrelated.
When you use CFLOCATION, you're issuing a command on the server. This
command creates lines within the HTTP response header that the server
returns to the browser. These lines look something like this:
HTTP/1.1 302 Object Moved
Location: http://www.whatever.com/
Note that the CF server and the web server don't know anything about frames
or JavaScript. All they know is that the browser has made one or more HTTP
requests, and that they need to return the appropriate HTTP responses. It's
up to the browser to execute JavaScript, and put documents within the
appropriate frames.
So, if you use a CFLOCATION within a script, whatever frame caused the
script to be requested is the frame in which the new document will be
displayed.
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
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists