Thread: iframes

Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2009
    Posts
    11
    Plugin Contributions
    0

    Default iframes

    zc 1.3.9h
    no upgrades
    mods: product_extra_fields_1-5-1 installed with site.
    everything installed via console.

    ive read that there is a known issue with iframes and zc. a shame since there is so much iframe-based content available, such as google maps.

    one such map ive created and embedded in an ez page on my site. however, doing so breaks the right hand sideboxes and footer - they simply dont load.

    though i can usually muddle my way through things, im just not enough of a coder to fix this one myself. any help would be appreciated. however any criticism of iframes themselves should be relevant to my situation.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: iframes

    Your broken iframe has nothing to do with there being any supposed "known issue with iframes and zc".

    Your HTML for your iframe tag isn't properly terminated, and thus the browser is confused, and is treating the rest of the page as part of the iframe, which it sees as starting out with a whole lotta closing tags, not new content.

    Instead of using <iframe .... />, use <iframe ..... ></iframe> and it'll work fine.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: iframes

    The "known issues" relate to Zen Cart content (especially payment processing and possibly sessions) being displayed inside iframes. There is no issue with external content brought into ZC.

  4. #4
    Join Date
    Jan 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: iframes

    i did see an error. but when i log in via shell to correct the code in \includes\languages\english\html_includes\define_page_2.php to...
    Code:
    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?msa=0&amp;msid=213859551025902514341.00046643f81eab908377b&amp;hl=en&amp;ie=UTF8&amp;t=m&amp;vpsrc=1&amp;ll=36.795608,-94.397106&amp;spn=0,0&amp;output=embed"></iframe><br /><small>View <a href="http://maps.google.com/maps/ms?msa=0&amp;msid=213859551025902514341.00046643f81eab908377b&amp;hl=en&amp;ie=UTF8&amp;t=m&amp;vpsrc=1&amp;ll=36.795608,-94.397106&amp;spn=0,0&amp;source=embed" style="color:#0000FF;text-align:left">Jespersen Mfg &amp; Sales, Inc.</a> in a larger map</small>
    ...i still get the same results.

    am i missing something?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: iframes

    The link you posted above points to EZ-Page #1.
    So, not sure why you're editing "define_page_2.php" for an EZ-Page ID #1. EZ-Pages are stored in the database, and edited via your Admin->Tools->EZ-Pages menu.

    Your define-page-2, which has no link on your site, works fine: http://cart.jespersenmfg.com/index.php?main_page=page_2
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: iframes

    Quote Originally Posted by antioch View Post
    ive read that there is a known issue with iframes and zc. a shame since there is so much iframe-based content available, such as google maps.
    I'd like to know where you read that as it's just not true. It is true though, that using iFrames will break PCI Compliance which is why one does not use iFrames in eCommerce websites.

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: iframes

    Quote Originally Posted by Website Rob View Post
    I'd like to know where you read that as it's just not true. It is true though, that using iFrames will break PCI Compliance which is why one does not use iFrames in eCommerce websites.
    Just to be sure, are you saying that inserting iframe content in, say, an EZ page, will affect PCI compliance ? Doesn't sound right.

  8. #8
    Join Date
    Jan 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: iframes

    Quote Originally Posted by DrByte View Post
    The link you posted above points to EZ-Page #1.
    So, not sure why you're editing "define_page_2.php" for an EZ-Page ID #1. EZ-Pages are stored in the database, and edited via your Admin->Tools->EZ-Pages menu.

    Your define-page-2, which has no link on your site, works fine: http://cart.jespersenmfg.com/index.php?main_page=page_2
    doh! i first used define pages for that page. then i switched to ez pages for that one and some other pages. so i guess i sort of fooled myself. thx for giving me the needed kick to the head!


    Quote Originally Posted by Website Rob View Post
    I'd like to know where you read that as it's just not true. It is true though, that using iFrames will break PCI Compliance which is why one does not use iFrames in eCommerce websites.
    it was nothing official looking, just some comments here from high post count users. id share links, but ff trashed my profile this morning causing me to lose my history. >:(

  9. #9
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: iframes

    Quote Originally Posted by stevesh View Post
    Just to be sure, are you saying that inserting iframe content in, say, an EZ page, will affect PCI compliance ? Doesn't sound right.
    I cannot provide a link to other definitive sources and this seems to be somewhat of a grey area. I could be wrong but PCI scans seem to be somewhat of an Art & Science. Some report problems that others do not. Some will fail if an iFrame is used anywhere and some will fail if an iFrame is just used on the payment page.

    I have taken the position that not using iFrames anywhere, is the way to go. It is my belief that AJAX will supersede iFrames and even though both have their problems, security and otherwise, the former is better than the latter.

 

 

Similar Threads

  1. v150 iframes, security and youtube
    By caffeitalia in forum General Questions
    Replies: 3
    Last Post: 26 Jan 2012, 03:12 PM
  2. Paypal & iFrames Issue
    By g3steve in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 4 Nov 2011, 07:32 PM
  3. iframes in Ezpages?
    By Sevenhelmets in forum Basic Configuration
    Replies: 0
    Last Post: 9 Nov 2009, 03:46 PM
  4. Sideboxes in iFrames
    By vera in forum General Questions
    Replies: 2
    Last Post: 5 Jul 2006, 09:37 PM

Posting Permissions

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