SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Wizard dethfire's Avatar
    Join Date
    Aug 2000
    Posts
    2,477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    object expected error

    this code works fine on mozilla, but fails in IE, says an object was expected on line 75 which I have highlighted

    Code:
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" href="style.css" /> 
    
    
    <script language="JavaScript" type="text/javascript
    ">
    <!--
    function mmLoadMenus() {
      if (window.mm_menu_0820221005_0) return;
      window.mm_menu_0820221005_0 = new Menu("root",153,17,"Verdana, Arial, Helvetica, sans-serif",11,"#666666","#ffcc33","#cccccc","#666666","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
      mm_menu_0820221005_0.addMenuItem("Computer&nbsp;Lab","location='http://www.aux.uwm.edu/sandburg/oncampus/computerlab/computerlab.html'");
      mm_menu_0820221005_0.addMenuItem("Fitness&nbsp;Center","location='http://www.aux.uwm.edu/sandburg/oncampus/greenroom/greenroom.html'");
      mm_menu_0820221005_0.addMenuItem("Channel","location='http://www.aux.uwm.edu/sandburg/oncampus/channel/channel.html'");
      mm_menu_0820221005_0.addMenuItem("Flicks","location='http://www.aux.uwm.edu/sandburg/oncampus/flicks/flicks.html'");
      mm_menu_0820221005_0.addMenuItem("Sandburg&nbsp;Cable&nbsp;Network","location='http://www.aux.uwm.edu/sandburg/oncampus/scn/scn.html'");
      mm_menu_0820221005_0.addMenuItem("Programming","location='http://www.aux.uwm.edu/sandburg/oncampus/programming/programming.html'");
      mm_menu_0820221005_0.addMenuItem("S.H.A.C.&nbsp;(Student&nbsp;Govt.)","location='http://www.aux.uwm.edu/sandburg/oncampus/shac/shac.html'");
      mm_menu_0820221005_0.addMenuItem("Emporium","location='http://www.aux.uwm.edu/sandburg/oncampus/emporium/emporium.html'");
      mm_menu_0820221005_0.addMenuItem("Employment","location='http://www.aux.uwm.edu/sandburg/oncampus/employment/employment.htm'");
       mm_menu_0820221005_0.hideOnMouseOut=true;
       mm_menu_0820221005_0.menuBorder=1;
       mm_menu_0820221005_0.menuLiteBgColor='#cccccc';
       mm_menu_0820221005_0.menuBorderBgColor='#666666';
       mm_menu_0820221005_0.bgColor='#cccccc';
      window.mm_menu_0820220440_0 = new Menu("root",135,17,"Verdana, Arial, Helvetica, sans-serif",11,"#666666","#ffcc33","#cccccc","#666666","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
      mm_menu_0820220440_0.addMenuItem("Towers&nbsp;(N,S,W)","location='http://www.aux.uwm.edu/sandburg/facility/towers/towers.html'");
      mm_menu_0820220440_0.addMenuItem("Houses&nbsp;(N,S,W)","location='http://www.aux.uwm.edu/sandburg/facility/houses/houses.html'");
      mm_menu_0820220440_0.addMenuItem("Room&nbsp;Info","location='http://www.aux.uwm.edu/sandburg/facility/roominfo/roominfo.html'");
      mm_menu_0820220440_0.addMenuItem("Suites&nbsp;and&nbsp;Rooms","location='http://www.aux.uwm.edu/sandburg/facility/suites/suites.html'");
      mm_menu_0820220440_0.addMenuItem("East&nbsp;Tower","location='http://www.aux.uwm.edu/sandburg/facility/suites/east/east.html'");
      mm_menu_0820220440_0.addMenuItem("Special&nbsp;Living&nbsp;Options","location='http://www.aux.uwm.edu/sandburg/facility/special/special.html'");
      mm_menu_0820220440_0.addMenuItem("Purin&nbsp;Hall","location='http://www.aux.uwm.edu/sandburg/facility/purin/purin.html'");
      mm_menu_0820220440_0.addMenuItem("Main&nbsp;Desk","location='http://www.aux.uwm.edu/sandburg/facility/mndesk/mndesk.html'");
      mm_menu_0820220440_0.addMenuItem("Mail","location='http://www.aux.uwm.edu/sandburg/facility/mail/mail.html'");
      mm_menu_0820220440_0.addMenuItem("Telephone","location='http://www.aux.uwm.edu/sandburg/facility/telephone/telephone.html'");
      mm_menu_0820220440_0.addMenuItem("Laundry","location='http://www.aux.uwm.edu/sandburg/facility/security/security.html'");
      mm_menu_0820220440_0.addMenuItem("Parking","location='http://www.aux.uwm.edu/sandburg/facility/parking/parking.html'");
       mm_menu_0820220440_0.hideOnMouseOut=true;
       mm_menu_0820220440_0.menuBorder=1;
       mm_menu_0820220440_0.menuLiteBgColor='#cccccc';
       mm_menu_0820220440_0.menuBorderBgColor='#666666';
       mm_menu_0820220440_0.bgColor='#cccccc';
      window.mm_menu_0820213231_0 = new Menu("root",141,17,"Verdana, Arial, Helvetica, sans-serif",11,"#666666","#ffcc33","#cccccc","#666666","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
      mm_menu_0820213231_0.addMenuItem("Sandburg&nbsp;Experience","location='http://www.aux.uwm.edu/sandburg/contract/experience/experience.html'");
      mm_menu_0820213231_0.addMenuItem("Application&nbsp;Process","location='http://www.aux.uwm.edu/sandburg/contract/application/application.html'");
      mm_menu_0820213231_0.addMenuItem("Application&nbsp;for&nbsp;Housing","location='http://www.aux.uwm.edu/sandburg/contract/housing/housing.html'");
      mm_menu_0820213231_0.addMenuItem("Housing&nbsp;Contract","location='http://www.aux.uwm.edu/sandburg/contract/uh_contract/uh_contract.html'");
      mm_menu_0820213231_0.addMenuItem("Rules&nbsp;and&nbsp;Regulations","location='http://www.aux.uwm.edu/sandburg/contract/rules/rules.html'");
      mm_menu_0820213231_0.addMenuItem("Costs","location='http://www.aux.uwm.edu/sandburg/contract/costs/costs.html'");
      mm_menu_0820213231_0.addMenuItem("Computer&nbsp;Connections","location='http://www.aux.uwm.edu/sandburg/contract/computer/computer.html'");
      mm_menu_0820213231_0.addMenuItem("Guest&nbsp;Policy","location='http://www.aux.uwm.edu/sandburg/contract/guests/guests.html'");
      mm_menu_0820213231_0.addMenuItem("Summer&nbsp;Housing","location='http://www.aux.uwm.edu/sandburg/contract/summer/summer.html'");
      mm_menu_0820213231_0.addMenuItem("For&nbsp;More&nbsp;Information","location='http://www.aux.uwm.edu/sandburg/contract/info/info.html'");
       mm_menu_0820213231_0.hideOnMouseOut=true;
       mm_menu_0820213231_0.menuBorder=1;
       mm_menu_0820213231_0.menuLiteBgColor='#cccccc';
       mm_menu_0820213231_0.menuBorderBgColor='#666666';
       mm_menu_0820213231_0.bgColor='#cccccc';
    
      mm_menu_0820213231_0.writeMenus();
    } // mmLoadMenus()
    
    //-->
    </script>
    </head>
    
    <body>
    
    LINE 75 <script language="JavaScript1.2" src="mm_menu.js" type="text/javascript"></script>
    <script language="JavaScript1.2" type="text/javascript">mmLoadMenus();</script>
    Free Science Homework Help
    http://www.physicsforums.com

  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    the closing quote and bracket below should be on one line.
    <script language="JavaScript" type="text/javascript
    ">
    <!--


    After that, you will get an error saying 'Menu' is undefined. presumably that is in the *.js file, which is not available.

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


Bookmarks

Posting Permissions

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