[Zope] External method and image

Alexis Roda arv at si.urv.es
Thu Oct 16 08:15:41 EDT 2003


Michel Pottier wrote:
> Le jeu 16/10/2003 à 09:11, Alexis Roda a écrit :
> 
> 
>>What happens if you try:
>>
>>http://yourserver/yourpath/creGraph
> 
> this doesn't work. But I have a big number of parameters and perhaps, i
> have made an error

As Maik has pointed, <img src="creGraph"> is the right way. If you don't 
get an image it's because zope returns some kind of content that the 
browser is unable to identify as a valid image format, probably an 
exception error message. You can test this accesing directly the 
creGraph object.

If creGraph needs parameters you should include them in the src attr of 
the img tag

<img src="creGraph?param1=val...">

or, if inconvenient, figure out an alternate way to pass them back 
(serialized parameters, cookies, session ...), create temporary images 
on the server and reference those images instead of creGraph ... it all 
depends on what do you need exactly.




HTH
-- 
                                   ////
                                  (@ @)
---------------------------oOO----(_)----OOo------------------------
         Los pecados de los tres mundos desapareceran conmigo.
Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain)
--------------------------------------------------------------------





More information about the Zope mailing list