All right, thanks a lot!

On 28 oct, 15:22, Andrew Leach <[email protected]> wrote:
> On Oct 28, 2:12 pm, JuKiM <[email protected]> wrote:
>
> > Ok, and what is the correct way to raise the postback from the client?
>
> GDownloadUrl -- that might seem odd, but it's the method which is used
> to get something to happen on the server and receive the result. The
> result is processed by the callback function:
>
> GDownloadUrl(myscript.php?event=1,function(data){...})
>
> > Because.. I suppose that if another postback is produced at same time
> > (for example the refresh of an updatepanel with a DateTime label) one
> > postback will break the other..?
>
> Not necessarily. Depends on the server-side processing. However you
> could have client side code like
>
> var inhibitPostback = 0; //global
> if (somecondition) {
>   inhibitPostback = 1; // stop other postbacks for the time being
>   GDownloadUrl(myscript.php?event=1,function(data){
>     inhibitPostback=0; // processing complete: allow other postbacks
>     }
>   }
>
> or chain GDownloadUrl()s together in their callback functions to force
> execution in sequence.
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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