I try to explain again :
i want to create a C# Class Library that call the Google Maps API .
My class library call "
WebBrowser.Document.InvokeScript("javascriptFunction", arguments); "
but this can't return any value because in "javascriptfunction" there
is a GoogleMaps asynchronous function
( [GDirectionObject].load(....) ).
So if in the javascript set a flag or similar and in my c# library
wait (in any mode) the setting flag, the webBrowser component sleep
with the class and the javascipt code don't run anymore.
Thank you very much for your response
 P.G.

On Sep 17, 4:30 pm, Andy R <[EMAIL PROTECTED]> wrote:
> You can use callback functions or set a flag and check it every 50ms
> (settimeout). What exactly is your problem?
>
> On Sep 17, 3:37 pm, Pau486 <[EMAIL PROTECTED]> wrote:
>
> > Hello everybody , my name is Paolo i am a young Italian programmer , i
> > have a big problem with my project :
> > i must to call javascript Google API  function from a C# class library
> > but , this calling must to be synchronous because i have to make a lot
> > of calculate ( with the Google function, the function is
> > GDirections  ) from another VB6 Project , it is possible to convert
> > Google javascript asynchronous function to a synchronous function in a
> > good way???
> > I try with an infinite loop but the CPU became 100% busy....HELP me
> > PLEASE! if is possible!!!!
> > thank a lot , Paolo
--~--~---------~--~----~------------~-------~--~----~
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