Welcome to TalkGraphics.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2010
    Location
    Bradford, England
    Posts
    1,827

    Default help with an iframe problem - please help

    Hi guys I hope that there is a solution for this as I am in dire need of one.

    Basically I want to know if there is a way to create an iframe in one page so that it shows another page but when you click on a link in the iframe I want the link target to open in another page in the current window, so for instance if I am on the home page of a site and I have an iframe in that page showing the particular page I need to show in the home page, when a link in that iframe is clicked I want the link to open in a third page but I do not want another tab or window opened.

    I am using the following iframe code

    <iframe name=ifram1
    src=http://www.sketchprinting.com/featuredproducts/featured.htm
    width=100% height=100% scrolling=yes
    frameborder=0></iframe>

    I want any links to go to the page http://www.sketchprinting.com/featur...ucts/store.htm

    At the moment when clicking on a link it just displays partially in the iframe, I do not want it to do that and I hope the guys on here with far more experience of html can help me, hopefully.
    Flawless Form. Faultless Function. Crafted by Cloud

    https://www.cloudwebagency.co.uk

  2. #2
    Join Date
    Aug 2010
    Posts
    533

    Default Re: help with an iframe problem - please help

    Hi Sketch,
    Under the links tab, open link>> Parent frame (_parent)

  3. #3
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: help with an iframe problem - please help

    If you want to open a page from an iframe in the current window/tab use

    web properties >> link >> open link in: parent frame

    Edit: beaten by James do I really type that slow ?

  4. #4
    Join Date
    Jan 2010
    Location
    Bradford, England
    Posts
    1,827

    Default Re: help with an iframe problem - please help

    thanks for the quick replies guys but the links are in the iframe in that and I do not have access to the links as they are from ecwid.
    Flawless Form. Faultless Function. Crafted by Cloud

    https://www.cloudwebagency.co.uk

  5. #5
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: help with an iframe problem - please help

    but you do have control of the links at http://www.sketchprinting.com/featur...s/featured.htm
    Attached Files Attached Files

  6. #6
    Join Date
    Aug 2010
    Posts
    533

    Default Re: help with an iframe problem - please help

    You could try adding <base target="_top" /> to the head section of the page you have the cart embedded.
    Seems to work in FF but not IE.

  7. #7
    Join Date
    Jan 2010
    Location
    Bradford, England
    Posts
    1,827

    Default Re: help with an iframe problem - please help

    Drwyd, The links are from ecwid, I do not have any control of those at all, they have a html code to embed a product individually so I will try that instead, thank you so much for the demo file. jamesd I tried your suggestion but no luck with it, thank you for trying.
    Flawless Form. Faultless Function. Crafted by Cloud

    https://www.cloudwebagency.co.uk

  8. #8
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: help with an iframe problem - please help

    Just had a look at your links and I can see your problem. I think it can be done with a little fiddling (as long as you don't mind losing the mouseover image zoom) but it wont be a robust solution. The individual links may be the best idea.

  9. #9
    Join Date
    Jan 2010
    Location
    Bradford, England
    Posts
    1,827

    Default Re: help with an iframe problem - please help

    I have resorted to just displaying the featured products and then creating a box over the products (clear fill) then linking the box to the entire featured products category on another page, this works fine but still not the same as having something like opencart or oscommerce functionality.
    Flawless Form. Faultless Function. Crafted by Cloud

    https://www.cloudwebagency.co.uk

 

 

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
  •