User's Using Incorrect Browser

Sort:
You are not authorized to post a reply.
Author
Messages
jellis
Veteran Member
Posts: 54
Veteran Member
    We had an ongoing problem with users using the wrong browser so I threw something together that might help others. Of course your mileage may vary. What it does it check the browser type and if it is not equal to IE then it flashes a warning message and stops executing any script.

    You will need to modify your /web/lawson/portal/index.htm with the following lines-

    <script language="javascript" src="brserchk.js"></script>
    <script language="javascript" type="text/javascript">
    function init()
    {
    if (BrowserDetect.browser == "Explorer")
    {
    if (BrowserDetect.version < 7)
    {
    alert("running unsupported browser - Upgrade to IE7 or higher");
    close();
    }else {
    portalOnLoad();
    }

    }
    else {
    alert("Sorry-Lawson Portal requires Internet Explorer to operate properly.");
    close();
    }
    And then create a file called brserchk.js and you can use code from http://www.quirksmode.org/js/detect.html put into the newly created file and you have something to check browser type.

    If anyone has suggestions or comments please let me know. If you have a better way by all means let me know.
    HorusPlatform
    Posts: 5
      We have a solution which makes Lawson Portal 9.x available on MS Internet Explorer 7 or higher, Google Chrome 4 or higher, Apple Safari 4 or higher and Mozilla Firefox 3.5 or higher.

      If you are interested, feel free to contact us: horusplatform@ishinc.com.

      Jimmy Chiu
      Veteran Member
      Posts: 641
      Veteran Member
        Does chrome 4 support cross-domain browsing?
        You are not authorized to post a reply.