myframe needs to be the name of your frame, but other than that the syntax
looks fine. i.e.
top.[nameofframe].location.replace("#jsstrinformat(myurl)#"); you might want
to use jsstringformat() around your request.root_url variable just in case
-- there's probably nothing there that would break the js, but it's always
good to be on the safe side there.

> Isaac,
> When I remove the abort the page just processes on though.
> The javascript doesn't seem to be doing anything. Is the
> syntax screwy?
> <script language="javascript">
> top.myframe.location.replace("#request.root_url#/index.cfm
> ?fuseaction=profil
> e.profile8");
> </script>

> Greg

> -----Original Message-----
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 4:43 PM
> To: CF-Talk
> Subject: Re: Frames Craziness.


>> <cflocation> does not accept the target attribute. You
>> can do the redirect
>> with inline JS like this:

>> <script language="javascript">
>> parent.location.href="#myurl#"
>> </script>

>> You could replace parent with  the name of the target
>> frame. Does this
>> help?

> or top.myframe.location.replace("#myurl#"); which will
> replace the current
> location of that frame in the browser's history stack (
> the same as
> cflocation ) and is viable all the way back to NS 3 and
> equivalent version
> of IE.

> S. Isaac Dealey
> Certified Advanced ColdFusion 5 Developer

> www.turnkey.to
> 954-776-0046

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~|
> Archives:
> http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
> Subscription: http://www.houseoffusion.com/cf_lists/index.
> cfm?method=subscribe&forumid=4
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Structure your ColdFusion code with Fusebox. Get the
> official book at http://www.fusionauthority.com/bkinfo.cfm


s. isaac dealey                954-776-0046

new epoch                      http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to