Articles and Tutorials

GSBrowser

Provides a namespace for properties related to the user browser, version, and host platform.

An instance of GSBrowser is created when the SmartFIND API is loaded in the user's browser. It's properties can be accessed in the following way:

 
if(_browser.isFirefox) {
// do firefox code
} else if(_browser.isIE) {
// do IE code
}

 

Object
|
+--GSBrowser
Field Summary
 Object caminoVersion
          
 Object firefoxVersion
          
 Object isCamino
          
 Object isFirefox
          
 Object isGecko
          
 Object isIE
          
 Object isIE55
          
 Object isIE6up
          
 Object isIE6x
          
 Object isIE7x
          
 Object isOpera
          
 Object isSafari
          
 Object isWin
          
 Object isWin32
          
 Object pngAlpha
          
 Object svg
          
 Object versionMajor
          
 Object versionMinor
          
 
Constructor Summary
GSBrowser ()
           
 
Method Summary
 boolean isSmartfindCompatible()
           Tests if the browser is compatible with the SmartFIND API
 boolean isVectorGraphicsCapable()
           Tests if the browser is capable of displaying map features created with the SmartFIND Vector Graphics API

Field Detail

caminoVersion

Object caminoVersion

firefoxVersion

Object firefoxVersion

isCamino

Object isCamino

isFirefox

Object isFirefox

isGecko

Object isGecko

isIE

Object isIE

isIE55

Object isIE55

isIE6up

Object isIE6up

isIE6x

Object isIE6x

isIE7x

Object isIE7x

isOpera

Object isOpera

isSafari

Object isSafari

isWin

Object isWin

isWin32

Object isWin32

pngAlpha

Object pngAlpha

svg

Object svg

versionMajor

Object versionMajor

versionMinor

Object versionMinor
Constructor Detail

GSBrowser

GSBrowser()
Method Detail

isSmartfindCompatible

boolean isSmartfindCompatible()
    Tests if the browser is compatible with the SmartFIND API
  •  
      true if the browser is compatible
  • Returns:

isVectorGraphicsCapable

boolean isVectorGraphicsCapable()
    Tests if the browser is capable of displaying map features created with the SmartFIND Vector Graphics API
  •  
      true if the browser is vector graphics compatible
  • Returns: