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://yahoo.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/unsubscribe.cfm?user=89.70.4
                                

Reply via email to