Announcement

Collapse
No announcement yet.

IE8 saying errors on page!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    IE8 saying errors on page!

    I use the script that displays the products in columns which includes the below code being added to Act_ProductBody.html. There is another piece of code also but this part seems to be culprit. IE tells you what line the error is on so it's reasonably clear. I only use the script in 2 sections and when in these sections the error message does not display. Because the script is placed in the ProductBody and not a file that can be dedicated to the sections where the script is used, the script becomes redundant in all other sections, which is probably causing the error message. Does anyone know of a workaround to avoid this error message? It only appears in IE. Not in any other browser.

    Mark

    <script language=JavaScript>
    <!--
    if ( currentcol != 0 )
    {
    while ( currentcol++ < ) document.write('<td width="' + colwidth + '%"></td>');
    document.write('</tr></table></td></tr>');
    currentcol = 0;
    }
    // -->
    </script>

    #2
    This doesn't make synactic sense:

    Code:
    while ( currentcol++ < )
    There should be some test value after the '<'. It's trying to test it currentcol is less than 'something'.

    Comment


      #3
      Rip V7.......

      Comment

      Working...
      X