On Sat, 12 Feb 2005 rf <rf@.> wrote:
"Stimp" <re*@spumco.com> wrote
[iframed page]
I tried something like that, putting the function in the <body
onload> call, but I got a 'permission denied' javascript error.
The page is .asp, so I wonder does that have any affect on the
permissions between parent and iframe content?
No it does not. The browser knows nothing about asp or any other form of
server side sripting for that matter.
You are trying to use javascript across different domains (I assume your
iframed page is from a different domain to your main page). This is not
allowed for security reasons.
aye that would be it... essentially we are creating a system for
affiliates to our web site where they can include the iframe on their
own site (different domain obviously) and the iframe will process pages
from our domain.
This is only a temporary measure.. ideally we would store the affiliate
pages on our own server and the affiliate could upload their own header
and footer for the page.
Assuming that we can add javascript to both the affiliate's page and the
iframe content, is there an alternative approach I should look at for
the problem of scrolling the main page to the top when the iframe
changes?
I don't suppose there's something like:
onIframeChange='parent.scroll(0,0)'
to detect when the iframe content refreshes?
--
"I hear ma train a comin'
.... hear freedom comin"