View Full Version : Communication with browser
dbrueck
10-08-2004, 07:31 AM
I've seen mentioned in a few places that support for two-way communication with browser Javascript may be coming - can anyone give insight into when that might occur? (or, maybe it already did and I was just reading old messages?)
It'd be great to use Laszlo for our client-side applications, but the lack of two-way communication with the browser is a deal-breaker for us - Flash itself supports this, so hopefully adding support to Laszlo won't be too far off.
Any updates or info that someone can give me would be appreciated, thanks!
P.S. Why aren't these forums built in Laszlo?
whisperstorm
10-09-2004, 12:01 AM
can you be a little more specific? I know for our laszlo application on 1up, two way communication is already happening. Can you give an example?
dbrueck
10-09-2004, 06:38 AM
Really? That's great! Here's what we need to be able to do:
1) Have a button click or other UI event inside Laszlo call a Javascript function in the same page in the browser.
2) Call from Javascript in the browser into the Laszlo UI to change the UI state (expland/collapse a view, populate a list with data, etc.)
I know this is the wishlist forum, so if you could just give me a hint at what API(s) to use I'll go experiment and if I have more questions I'll post in a more appropriate forum, but everything I've read so far suggests that the above it not yet possible. It was mentioned that such capabilities will be coming in the future.
Thanks for taking the time to reply!
lazydino
10-12-2004, 02:35 PM
I don't think that Laszlo has two-way communications with browser either. I am talking about the equivelent of FSCommand and setvar in Flash. It will be nice if we can communicate Laszlo's event model from outside source such as a C DLL or a .NET object instantiate from IE.
antun
10-15-2004, 02:40 PM
1) Have a button click or other UI event inside Laszlo call a Javascript function in the same page in the browser.
This you can certainly do today. There are many examples in these forums - just do a search.
-Antun
dbrueck
10-15-2004, 03:44 PM
I've searched every forum extensively and am just looking for a straight answer.
I've seen your posts referring to the loadURL method, but generally it's prefaced with "you can call _some_ Javascript..." (emphasis mine) which leads me to believe that it may not work in the general sense.
So, is the answer to my original question 'no'? It's ok if that's the case - I just need to know. And from my original question: can anyone give me an indication on the timeframe for when this will be added?
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.