I have an HTML page that has an imbedded script. I want to call if from a
link and pass two values as arguments. The HTML document is being loaded
into a script-aware applicatoin. When I click the link, I get an error :
"Wrong number of arguments or invalid property assignment 'ZoomToOcr'".
I'm sure this is simple...but I'm fairly new to the HTML side. BTW, a couple
of side issues: 1) I am only running the script from the link so I am
holding the HREF="". 2) The "Set SW" line relates to the environment in
which the script is running and the html page is being loaded. I've used
this before and it works fine.
Here's my header w/ script...followed by my <A> link section:
<HTML>
<HEAD><META HTTP-EQUIV=""Content-Type"" CONTENT=""text/html;
charset=windows-1252""><META NAME=""Generator"" CONTENT=""Microsoft Word
97""></HEAD>
<TITLE>OCR Search on DB Search Results</TITLE><p><p>
<SCRIPT LANGUAGE="VBScript"
TYPE="text/VBScript">
Sub ZoomToOCR(DocID, Line)
Set SW=window.external
SW.ZoomToOCRDoc DocID, Line, ""
End Sub
</SCRIPT>
<A HREF="" ONCLICK=ZoomToOCR "BK000001", 21>BK000001</A>
If anyone has any ideas, please let me know. Thanks in advance.
Paul