View Full Version : Page Scroller (aka Custom Scrollbar)
Jim Weinberg
05-13-2006, 04:20 PM
I'm using the Page Scroller to control scrolling in a frame. In Netscape (7.2) if I happen to click on one of the arrows, I get the following javascript error:
Error: uncaught exception: Permission denied to call method Location.toString
This does not happen if I use IE. How can I get rid of this error in Netscape?
Thanks.
Use window.location.href rather than window.location.toString().
Note that it's a property, not a method, and it's lowercase.
Jim Weinberg
05-13-2006, 05:51 PM
Twey.
I'm confused, there is no window.location.toString() property in the script. Are we looking at the same one (http://www.dynamicdrive.com/dynamicindex2/pagescroller.htm)?
Jim Weinberg
05-13-2006, 07:49 PM
Twey,
I figured out what the problem was. What, not why. Apparently, the developer didn't put an argument following the "href="javascript:" definition of the anchor tags. It appears that this was done so that when the cursor was placed over one of the scroll arrows, it did not change to a "link cursor". By including the argument "scrollwindow()" to the href definition, the script works fine.
Of course, the cursor changes, but hey.
Are we looking at the same one?Almost certainly not. That's why you should post a link to the script you're talking about. :)
I just offered a generic answer.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.