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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript error - What's wrong with my code?

Status
Not open for further replies.

kanin247

Programmer
Apr 23, 2001
113
US
I'm getting the following error in my script.

Line: 58
Char: 2
Error: Object expected

Here's my code:

L57 var EQSP = document.forms.frmCoordinates.EQSPInput.value;
L58 var XDPRIM = 0.2793881*LOG(EQSP);

Is it wanting an object because of the Log function?

Thank you for your help
~kanin
 
is LOG a function you created? If not you may want to replace line 58 with this line:

var XDPRIM = 0.2793881*Math.log(EQSP); jared@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top