No announcement yet.

Determine browser type

  • Filter
  • Time
  • Show
Clear All
new posts

  • Determine browser type

    SC is already looking up the browser type to determine how to display the menu.

    Is there a way to retrieve that browser-type, besides writing a huge chunk of code and downloading a 10MB browser-cap data file?

    I only need a complement to sc_menu_force_mobile() that returns browser is or isn't mobile so I can switch between mouse and multi-touch on a small JS application.

    I know how to write the Big Chunk O Code, but that would be reinventing a very expensive wheel that SC already built and ran before my code ever starts...

  • #2
    I used Dojo's has() and sniff() tests to determine if the remote browser has multi-touch capability.

    That does exactly what I need, exactly where I need that answer, but maybe someone who isn't using Dojo will benefit from a ScriptCase answer.