Heiko Niemann wrote: > Philippe Lhoste wrote: >> I beleive you (Heiko Niemann) shouldn't use >> <script type="text/ecmascript" >> as Mozilla doesn't like it: >> See https://bugzilla.mozilla.org/show_bug.cgi?id=62485 for the > reason why. >> Basically, text/ecmascript is not an official Mime type, so > Mozilla >> snobs it... >> You should use >> <script type="text/javascript" instead, even if it is not > correct... > > First of all the sample Peter pointed to is from April 2004 and I > just tested it for ASV3 then. Mozilla wasn't in the game yet - at > least not with native SVG support (that is what you are talking > about, isn't it? since there is no script type issue with Mozilla > plus plugin as far as I know).
No, I wrote about Mozilla + ASV3. Your sample doesn't work on my vanilla Mozilla 1.7. I am not sure why it doesn't work, this is a tricky issue, but I seems to recall that ASV3 uses the browser native JavaScript engine by defaults, you have to use some voodoo to make it use its own JS engine. That's why sometime I get a JScript error on script failures, on IE of course. > Your advice to use 'text/javascript' is no real solution because > then you get in trouble with Batik, which requires the script type > to be set and the only value it seems to accept > is 'text/ecmascript' - after having tested several ways and having > read 'How to use scripting in Batik' (maybe some Batik expert can > prove me wrong and show a way to solve the script type issue for all > browsers/viewers, which surely would be nice). Gad! You can't please everyone... Well, at least it works both in IE and Mozilla. I still haven't tested/used Batik, but it is indeed an important player (in both senses of word) in the SVG field. > Anyhow, there are updated samples/downloads of dynaGraph that work > for Batik, MozSVG and IE/FF/Mozilla plus ASV3/ASV6PR. There are two > versions (with/without script type set): > http://www.zuccaralloo.de/devtest > I have not decided which actually will replace the sample on my > main svg-page since I still wonder why Batik requires script type to > be set, although 'text/ecmascript' is the default value anyhow. > Feedback is welcome. Yes, perhaps not setting the type at all is the way to go, if Batik can accept it, now or in the future. Oh, well, I just remade a test, and some scripting works with text/ecmascript, so perhaps I wrote a stupid thing... The sure thing is that the dynaGraph doesn't work on my Mozilla, the Start button doesn't work. Now, it is hard to tell, because when I load an SVG file two times, the second time it is frozen... No JS work at all. When I need to do tests, I often rename my files just to trick Moz into thinking they are different files... -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- ----- 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/

