Lotus Notes — Jquery File in Header

只愿长相守 提交于 2019-12-11 17:44:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!