I am using true client protocol and I have a web app with a search button implemented using an Image. I click on that image button to extract some results.
html code of Search button is:
< img style="border: medium none;"
onclick="ajaxLoadingStarted(this, document.getElementById('select:ajaxLoadingImg')); searchVehicles();"
src="/webPortal/common/images/green-search-btn.png" id="select:searchBtn">
and my javascript code is:
var searchobj = document.getElementById('select:searchBtn').onclick();
Unfortunately, I got this error:
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]
Why might this be happening?