Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    iFrame for the body and header reloading

    Hi everybody,

    I do not want to reload the header every time and am thinking about wrapping the main body into iFrame. are there any mods for this? Has someone tried this?

    Thanks

    -A-

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: iFrame for the body and header reloading

    Mygod!!! Why would one want to use a frame???
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: iFrame for the body and header reloading

    I had the same need as my header is flash and I want it to play continually through the site. I decided against Iframe, because when you go to a secure page in the cart the browser will not indicate it is on a secure page. An alternative is to bump them to the secure site from the get go. I don't have the solution, I just have this reason not to do that.

  4. #4
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: iFrame for the body and header reloading

    rambo has explained exactly, why I need an iFrame - not to reload header flash every time.

    Regarding SSL - the solution could be to use just a simple no-frame structure for secure pages. Just use a different template for those pages

  5. #5
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: iFrame for the body and header reloading

    Some info for reference.
    Displaying define_main.page.php only once
    That is if you go to other pages within the site and back to the main page the define_main_page.php won’t display, so to not run the flash file again.
    A New Starter again

  6. #6
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: iFrame for the body and header reloading

    Thank you - this is a great feature to play with sessions. However, I cannot figure out how it could help not to run flash twice. My flash header should run once upon loading the 1st page and stop. What will happen, if I include a"IF" session conditional statement? Nothing good, because the flash object will be either loaded or not loaded (displaying an empty placeholders). Since the page is reloaded, flash will play anyway, unless we include something like "do not auto start", if the session is old. But in this case, it will stop on the 1st flash frame - not the last.

  7. #7
    Join Date
    Oct 2006
    Location
    New Albany Ohio
    Posts
    118
    Plugin Contributions
    2

    Default Re: iFrame for the body and header reloading

    Quote Originally Posted by andy1234 View Post
    rambo has explained exactly, why I need an iFrame - not to reload header flash every time.

    Regarding SSL - the solution could be to use just a simple no-frame structure for secure pages. Just use a different template for those pages
    ever consider loading the zen cart pages dynamically into a single flash _root? the _root doesnt have to be flashy; it can just be a blank white space that loads as fast as, well, a blank white space. but then you wouldn't have any visitors. the point is that you CAN be a minimalist AND a flash user.

    that would meet your first objective. loading the flash file into a secure page would move toward accomplishing the second. although if you were going to go with that solution, there's quite a bit of overhead, depending on how you get flash to communicate with mySQL and apache. here you have several choices, including an xml socket connection to loadvars to amfphp.

    you could even connect flash to a jabber comm server and have ######## operators hold live video conferences with your customers as they browse your zen cart. i think this is what ebay's intent was with the skype acquisition (unsure about the ######## operator part).

    may i ask what kind of site or application this is?

  8. #8

    Default Re: iFrame for the body and header reloading

    Hi.
    Did you find a solution for this?
    Thanks a lot.
    Byron H.

  9. #9
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: iFrame for the body and header reloading

    yes, i did - a long time ago. there are two options:

    1) open the main page inside of an iframe. We managed to get it working on one of our commerciall sites; but it required tons of recoding the main zen engine; a lot of issues with sessions and post variables.... spent over 3 months to get it working

    2) use ajax for opening the main content. Again, this implies quite a big zen code surgery as you will face the same session and other variables links to the ajax generated divs. I used xajax framework for this and had to change over 100 core zen files.

    Best

    A

 

 

Similar Threads

  1. Replies: 8
    Last Post: 28 Feb 2012, 03:05 PM
  2. Gap between header and body
    By timhersh in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Mar 2011, 05:25 AM
  3. Background images for header, body, and footer...
    By 95 Boyz in forum General Questions
    Replies: 3
    Last Post: 22 Oct 2008, 09:33 AM
  4. Static body for resizing (How to keep the body from sliding and moving when resizing)
    By bjmhistory in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 26 Jan 2007, 12:28 AM
  5. Flash Header w/ Music; stop reloading
    By jasonr1023 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Nov 2006, 08:22 AM

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