问题
I Included the jQuery files as file resource in my notes database
Problem: I cant figure out how do I refer to these files in my form in which I am trying to use jquery in.
I tried this in the HTMLHeader:
<script type='text/javascript' src='/jquery-min.js'></script>
<script type='text/javascript' src='/" + @WebDbName + "/jquery-min.js'></script>
回答1:
First, you need to put the formula in a hidden, computed for display field named $$HTMLHead
; notice the two dollar signs.
Formula in the field should be
"<script type=\"text/javascript\" src=\"/" + @WebDbName+ "/jquery-min.js\"></script>"
Edit:
It also works in $$ChangePasswordForm in domcfg.nsf. I used HTML Head Content property. Did you check the filename (dots and dashes)?
来源:https://stackoverflow.com/questions/53103376/lotus-notes-jquery-file-in-header