Forum: Ruby on Rails iframe permission problems.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
73c04e9ef9ca435c5b19a2e765ae6d20?d=identicon&s=25 Max Williams (max-williams)
on 2007-07-24 17:23
I have some javascript code that's meant to pull out the url and title
of whatever's in an iframe:

top.iframe_name.location.href
top.iframe_name.document.title

However i'm getting this script error when i call the action (by
pressing a button at the moment, for testing purposes):

"uncaught exception: Permission denied to get property
HTMLDocument.title"

I can get the title ok for my main page (ie the one that holds the
iframe).

Does anyone know what might be the problem here?  Thanks in advance...
This topic is locked and can not be replied to.