Hi,
I am using a SVG document that interacts a lot with its "parent" HTML page, in
both direction:
HTML->SVG:
[in SVG]: window.myFunctionInSVG = myFunction;
[in HTML]: window.myFunctionInSVG();
SVG->HTML
[in SVG]: parent.myFunctionInHTML();
This works fine on my HTTP server.
Then I save as a MHTML (Web Archive) file, eventually using a third party IE
plugin like "EZ Save MHTML", then tweaking directly the resulting MHTML file
(because for an unknown reason it misses the SVG file and its includes, so Im
adding it manually, "encoded").
Now I am sure my MHTML file is complete and well-formed. When I launch the .mht
file in IE (6.0), it dispays fine, SVG and HTML included, but the communication
between both "worlds" don't work anymore. And so the interactivity. After some
debugging I have been able to sort out that:
[in SVG]:
- "parent" and "top" _don't exist_, so the parent.myFunctionInHTML() call is
not working: no error message, no exception on try/catch, nothing, just stops
the script engine :-(
- window object does not look like being the same window object as seen on HTML
side. So window.myFunctionInSVG = myFunction works, but is useless.
[in HTML]:
- calling window.myFunctionInSVG() returns an error (no specified property
blabla) because of the previous reason
- document.embeds["svg"].getSVGDocument() fails as well (!). Apparently the
first part of this statement gets the ASV3 plugin object, but the
.getSVGDocument() throws an "unspecified error".
I suspect a bug in the MHTML handling (eventually the domain name, rather
complex in the context of a MHTML page). Because this feature is important to
me, I am trying any possible workaround before giving up.
I would be glad if anyone shares a begining of an answer to that issue. If you
did not get it, the purpose of all this is to be able to send emails with
interactive SVG inlined, and have offline version of complex reports. The
targetted platform is windows/IE/office, so I am interested in any IE specific
solution.
Thanks in advance
Fred
__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs
-----
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/