On Mon, Feb 25, 2013 at 11:43 PM, John Spackman <[email protected]>wrote:
> I've not used HtmlArea for a while but it might worth bearing in mind that
> it is implemented as an iframe and events go to the iframe, not to the main
> window – you might have to trap events on the iframe's document body. In
> order for your sample to work, HtmlArea would have to be specifically
> trapping the event inside the iframe and firing a duplicate on the htmlArea
> object.
How can I add an event listener on the iframe document of HtmlArea?
I've tried the following code, but got the error message "Uncaught
TypeError: Cannot call method 'addEventListener' of null ":
var html_doc = htmlArea.getContentDocument();
html_doc.addEventListener("keypress", function(e) {
alert("key pressed!");
}, this);
And how do I fire duplicate events on the htmlArea object?
Thanks!
--
Alexei Vinidiktov
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel