[thelist] JavaScript error.

John Kipling Lewis jklewis at umich.edu
Thu Feb 21 12:51:00 CST 2002


I have a web page that uses two iframes.  One frame contains a list of
CD's that our editors have picked and the other shows a list of possible
catagories (Pop, Classical, Western).

The second iframe uses a function on the main (top) page.  I'm calling the
fuctioned through top.funtion_name().  That is working fine.

We have two virtual servers.  One is www.domain_name.com and the other is
domain_name.com.  This isn't uncommon, most sites do it.

For some reason, when someone visits the www.domain_name.com and clicks in
the second iframe it tries to access the main (top) page through
domain_name.com instead, and this creates an error:

Error Line 30
Permission Denied.

This line is the one where the function is being called from.

When you mouse over the link, it clearly states that it's going to go to
domain_name.com, and since this isn't the parent window, it gives an
error.

Does anyone know why this might happen?

John -




More information about the thelist mailing list