Thanks for you help. I solved it. For some reason my server did not 
like the html :
<embed name='EmbedRPF' type='image/svg+xml' id='EmbedRPF' 
frameborder=0 width=100% height=100% src='RPF1.svg' ></embed>


When I changed it to the following it worked:

<iframe name='EmbedRPF' type='image/svg+xml' id='EmbedRPF' 
frameborder=0 width=100% height=100% src='RPF1.svg' ></iframe>

And the javascript changed to:

var DocRPF = printWin.document.frames
("EmbedRPF").window.document.embeds(0).getSVGDocument();        

Funny that this javascript needs embeds(0). The iframe appears to 
create an "embed" object for the SVG even though it is not specified 
in the HTML (maybe the SVG server plugin does it).

Also using the ("EmbedRPF") does work and I only need it to work in 
IE. But I will change it to ["EmbedRPF"] anyway. Good habit. Thx.

--- In [email protected], "Martin Honnen" 
<[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "jack2wsx" <james.haritos@>
> wrote:
> 
> > <embed name='EmbedRPF' type='image/svg+xml' id='EmbedRPF' 
> > frameborder=0 width=100% height=100% src='RPF1.svg' ></embed>
> > 
> > But when I insert the following js to get a handle on the SVG 
> > document:
> > 
> > var DocRPF = printWin.document.embeds("EmbedRPF").getSVGDocument
();
> 
> Well for a start you need
>   embeds["EmbedRPF"]
> not
>   embeds("EmbedRPF")
> (unless you use IE only and IE does it with embeds("EmbedRPF")).
> 
> If you still have problems then consider posting a URL.
>







-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to