hi all,
i’m new to R6 and Domino in general and i’m trying to include a .js dhtml menu file in an app.
I placed the file in the “file” folder in the database and i’m trying to call it by placing - “<script language="JavaScript" src="/” + DBName + “/menu.js">” - directly on the page using pass-thru html.
The menu bar isnt showing up however, is this the right way to do this?
thanks for any help i can get in this matter
Subject: Including a .js file
Use the full path to avoid design/data path problems:
“<script language="javascript" type="text/javascript" src="http://” + @GetHTTPHeader(“Host”) + “/” + @WebDbName + “/menu.js">”
That computed text will work across multiple servers or multiple databases created from your template. Make sure that the MIME type for the .js file is set to “text/javascript” (on the “globe” tab of the resource properties) – some browsers (esp. Mozilla/Gecko) will reject the file otherwise.