GUI communication?

61 views
Skip to first unread message

JakobSternberg

unread,
Apr 2, 2012, 12:27:55 PM4/2/12
to JSDB
Hi I just discovered JSDB, veery interestin.
I checked out the grid worker example, not sure what the thing
actually does....the script is kinda huge but,.. from what i can see,
it seems there is some kind of communication between the browser and
the JSDB js? is that so?

How is that done?

Would it be possible to:
1. Launch browser on blank page,
2. After 2 seconds "write" a html submit button to page
3. When button is clicked, the browser returns a value to JSBD.

Thanks
Jakob Sternberg

bryan rasmussen

unread,
Apr 3, 2012, 7:47:32 AM4/3/12
to js...@googlegroups.com
> it seems there is some kind of communication between the browser and
> the JSDB js? is that so
> How is that done?
JSDB scripts runs, starts a webserver. The html that is being worked
with is just the html served by jsdb.

> Would it be possible to:
> 1. Launch browser on blank page,
> 2. After 2 seconds "write" a html submit button to page
> 3. When button is clicked, the browser returns a value to JSBD.
>


start your server on port 8080, run http://localhost:8080 from the
command line and the http pluggable uri scheme supported in most os'
would open that address in your default browser.

cheers,
Bryan Rasmussen

Reply all
Reply to author
Forward
0 new messages