Put your javascript at the last ... so you are sure that my the time your 
javascript is being executed your html is rendered 

-----Original Message-----
From: Srepfler Srgjan [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2007 14:44
To: Struts Users Mailing List
Subject: Re: how to check if page has been displayed (rendered) by the browser

Yup, I think this is a JS issue,
Perhaps you should check if the DOM is loaded.

Torsten Römer wrote:
> Couldn't you use the JavaScript "Load" event to know when the page has
> been completely rendered, and postpone your reload until then?
>
> Torsten
>
> Greg Stasica schrieb:
>   
>> hi,
>>
>> My problem is that I've a big JSP page with a lot of scriptlets and a 
>> JavaScript which basically reloads the whole page every 5s. The problem is 
>> that my JavaScript makes a request to the server before the user has a 
>> chance to see the whole page.
>> Is it possible to read somehow that the page was sent to the browser and 
>> that the browser has completed rendering its content? 
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to