AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Opening an iFrame using a variable

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript
View previous topic :: View next topic  
Author Message
MS
Guest





PostPosted: Mon Nov 10, 2003 6:54 pm    Post subject: Opening an iFrame using a variable Reply with quote



The start of my javascript creates a variable "content" which holds the URL
of the page I want to load into an iFrame.

The Problem is how to get this URL into the iframe

<!--IFrame Called MAIN -->
<iframe width="435" height="600" name="MAIN" scrolling=auto
src(content)>
</iframe>

This is the code to create the iFrame but the src(content) does not work.

I have successfully used Frames for this but I think iFrame will be better
for what I want.

the code for Frames was

function fillFrame() {
parent.MAIN.location.replace(content)
}

is there a similar function that can fill an iFrame ?

Thanks
Alex



--
----------------------------------------------------------------------------
http://www.clickonlingerie.com?SIG - Exotic Erotic Lingerie
----------------------------------------------------------------------------



Back to top
MS
Guest





PostPosted: Tue Nov 11, 2003 1:38 am    Post subject: Re: Opening an iFrame using a variable Reply with quote



I have already sorted it... thanks anyway

Alex

--
----------------------------------------------------------------------------
http://www.clickonlingerie.com?SIG - Exotic Erotic Lingerie
----------------------------------------------------------------------------


"MS" <SpamNoThnx_santa____clause (AT) hotmail (DOT) com> wrote

Quote:
The start of my javascript creates a variable "content" which holds the
URL
of the page I want to load into an iFrame.

The Problem is how to get this URL into the iframe

!--IFrame Called MAIN --
iframe width="435" height="600" name="MAIN" scrolling=auto
src(content)
/iframe

This is the code to create the iFrame but the src(content) does not work.

I have successfully used Frames for this but I think iFrame will be better
for what I want.

the code for Frames was

function fillFrame() {
parent.MAIN.location.replace(content)
}

is there a similar function that can fill an iFrame ?

Thanks
Alex



--
--------------------------------------------------------------------------
--
http://www.clickonlingerie.com?SIG - Exotic Erotic Lingerie
--------------------------------------------------------------------------
--






Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.