Click to See Complete Forum and Search --> : embedding


Apan
10-17-2003, 04:52 AM
This works fine..

function Init(){
svgdoc= document.embeds["SVG_Page"].getSVGDocument();
}

until I decide to put the page inside a frame.
Do I need a different "path" to the SVG_Page when inside a frame? Or is it something else?

gil davis
10-17-2003, 06:55 AM
You need to add the frame name before the document.
window.top.frameName.document.embeds["whatever"]...

Apan
10-17-2003, 08:36 AM
Nop it dos'nt work, or maybe that does, but when I try to acces the svgdoc element like: svgdoc.getElementById(...
I get 'svgdoc' is null or not an object.
Hmm:confused: