[Javascript] Object Expected Error

Peter Brunone peter at brunone.com
Mon Jun 2 08:49:37 CDT 2003


	Which line is 164?

|-----Original Message-----
|From: javascript-bounces at LaTech.edu
|[mailto:javascript-bounces at LaTech.edu]On Behalf Of Namita J. Goel
|Sent: Monday, June 02, 2003 8:30 AM
|To: [JavaScript List]
|Subject: Re: [Javascript] Object Expected Error
|
|
|Hi Paul,
|
|Here's the html:
|
|<html>
|<head>
|<title></title>
|
|<link rel="stylesheet" href="../sitestylesheet.css"
|type="text/css">
|<script language="JavaScript"
|src="../sitejavascriptfile.js"></script>
|
|</head>
|
|<body bgcolor="#FFFFFF" text="#000000"
|onunload="getCookie()";"whenLoad()">
|<p>
|<table border="1" width="780" cellpadding="0"
|cellspacing="0" align="left" bordercolor="#000000">
|  <tr>
|    <td>
|
|<div id="top" onmouseover="closeLinks()">
|<table border="0" width="100%" cellspacing="0"
|cellpadding="0" align="left">   
|<tr>
|<td><a href="../index.html"
|onMouseOver="window.status='HOME'; return true"><img 
|
|src="../Graphics/homelink.gif"></a></td>
|</tr>
|</table>
|</div>
|
|<div id="greyback" onmouseover="closeLinks()">
|
|<table class="top" border="0" width="100%"
|cellspacing="0" cellpadding="0">   
|  <tr> 
|    <td width="63%"></td>
|    <td width="19%"><a
|href="../Forms/InquiryForm.html"
|onMouseOver="highlightOn(1); 
|
|window.status='INQUIRY FORM'; return true" 
|    onMouseOut="highlightOff(1)" target="_parent"><img
|src="../Graphics/form.gif"></a></td>
|     <td width="18%"><a href="../ContactUs.html"
|onMouseOver="highlightOn(2); 
|
|window.status='CONTACT US'; return true" 
|    onMouseOut="highlightOff(2)" target="_parent"><img
|src="../Graphics/email.gif"></a></td>
|  </tr>
|</table>
|
|</div>
|
|<div id = "navigation">
|
|<table border="0" class="navigation" cellpadding="0"
|cellspacing="0" width="100%">
|<tr>
|<td>
|
|<a href="../AboutUs/AboutUs.html"
|onmouseover="dropLinks(0); window.status='ABOUT US';
|return 
|
|true" id = "mnubar"> About Us </a>
|
|<a
|href="../MembraneTechnologies/MembraneTechnologies.html"
|onmouseover="dropLinks(1); 
|
|window.status='MEMBRANE TECHNOLOGIES'; return true" id
|= "mnubar"> Membrane Technologies </a>
|
|<a href="../Products/Products.html"
|onmouseover="dropLinks(2); window.status='PRODUCTS';
|return 
|
|true" id = "mnubar"> Products </a>
|
|<a href="../Services/Services.html"
|onmouseover="dropLinks(3); window.status='SERVICES';
|return 
|
|true" id = "mnubar"> Services </a>
|
|<a href="../MajorApp/MajorApp.html"
|onmouseover="dropLinks(4); window.status='MAJOR 
|
|APPLICATIONS'; return true" id = "mnubar"> Major
|Applications </a>
|
|</td>
|</tr>
|</table>
|</div>
|
|
|<div id="box" style=left:1> 
| <table class="subbox" cellpadding="0" cellspacing="0"
|width="150px"><tr>      
| <tr><td><a href='../AboutUs/Partners.html';
|onmouseover="window.status='PARTNERS'; return 
|
|true">Partners</a><br></td></tr>
| <tr><td><a href='../ContactUs.html';
|onmouseover="window.status='CONTACT US'; return 
|
|true">Contact Us</a></td></tr>
|</tr>
|   </table>
| </div>
|
|<div id="box" style=left:150> 
|<table class="subbox" cellpadding="0" cellspacing="0"
|width="185px"><tr>        
| <tr><td><a
|href='../MembraneTechnologies/Pervaporation.html'; 
|
|onmouseover="window.status='PERVAPORATION'; return
|true">Pervaporation</a></td></tr>
| <tr><td><a
|href='../MembraneTechnologies/VaporPermeation.html'; 
|
|onmouseover="window.status='VAPOR PERMEATION'; return
|true">Vapor Permeation</a></td></tr>  
| <tr><td><a
|href='../MembraneTechnologies/GasPermeation.html';
|onmouseover="window.status='GAS 
|
|PERMEATION'; return true">Gas Permeation</a></td></tr>
|</tr>
|   </table>
| </div>
|
|
|<div id="box" style=left:334> 
|<table class="subbox" cellpadding="0" cellspacing="0"
|width="196px"><tr>            
|<tr><td><a href='../Products/Zeo.html';
|onmouseover="window.status='ZEOSEP MEMBRANES &
|MODULES'; 
|
|return true">ZeoSep Membranes & Modules</a></td></tr>
| <tr><td><a href='../Products/MembSys.html';
|onmouseover="window.status='MEMBRANE SYSTEMS'; 
|
|return true">Membrane Systems</a></td></tr>
|</tr>   
|</table>
| </div>
|
|<div id="box" style=left:433> 
|<table class="subbox" cellpadding="0" cellspacing="0"
|width="126px"><tr>            
|<tr><td><a href='../Services/Feasibility.html';
|onmouseover="window.status='FEASIBILITY TESTING'; 
|
|return true">Feasibility Testing</a></td></tr>
| <tr><td><a href='../Services/Pilot.html';
|onmouseover="window.status='PILOT TESTING'; return 
|
|true">Pilot Testing</a></td></tr>
|</tr>   
|<tr><td><a href='../Services/R&D.html';
|onmouseover="window.status='CONTRACT R & D'; return 
|
|true">Contract R & D</a></td></tr>
|</tr>  
|</table>
| </div>
|
|
|<div id="box" style=left:529> 
|<table class="subbox" cellpadding="0" cellspacing="0"
|width="190px"><tr><tr><td><a 
|
|href='../MajorApp/FuelGradeEth.html';
|onmouseover="window.status='FUEL GRADE ETHANOL
|PRODUCTION'; 
|
|return true">Fuel Grade Ethanol
|Production</a><br></td></tr>
|<tr><td><a href='../MajorApp/Solvent.html';
|onmouseover="window.status='SOLVENT RECOVERY'; return 
|
|true">Solvent Recovery</a></td></tr>
|<tr><td><a href='../MajorApp/IPA.html';
|onmouseover="window.status='IPA REPROCESSING'; return 
|
|true">IPA Reprocessing</a></td></tr>
|</tr>
| </table>
|</div>
|
|<div id="greenback" onmouseover="closeLinks()"></div>
|
|<div id="middle" onmouseover="closeLinks()">
|
|<img src="../Graphics/heading.gif">
|
|<br>
|<p class="heading4">Gas Permeation</p>
|
|<div id="info"> 
|<h5>Process Fundamentals</h5>
|
|<p>In the gas permeation process, typically a
|pressurized gas phase mixture containing at least 
|
|two components, for example, A & B, is fed to the
|membrane that has a higher permeation flux for 
|
|at least one of the components in the feed mixture.
|For example, the membrane in the illustration 
|
|below has a higher flux for B.</p>
|
|<p><center><img src="Graphics/gassepillustrated.gif">
|</center></p>
|
|<p>The driving force for permeation of the components
|is the difference in partial pressure 
|
|between the feed side and the permeate side of the
|membrane. Therefore, the permeate side of the 
|
|membrane is maintained at a substantially lower
|pressure than the feed side.</p>  
|
|<p>The majority of component B and a small fraction of
|component A permeate the membrane in the 
|
|gas phase. In the gas permeation process, the
|operating pressures may be very high. Therefore, 
|
|there may be substantial differences in the feed,
|retentate, and permeate temperatures due to the 
|
|Joule-Thompson effect.</p>
|
|<p><b>Feed:</b> A-B Mixture(Gas Phase)<br>
|<b>Retentate:</b> A-Rich(Gas Phase)<br>
|<b>Permeate:</b> B-Rich(Gas Phase)</p>
|
|<p><b>In order to maximize the driving force for
|separation:</b><ol>
|<li>The feed to the membrane should be pressurized to
|the highest pressure. The maximum service 
|
|pressure for the membrane module should not be
|exceeded under any circumstance.</li>
|<li>The permeate side of the membrane should be
|maintained at the lowest pressure possible.</li>
|</ol>
|</p>
|
|<h5>Applications</h5>
|
|<p><ul>
|<li>The permeation of H2 from gas mixtures</li>
|<li>The separation of paraffin-olefin mixtures</li>
|<li>The separation of CO2 from gas mixtures</li>
|</ul></p>
|
|</div>
|
|</div> 
|
|<div id="left" onmouseover="closeLinks()">
|<div id="linedgrey" onmouseover="closeLinks()"></div>
|
|<table border="0">
|  <tr>
|    <td valign="top" class="level1"><a
|href="MembraneTechnologies.html"><img 
|
|src="../Graphics/mtechnologies2.gif"></a></td>
|  </tr>
|  <tr class="level2">
|    <td><ul><a
|href="Pervaporation.html">Pervaporation</a></ul>
|    <ul><a href="VaporPermeation.html">Vapor
|Permeation</a></ul>
|    <ul><a href="GasPermeation.html">Gas
|Permeation</a></ul></td>
|  </tr>
|</table>
|</p><br><br><br><br>
|
|<table border="0">
|
|<tr><td class="leftside"><form><input type="text"
|name="searchsite" size="15" 
|
|value="Search">&nbsp;&nbsp;
|<input type="image" name="gosearch"
|src="../Graphics/arrowside.gif"
|border="0"></form></td>
|</tr>
|
|</table>
|
|</div>
|
|</td>
|</tr>
|</table>
|<br><br>
|</body>
|</html>
|
|
|
|--- Paul McGuire <pmcguire at cguk.co.uk> wrote:
|> Can you post the html code, where are you calling
|> those functions from
|> 
|> 
|> 
|> > 
|> > > Hello,
|> > > 
|> > > I am receiving the following error in IE the
|> second I
|> > > move my mouse on the page:
|> > > 
|> > > "A runtime error has occurred. Do you wish to
|> debug?
|> > > Line: 164
|> > > Error: Object expected"
|> > > 
|> > > Below is a copy of the JavaScript file. I have
|> tried
|> > > desperately to figure this out and can't. Any
|> help
|> > > will be appreciated!
|> > > 
|> > > JAVASCRIPT FILE:
|> > > ----------------
|> > > 
|> > > //DROP-DOWN MENU
|> > > 
|> > > ns=window.navigator.appName == "Netscape"
|> > > ie=window.navigator.appName == "Microsoft
|> Internet
|> > > Explorer"
|> > > 
|> > > function dropLinks(x) {
|> > > if(ns) {
|> > >    showbox= document.layers[x+1]
|> > >      showbox.visibility = "show";
|> > >        showbox.top=132;
|> > >        
|> > >     var items = 5      ;
|> > >      for (i=1; i<=items; i++) {
|> > >       elopen=document.layers[i]
|> > >         if (i != (x + 1)) { 
|> > >           elopen.visibility = "hide" }
|> > >             }
|> > >   }    
|> > > 
|> > > if(ie) {
|> > >    curEl = event.toElement
|> > >    curEl.style.background = "#FFFFFF
|> > > url(../Graphics/arrowgreen.gif) right no-repeat"
|>   
|> > > 
|> > >    showBox = document.all.box[x];
|> > >      showBox.style.visibility = "visible";
|> > >         showBox.style.top = 132;
|> > >          
|> > >    var items = 5 
|> > >     for (i=0; i<items; i++) {
|> > >       elOpen=document.all.box[i]
|> > >        barEl=document.all.mnubar[i]
|> > >         if (i != x){ 
|> > >           elOpen.style.visibility = "hidden" 
|> > >           barEl.style.background = "#EFD35A"
|> > >        }
|> > >      }
|> > >    }
|> > > }
|> > > 
|> > > function closeLinks() {
|> > >    var items = 5 
|> > >      for (i=0; i<items; i++) {
|> > >        if(ie){
|> > >         document.all.box[i].style.visibility =
|> > > "hidden"
|> > >           barEl=document.all.mnubar[i]
|> > >            barEl.style.background = "#EFD35A" 
|> > > 
|> > >        }
|> > >        if(ns){ document.layers[i+1].visibility =
|> > > "hide"}          
|> > > }
|> > > }
|> > > 
|> > > 
|> > > //LEFT SIDE MENU NAVIGATION
|> > > 
|> > > var Open = ""
|> > > var Closed = ""
|> > > 
|> > > function whenLoad(){
|> > > if(document.images){
|> > > Open = new Image(16,13)    
|> > > Closed = new Image(16,13)
|> > > Open.src = "../Graphics/open.gif"
|> > > Closed.src = "../Graphics/closed.gif"
|> > > }}
|> > > 
|> > > function clickMenu(what,what2){
|> > > if (what.style.display=='none'){
|> > > what.style.display='';
|> > > what2.src=Open.src
|> > > }
|> > > else{
|> > > what.style.display='none'
|> > > what2.src=Closed.src
|> > > }
|> > > }
|> > > 
|> > > 
|> > > //IMAGE ROLLOVERS
|> > > 
|> > > if (document.images) {
|> > > form = new Image()
|> > > email = new Image()
|> > > yellowform = new Image()
|> > > yellowemail = new Image()
|> > > 
|> > > form.src = '../Graphics/form.gif'
|> > > email.src = '../Graphics/email.gif'
|> > > yellowform.src = '../Graphics/yellowform.gif'
|> > > yellowemail.src = '../Graphics/yellowemail.gif'
|> > > }
|> > > 
|> > > else {
|> > > form = ""
|> > > email = ""
|> > > yellowform = ""
|> > > yellowemail = ""
|> > > }
|> > > 
|> > > function highlightOff(num) {
|> > > if (num == "1") {document.images[1].src =
|> form.src}
|> > > if (num == "2") {document.images[2].src =
|> email.src}
|> > > }
|> > > 
|> > > function highlightOn(num) {
|> > > if (num == "1") {document.images[1].src =
|> > > yellowform.src}
|> > > if (num == "2") {document.images[2].src =
|> > > yellowemail.src}
|> > > }
|> > > 
|> > > 
|> > > //POP-UP WINDOWS
|> > > 
|> > > function showDiagram(whichDiagram) {
|> > > diagramWindow = window.open(whichDiagram,
|> > > 'diagramPage', 'width=780, height=520
|> scrollbars=yes
|> > > resizable=yes')
|> > > }
|> > > 
|> > > 
|> > > 
|> > > __________________________________
|> > > Do you Yahoo!?
|> > > Yahoo! Calendar - Free online calendar with sync
|> to Outlook(TM).
|> > > http://calendar.yahoo.com
|> > > _______________________________________________
|> > > Javascript mailing list
|> > > Javascript at LaTech.edu
|> > >
|> https://lists.LaTech.edu/mailman/listinfo/javascript
|> > _______________________________________________
|> > Javascript mailing list
|> > Javascript at LaTech.edu
|> >
|> https://lists.LaTech.edu/mailman/listinfo/javascript
|> _______________________________________________
|> Javascript mailing list
|> Javascript at LaTech.edu
|> https://lists.LaTech.edu/mailman/listinfo/javascript
|
|
|__________________________________
|Do you Yahoo!?
|Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
|http://calendar.yahoo.com
|_______________________________________________
|Javascript mailing list
|Javascript at LaTech.edu
|https://lists.LaTech.edu/mailman/listinfo/javascript
|


More information about the Javascript mailing list