Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mozilla and frames problem

Status
Not open for further replies.

plotzer

Programmer
Aug 28, 2001
35
0
0
US
I have a frames based application that is comprised mainly of html and javascript. I do have a tool in the application that loads a jsp page into one of the frames with some query results. This works fine except when I want to reload one of the html pages (using javascript) into that frame. The frame doesnt load and I get the following error:

Error: uncaught exception: Permission denied to call method Location.toString


I only get have this problem in mozilla/firefox. It works fine in explorer.

Any assistance would be appreciated.

Thanks
 

Agree with Jeff - some code would be handy... but a few guesses:

Do you want to use "Location" (capital 'L'), or "location" (lowercase 'l')?

Are you doing any cross-domain stuff that would invoke the built-in security of JS?

Hope this helps,
Dan
 
The line that causes the error is as follows:

parent.TOCFrame.location.href="toc.htm";

The jsp page that I load into the frame is on the same server, but it is in the tomcat root directory and not in the same directory as the frameset.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top