> I want to click on a picture and send the image coordinates back to
> another method for processing and redisplay.  I think I could use a
> window.location call but wondering
> if there's a better way.  I've outlined it below:
>
> <script ..
> var x,y
> function onImageClick(evt) {
>   x=evt.clickX
>   y=evt.clickY
>     $seeother('/get_image_zoom',x,y)  ==> know this is wrong but
> outlines what I want to do}
>
> </script>
>
> <div id="myimage">
> <img src="/images/myimage.png" onclick=onImageClick()></img>
> </div>
from the client side you can redirect by using window.location.href
something like:
function clickHandler(evt){
     x = ...
     y = ...
     new_url = '/new_url?x=' + x + '&y=" + y;
     window.location.href = new_url;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to