0

HTML5 web workers and ajax to ZK controller

asked 2010-06-11 14:57:25 +0800

versionfourx gravatar image versionfourx
99 2

updated 2010-06-11 15:19:44 +0800

I'd like to use HTML5 web workers and have them submit an Ajax request to a ZK-5 GenericAutowireComposer (controller).

Rules are simple:
1) can use and import any JS you want as long as it doesn't reference or use the DOM
2) you can pass a JSON object from your main JS thread (that has access to the DOM) to your web worker.

Between these two small talks:
http://docs.zkoss.org/wiki/Zk.Event
http://docs.zkoss.org/wiki/Notify_Server

I feel close... but I'm not sure which JS to import to have access to the AU requests and which calls to use to make the invocation.

Any help would be greatly appreciated

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-06-11 16:31:00 +0800

versionfourx gravatar image versionfourx
99 2

updated 2010-06-11 16:31:33 +0800

Well... I looked at Au.js in ZK trunk and it uses the window object (which is okay, so does jQuery, mootools, etc) but not okay for web workers.

Perhaps there is a way to get the uuid and uri for the XMLHTTPRequest manually?

link publish delete flag offensive edit

answered 2010-06-13 21:36:47 +0800

SimonPai gravatar image SimonPai
1696 1

Hi versionfourx,

This sounds like an interesting idea. Maybe we can adapt some concept from or connect to web worker to enhance client-server fusion.
Would you post this to feature request?

Thanks,
Simon

link publish delete flag offensive edit

answered 2010-06-15 20:52:13 +0800

versionfourx gravatar image versionfourx
99 2

Added: #3016845

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-06-11 14:57:25 +0800

Seen: 1,155 times

Last updated: Sep 21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More