我正在使用真正的客户端协议,并且我有一个使用Image实现的搜索按钮的Web应用程序。我点击那个图像按钮来提取一些结果。搜索按钮的为什么点击我的搜索按钮会返回错误?
HTML代码:
< img style="border: medium none;"
onclick="ajaxLoadingStarted(this, document.getElementById('select:ajaxLoadingImg')); searchVehicles();"
src="/webPortal/common/images/green-search-btn.png" id="select:searchBtn">
和我的JavaScript代码是:
var searchobj = document.getElementById('select:searchBtn').onclick();
不幸的是,我得到这个错误:
t=00019690ms: Error -203252: 46: Evaluate JavaScript code/ window.alert($('#javax.face...ement; } }/failed - exception occured: NS_ERROR_NOT_AVAILABLE: Component is not available [MsgId: MERR-203252]
为什么会这是发生?
它没有给出任何错误给我。 http://jsfiddle.net/codef0rmer/C6mXH/ - 您使用哪种浏览器? – codef0rmer 2012-04-12 06:15:36
Firefox 3.6.3使用LR上的ajax真正的客户端11.03 – user1328270 2012-04-12 07:22:14
任何人都有一个关于通过javascripting单击图像的想法? – user1328270 2012-04-15 05:28:06