Boris Zbarsky wrote:
I'm capturing URL clicks in my embedded application, and this load-stopping is not desirable. Any way to work around?

Call preventDefault on the click events?

I'll try this, thanks for your reply. The problem is that some of the clicks will be valid (e.g. for some client-side javascript links that hide/display part of a tree structure).


3. How do I call Javascript from my embedding code?

The JavaScript you want to call has to be an XPCOM component, usually (unless you want to call the JS engine on literal strings by hand...)

An IFRAME in the loaded page will have some functions defined in it (e.g. scrollToPicture(picIndex)), and I just need to call:


scrollToPicture(3);

for example (and in the context of the IFRAME, of course).

Can I do that by calling the JS engine with strings? If so, can you give me a pointer to how I might do this?

Many thanks,

-elan

_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to