HighDots Forums  

open and insert into a iframe elsewhere

alt.discuss.html alt.discuss.html


Discuss open and insert into a iframe elsewhere in the alt.discuss.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
av7x
 
Posts: n/a

Default open and insert into a iframe elsewhere - 11-20-2004 , 01:15 AM






Can someone please help me with this?

I need a page with a blank iframe, and all other site pages, when clicked,
to always open into this iframe.

+++++++++++++++++++++++++++
The function is called openIframe and it's parameters are IFrameID and URL
function openIFrame(IFrameID, URL){
ifId=gmobj(IFrameID)
ifId.location.href=URL // Opera Bug Fix. ifId.src=URL}

You must have an IFrame embeded in your HTML for the above function to work.
You must also give the IFrame an id that will be it's reference in order to
change the URL. The menuitem for changing the URL of your IFrame will need
to look something like this:

aI("text=Open Google in
IFrame;url=javascriptpenIFrame('tempiframe,'http ://www.google.com'")

Usiing URL=filename.html, could someone give me an example of the embedded
HTML code for an Iframe followed by the menuitem that will pull
filename.html into the Iframe. Thanx in advance. /mfurf

Code:
<iframe src="http://www.yahoo.com" width="700" height="400"
id="myiframe" name="myiframe"></iframe>

aI("text=Open Filename in
IFrame;url=javascriptpenIFrame('myiframe','http: //www.domain.com/filename.
html');status=Open in iframe;");


+++++++++++++++++++++++++++++++++++++++++++++++++

Any Clues???









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.