This content has been marked as final. Show 3 replies
mahmoudrabie wrote:APEX has basic browser requirements.
I have validation functions which need to be by JS. However, this functions fail when users logged in by old web browsers.
Is there a way to detect the browser version (I like firefox 9) and force users to use this certain browser. Of course, this way will not by JS.This approach—known as <em>browser sniffing</em>—is not effective. User agent identifiers can easily be modified by end users, and your code will quickly become swamped by trying to cope with a multitude of browsers and versions.
Instead use feature detection to identify whether the browser supports the constructs used in your code, and graceful degradation to provide alternatives where possible. See the sample chapter from this book for an introduction to these concepts, and this article for more details.
Finally, note that all browser-side validation must be repeated server-side in APEX or the database, as browser-based validation can be circumvented by determined users.