I must be missing something… this script is in the script library section of the Db (shared resources). There are lots of these lines in the log:
03/13/2008 05:08:42 PM HTTP Web Server: Couldn’t find design note - 0/ValidEmail.js [/test.nsf/0/ValidEmail.js]
Any ideas? I’m used to the /0/ for view+docID references. Thanks team…
Update: I did find some passthru text at the top of the form with this…
Will this force it to look for a JS library resource? …or is this the problem?
Subject: 03/13/2008 05:08:42 PM HTTP Web Server: Couldn’t find design note - 0/ValidEmail.js
Design notes don’t live there. For documents the URL is:
http://server.domain.tld/path/database.nsf/view/UNIDorKEY
but for design notes (forms, views, resources) it is:
http://server.domain.tld/path/database.nsf/DESIGNNOTEorRESOURCE
There’s no view in the path for design notes (and “/0/” is taking the place of a view in your normal document usage).
Subject: RE: 03/13/2008 05:08:42 PM HTTP Web Server: Couldn’t find design note - 0/ValidEmail.js
Thanks Stan… wonder if I could do this?
script language=“JavaScript” src=“/test.nsf/ValidEmail.js”>
or maybe whole URL like this:
script language=“JavaScript” src=“http://www.test.com/test.nsf/ValidEmail.js”>
Subject: RE: 03/13/2008 05:08:42 PM HTTP Web Server: Couldn’t find design note - 0/ValidEmail.js
Yes, you could.
But you really should rather use
< script type=“text/javascript” src=“http://www.test.com/test.nsf/ValidEmail.js”>
The use of the language attribute is deprecated, while the type attribute is mandatory.
Subject: RE: 03/13/2008 05:08:42 PM HTTP Web Server: Couldn’t find design note - 0/ValidEmail.js
Thanks all… I cannot believe that @WebDbName was not used??? I use it all the time… is in my HTMLHead now. Appreciate Stan…
Subject: RE: 03/13/2008 05:08:42 PM HTTP Web Server: Couldn’t find design note - 0/ValidEmail.js
Always play it safe and use @WebDbName:
“<script type="text/javascript" src="/” + @WebDbName + “/validEmail.js">”