Web Analytics Made Easy -
StatCounter Bug in Moz? Or am I just... - CodingForum

Announcement

Collapse
No announcement yet.

Bug in Moz? Or am I just...

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

  • Bug in Moz? Or am I just...

    Following scripts works on IE6 just as meant. However, Mozilla 1.0RC3 returns an error "aDevices is not defines". aDevices is a global variable.

    I added an extra alert to determine whether error is correct.
    Code:
    [size=1]	window.onload	= function()
    		{
    			[color=blue]alert(aDevices.length);[/color]
    			document.open();
    			document.write("<table border='1'><thead><tr><th align=left>Name</th><th>Type</th><th>IP-Address</th><th># Polls</th></tr></thead><tbody>");
    			[color=red]for (var iA=0; iA < aDevices.length ;iA++)[/color]
    			{
    				document.write("<tr><td>"+ aDevices[iA].dispName +sCell+ aDevices[iA].pollType +sCell+ aDevices[iA].ip +sCell+ aDevices[iA].pollCount +"</td></tr>");
    			}
    			document.write("</tbody></table>");
    			document.close()
    		}[/size]
    blue row alerts 9.
    red row is the row that returns error.
    Zvona
    First Aid for
    Web Design

  • #2
    i agree with Dave. if you put that alert after the document.open() line, i'm betting you'll get undefined.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

    Comment


    • #3
      Correct. And now that I think, it's obvious
      Zvona
      First Aid for
      Web Design

      Comment

      Working...
      X