Do I correctly understand that if the url cannot be reached, the DIV
is updated with an error-page, and you want to avoid that? I thought
there would already happen nothing at all when it comes to a timeout.
Not sure, but maybe the 'failure' ajax option could help. Another try
could be to check the ajax-responseText of valid content, using the
'success' option.
Hope this helps.
On 8 Jul., 17:18, bondo <[EMAIL PROTECTED]> wrote:
> I have a statement like:
> echo $ajax->remoteTimer(array('url'=>'refresh/10',
> 'update'=>'refresh_response', 'frequency'=>120));
>
> If the client cannot reach the specified url (because the server is
> down), is it possible to update a different div or do nothing at all?
> I don't want to update the specified div if it couldn't actually grab
> the data from the server.
>
> Thx.
> Bondo.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---