http://codejanitor.com/wp/2006/03/23/ajax-timeouts-with-prototype/

On Apr 10, 1:02 am, "skyblueink" <[EMAIL PROTECTED]> wrote:
> Sorry, this is not CakePHP stuff, but javascipt stuff.
>
> When we fire a javascript function through "onLoad" event, it works
> through two steps like the following:
> (1) First, the page is loaded.
> (2) Javascript function is fired.
>
> This is the definition of onLoad event, and we all know that the STOP
> button on any browsers functions only while a page is being loaded,
> that is during the step (1). It means that once page loaing is done in
> step(1), and javascript function is fired in step (2), the STOP button
> on the browsers gets useless. What I really want to know is "Are there
> any ways to stop javascript execution in step (2)?"
>
> I have a page containing 10 <div> and 10 onLoad javascript functions
> which populates the <div>s through AJAX. In this case, page loading in
> step (1) is very fast (less than 1 second), but since populating
> <div>s takes 30-40 second, I'd like to provide the users with STOP
> button which works in step (2).


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to