Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Mar 2009
    Location
    Tremelo, Belgium
    Posts
    21

    Default Iframe (again perhaps)

    Hi,
    I'm new to Webdesigner.
    I would like to be able to control content in an Iframe via buttons. I attach a jpg to make clear what i am looking for.
    Can this be done in Webdesigner ?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Iframe 1.jpg 
Views:	296 
Size:	38.4 KB 
ID:	58450  

  2. #2
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: Iframe (again perhaps)

    Hi Jopi,

    Welcome to Talkgraphics.

    Yes you can easily do that is Web Designer.

    Use a placeholder object for the iFrame and use the Replace with html option in Web Properties. Use code similar to the following:
    Code:
     
    <iframe name=myiFrame  width=400 height=400 scrolling=no frameborder=0 marginheight=0 marginwidth=0></iframe>
    For your buttons to control the content have their links open in the iframe.

    See attached images.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	iframe.png 
Views:	288 
Size:	12.4 KB 
ID:	58451   Click image for larger version. 

Name:	link.png 
Views:	287 
Size:	14.3 KB 
ID:	58452  

    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  3. #3
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Iframe (again perhaps)

    I would suggest to set width and height to "100%" in the <iframe> element. This way it will be the same size as the placeholder, so that you can conveniently resize it.
    John.

  4. #4
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: Iframe (again perhaps)

    Thanks John.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  5. #5
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: Iframe (again perhaps)

    A simple example using an iFrame and some buttons.

    One of the buttons is a link to download a zipped copy of the .web file used to create the page.

    iFrame Example
    Last edited by Soquili; 31 March 2009 at 05:01 PM.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  6. #6
    Join Date
    Mar 2009
    Location
    Tremelo, Belgium
    Posts
    21

    Default Re: Iframe (again perhaps)

    Many Thanks Soquili !
    Didn't think it was that simple.

    Jopi

  7. #7
    Join Date
    Mar 2009
    Location
    Tremelo, Belgium
    Posts
    21

    Default Re: Iframe (again perhaps)

    Soquili,

    One additional question.
    If I want to put my own content in the iframe: Where do i put it within the webdesigner layout without it showing up as a webpage.

    An example of what I want to achieve : http://www.grafixprint.be/od_lichtbakken.htm
    I built this in dreamweaver but would prefer to use the simpler approach of Webdesigner in the future.

  8. #8
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: Iframe (again perhaps)

    Jopi,

    You can create a webpage as part of your Web Designer project but do not provide a direct link to the page. Use the page URL to open in the iframe the same as any page from another site would be used.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  9. #9
    Join Date
    Mar 2009
    Location
    Tremelo, Belgium
    Posts
    21

    Default Re: Iframe (again perhaps)

    Iframes working fine now. Thanks for the help.

    I have one request : When the page opens with the Iframe the frame is empty. Content only shows when clicking on one of the buttons.
    Is there a way to have a 'start' page in this Iframe ??

  10. #10

    Default Re: Iframe (again perhaps)

    Yes

    <iframe name=myiFrame src=start.htm width=100% height=100% scrolling=no frameborder=0 marginheight=0 marginwidth=0></iframe>

    The start.htm can be a named page in your current .web document or even a prepared image. In which case you would enter src=start.jpg (for example)

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •