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

Object does not support property or method

Status
Not open for further replies.

svsuthar1

Programmer
Jul 6, 2004
135
US
I am getting this on my vbscript, javascript code below.. please advise.

<Script language="javascript">
function ShowDate(oDoc,cDate)
{
window.open("/includes/datepicker.asp?backf="+oDoc+"&cDate="+cDate,"window", "height=210, width=300, resizeable=no,","");
}

function resubmit()
{
document.forms[0].NavBox.value
}
</SCRIPT>
<%Lanugage=VBScript%>
<SCRIPT LANGUAGE = "vbscript">
function Validate()
Dim pass
pass=true
If (((getExternal_Errors.item("Resolution").value)="") OR (Not(IsNumeric(getExternal_Errors.item("Resolution").value)))) Then
MsgBox "Resolution # is required field and must be Numeric",vbInformation,"Resolution #"
getExternal_Errors.Resolution.focus
pass=false
ElseIf (getExternal_Errors.item("ReturnDate").value)="" Then
MsgBox "Return Date is required field",vbInformation,"Return Date"
getExternal_Errors.ReturnDate.focus
pass=false
End If
Validate=pass
If Validate then
'document.getExternal_Errors.submit
document.getExternal_Errors.Submit
End If
End function
</SCRIPT>
 
Sorry the the error occurs at this line.
document.getExternal_Errors.Submit
 
Assuming getExternal_Errors is the name of the form that you're trying to submit, below is the correct syntax:

[tt]document.getExternal_Errors.submit();[/tt]

HTH.

*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
 
After I did that it give object expected at the submit button of Validate()

 
This code is in VBScript, and should probably be posted in the VBScript (forum329) forum.

*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
 
Thanks all,

I found what the problem is.. it was Name property on a button. I wanted the name property so I could have focus set once the last field was keyed...

Thanks,

Samir
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top