Dinamically loading an image into a iframe

S

spallared

Hi, i've an IMG inside a DIV that should contains an image dynamically
generated by a servlet as result of a form's action (image is sent to
the browser as mime type image/png).

I can't figure out how to tell the form to place the IMG src attribute
(image must be inside an IMG attribute because there are other
javascripts that let you select, crop, print... etc etc the -dynamic -
image).

Thanks in advance
Luca
 
S

shimmyshack

Hi, i've an IMG inside a DIV that should contains an image dynamically
generated by a servlet as result of a form's action (image is sent to
the browser as mime type image/png).

I can't figure out how to tell the form to place the IMG src attribute
(image must be inside an IMG attribute because there are other
javascripts that let you select, crop, print... etc etc the -dynamic -
image).

Thanks in advance
Luca

are you saying you have an iframe which has complex html/js/css in it,
and an img element with a src attirubte that must be changed in
response to the forms post data.

why cant you post the form to the iframe, which returns html, with
<img src="/url/of/gen.image.png" />
the src attribute is conditional on the post data?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,787
Messages
2,569,630
Members
45,334
Latest member
66Zeinab9

Latest Threads

Top