Incidentally if you really want to reload the frame rather than adding an entry in the 
browser's history stack, I'd use top[frame].location.reload(); instead of 
top[frame].location = url;

> It looks like you are missing a reference to "top".  Try
> something like
> this:

> function changeFrame(frame, url)
> {
>       top[frame].location = url;
> }

> Call it like this:

> <a
> href="javascript:changeFramePage('otherFrame','http://yaho
> o.com')">Load
> Yahoo</a>

> You can also just use the target attribute of the <a> tag,
> like this:

> <a href="http://yahoo.com"; target="otherFrame">Load
> Yahoo</a>

> Christian

> On Tuesday, July 1, 2003, at 12:51 PM, Paul Campano wrote:

>> Hi Bill.  I put that javascript in the head of my page
>> and tried
>> calling it
>> via ONclick and it doesn't work....the javascript error
>> says "location
>> is
>> null or not an object"  Here's my code:
>>
>> -->This is in the head of the page
>>
>> <script language="JavaScript">
>> <!--
>> function ChangeFrame(toFrame, tcLocation)
>>     {
>>         toFrame.location.href = tcLocation;
>>     }
>> //-->
>> </script>
>>
>> -->This is how I'm calling it:
>>
>> <a href="#" onClick="ChangeFrame('rightframetop,
>> rightframetop.cfm')">Refresh Other Frame</a>
>>
>>
>> Thanks for your help.
>>
>> -Paul

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~|
> 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

>                               Unsubscribe: http://www.houseoffusion.com/cf_lists/uns
>                               ubscribe.cfm?user=633.558.4




s. isaac dealey                972-490-6624

new epoch                      http://www.turnkey.to

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

tapestry api is opensource     http://www.turnkey.to/tapi

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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to