Skip to main content
Participant
May 11, 2021
Question

Javascript [JS 1.2 mm_menu script] Only Works in IE

  • May 11, 2021
  • 1 reply
  • 620 views

I use Javascript variables to navigate through our web based training.  They won't work in Chrome or Edge, but they work in Internet Explorer.  Do I need to add something to the CSS or template for it to work properly in other browsers?

This topic has been closed for replies.

1 reply

Jon Fritz
Community Expert
Community Expert
May 11, 2021

It's most likely the javascript itself needs to be rewritten.

In ye olden times, Microsoft tried to force IE standards onto the rest of The Internet. The Internet bucked the idea and forced them to abandon the concept, but it took until Edge for them to finally stop the majority of their shenaniganry. For a while, we had to write basically two sets of code, one for IE and one for everything else. If your code is olde enough, I'd be willing to bet that's the issue.

Without seeing it, it's hard to say though.

If you could post a link to your work, or as a distant second, post the entire code of one of your pages here, I'm sure one of the forum contributors will be able to help you figure out if and where IE has infected your script.

brad67Author
Participant
May 11, 2021

I am a federal employee, so you wouldn't be able to access the course even if I gave you the URL.  But I have copied some code (below) that is part of our template. I can copy more, and give more information if needed.  I really appreciate all the help I can get!

 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../_scripts/dcps.css" rel="stylesheet" type="text/css">
<SCRIPT language="JavaScript1.2" type="text/javascript" src="../_scripts/mm_menu.js"></script>
<SCRIPT language="JavaScript" id="pageVariableScript">
 var back = ".htm"
 var next = ".htm"
 var lesson = "Course Introduction"
 var module = "Help"
 var page = "Page ? of ?"
</SCRIPT>

Nancy OShea
Community Expert
Community Expert
May 11, 2021

By the looks of things, I'd say it's time to modernize and do it quickly.  Get Captivate (not included in Creative Cloud) to generate new HTML5 based e-Learning courses that everyone can access from any device/browser.

https://www.adobe.com/products/captivate.html

 

Good luck with your project!

 

Nancy O'Shea— Product User & Community Expert