Agile Web Development

Build it. Launch it. Love it.

browser_status

This is a quick hack that uses an invisible page-reload to determine if user has javascript enabled.

Makes these handy class vars available to all your controllers and views:

  • @js — is javascript enabled?
  • @ua[:ie] — is it IE-compatible?
  • @ua[:ns] — is it Mozilla-compatible?
  • @ua[:text] — is it text-only?
  • @cookies_enabled — are cookies enabled
  • @session_working — is session working?

(Also adds a handy helper that adds one or more parameters to an arbitrary URL.)

Vitals

Repository http://bornnaturalist.org/svn/plugins/browser_status/
License PublicDomain
Tags Tag_red
Rating (4 votes)
Owner Jason Hollinger
Created 24 July 2008

Comments

Add a comment