> "How can I find out the version of the SVG viewer my svg is being viewed
> through using javascript?"
>
> Personally I'd also like to be find what viewer i'm using (ie FF, ASV etc.)?
>
> Also as feature detection is better than browser detection does any one
> have any examples that use hasFeature successfully.
Aha, I see I was misreading-- sorry for my curt reply. Viewer/browser
detection is pretty tough to get exactly right, but you can get close--
here are some of the basics (stolen from Doug Schepers' SMILscript):
try
{
if ( -1 != getSVGViewerVersion().indexOf('ASV') )
{
return;
}
}
catch(er) {}
This will raise an exception in Firefox because getSVGViewerVersion does
not exist. In Adobe it will return various version strings containing
'ASV'. I am not sure how to test this in Opera and Batik. I can look
into that if needed.
Cheers,
Jeff Rafter
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
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/