can't get iframes to work

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
gnosis
Beginner
Beginner
Posts: 2
Joined: Tue Nov 15, 2005 1:19 am

can't get iframes to work

Post by gnosis »

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: Select all

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'")

}
in the menu_data.js file and this:

Code: Select all

<script	type="text/javascript">
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???
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Are you using the full sample or have you change the html code and placed the menu on your own page? Does the sample on the Milonic site work?

If you have the menu on your own page, could you provide a link or post the html code?

Ruth
gnosis
Beginner
Beginner
Posts: 2
Joined: Tue Nov 15, 2005 1:19 am

Post by gnosis »

Thanks Ruth for the quick response.

I took a closer look at the sample11 index page and figured out what I was doing wrong.

cheers
Post Reply