AP257
AP257

Reputation: 93803

Keeping an iFrame static while the window reloads? (creative thinking needed)

Here's my problem:

However, I'd really like to avoid reloading the page, and having to reload the whole Flash object, each time the user changes views. But I'd really like to offer unique Disqus threads on each Flash view.

Can anyone think of a smart way I can get round this?

Could I put the Flash in an iFrame and not reload it when the rest of the page reloaded... or is that impossible?

Upvotes: 0

Views: 645

Answers (3)

Joeri Hendrickx
Joeri Hendrickx

Reputation: 17435

Why not make two iframes? One as big as your body, the other one smaller, centered, and with a higher z-index. Then just navigate the bigger iframe and leave the rest of the page alone.

Yes, it's ugly. But ugly questions ask for ugly answers :)

Upvotes: 0

Robusto
Robusto

Reputation: 31883

You could put the cart before the horse and make an AJAX call to replace your main page content elements, so long as the <iframe> is a direct child of the <body> and the main content is a sibling (not a parent) of it.

Upvotes: 2

halfdan
halfdan

Reputation: 34214

That is impossible as the iFrame is part of the loaded page. The only, but very ugly, way to implement this is using a frameset..

Upvotes: 0

Related Questions