Need Help in a Function

J

Javier

I used a function that is in one web and I tried to modify to my web but
give an error,

This is an example:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Go</title>
<script language="JavaScript"><!--
function functionName(fileName1,fileName2) {
parent.frameName1.location.href = fileName1;
parent.FrameName2.location.href = fileName2;
}
//--></script>
</head>

<body>

<a href="javascript:functionname('pf1.htm','pf2.htm')">Go</a>

<p><iframe name="frameName1">
Floating Frame 1
</iframe></p>
<p><iframe name="frameName2">
Floating Frame 2
</iframe></p>

</body>

</html>


When I clic on Go the "Page error" is showed in the bottom bar, I have the
web pages pf1.htm and pt2.htm in my practice folder.

Wath is my error? I think is in the iFrame, but I don't find it.

I'm using Floating Frames in Frontpage 2003

Best Regards,

Javier Salvatierra
 
T

Thomas A. Rowe

I don't think you will be able to do what you want when using the IFrame, the code you have is
designed to work with a standard Frameset, not an IFrame.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
J

Javier

Thanks Thomas, is possible to modify this function to work with iFrames, and
how can I do that?.

Javier
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top