HighDots Forums  

Re: How to access embeds in another frame

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: How to access embeds in another frame in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Winter
 
Posts: n/a

Default Re: How to access embeds in another frame - 04-05-2004 , 09:29 PM






On Mon, 5 Apr 2004 21:24:09 +0100, Julius Mong <jxm96c (AT) hotmail (DOT) com> wrote:

[snip]

Quote:
SVGDoc = parent.right.document.embeds["svgPage"].getSVGDocument();
SVGRoot = SVGDoc.getDocumentElement();
fx = SVGRoot.currentTranslate.x;

And IE would complain that line 14 char 5 : Object required, and line 14
is the fx = ... line so I suppose SVGDoc wasn't initiated properly and
hence SVGRoot wasn't either. I have no idea why this wouldn't work...
could someone point me in the right direction please...
At a guess (I've never used SVG), I'd say the problem lies with the
getDocumentElement() method call. The ECMAScript bindings for SVGDocument
and its base interfaces don't include that method; it is, in fact, a Java
method. Try using the Document.documentElement property instead.

It would be much easier if you could post a complete example somewhere.

Mike

--
Michael Winter
M.Winter (AT) blueyonder (DOT) co.invalid (replace ".invalid" with ".uk" to reply)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.