Re: Navigating to a bookmark within an IFrame
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Navigating to a bookmark within an IFrame

From: Adrian <Adrian@nospamhotmail.com.uk>
Date: Wed Nov 02 2005 - 20:12:55 CET

Yes thanks that will do it!

function flick(frameId,bookmarkId){
var gip=document.getElementById(frameId)
var x=gip.contentWindow.document.getElementById(bookmarkId).offsetLeft
var y=gip.contentWindow.document.getElementById(bookmarkId).offsetTop
gip.contentWindow.scrollTo(x,y)
}
"BootNic" <Bootnic@bounce.prodigy.net> wrote in message
news:Tt7af.4464$Y61.3233@newssvr33.news.prodigy.com...
> "Adrian" <Adrian@nospamhotmail.com.uk> wrote:
> news:dkab6g$db7$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com....
>
> Hi All,
>
> I load an Iframe within html page contained within another page and
> from the hosting page I would like to scroll to a given bookmark
> within the page loaded within the iframe without causing it to
> reload.
>
> How do I do this?
>
> I have tried:
>
> function navIContent(bm)
> {
> IContent.src=bm
> return
> }
>
> called by :
>
> onclick='navIContent("../content.htm#test")'
>
> but it doesn't seem to work!

Are you wanting to do something like this:

http://i.1asphost.com/BootNic/ifb.asp

-- 
BootNic   Wednesday, November 02, 2005 1:22 PM
Every time I close the door on reality it comes in through the windows.
*Jennifer Unlimited*
Received on Mon Nov 21 03:16:55 2005