is it possible to determine the source of an iframe when it changes?

View: New views
1 Messages — Rating Filter:   Alert me  

is it possible to determine the source of an iframe when it changes?

by rcoe67 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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 mochikit@...
To unsubscribe from this group, send email to mochikit+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---