click on image java script

Question ID: 104501
1
0

I am using true client protocol and i have a web app on which Search button exist which type is image and i have to 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();

but it did not work and showed me following 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]

how can we script it?? pls help me

Marked as spam
Posted by (Questions: 4, Answers: 5)
Asked on April 12, 2012 1:46 am
10 views
Answers (1)
0
Private answer

anyone got an idea about clicking on image thru javascripting?

Marked as spam
Posted by (Questions: 4, Answers: 5)
Answered on April 15, 2012 1:56 am