Thanks for your answer. That will probably do it. At least for the
case when the server is down and I am getting no data at all.
If for some reason I would get a 500 error, the returned data will be
something different from a JSON object. So I don't know what strange
might happen then.
I'll give it a try later today and post again.

Ideas still welcome :-)

On Sep 24, 12:24 pm, marcelo <[EMAIL PROTECTED]> wrote:
> On Sep 24, 12:06 pm, Jürgen <[EMAIL PROTECTED]> wrote:
>
> > But then how do I know, when the data has been loaded?
>
> Check every few miliseconds, until you give up:
>
> // Call it with
> checkData(0);
>
> function checkData(attempt) {
>   attempt++;
>   if (typeof myData != 'undefined') {
>     processData(myData);
>   }
>   else if (attempt < 10){
>     window.setTimeout("function(){checkData(attempt)}",500);
>   }
>
> }
> > Sorry for being slightly off topic, but I am stuck with my google maps
> > application without it.
>
> OK, my fault for answering in the first place. :-)
>
> > Do you happen to know a better place to ask that javascript/JSON
> > question?
>
> http://groups.google.com/group/comp.lang.javascript/topics
>
> --
> Marcelo -http://maps.forum.nu
> --
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to