I am wondering if there is something better then event.pageX(Y). Like Something that gets better coordinates.
First I read that .pageX(Y) is not supported in IE6 through 8.
So I am not sure what I should do. I tried all the rest of the ones I could possible find(see link below). Mouse Events
I been making a popup validation callout. I got it to implement it properly when the user clicks the submit button. However I am trying to use the same function to make a validation callout over my textbox.
When I leave that textbox with a invalid number(say 0) it popups up the callout but far away. I don't understand why though.
So is there something that gets the position of the control and not the mouse?
Here is my code so you can see any example. You just need to put your own jquery file in it.
Also I don't understand why but if you run my code in IE(I am using 7) and you try to enter something invalid in the textbox and leave an error will be displayed.
I forgot to mention the reason why there are so many breaks is that I wanted to show you about's where the position of that box is on my real website(written in asp.net).
I found something that seems to work but I don't understand fully what is going on. Can someone help me understand.
I already did a couple of my own tweaks to make it work.
First I don't know how to change this: document.getElementById(id)
to a jquery selector. I tried to do this
= "#" + id;
var obj = $(test);
but this causes the program not to work anymore.
I really don't understand anything in the while loop.
Using the new found way.
[ June 19, 2008: Message edited by: Michael Hubele ]