users@javaserverfaces.java.net

getting X,Y cordinate of h:graphicImage

From: Nishant <katoch.nishant_at_gmail.com>
Date: Thu, 14 Jun 2007 13:11:51 -0700 (PDT)

I am trying to get the x and Y cordinate of Image.

the following code works fine when written in HTML:
----------HTML IMPLEMENTATION---------------
<img.. src="img1.jpg" border="0" width="130" height="98" border="0"
onmouseover="drawImage2(this.offsetLeft,this.offsetTop)" />

CORECT CORDIANTES ARE GIVEN
------------------------------------------------


but when I implement JSF then its giving wrong result.
-------------SEE JSF IMPLEMENTATION------------------
<a4j:commandLink id="imgVideo">
<h:graphicImage id="Imgpic" url="img/#{studio.image}"
onmouseover="drawImage2(this.offsetLeft,this.offsetTop)"/>
</a4j:commandLink>
THIS ALWAYS GIVES ME CO-ORDIANTES AS x=1 and y=1 .
---------------------------

Help is needed.

Thanks,
Nishant
-- 
View this message in context: http://www.nabble.com/getting-X%2CY-cordinate-of-h%3AgraphicImage-tf3924006.html#a11127767
Sent from the javaserverfaces users mailing list archive at Nabble.com.