[thelist] IE 6 & 7 javascript error: object expected

Joel D Canfield joel at spinhead.com
Fri Dec 29 18:42:42 CST 2006

This throws the error 'object expected' in IE 6 & 7, but not FF, NN, or
Opera. What did I miss? Googling wasn't very educational, perhaps
because the error is so vague.

In the page; the first line is blamed by the error message:

<form name="theChangeForm" action="changeemp.asp" method="post"
onsubmit="return isValidEmpChoose(this);">
	<p>Please select the employee to update:</p>
	<p><select name="EmpToChange" id="EmpToChange">
		<option value="blank">Please select</option>

The javascript file, complete:

function isValidEmpChoose(form)
    (document.theChangeForm.EmpToChange.value == "blank")
            alert("Please select the employee to update")
            return false
return true

thanks for any pointers to sanity


More information about the thelist mailing list