A sniffer can be much more subtle than that. If you have at least one page view beforehand, like some kind of neutral title page, you can stick an image tag where the SRC is a call to a mod perl script, with all you want to know set as parameters <IMG SRC="/ninja-image.pl?has_plugin=1.3&...">. You can create the parameters using document.write in the page itself. That way, by the time you get to the second page, you have the info you needed.
The perl script ninja-image.pl simply gets the data and would store it in some kind of persistant way, and spit back some minimal headers and the binary data that would be some kind of image (like a clear pixel, even). Peace, Jamie On Tue, Apr 30, 2002 at 07:10:39PM -0000, Michael Nino wrote: > Hi, > > With minimal JavaScript code you could identify the browser's capabilities. > Here is how you might approach the task. > > If the browser is Lynx then send text only version otherwise send JavaScript > browser "sniffer". The JavaScript sniffer can check for CSS, DHTML, DOM, > plugins, etc... then redirect back to the server for the correct > implementation. > > If you don't mind the redirection (in JavaScript of course) then you're all > set. Redirection may not seem attractive but consider that JavaScript runs > within the client (read: browser) right so you got to get the information > back some how. Server side browser sniffing might be implemented through a > database of browser supported features and user-agent strings. > > Just thought you might want to the idea. Good luck. > >: ) M -- -[sent-from-the-office]---------------------------------------------------- | | | | HBE Software, Inc. | Email: [EMAIL PROTECTED] | | http://www.hbesoftware.com | AIM : Reng8tak | | (514) 876-3542 x259 | Web : http://jamie.people.hbesoftware.com | --------------------------------------------------------------------------- perl -e 'for($c=0;$c<=length unpack("B*",pack("H*",$ARGV[0]));$c+=7){$_=chr((ord pack"B*","0".substr(unpack("B*",pack("H*",$ARGV[0])),$c,7))+040);print;}' -- 55569d4010674fa9222d200c22d29801441872e2d2
msg27138/pgp00000.pgp
Description: PGP signature