Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:20

problem with iframes


Poster: floyd**
Dated: Friday October 25 2002 - 6:58:04 BST

its prolly something really simple but it won't seem to work
i am trying to open a iframe in a table and the link won't open the frame.
it says error line 1 char 25 in the index.htm file.
Code:
<html>
<head>
<title></title>
</head>
<body bgcolor="#999999" text="#009966" link="#009966" vlink="#009966" alink="#00CC66">
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
<SCRIPT language=javascript>
function openIFrame(iframeId, winURL)
{
    ifId=gmobj(iFrameId)
    ifId.src=winURL
}
</SCRIPT>
<div align="center">
<img src="images/top.gif" width="700" height="100">
<table width="708" border="1" bordercolor="#009966" cellspacing="1" cellpadding="0">
  <tr>
    <td width="80%">
       <iframe width=100% height=375 id=tgcsaframe src="">
      </iframe>
   </td>
    <td width="20%">
   </td>
  </tr>
</table>
</div>
</body>   

im using the newest menu version and my menu_array.js looks like this
Code:
,"Job Oppourtunities","javascript:openIFrame(\"tgcsaframe\", \"jobs.htm\")",,"Job Oppourtunities",1


Poster: trytrix
Dated: Sunday October 27 2002 - 16:39:12 GMT

Hi,

This is a case sensitive problem...
Change the "F" in ifId=gmobj(iFrameId) into lower case.. like this,
Code:
function openIFrame(iframeId, winURL)
{
    ifId=gmobj(iframeId)
    ifId.src=winURL
}

Cheers,

Trytrix

(Hit me at : http://www.ransbecca.be)