[thelist] Javascript- Permission denied error for Iframe

Lee kowalkowski lee.kowalkowski at googlemail.com
Thu Jun 22 09:16:21 CDT 2006


On 22/06/06, Ramya Balakumar <ramya.balakumar at villanova.edu> wrote:
> I am using an iframe code to link to a center content in another
> domain using the following code-
>
> <IFRAME id="whereToBuyApp" src="http://www.washingtonpost.com"
> scrolling="no"  width="555" frameborder="0" >Sorry, your browser
> doesn't support iframes.</iframe>
>
> But I keep getting a "Permission denied" error which keeps pointing to
> this line in the javascript-
> "else if (currentfr.Document && currentfr.Document.body.scrollHeight)
> { //ie5+ syntax "

You're only allowed to do this on iframes with documents from the same
domain.  If this is to go out on the web, you won't be able to do this
client-side using IFRAMEs.

-- 
LK



More information about the thelist mailing list