在 WebSphere 6.1 上运行的 JSP 中的 JS 异常
我的应用程序中有弹出搜索器,其中将可用记录列为超链接。单击这些链接时,我们将使用该值填充文本框。
使用 window.open 方法打开弹出窗口。搜索器中的超链接如下所示:
当我在启用 IE 调试的情况下调用搜索器时,我在超链接所在的行处收到错误。当我将超链接更改为 时,不会显示任何错误。
我们在 IBM AIX 和浏览器 IE7 上使用 WebSphere 6.1。
当相同的应用程序在 windows 系统上安装的 WebSphere 中运行时,即使在前一种情况下,我们也没有收到任何错误。
这可能是由于某些服务器级别设置造成的吗?如果是的话那是什么设置?
注意:搜索器是用 JSP 编写的。
提前致谢....
I have popup searcher in my application which lists the available record as hyperlink. Onclick of these links we are populating a textbox with the value.
The popup is opened using window.open method. The hyperlinks in the searcher looks like this:
When I invoke the searcher with IE's debugging enabled I am getting an error at the line where hyper link is present. When I change the hyper link to no error is displayed.
We are using WebSphere 6.1 on IBM AIX and browser IE7.
When the same application is running in WebSphere installed on a windows system, we are not receiving any error even in the former case.
Can this be because of some server level settings? If yes what is that setting?
Note: the searcher is written in a JSP.
Thanks in advance....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你得到什么错误?超链接在两种情况(好的情况和坏的情况)下是什么样子?
由于某些环境因素,生成的超链接的具体细节似乎很可能有所不同。所以首先要弄清楚这是否属实。一旦您知道了不同之处,就应该可以找出原因。
What error do you get? What do the hyperlinks look like in two cases, good case and the bad case?
Seems very likely that the specifics of the generated hyperlinks differ due to some environmental factor. So first think to find out is if indeed that's true. Once you know what's different it should be possible to figure why.
问题在于调用 JavaScript 方法的超链接的语法。我们没有写 href="javascript:method()",而是写了 href"method()"。
The problem was with the syntax of the hyperlink calling the JavaScript method. Instead of having href="javascript:method()" we had written href"method()".