Hi, Bakers!
I succeeded in loading 10 divs in sequence, using the following
snippet.
But, my question here is how to stop the page loading after it started
loading.

I tried both <?php echo $html-
>link('STOP',"javascript:window.stop()" ); ?>
and <?php echo $html-
>link('STOP',"javascript:document.execCommand('stop')" ); ?>
 in IE6 and FF 2.0, but could not stop loading. Even the STOP button
of the browser do not work in this case.
Could anyone help me?

   <?php
        $bookshopNumber = 10;
        $keyword = "Treasure Island";
   for ($i = 0; $i < $bookshopNumber; $i++){
        $view = 'view' . $i;
        echo "<div id=$view></div>";

    $options = array(
    'update'   => "$view",
        'url'      => "/books/lister/?i=$i&keyword=$keyword",
        'type'     => 'asynchronous',
        'loading'  => "Element.hide($view);",
        'complete' => "Effect.Appear($view);"
    );

    echo $javascript->event('window','load',$ajax-
>remoteFunction($options),false);
        }
   ?>


--~--~---------~--~----~------------~-------~--~----~
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