SitePoint Sponsor

User Tag List

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

    very strange behavior

    first off all, when ever I take out the javascript fuction "FrontPage_Form1_Validator" the page goes blank in IE, looks fine in firebird, but goes blank in IE. Next, the form doesn't seem to call the function at all, if I don't plug in anything it submits, I know it's not being called because I put an alert box at the top. Anyone see the problem?

    Code:
    <!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>UWM Sandburg Housing Residence</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" href="../../style.css" /> 
    
    
    <script language="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/computer
    
    lab.php'");
      
    
    mm_menu_0820221005_0.addMenuItem("Fitness&nbsp;Center","location='http://www.aux.uwm.edu/sandburg/oncampus/greenroom/greenroo
    
    m.php'");
      mm_menu_0820221005_0.addMenuItem("Channel","location='http://www.aux.uwm.edu/sandburg/oncampus/channel/channel.php'");
      mm_menu_0820221005_0.addMenuItem("Flicks","location='http://www.aux.uwm.edu/sandburg/oncampus/flicks/flicks.php'");
      
    
    mm_menu_0820221005_0.addMenuItem("Sandburg&nbsp;Cable&nbsp;Network","location='http://www.aux.uwm.edu/sandburg/oncampus/scn/s
    
    cn.php'");
      
    
    mm_menu_0820221005_0.addMenuItem("Programming","location='http://www.aux.uwm.edu/sandburg/oncampus/programming/programming.ph
    
    p'");
      
    
    mm_menu_0820221005_0.addMenuItem("S.H.A.C.&nbsp;(Student&nbsp;Govt.)","location='http://www.aux.uwm.edu/sandburg/oncampus/sha
    
    c/shac.php'");
      mm_menu_0820221005_0.addMenuItem("Emporium","location='http://www.aux.uwm.edu/sandburg/oncampus/emporium/emporium.php'");
      
    
    mm_menu_0820221005_0.addMenuItem("Employment","location='http://www.aux.uwm.edu/sandburg/oncampus/employment/employment.php'"
    
    );
       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.php'
    
    ");
      
    
    mm_menu_0820220440_0.addMenuItem("Houses&nbsp;(N,S,W)","location='http://www.aux.uwm.edu/sandburg/facility/houses/houses.php'
    
    ");
      
    
    mm_menu_0820220440_0.addMenuItem("Room&nbsp;Info","location='http://www.aux.uwm.edu/sandburg/facility/roominfo/roominfo.php'"
    
    );
      
    
    mm_menu_0820220440_0.addMenuItem("Suites&nbsp;and&nbsp;Rooms","location='http://www.aux.uwm.edu/sandburg/facility/suites/suit
    
    es.php'");
      
    
    mm_menu_0820220440_0.addMenuItem("East&nbsp;Tower","location='http://www.aux.uwm.edu/sandburg/facility/suites/east/east.php'"
    
    );
      
    
    mm_menu_0820220440_0.addMenuItem("Special&nbsp;Living&nbsp;Options","location='http://www.aux.uwm.edu/sandburg/facility/speci
    
    al/special.php'");
      mm_menu_0820220440_0.addMenuItem("Purin&nbsp;Hall","location='http://www.aux.uwm.edu/sandburg/facility/purin/purin.php'");
      mm_menu_0820220440_0.addMenuItem("Main&nbsp;Desk","location='http://www.aux.uwm.edu/sandburg/facility/mndesk/mndesk.php'");
      mm_menu_0820220440_0.addMenuItem("Mail","location='http://www.aux.uwm.edu/sandburg/facility/mail/mail.php'"); 
    
    mm_menu_0820220440_0.addMenuItem("Laundry","location='http://www.aux.uwm.edu/sandburg/facility/laundry/laundry.php'");
      
    
    mm_menu_0820220440_0.addMenuItem("Telephone","location='http://www.aux.uwm.edu/sandburg/facility/telephone/telephone.php'");
      mm_menu_0820220440_0.addMenuItem("Security","location='http://www.aux.uwm.edu/sandburg/facility/security/security.php'");
      mm_menu_0820220440_0.addMenuItem("Parking","location='http://www.aux.uwm.edu/sandburg/facility/parking/parking.php'");
       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/ex
    
    perience.php'");
      
    
    mm_menu_0820213231_0.addMenuItem("Application&nbsp;Process","location='http://www.aux.uwm.edu/sandburg/contract/application/a
    
    pplication.php'");
      
    
    mm_menu_0820213231_0.addMenuItem("Application&nbsp;for&nbsp;Housing","location='http://www.aux.uwm.edu/sandburg/contract/hous
    
    ing/housing.php'");
      
    
    mm_menu_0820213231_0.addMenuItem("Housing&nbsp;Contract","location='http://www.aux.uwm.edu/sandburg/contract/uh_contract/uh_c
    
    ontract.php'");
      
    
    mm_menu_0820213231_0.addMenuItem("Rules&nbsp;and&nbsp;Regulations","location='http://www.aux.uwm.edu/sandburg/contract/rules/
    
    rules.php'");mm_menu_0820213231_0.addMenuItem("Costs","location='http://www.aux.uwm.edu/sandburg/contract/costs/costs.php'");
      mm_menu_0820213231_0.addMenuItem("Forms","location='http://www.aux.uwm.edu/sandburg/contract/forms/forms.php'");
      
    
    mm_menu_0820213231_0.addMenuItem("Computer&nbsp;Connections","location='http://www.aux.uwm.edu/sandburg/contract/computer/com
    
    puter.php'");
      
    
    mm_menu_0820213231_0.addMenuItem("Guest&nbsp;Policy","location='http://www.aux.uwm.edu/sandburg/contract/guests/guests.php'")
    
    ;
      
    
    mm_menu_0820213231_0.addMenuItem("Summer&nbsp;Housing","location='http://www.aux.uwm.edu/sandburg/contract/summer/summer.php'
    
    ");
      
    
    mm_menu_0820213231_0.addMenuItem("For&nbsp;More&nbsp;Information","location='http://www.aux.uwm.edu/sandburg/contract/info/in
    
    fo.php'");
       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(); }</script>
    <script language="JavaScript1.2" src="../../mm_menu.js"></script>
    
    <script Language="JavaScript"><!--
    function FrontPage_Form1_Validator(theForm)
    {
    
    alert("hi");
    
      if (theForm.ssn.value == "")
      {
        alert("Please enter a value for the \"ssn\" field.");
        theForm.ssn.focus();
        return (false);
      }
    
      if (theForm.ssn.value.length > 11)
      {
        alert("Please enter at most 11 characters in the \"ssn\" field.");
        theForm.ssn.focus();
        return (false);
      }
    
      var checkOK = "0123456789--";
      var checkStr = theForm.ssn.value;
      var allValid = true;
      for (i = 0;  i < checkStr.length;  i++)
      {
        ch = checkStr.charAt(i);
        for (j = 0;  j < checkOK.length;  j++)
          if (ch == checkOK.charAt(j))
            break;
        if (j == checkOK.length)
        {
          allValid = false;
          break;
        }
      }
      if (!allValid)
      {
        alert("Please enter only digit and \"-\" characters in the \"ssn\" field.");
        theForm.ssn.focus();
        return (false);
      }
    
      var checkOK = "0123456789--";
      var checkStr = theForm.uwmid.value;
      var allValid = true;
      for (i = 0;  i < checkStr.length;  i++)
      {
        ch = checkStr.charAt(i);
        for (j = 0;  j < checkOK.length;  j++)
          if (ch == checkOK.charAt(j))
            break;
        if (j == checkOK.length)
        {
          allValid = false;
          break;
        }
      }
      if (!allValid)
      {
        alert("Please enter only digit and \"-\" characters in the \"uwmid\" field.");
        theForm.uwmid.focus();
        return (false);
      }
    
      if (theForm.uwmid.value.length > 11)
      {
        alert("Please enter at most 11 characters in the \"uwmid\" field.");
        theForm.uwmid.focus();
        return (false);
      } 	
    
      if (theForm.firstname.value == "")
      {
        alert("Please enter a value for the \"firstname\" field.");
        theForm.firstname.focus();
        return (false);
      }
    
      if (theForm.firstname.value.length > 20)
      {
        alert("Please enter at most 20 characters in the \"firstname\" field.");
        theForm.firstname.focus();
        return (false);
      }
    
      if (theForm.mi.value.length > 1)
      {
        alert("Please enter at most 1 character in the \"mi\" field.");
        theForm.mi.focus();
        return (false);
      }
    
      if (theForm.lastname.value == "")
      {
        alert("Please enter a value for the \"lastname\" field.");
        theForm.lastname.focus();
        return (false);
      }
    
      if (theForm.lastname.value.length > 20)
      {
        alert("Please enter at most 20 characters in the \"lastname\" field.");
        theForm.lastname.focus();
        return (false);
      }
    
      if (theForm.gender.selectedIndex < 0)
      {
        alert("Please select one of the \"gender\" options.");
        theForm.gender.focus();
        return (false);
      }
    
      if (theForm.birthdate.value == "")
      {
        alert("Please enter a value for the \"birthdate\" field.");
        theForm.birthdate.focus();
        return (false);
      }
    
      var checkOK = "0123456789-/";
      var checkStr = theForm.birthdate.value;
      var allValid = true;
      for (i = 0;  i < checkStr.length;  i++)
      {
        ch = checkStr.charAt(i);
        for (j = 0;  j < checkOK.length;  j++)
          if (ch == checkOK.charAt(j))
            break;
        if (j == checkOK.length)
        {
          allValid = false;
          break;
        }
      }
      if (!allValid)
      {
        alert("Please enter only digit and \"/\" characters in the \"birthdate\" field.");
        theForm.birthdate.focus();
        return (false);
      }
    
      if (theForm.email.value.length > 30)
      {
        alert("Please enter at most 30 characters in the \"email\" field.");
        theForm.email.focus();
        return (false);
      }
    
      if (theForm.address1.value == "")
      {
        alert("Please enter a value for the \"address1\" field.");
        theForm.address1.focus();
        return (false);
      }
    
      if (theForm.address1.value.length > 40)
      {
        alert("Please enter at most 40 characters in the \"address1\" field.");
        theForm.address1.focus();
        return (false);
      }
    
      if (theForm.address2.value.length > 40)
      {
        alert("Please enter at most 40 characters in the \"address2\" field.");
        theForm.address2.focus();
        return (false);
      }
    
      if (theForm.city.value == "")
      {
        alert("Please enter a value for the \"city\" field.");
        theForm.city.focus();
        return (false);
      }
    
      if (theForm.city.value.length > 20)
      {
        alert("Please enter at most 20 characters in the \"city\" field.");
        theForm.city.focus();
        return (false);
      }
    
      if (theForm.state.value == "")
      {
        alert("Please enter a value for the \"state\" field.");
        theForm.state.focus();
        return (false);
      }
    
      if (theForm.state.value.length > 2)
      {
        alert("Please enter at most 2 characters in the \"state\" field.");
        theForm.state.focus();
        return (false);
      }
    
      if (theForm.zipcode.value == "")
      {
        alert("Please enter a value for the \"zipcode\" field.");
        theForm.zipcode.focus();
        return (false);
      }
    
      if (theForm.zipcode.value.length > 12)
      {
        alert("Please enter at most 12 characters in the \"zipcode\" field.");
        theForm.zipcode.focus();
        return (false);
      }
    
      if (theForm.phone.value == "")
      {
        alert("Please enter a value for the \"phone\" field.");
        theForm.phone.focus();
        return (false);
      }
    
      if (theForm.phone.value.length > 13)
      {
        alert("Please enter at most 13 characters in the \"phone\" field.");
        theForm.phone.focus();
        return (false);
      }
    
      if (theForm.enter_month.selectedIndex < 0)
      {
        alert("Please select one of the \"enter_month\" options.");
        theForm.enter_month.focus();
        return (false);
      }
    
      if (theForm.enter_year.selectedIndex < 0)
      {
        alert("Please select one of the \"enter_year\" options.");
        theForm.enter_year.focus();
        return (false);
      }
    
      if (theForm.status.selectedIndex < 0)
      {
        alert("Please select one of the \"status\" options.");
        theForm.status.focus();
        return (false);
      }
      return (true);
    }
    //--></script>
    
    
    </head>
    <body>
    <script language="JavaScript1.2">mmLoadMenus();</script>
    
    <div id="topbar">
    <img name="topbar" src="../../images/topbar.gif" width="800" height="109" border="0" usemap="#m_topbar" alt="" /><map 
    
    name="m_topbar" id="m_topbar">
    <area shape="rect" coords="469,83,572,104" href="#" alt="" onmouseout="MM_startTimeout();"  
    
    onmouseover="MM_showMenu(window.mm_menu_0820221005_0,469,101,null,'topbar');"  />
    <area shape="rect" coords="358,82,463,105" href="#" alt="" onmouseout="MM_startTimeout();"  
    
    onmouseover="MM_showMenu(window.mm_menu_0820220440_0,353,100,null,'topbar');"  />
    
    <area shape="rect" coords="274,79,352,105" href="#" alt="" onmouseout="MM_startTimeout();"  
    
    onmouseover="MM_showMenu(window.mm_menu_0820213231_0,275,101,null,'topbar');"  />
    </map>
    </div>
    <div id="panthertracks">
    <a href="../../panthertracks/index.php"><img src="../../images/panthertracks.gif" border="0" alt="" /></a>
    </div>
    
    <div id="workorder">
    <a href="../../workorder/index.php"><img src="../../images/workorder.gif" border="0" alt="" /></a>
    </div>
    
    <div id="recentnews"><img src="../../images/recentnews.gif" alt="" /></div>
    
    <div id="leftnewsbar">
    <img src="../../images/leftnewsbar.gif" alt="" />
    </div>
    
    <div id="bottomnewsbar">
    <img src="../../images/bottomnewsbar.gif" alt="" />
     </div>
    
    <div id="rightnewsbar">
    <img src="../../images/rightnewsbar.gif" alt="" /></div>
    
    <div id="newsbox"> 
    <?php include_once("http://www.aux.uwm.edu/sandburg/news.php");  ?></div>
    
    <div id="content">
    
    
    <h2>Housing Application</h2><br /><br />
          
    <table width = "100%" cellpadding="5" border="0" cellspacing="0">
            <tr> 
        <td valign="top"> 
          <form method="POST" action="/cgi-bin/housing.cgi" onSubmit="return FrontPage_Form1_Validator(this)" 
    
    name="FrontPage_Form1">
            <ul>
    	  <p><font face="Arial, Helvetica, sans-serif" size="4" color="#000000">We're
              full for Fall 2003!</font></p>
    	  <p>The demand for on-campus housing at UWM continues  to exceed the supply of available rooms.</p>
    	  <p>Freshmen are not required to live on-campus at UWM nor are they guaranteed a space in the Residence Halls.  The 
    
    priority for receiving on-campus housing is based on the UWM admission application date.</p>
    	  <p>A new housing application procedure will be implemented for Fall 2004.  Students who wish to live on-campus in 
    
    the UWM Residence Halls must indicate so on the admissions application.  All students who answer "yes" to the "Do you plan on 
    
    living on campus" question, you will receive a letter acknowledging their housing application along with information about 
    
    the contract process.  Students who answer "no" to this question, or leave it blank will not receive on-campus housing 
    
    information.</p>
              <p>(please add the hyphens when you enter your student/social security 
                numbers)</p>
              <li> 
                <p>Social Security Number (SSN):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  <input name="ssn" size="11" maxlength="11">
                  (999-99-9999)</p>
              <li> 
                <p>UWM Student ID Number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  (990-12-3456) (you may not yet have this number)</p>
              <li> 
                <p>First 
    
    Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  <input name="firstname" size="20" maxlength="20">
                </p>
              <li> 
                <p>Middle 
    
    Initial:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
    
    sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  <input name="mi" size="2" maxlength="1">
                </p>
              <li> 
                <p>Last 
    
    Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  <input name="lastname" size="20" maxlength="20">
                </p>
              <li> 
                
    
    <p>Gender:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
    
    nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
    &nbsp;&nbsp;&nbsp; 
    
                  <select size="1" name="gender">
                    <option>Male</option>
                    <option>Female</option>
                  </select>
                </p>
              <li> 
                <p>Birth 
    
    Date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  <input name="birthdate" size="19">
                (MM/DD/YYYY)</p>
              <li> 
                <p>Email 
    
    Address:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
    
    sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  <input name="email" size="20" maxlength="30">
                </p>
              <li> 
                <p>Street Address 
    
    1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
    
    sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  <input name="address1" size="40" maxlength="40">
                </p>
              <li> 
                <p>Street Address 
    
    2:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
    
    sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  <input name="address2" size="40" maxlength="40">
                </p>
              <li> 
                
    
    <p>City:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
    
    sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
    
    bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  <input name="city" size="20" maxlength="20">
                </p>
              <li> 
                
    
    <p>State:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
    
    bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
    
    nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  <input name="state" size="2" maxlength="2">
                </p>
              <li> 
                <p>Zip 
    
    Code:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  <input name="zipcode" size="12" maxlength="12">
                </p>
              <li> 
                <p>Phone 
    
    Number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
    
    p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  <input name="phone" size="13" maxlength="13">
                (999-999-9999)</p>
              <li> 
                <p>Entry Requested 
    
    for:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
    
    nbsp;&nbsp;&nbsp; 
    
                  <select size="1" name="enter_month">
                    <option selected>Summer</option>
                    <option>Spring</option>               
                  </select>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    
                  <select size="1" name="enter_year">
                    <option>2003</option>
                    <option>2004</option>
                    <option>2005</option>
                    <option>2006</option>
                    <option>2007</option>
                    <option>2008</option>
                    <option>2009</option>
                    (option)2010(/option)
                  </select>
                </p>
              <li> 
                <p>Housing 
    
    Status:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
    
    p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  <select size="1" name="status">
                    <option selected>New Resident</option>
                    <option>Returning Resident</option>
                  </select>
                  <br />
                </p>
            </ul>
            
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
    
    ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
    
    p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
    
    sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            <input type="SUBMIT" value="Submit Form" name="SUBMIT">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            <input type="RESET" value="Reset Form" name="RESET">
          </form>
          <hr>
          <h5>Copyright  2001&nbsp; University Of Wisconsin-Milwaukee.&nbsp; All 
            rights reserved.<br />
            Revised: 
    
            February 10, 2003
    
          </h5>
        <br />
          </td>
      </tr>
    </table>
    
    
    
    </div>
    
    <div style="position: absolute;
    	top: 1300px;
    	left: 226px;
    	width: 600px;
    	font-size: 3px;
    	border: solid black 1px;
    	font-family: verdana;">
    <table border="0" cellspacing="6"><tr><td valign="top" width="50%">
    UWM University Housing Sandburg Halls<br />
    3400 N. Maryland Avenue Milwaukee, WI 53211-2953<br />
    1-800-622-0286 (414) 229-4065 Fax: (414) 229-4127<br />
    </td><td width="10%"></td>
    <td width="30%" valign="top">
    Site maintained by ldt@uwm.edu<br />
    Last updated: January 23, 2004
    </td></tr></table>
    </div>
    
    </body>
    </html>
    Free Science Homework Help
    http://www.physicsforums.com

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quite a mouthful. Noticed this:
    Code:
    //--></script>
    That JS single-line comment (//) will hide the closing </script> tag. Put the tag on a separate line. Might work.
    ::: certified wild guess :::

  3. #3
    SitePoint Wizard dethfire's Avatar
    Join Date
    Aug 2000
    Posts
    2,477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good idea, but it still doesn't change the strange behavior I noted above.
    Free Science Homework Help
    http://www.physicsforums.com

  4. #4
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just took another look...and your code is really messy. HTML ignores whitespace - more or less - but JavaScript doesn't. Any linebreaks in a string will cause errors. You need to turn on error reporting in MSIE (Tools>Internet Options>Advanced>Display a notification...) or the mozilla JS console and fix each problem. Like:
    Code:
    window.mm_menu_0820221005_0 = new Menu("root",153,17,"Verdana, Arial, Helvetica, 
    
    sans-serif",11,"#666666","#ffcc33
    ....which needs to be all on one line.

    What's with all the &nbsp;s?
    ::: certified wild guess :::

  5. #5
    SitePoint Wizard dethfire's Avatar
    Join Date
    Aug 2000
    Posts
    2,477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by adios
    Just took another look...and your code is really messy. HTML ignores whitespace - more or less - but JavaScript doesn't. Any linebreaks in a string will cause errors. You need to turn on error reporting in MSIE (Tools>Internet Options>Advanced>Display a notification...) or the mozilla JS console and fix each problem. Like:
    Code:
    window.mm_menu_0820221005_0 = new Menu("root",153,17,"Verdana, Arial, Helvetica, 
    
    sans-serif",11,"#666666","#ffcc33
    ....which needs to be all on one line.

    What's with all the &nbsp;s?
    actually I think that is a word wrap problem, it is all on one line, here is the webpage to see further:
    http://www.aux.uwm.edu/sandburg/cont...ng/housing.php

    mozilla doesn't seem to have any problem, IE does
    Free Science Homework Help
    http://www.physicsforums.com

  6. #6
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I was close. You left out the closing comment-out tag (//-->) after the menu script. Guess the mozilla parser is more forgiving.

    Edit:

    Also: You're referencing a field named 'uwmid' which doesn't appear to exist. Could be more...use that debugger, it's indispensible!
    ::: certified wild guess :::

  7. #7
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Comment tags around script blocks are mostly useless anyways - unless you have alot of 2.0/3.0 browser traffic.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





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
  •