I am using the ismap tag and for the most part, it works fabulously. However, recently I went on a co-workers computer and noticed that the ismap coordinates are incorrect. the image is set to be 800 x 400 but on his computer it thinks the image is 100 x 500!!! So far it's the only computer that does that. Has anyone else encountered this problem and how to solve it?
thanks a mill,
sharyn
__________________
'tis best not to get worked up over nothing
Well, I need to get the x,y coordinates back. I am clicking on a map of something and I need to calculate the lat & long of where I clicked. Can I do this with the map tag?
__________________
'tis best not to get worked up over nothing
Yes, sort of. The map tag defines the client-side image map. Within the map tag are the area shapes, where you define the clickable regions. So if you're using ismap for an image map then <map> will work just fine, and it's valid.
If you need to get a reference of the coordinates for something other than an image map, then javascript might be the way to go. You can use ismap, but you can't count on it, as it's (as you see) not implemented by every browser.
A link to the page in question might help us help you a little better...
__________________
If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Step 1: Learn. Step 2: Search. Step 3: Post here.
I need x,y coordinates back from clicking on the image map. I can't see that the regular <map> tag does this.... or does it and I just can't figure it out?
Sorry but the page is internal.
- sharyn
__________________
'tis best not to get worked up over nothing
No. <map> will not return the coordinates, it is a container for predefined areas that are clickable. You will need to use javascript or some sort of processing to get the coordinates.
I would pm a moderator to move this to the correct forum if that's the case.