rcoe67
2009-02-11 16:32:46 UTC
I have experimented with various methods of determining the href for
an iframe when it loads new content but to no avail. I can connect an
event listener that fires when the source changes but the source is
loaded from a different domain and security restrictions make it
impossible to use standard DOM methods to get at the contentDocument.
I have experimented with bind() but I don't know its functionality
well enough to know whether I can bind a local function to an iframe,
so that I can drill into the iframe's contentDocument. The other
thing I tried was to attach the onclick event to a local function,
with which I hope to access the link being clicked and determine the
href that way. Unfortunately, I can't seem to attach the onclick
event to the links in the iframe.
Does JavaScript security make it impossible to make this happen or can
I get the functionality I need with MochiKit?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to mochikit+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---
an iframe when it loads new content but to no avail. I can connect an
event listener that fires when the source changes but the source is
loaded from a different domain and security restrictions make it
impossible to use standard DOM methods to get at the contentDocument.
I have experimented with bind() but I don't know its functionality
well enough to know whether I can bind a local function to an iframe,
so that I can drill into the iframe's contentDocument. The other
thing I tried was to attach the onclick event to a local function,
with which I hope to access the link being clicked and determine the
href that way. Unfortunately, I can't seem to attach the onclick
event to the links in the iframe.
Does JavaScript security make it impossible to make this happen or can
I get the functionality I need with MochiKit?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to mochikit+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---