Jquery在Openwebmail代码修改中没有使用Perl

时间:2012-04-02 04:28:50

标签: jquery perl autocomplete

我正在尝试为我们的组织定制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="";
});

请帮助解决这两个问题:

  1. 让Jquery使用Perl A函数启用up,down,
  2. 在Autocompletion DIV中输入和Tab键

1 个答案:

答案 0 :(得分:0)

openwebmail测试版已在To:Cc:和Bcc:字段中自动完成。为什么重新发明轮子?

http://openwebmail.acatysmoof.com

查看当前的开发演示。