This requires some JavaScript, but Dart does have websockets so maybe there is some way to get this to work. Has anyone tried?
Thanks.
Justin Fagnani
unread,
May 18, 2012, 2:55:13 PM5/18/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Bjorn Tipling, mi...@dartlang.org
You could write a shim that uses the JS channel API and calls window.postMessage when receiving messages from the channel, and handle your custom messages in Dart.
-Justin
Bjorn Tipling
unread,
May 18, 2012, 3:26:40 PM5/18/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mi...@dartlang.org, Bjorn Tipling
Ok I will try this. Thank you.
Moises Belchin
unread,
May 22, 2012, 3:44:17 AM5/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Bjorn Tipling, mi...@dartlang.org
Very useful if someone can post some code sample
Many people have asked how to work with Dart and JavaScript and I think this is very interesting for all of us.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Moises Belchin, Bjorn Tipling, mi...@dartlang.org
Hi Moises,
I too would love to see sync JavaScript interop. In the meantime, you might find this post on JSONP interesting (it shows how to use postMessage), as well as Chris Buckett's cleaned up JSONP class