I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF editor. A fellow member of the PCG has helped me by creating a bit of Javascript to emulate the scrolling and using Google I've now gotten it into a state where it almost passes the W3C Markup Validation Service. However, the one error,
Expand|Select|Wrap|Line Numbers
- Error Line 166, Column 28: there is no attribute "onscroll".
- <div id="mainarea" onscroll="scrollmain();">
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript">
- <!--
- function addIEonScroll() {
- var thisContainer = document.getElementById('mainarea');
- if (!thisContainer) { return; }
- var onClickAction = 'scrollmain();';
- thisContainer.onscroll = new Function(onClickAction);
- }
- window.onload = function() { addIEonScroll(); }
- -->
- </script>
Also, the attached file (with onscroll in the <div> element) loads flawlessly in FF and IE(6), but if I take a somewhat larger (as in 10,000) line file, loading in FF takes a bit longer (~ 10 seconds), but IE6 completely hangs, tried this earlier today before taking the dog for a walk, two hours later it was still no further...
Any hints would be most welcome.
Robert