posted 23 years ago
I am trying to call a method which is coded in a separate HTML
document which is in a different directory location.
for example
o nclick="document.doSomething()"
if i do this then I get an error that middle is unidentied. Fair
enough, the document.html document is not in the same directory as the
document from which I am calling the function, thus it can't find the
method. However if I point the method to the right directory, it
gives me a syntax error: see below
o nclick="../../document.doSomething()"
This in turn gives me a syntax error.
In other words: How do I call a function which is coded in a separate
HTML document which is not in the same directory as the directory
where I call the function from?
PS: O nclick really means onclick but the server was giving me problems in posting the message.
[ February 12, 2003: Message edited by: Lubosh Bazant ]