Problems crossing the boundary between protected greasemonkey execution space and the unsafeWindow l
- by Chilly
Hi guys.
Here is my problem:
I've registered some callbacks into a Yahoo event driven webpage (betfair.com market views) and am trapping the betsPlaced events with a handler.
So far so simple.
Next stage is to get the event back into greasemonkey land, and while I know that from greasemoney space you can call unsafeWindow.stuff, there is no reverse operation (by design).
So if I want to send the contents of the event over, say, a cometd queue, my carefully set up jquery, greasemonkey, YUI2, betfair environment fails by telling me that unsafeWindow processes cant call GM_ajax stuff. This is obviously safe and sane, but it basically stops me doing what I want to do.
Has anyone tried doing this (ignore the cometd stuff, just general ajax calls) and succeeded?
I've had a look at pages like this: http://wiki.greasespot.net/0.7.20080121.0%2B_compatibility
but it doesnt appear to work for all the calls.