You'll need (maybe?) a Safari checker also? I see FF1.5+ and Opera 8+.

Some things that people do rely on Opera 9+; some things rely on FF3+. So one 
could imagine a finer-grained checker which, instead of returning true or 
false, returns something which is SMIL-sensitive or 
displacement-filter-sensitive (I think you'd handle those with try and catch 
instead though).

The intent of the developer could enter into the equation as well: if it's IE 
then would we rather render in VML or alert to the existence of a plugin? If 
there is no SMIL would we rather alert to the existence of other browsers or to 
Doug Schepers SMIL -- JavaScript stuff?

I don't think most of my concerns would be relevant to many people, since you 
are working at a more global level with what you suggest.  But the Safari thing 
probably would be since it likely brings its own personality into the equation 
(having not been able to test Safari very much -- I'm hoping I change this 
soon.)

DD


  ----- Original Message ----- 
  From: Doc 
  To: [email protected] 
  Sent: Saturday, March 10, 2007 6:21 PM
  Subject: Re: [svg-developers] SVG "Detect" routine


  Here is a URL to an ongoing project of mine that features
  an ASV plug in installer for the IE context (About the only browser of 
  merit that needs it.
  http://kirksaeter.com/SpeakerSelector/SpeakerSelector.html

  I am working on a few other IE/ASV isims but
  the plugin helper ought to sove your issues

  Aaron Gray wrote:
  > Can you eyeball this and possibley test it and/or comment on it, please
  >
  >
  > //
  > // hasSVG.js - Detect SVG
  > //
  >
  > function hasSVG()
  > {
  > var agent = navigator.userAgent;
  >
  > if (agent.indexOf("MSIE") != -1)
  > {
  > GenerateAdobeSVGCheck();
  > return isSVGControlInstalled();
  > }
  > else if (agent.indexOf("Firefox") != -1)
  > {
  > var start = agent.indexOf( "Firefox") + 8;
  > end = agent.indexOf( ".", agent.indexOf( ".", start) + 1);
  > var version = new Number( agent.substr( start, end - start));
  >
  > return (version >= 1.5);
  > }
  > else if (agent.indexOf("Opera") != -1)
  > {
  > var start = agent.indexOf( "Opera") + 8;
  > end = agent.indexOf( " ", start);
  > var version = new Number( agent.substr( start, end - start));
  >
  > return (version >= 8);
  > }
  > else
  > return false;
  > }
  >
  > function GenerateAdobeSVGCheck()
  > {
  > document.writeln( '<script language="VBScript">');
  > document.writeln( 'Function isSVGControlInstalled()');
  > document.writeln( 'on error resume next');
  > document.writeln( 'isSVGControlInstalled = 
IsObject(CreateObject("Adobe.SVGCtl"))');
  > document.writeln( 'end Function');
  > document.writeln( '</scr' + 'ipt>');
  > }
  >
  >
  > [Non-text portions of this message have been removed]
  >
  >
  >
  >
  > -----
  > 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
  >
  >
  >
  >
  > 



   

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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