Page hit

  • Thread starter Thread starter ruca
  • Start date Start date
you can handle it in the event such as click or doubleclick (depending on if
its availiable).

you can hittest.

you can use the API.
 
Hi Ruca,

Are you using fixed webpages.

I do not believe that this is standard possible with HTML pages. Maybe you
can use the area map for this or something.

(I type this more to show the others you are using ASPX)

:-)

Cor
 
Ruca,

Wasn't paying attention :) I don't believe the Drawing namespace of
Control.PointToScreen method will work for you in a web based solution..
only in windows forms solutions.

Sorry for trying to confuse you :)

Raymond Lewallen
 
try these routines, they are pretty accurate:

function findPosY(obj){
var curtop = 0;
if (document.getElementById || document.all) {
while (obj.offsetParent) {
curtop += obj.offsetTop;
if (typeof(obj.scrollTop) == 'number')
curtop -= obj.scrollTop;
obj = obj.offsetParent;
}
}
else if (document.layers)
curtop += obj.y;
return curtop;
}

function findPosX(obj) {
var curleft = 0;
if (document.getElementById || document.all) {
while (obj.offsetParent) {
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}
else if (document.layers)
curleft += obj.x;
return curleft;
}

-- bruce (sqlwork.com)
 
Where should I call them?


--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca.
 
in client code. if you the x & y on the server, then you want to use an
image map

-- bruce (sqlwork.com)
 
Back
Top