I am using YAHOO.My.UI.Dialog.balloon() for my aplication.
I have a map in one image tag. I have the coordinates of the click of mouse in the image. I need to set the coordinates of the balloon in relation the coordinates of the image and not of the page.
e.g:
image tag
width=200px
height=200px
If I set oBalloon.moveTo (100,100); the balloon will have to show in the center of the image and not of the page.
Hedeger,
did you realize you are creating a new element for each cyclye in your modified version ?
And with a setTimeout of 0 millisecs, you are probably doing that hundreds of times slowing down the overall load process
and eating more memory for each cycle.
I really believe you shouldn’t do that, especially because you are affecting the impact of the original solution between the readers.
If you changed the original solution because of some problem I would very like you send me the code that is not working with it, so I can have a look and make my solution better.
Rodrigo | 25-Sep-07 at 4:21 am | Permalink
Hi Hedger!
(It forgives me, I did not find its email.)
I am using YAHOO.My.UI.Dialog.balloon() for my aplication.
I have a map in one image tag. I have the coordinates of the click of mouse in the image. I need to set the coordinates of the balloon in relation the coordinates of the image and not of the page.
e.g:
image tag
width=200px
height=200px
If I set oBalloon.moveTo (100,100); the balloon will have to show in the center of the image and not of the page.
How to make this?
Congratulations for your My.UI.Dialog!
Thanks a Lot!
Sorry for my english…
Rodrigo Haas - Brasil
Diego Perini | 27-Sep-07 at 3:36 am | Permalink
Hedeger,
did you realize you are creating a new element for each cyclye in your modified version ?
And with a setTimeout of 0 millisecs, you are probably doing that hundreds of times slowing down the overall load process
and eating more memory for each cycle.
I really believe you shouldn’t do that, especially because you are affecting the impact of the original solution between the readers.
If you changed the original solution because of some problem I would very like you send me the code that is not working with it, so I can have a look and make my solution better.
Diego Perini