Hi all,

WRT the discussion had in the PC, in order to persist gagdets' state we
thought of providing a API for gadgets to save and retrieve their states
from the dashboard URL (via hash), instead of using existing pubsub model.

Therefore I did a research on alternatives to implement the API for gadgets
and found the following options.

1. Accessing the parents objects directly (via 'parent.x')
2. Inject API object into IFrames directly.
3. Using HTML5 window.postMessage [1]

As it seems, we cannot use the first two options as they are not working in
cross-domain scenarios. But using the postMessage it is viable. Appreciate
any other options or feedback.

[1] http://caniuse.com/#search=postMessage


Regards,

*Lasantha Samarakoon* | Software Engineer
WSO2, Inc.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 (71) 214 1576
Email:  lasant...@wso2.com
Web:    www.wso2.com

lean . enterprise . middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to