[thelist] JavaScript error.

David Kutcher david_kutcher at hotmail.com
Thu Feb 21 13:22:01 CST 2002


I'm very confused why you would have one virtual server as domain.com and
one as www.domain.com when users *often* mistake the two.  are you should
you just shouldn't be giving the domain.com one a machine name instead?

>This isn't uncommon, most sites do it.
Just because others seem to do it doesn't mean it's a good practice

Instead of using top, why not try parent or window?

Also, you might want to investigate your virtualhost containers (if you're
using apache).  There might be some confusion in your virtualhost containers
about what alias to use since standard virtualhost containers for www
contain both domain.com and www.domain.com as their aliases.

David
www.confluentforms.com


----- Original Message -----
From: "John Kipling Lewis" <jklewis at umich.edu>
To: <thelist at lists.evolt.org>
Sent: Thursday, February 21, 2002 1:51 PM
Subject: [thelist] JavaScript error.


>
> 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 -
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>



More information about the thelist mailing list