• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Javascript [JS 1.2 mm_menu script] Only Works in IE

New Here ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

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?

TOPICS
Browser , Other

Views

473

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

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 & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

This one line tells me everything I need to know:

<SCRIPT language="JavaScript1.2" type="text/javascript" src="../_scripts/mm_menu.js"></script>

 

Even in their heyday, those Macromedia menus were atrocious.  And I'm not being hyperbolic when I say those menus were cow poop then and they are petrified cow poop today.  DO NOT USE!

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

LATEST

This commentary called for JS 1.2 to die in 2006.   

https://humanwhocodes.com/blog/2006/01/10/javascript-1-2-must-die/

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines