You are here: Re: Problem with preloading page in hidden div « HTML « IT news, forums, messages
Re: Problem with preloading page in hidden div

Posted by Chris Tomlinson on 06/26/06 13:02

Hi Neredbojias, thanks for that. Just a couple of Qs before we try this:

>>> Another way is to have the function called by the onload
>>> event insert the future page url into the source of your iframe.
>>
>> Would you be kind enough to show us the correct code for this?

> <iframe id="iffy"...
>
> function petunia() {
> document.getElementById('iffy').src="newpage.html";
> }
>
> onload=petunia;
>
> ...in the <body> section.

How would this differ to our current method of loading the iframe in a
hidden div?

>>> Another
>>> way is to have the same function insert the future url into an
>>> object.
>
> Same as iframe but using <object>.
>
>>> Another way is to open an invisible window with the future page as
>>> its source.
>>
>> I suspect this may be the best and least interfering option. I assume
>> pop-up blockers don't mind this. Would you be able to show us the
>> correct code for this? Remember first though... :D
>
> Use the window.open function with the page to-be-loaded as url. Like...
>
> var dupa=window.open('newpage.html,'gnupage','');
>
> The j/s code within newpage.html should blur the page and make it
> invisible if loaded via preload. This last can be done something like...
>
> if (opener) document.body.style.visibility='hidden';

What is the advantage of bluring and hiding the page, if the popup window is
invisible anyway?
Is that the exact j/s we need to enter in the target big page?

--
Thanks,
Me

Try Google Quik-e-search™ at www.Superhighstreet.com/home
....Finds anything or they buy it for you!

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация