Forums

How can I make flash content to NOT reload on every page? (5 posts)

  1. andre77
    Member
    Posted 11 months ago #

    I am implementing an flash, image based menu, as a part of the webpage templates. This menu will be in the header area, and will be available on every page of the site. My problem is that the flash content (swf-file) gets reloaded when the visitor clicks in to another page – which is disturbing and unnecessary.

    How can I make the flash content, NOT reload on every page?
    I am thinking that it should be possible to achieve that with an iframe. But I would rather use some nifty little php-code, javascript or something similar to achieve the same thing!

  2. Peter vanDoorn
    Member
    Posted 11 months ago #

    The problem is with the way web browsers work - every time you load a new page the old one is completely unloaded and so any content must be reloaded afresh. iframes won't make any difference as they are inline to the page content and are therefore considered to be part of the page and thus reloaded every time.

    I guess you could go back 10 years and try building the site using regular frames, although that kind of thing is frowned upon these days and I'm not sure how WordPress would behave with frames.

    The only other option (and one which many people would call preferable) would be to ditch the Flash!

    Peter

  3. andre77
    Member
    Posted 11 months ago #

    I tried out an "embedded" iframe solution, but realize now that it of course doesnt solve the problem - as using wordpress/php means that every page gets build/generated from scratch. I guess that leaves the option of setting up the site in an overall framework (using "frames") - but that is not a good solution as I see it, because that would mean that the structure gets complex because this menu is kind of in the middle of the page. That would mean that if I crate a frame (loading fram a separate webpage) for the flash menu, the other wordpress content gets divided by the frame in the middle.

    Is there no way to tell the wordpress engine to NOT reload certain parts of a page...?

  4. andre77
    Member
    Posted 11 months ago #

    Hi Peter!

    I hand't updated the forum webpage, so I didn't realize that you had posted an answer. As you mention, I came to the same conclusion...

    Yes, I would happy if I didn't have to use the flash. But I am afraid, I am not in charge of the layout decision making...And flash is currently the only option I have found to accomplish what they want.

    And as I also mentioned, I am not fond of having to use frames. So if there is someone out there, who has another suggestion - then by all means, share with me ,-)

  5. Peter vanDoorn
    Member
    Posted 11 months ago #

    Whilst WordPress does rebuild the page every time, it does so under your control with the inclusion of get_header()... remove that line from all of your files and it won't load the header each time.

    I suppose that you could then load the header into a frame and have the links open into the main frame.

    The other problem with frames, of course, is it wrecks the site's SEO, plus it will wreak havoc with individual posts and pages that get bookmarked or linked to directly.

    Perhaps your best bet is to show your client how clunky it is with Flash then they might relent and let you redesign and build it in HTML?

Reply

You must log in to post.

About this Topic