Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Expected Error

Status
Not open for further replies.

tomhughes

Vendor
Joined
Aug 8, 2001
Messages
233
Location
US
I have two frames. The bottom frame is supposed to get the value "Seconds", and pass that variable to the topFrame.
The line TDelay(Seconds); is giving me an error
"Object Expected" I don't know what it wants. The code below is in the Head of the bottom frame.
Does anyone know what it is looking for when it gives me the error "Object Expected" ?????



<script language=&quot;JavaScript&quot;>
parent.topFrame.TDelay(Seconds);
var Seconds
var Today
</script>

<script language=&quot;JavaScript&quot;>
function TDelay2(){
Today = new Date();
// ask the object for some information
Seconds = Today.getSeconds();
TDelay(Seconds);
}
</script>
 
Where is it asking for the &quot;Object Expected&quot;? That might help clear things up. Jennifer Sigman
Code-borrower extraordinaire
&quot;They call us public servants for a reason...&quot;
 
The error is at the first character of the line.
The line is

TDelay(Seconds);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top