homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

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)

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)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved