Sorry, my mistake. The code I wrote wasn't really waiting till 'onload'. Now
I see that it works perfectly!

I see the following exceptions during the load:
uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [*nsIDOMScreen.width*]" nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS frame ::
http://www.incom-realty.ru/sale-realty/flats/?p=1&sr=12&sd=2&if=1&cbM=1&cbR=1&FC=&TC=&FKS=&TTS=0&L=::
<TOP_LEVEL> :: line 1813" data: no]
[Break on this error] undefined

I didn't see any problem with the JS on this particular page but the
question is :
     Could there be a scenario when loading a page with "display: none" will
make some JS portions not to work properly ?
     If it could happen then how can I make it work ? Reload all the scripts
after the page is rendered ? That seems ineffective.

Also, one more question:
What if the document has subframes ?
As far as I understand the 'onload' is fired top to bottom, meaning that
when the subframes will be rendered the display will be already set back.

Thanks a lot,
Mike.

On Tue, Aug 26, 2008 at 4:01 PM, Michael R <[EMAIL PROTECTED]> wrote:

> Yes I am.
> I did the experiment in FireBug console, could that be a problem ?
>
> On Tue, Aug 26, 2008 at 3:45 PM, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
>
>> Michael R wrote:
>> > I loaded the page in an <iframe> with "display:none". Then I set the
>> display
>> > back.
>> > The page is rendered, but still the coordinates are incosistent between
>> > different runs.
>>
>> Odd.  That should really work.  You're waiting until onload, right?
>>
>> -Boris
>> _______________________________________________
>> dev-embedding mailing list
>> [email protected]
>> https://lists.mozilla.org/listinfo/dev-embedding
>>
>
>
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to