locked
Javascript split on line break quits working when I use a meta tag escape from compatibility mode for test work RRS feed

  • Question

  • I am using the following meta tag ( <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" /> ) to escape from IE compatibility mode.   I do this as I modify application code to no longer require compatibility mode to work correctly.   This approach has allowed me to incrementally modify application code and test it, while the part of the application that hasn't been reworked continues to work in compatibility mode.     This has work well up until I reworked a module with this javascript split ( pArray = pName.value.split(/\\r\\n/); ) code.   The split does not work with the meta tag, but works without it.   I put the tag in and the split does not work.   I take it out and the split works.   The split not working causes everything downstream to fail.

    When I take the meta tag out of the module with the javascript split and take IE out of the compatibility mode for this application, the split fails.   Its like the split string is no longer recognized the way it was in compatibility mode.  This is a very common and important split operation in javascript and it not working causes a lot of my GUIs to break.

    I'm working in dhtml (perl, php, c, css, javascript, xhtml) on a Windows 10 platform with the latest version of IE 11.

    Any help is appreciated.

    ccraigt

     

    • Edited by ccraigt Tuesday, August 22, 2017 6:41 AM
    Monday, August 21, 2017 3:14 PM

All replies

  • The recommended way for managing legacy intranet applications compatibility view and out of date activex controls is Enterprise Site Mode lists or to re.write your intranet application to modern web standards

    https://docs.microsoft.com/en-us/internet-explorer/ie11-deploy-guide/use-the-enterprise-mode-site-list-manager

    Regards.

    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us


    Rob^_^

    Tuesday, August 22, 2017 9:46 PM