March 31st, 2002, 08:56 AM
I'm currently working on a content management system. Part of this CMS is an online image library (similar to macromedia). Today, another question.
My image library is situated in a frame, seperated from the editor (where the edit part is an <iframe> with contenteditable=true). On clicking in de library frame, I want to paste an image in the editor frame. The functions I planned to use are usually embedded in the code of the editor frame:
How can i fix these functions to work cross-frames? Thanks for your help!
BTW, for explaining purposes, here the 'names'.
As specified in index.htm:
Library frame: name=library
Editor frame: name=hoofdscherm
Editor <iframe>: id=idContent
April 1st, 2002, 08:41 AM
have you tried the following:
document.iframes["frameName"].document (haven't tried iframes but I'd be surprised if it's much different to this...)
window.frames.document etc. ?
The functions might be part of the frame (window) rather than the document (not sure of the top of my head ... try both)
You can also refer to the frames / iframes by their index number
April 1st, 2002, 04:32 PM