[Zope] about zope and mouse event handling

Tino Wildenhain tino at wildenhain.de
Fri Feb 10 09:25:29 EST 2006


Allen Huang schrieb:
> I want to make a web page that could handle mouse events. My primary goal is to do some image processing like zooming and panning on an image displayed and redisplay it on the same page. But I don't really know how to approach this and at the same time interacting with Zope to retrieve relevent information from the database. 

If the only mouse "event" you like to know is left-button-click - then
just use an HTML image-map.

If not, you do the processing via Javascript in the client - zope and
python has no business here. All you do is to trigger GET requests
with parameters or URLs which are then handled in Zope.

>    
>   I was reading GUI with python coding but I don't know how to connect it with zope database. Is this method possible? Is there any other methods I could look into? 

This is not even remotely related - maybe if there is a chapter about
image manipulation on the fly with PIL (python imaging lib)

Zooming, panning can all be done but you need to get a deep
understanding on HTTP, HTML, CSS and Javascript DOM.
As well as to write a zope product which does the data
preparation (e.g. tiling/resizing of the images)

Regards
Tino


More information about the Zope mailing list