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:26
can't get iframes to work
Poster: gnosis
Dated: Tuesday November 15 2005 - 0:29:56 GMT
Hi, I've just started with this menu V5 and am trying to get iframes to work. I am obviously missing something???
I have the sample11.
i have
Code:
with(milonic=new menuname("Links")){
style=menuStyle;
aI("status=Apache Web Server, the basis of Milonic's Web Site;text=Apache Web Server;url=javascript:openIFrame('tempiframe','http://www.apache.org/');");
aI("status=MySQL, Milonic's Prefered Choice of Database Server;text=MySQL Database Server;url=javascript:openIFrame('tempiframe','http://ww.mysql.com/');");
aI("status=PHP - Web Server Scripting as used by Milonic;text=PHP - Development;url=javascript:openIFrame('tempiframe','http://www.php.net/');");
aI("status=PHP Based Web Forum, Milonic's Recommended Forum Software;text=phpBB Web Forum System;url=javascript:openIFrame('tempiframe','http://www.phpbb.com/');");
aI("text=Open Google in IFrame;url=javascript:openIFrame('tempiframe,'http://www.google.com'")
}
style=menuStyle;
aI("status=Apache Web Server, the basis of Milonic's Web Site;text=Apache Web Server;url=javascript:openIFrame('tempiframe','http://www.apache.org/');");
aI("status=MySQL, Milonic's Prefered Choice of Database Server;text=MySQL Database Server;url=javascript:openIFrame('tempiframe','http://ww.mysql.com/');");
aI("status=PHP - Web Server Scripting as used by Milonic;text=PHP - Development;url=javascript:openIFrame('tempiframe','http://www.php.net/');");
aI("status=PHP Based Web Forum, Milonic's Recommended Forum Software;text=phpBB Web Forum System;url=javascript:openIFrame('tempiframe','http://www.phpbb.com/');");
aI("text=Open Google in IFrame;url=javascript:openIFrame('tempiframe,'http://www.google.com'")
}
in the menu_data.js file and this:
Code:
<script type="text/javascript">
function openIFrame(IFrameID, URL){
ifId=tempiframe(IFrameID)
ifId.location.href=URL // Opera Bug Fix. ifId.src=URL
}
</script>
function openIFrame(IFrameID, URL){
ifId=tempiframe(IFrameID)
ifId.location.href=URL // Opera Bug Fix. ifId.src=URL
}
</script>
pasted in the body of the page the menu is on.
Nothing happens when I click on the sub menu. a small "error on page" appears in the task bar in the browser.
What am I doing wrong???