Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

domain mask & javascript error

domain mask javascript error



8:02 pm on Dec 2, 2002 (gmt 0)

I have a subdomain that I'm using off of my primary and I added another domain name that I have the registrar masking so the subdomain has it's own .com URL. Here is the problem - my javascript menu no longer works when I enter through the masked domain name. I get an "access denied" error and it points me to line 2 as the error. I assume the script is trying to access the invisible frame laid in by the masking but how do I get to what I really want? Help!

1: var Par=parent.frames[0]&&FirstLineFrame!=SecLineFrame?parent:window;

2: var Doc=Par.document;


7:34 pm on Dec 3, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Welcome to WebmasterWorld [webmasterworld.com] gunner.

Scripting across domains is verboten. This is a security feature.

how do I get to what I really want?

What is it that you really want? I couldn´t tell from those two lines of code :)



7:55 pm on Dec 3, 2002 (gmt 0)

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

As andreasfriedrich is saying the browser thinks you are trying to script a page outside of your domain(which you are but not really). I am really not sure how to resolve this problem. I would redirect from the address you don't want to the one you do. It looks like having both may not work.

Featured Threads

Hot Threads This Week

Hot Threads This Month