robindean Posted March 26, 2007 Share Posted March 26, 2007 I don't want to browser sniff ... just browser "whiff". Is there a way to determine what version of javascript is supported by a users browser? I'm trying to say "if you have javascript 1.5 or better, cool, otherwise we're in trouble". Link to comment https://forums.phpfreaks.com/topic/44359-javascript-version-detect/ Share on other sites More sharing options...
Lethal.Liquid Posted March 26, 2007 Share Posted March 26, 2007 I think the only way is sniff...here's a link I found on google if you want: http://www.webreference.com/tools/browser/javascript.html Link to comment https://forums.phpfreaks.com/topic/44359-javascript-version-detect/#findComment-215440 Share on other sites More sharing options...
robindean Posted March 26, 2007 Author Share Posted March 26, 2007 But this requires javascript ... whereas I'm hoping to use php. Your link is appreciated, regardless Link to comment https://forums.phpfreaks.com/topic/44359-javascript-version-detect/#findComment-215539 Share on other sites More sharing options...
per1os Posted March 26, 2007 Share Posted March 26, 2007 My bad, deleted post as it was completely and absurdly stupid/incorrect. Good luck bud! Link to comment https://forums.phpfreaks.com/topic/44359-javascript-version-detect/#findComment-215541 Share on other sites More sharing options...
robindean Posted March 27, 2007 Author Share Posted March 27, 2007 Okay, Based on all of this, I can only assume that it is impossible to detect what version of javascript is supported via php and present content based on the results. If someone were to devise a way, I assume that one couldn't run it without getting error messages or alert dialog from older browsers. Am I right? Link to comment https://forums.phpfreaks.com/topic/44359-javascript-version-detect/#findComment-215843 Share on other sites More sharing options...
kenrbnsn Posted March 27, 2007 Share Posted March 27, 2007 Considering that PHP runs on the Server and Javascript runs on the client, there is no way that PHP would be able to determine what is running on the client unless it is told so via AJAX techniques. Ken Link to comment https://forums.phpfreaks.com/topic/44359-javascript-version-detect/#findComment-215846 Share on other sites More sharing options...
robindean Posted March 27, 2007 Author Share Posted March 27, 2007 I've read a little about ajax but not enough to be anything but newb. My angle is to butter-up the earlier v3 browsers and let them slide gracefully into a "You're viewing this page through an unsupported browser" page. Object detection is great but I'm still getting errors. I was hoping PHP might save the day. Link to comment https://forums.phpfreaks.com/topic/44359-javascript-version-detect/#findComment-215848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.