problem with iframes

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
floyd**
Beginner
Beginner
Posts: 1
Joined: Fri Oct 25, 2002 6:49 am
Contact:

problem with iframes

Post by floyd** »

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

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

,"Job Oppourtunities","javascript:openIFrame(\"tgcsaframe\", \"jobs.htm\")",,"Job Oppourtunities",1
User avatar
trytrix
Super Advanced
Super Advanced
Posts: 92
Joined: Thu Sep 26, 2002 9:46 pm
Location: Flanders / Belgium
Contact:

Post by trytrix »

Hi,

This is a case sensitive problem...
Change the "F" in ifId=gmobj(iFrameId) into lower case.. like this,

Code: Select all

function openIFrame(iframeId, winURL) 
{ 
    ifId=gmobj(iframeId) 
    ifId.src=winURL 
} 
Cheers,

Trytrix

(Hit me at : http://www.ransbecca.be)
You're Never Fully Dressed Without A :D Smile !

"From Image Flanders, one of Europe's most dynamic regions" - Visit : http://www.toerismevlaanderen.be
Post Reply