I’ve created a form that I use on the web. In the HEAD section of this form I’ve added the following line: “<script type="text/javascript" src="MenuBar.js">” to load some JavaScript (ManuBar.js is a JavaScript library). This works flawlessly as it should, when I open the form in a browser.Then I saved a document with that form, and tried to open the document on the web. After I did that, the JS failed to load. So did the images on the document. I then tried to add a …/ in front of the links, like this “<script type="text/javascript" src="…/MenuBar.js">” and then is suddently started to work for the document. But if I open the form now (with …/ in front of the links it fails to load the JS).
The way I see it, is if there is no …/ in front of the resources I try to load, it works for forms but not for documents. If I add a …/ in front of the resources, it works for documents, but not for forms. Can anyone explain this behavior?
Regards,
Hans