Einstein47
Programmer
Hey everyone,
I have a function that calls the page's form.submit() method, but I keep getting an error message "Object doesn't support this property or method". I know that this function works because I took it from another page. Here's the code - any suggestions on what to look for?
And this is the link that calls it:
Einstein47
("Vision without action is a daydream - Action without vision is a nightmare. Japanese Proverb"
I have a function that calls the page's form.submit() method, but I keep getting an error message "Object doesn't support this property or method". I know that this function works because I took it from another page. Here's the code - any suggestions on what to look for?
Code:
function remove( jrId, htId )
{
var msg = "Press OK to remove the record, or\npress Cancel to return to the maintenance page"
if (confirm(msg))
{
alert("inside remove block: jrId="+jrId+", htId="+htId)
var myForm = document.forms[0]
myForm.judgeroleid.value = jrId
myForm.hearingtypeid.value = htId
myForm.submit()
}
}
Code:
<A HREF="#" onclick="remove(4,30);" tabindex="-1"> remove </A>
Einstein47
("Vision without action is a daydream - Action without vision is a nightmare. Japanese Proverb"