Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post

    Unhappy 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:
    	window.onload	= function()
    		{
    			alert(aDevices.length);
    			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>");
    			for (var iA=0; iA < aDevices.length ;iA++)
    			{
    				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()
    		}
    blue row alerts 9.
    red row is the row that returns error.
    Zvona
    First Aid for
    Web Design

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.

  • #3
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post
    Correct. And now that I think, it's obvious
    Zvona
    First Aid for
    Web Design


  •  

    Posting Permissions

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