Results 1 to 2 of 2

Thread: document.all.tags deprecated and other problems with script.js on modern browsers

  1. #1
    Senior Member
    Join Date
    Sep 2010
    Posts
    144

    Default document.all.tags deprecated and other problems with script.js on modern browsers

    Recently I tried using a third party form management tool (FormStack) and couldnt get it to run properly - the page ran reallyn slow and the IE claimed a script was taking too long to respond.
    I contacted Formstack support and got the following reply:

    "You are using deprecated Javascript in your script.js file which is causing the rollover to not work. One Line 27, you're using document.all.tags which is not a standard function. You will likely want to use document.getElementsByTagName('a') instead of document.all.tags('a'). Chrome will actually display the form when the envelope is rolled over, but is complaining about your use of routeEvent, which also appears to be deprecated.

    I was only able to reproduce the issue with clicking on fields in Internet Explorer and according to IE your webpage should be displaying in Quirks mode, suggesting there are other issues with how your page is constructed. I suspect that the "Long running script" error is being caused by your rollover code. I would highly recommend that you use a modern Javascript library such as jQuery or Prototype which has a lot of the functionality provided by your rollover code built-in."

    Because script.js comes with NOF10, is there a way to upgrade it without the pain and cost of moving to NOF12 ?

  2. #2
    Senior Member franko's Avatar
    Join Date
    Apr 2010
    Location
    Tasmania Australia
    Posts
    2,642

    Default

    I think you know the answer to that. NoF 10 is now about 5 years old and much has changed in the javascript world since then. I would strongly recommend upgrading to version 12 as it is a vastly improved program over v10, not least in the way it generates its code which is more in line with modern markup practices and thus indexes better on SEs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •