Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:50
probleme with iframe
Poster: xenophil
Dated: Sunday March 20 2005 - 16:25:48 GMT
my iframe name is page (iframe name="page")
I want that When I click on the menu (milonic) that my web page displays in my iframe ( page)
i have test this already:
Code:
aI("text=Awards;url=javascript:openIFrame('tempiframe','http://xenophil.chez.tiscali.fr/sof2/alex_culer.JPG');")
aI("text=Awards;url=javascript:openIFrame('tempiframe','/sof2/alex_culer.JPG');")
aI("text=awards;url=/sof2/alex_culer.JPG;target=_page");
aI("text=Awards;url=javascript:openIFrame('tempiframe','/sof2/alex_culer.JPG');")
aI("text=awards;url=/sof2/alex_culer.JPG;target=_page");
and there is a bug
can you help me please
Thank you in advance and if you don'tunderstand me I will ask has somebody best that me in English of rewrite this message
Poster: Ruth
Dated: Sunday March 20 2005 - 20:27:29 GMT
I went to your link at the bottom, but I don't see an iframe. If you have named the iframe page, then the link in the menu file should be
Code:
aI("text=Awards;url=javascript:openIFrame('page','http://xenophil.chez.tiscali.fr/sof2/alex_culer.JPG');");
I went to your link below your name but once you enter I don't see an iframe on the page. Can you give a link to the page with the iframe, and the menu if the above doesn't work?
Ruth
Poster: xenophil
Dated: Tuesday March 22 2005 - 10:11:25 GMT
my webpage is : http://xenophil.chez.tiscali.fr/sof2/records.html
the iframe is in the middle center with a photo of sof2 (a video game)
[url]http://xenophil.chez.tiscali.fr/sof2/records.html
[/url]
i went display my record in my iframe
thanks
Poster: Ruth
Dated: Tuesday March 22 2005 - 14:56:08 GMT
The menu needs the openIframe function call on the page
Code:
<script>
function openIFrame(iFrameId,winURL)
{
ifId=gmobj(iFrameId)
ifId.src=winURL
}
</script>
function openIFrame(iFrameId,winURL)
{
ifId=gmobj(iFrameId)
ifId.src=winURL
}
</script>
You then need to change the menu aI string to have page, not tempiframe, since you have named the iframe page.
Code:
url=javascript:openIFrame('page','http:// etc.
Also, you should include id=page along with the name=page in the iframe itself.
Code:
<IFRAME border=1 id=page name=page
Ruth