[Dojo-interest] Question about image file

zhang uzhang at 263.net
Thu Aug 4 09:50:31 EDT 2011


What I want is:

    1) Client send some information to server with xhrPost;
    2) According the information, server generate a small image dynamically
and send the image to client;
    3) Client display the image on a dojox.gfx surface;

I know in client we can use a img element to display a image as below: 

     server function, sf, which return a image file 

But in my situation, it doesn't fit my needs for two reasons: 

First, I want to display the image on a dojox.gfx.surface; 
Second, a client function which initiate a xhrPost request is the
pre-condition of generating a small image in sever, so I can't put sf in the
src property, because that will result in invoking sever function directly.

Can anybody give me a clue? Thanks.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Question-about-image-file-tp3225213p3225426.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.


More information about the Dojo-interest mailing list