Ok now I understand. I am not sure, but I think there is no way but
checking the request-content.

The only way i found, is to not set the 'update'-option but instead
using the 'success'-option like this:

'success' => 'if (request.responseText != "") {$
("refresh_response").innerHTML = request.responseText}'

It's not really beautiful, but should be a good workaround.

Maybe someone else shows up with a nicer solution, your problem should
be a common problem.

On 8 Jul., 19:18, bondo <[EMAIL PROTECTED]> wrote:
> No, it replaces the div with nothing at all but that isn't exactly
> what I want.
>
> For example, I have a weather element that is updated every 30
> minutes. If it can't retrieve the information from the web server, the
> element is blank and the weather information that was there,
> disappears. The next time it checks, 30 minutes later, it is able to
> retrieve the data and the weather information returns.
>
> What I want to have happen is that if it can't retrieve the
> information for whatever reason, the div is not updated at all and
> maybe some other div is updated. So in my example, the original
> weather information would remain (although it would be an hour old)
> until it could successfully update it with new information.
>
> On Jul 8, 11:02 am, schneimi <[EMAIL PROTECTED]> wrote:
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to