我正在尝试为我们的组织定制Openwebmail软件。 我在撰写邮件“TO”字段中添加了自动填充功能。数据来自MySQL数据库。它正在处理鼠标事件。 问题是: 1)导航键在自动完成DIV中不起作用。
我在perl html generatin文件openwebmail-send.pl中包含了jquery文件,就像这样
$html= qq|<script language="JavaScript" src="$config{'ow_htmlurl'}/javascript/htmlarea.openwebmail/htmlarea.js"></script>\n|.
**q*q|<script type="text/javascript" language="JavaScript" src="$config{'ow_htmlurl'}/javascript/htmlarea.openwebmail/jquery.js"></script>\n|.***
qq|<script language="JavaScript" src="$config{'ow_htmlurl'}/javascript/htmlarea.openwebmail/dialog.js"></script>\n|.
qq|<script language="JavaScript" src="$config{'ow_htmlurl'}/javascript/htmlarea.openwebmail/popups/$htmlarealocale/htmlarea-lang.js"></script>\n|.
并将jquery.js文件复制到指定位置。
2)但是以下Jquery函数在单击页面的任何其他部分时关闭,不起作用。 错误是:$未定义
The Jquery function is as follows
/*
Function for Close Autocompletion DIV
*/
$("body").click(function(){
document.getElementById("displaycc").innerHTML="";
});
请帮助解决这两个问题:
答案 0 :(得分:0)