News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Check For Javascript, Etc.?

Started by anunlike, August 31, 2006, 02:33:38 PM

Previous topic - Next topic

anunlike

I think something that would be pretty cool to have would be the ability for SMF to check see if javascript, etc. is enabled / installed in the browser.

Since certain SMF functions use it, it'd be neat for it to automatically check, and if not enabled / installed, give a text message (or whatever) somewhere in a pretty obvious place stating so.

RyanJones

I can think of one simple, theoretical way to do this.

Use Javascript to set a cookie and then see if PHP can read the cookie, if PHP finds the cookie is set then we know JS is enabled... its purely theoretical but it could work ;)

-- Ryan Jones
RyanJ (Ryan Jones)

Support Web Standards!

Currently working On: Additions to the Karma system.

niko

Quote from: RyanJones on September 03, 2006, 11:26:19 AM
I can think of one simple, theoretical way to do this.

Use Javascript to set a cookie and then see if PHP can read the cookie, if PHP finds the cookie is set then we know JS is enabled... its purely theoretical but it could work ;)

-- Ryan Jones

You could also edit login. And check whatever password was sent hashed or not. This may have some down sides
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Advertisement: