Forums / Templates, Stylesheets, Page Layout / iFrame for the body and header reloading

iFrame for the body and header reloading

Locked

Views: 6,576

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
12 Oct 2006, 6:03 AM
#1
andy1234 avatar

andy1234

Zen Follower

Join Date:
Oct 2006
Posts:
148
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-

13 Oct 2006, 2:36 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: iFrame for the body and header reloading

Mygod!!! Why would one want to use a frame???

Zen-Venom Get Bitten

13 Oct 2006, 3:01 PM
#3
rambo avatar

rambo

New Zenner

Join Date:
Jul 2006
Posts:
32
Plugin Contributions:
0

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.

13 Oct 2006, 9:05 PM
#4
andy1234 avatar

andy1234

Zen Follower

Join Date:
Oct 2006
Posts:
148
Plugin Contributions:
0

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

14 Oct 2006, 12:28 AM
#5
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

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

14 Oct 2006, 7:59 AM
#6
andy1234 avatar

andy1234

Zen Follower

Join Date:
Oct 2006
Posts:
148
Plugin Contributions:
0

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.

14 Oct 2006, 3:25 PM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,678
Plugin Contributions:
0

Re: iFrame for the body and header reloading

You know you could use the flash on the index only and a static header on the rest of the site ...

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

17 Oct 2006, 9:44 AM
#8
neunetllc_com avatar

neunetllc_com

Banned

Join Date:
Oct 2006
Location:
New Albany Ohio
Posts:
113
Plugin Contributions:
0

Re: iFrame for the body and header reloading

andy1234:

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 sexy 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 sexy operator part).

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

21 Apr 2008, 11:51 PM
#9
silenceway avatar

silenceway

New Zenner

Join Date:
Nov 2005
Posts:
55
Plugin Contributions:
1

Re: iFrame for the body and header reloading

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

Byron Herrera
http://www.silencesoft.pw
bh [ at ] silencesoft :)

22 Apr 2008, 12:07 AM
#10
andy1234 avatar

andy1234

Zen Follower

Join Date:
Oct 2006
Posts:
148
Plugin Contributions:
0

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