Thanks for the help. I'll give that a try and see how it goes.

On Jul 8, 12:37 pm, schneimi <[EMAIL PROTECTED]> wrote:
> I forgot, if you want to update another DIV on empty content, this
> could look like:
>
> If you want to update the DIV with some remote content:
> 'success' => 'if (request.responseText != "") {$
> ("refresh_response").innerHTML = request.responseText;} else 
> {'.$ajax->remoteFunction(array('url' => 'error_url', 'update' =>
>
> 'another_div')).'}'
>
> If you want to just put in some text:
> 'success' => 'if (request.responseText != "") {$
> ("refresh_response").innerHTML = request.responseText;} else {$
> ("another_div").innerHTML = 'some text'}'
>
> On 8 Jul., 20:29, schneimi <[EMAIL PROTECTED]> wrote:
>
> > 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