Welcome to WebmasterWorld Guest from 54.157.7.205

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)

New User

5+ Year Member

joined:Oct 20, 2011
posts:
votes: 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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1782
votes: 0


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 :)

Andreas

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

Senior Member

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

joined:Mar 20, 2002
posts:3732
votes: 0


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.