Hello,
I was wondering how to make two frames interact with eachother. What I have is an SVG code in both files and I need to make one file trigger response in another. I know it has something to do with:
var svgobj = parent.my_svg_frame.document.getElementByID(element); then use
svgobj.getStyle().setProperty('display', 'inline');
but I keep getting "error parent.my_svg_frame is null or not an object" error. This approach works within a single file when trying to trigger elements (press a button and image appears) but it is necessary that I use separate files for that any ideas?
Please help,
Thank you,
Victor.
I was wondering how to make two frames interact with eachother. What I have is an SVG code in both files and I need to make one file trigger response in another. I know it has something to do with:
var svgobj = parent.my_svg_frame.document.getElementByID(element); then use
svgobj.getStyle().setProperty('display', 'inline');
but I keep getting "error parent.my_svg_frame is null or not an object" error. This approach works within a single file when trying to trigger elements (press a button and image appears) but it is necessary that I use separate files for that any ideas?
Please help,
Thank you,
Victor.