469,348 Members | 1,380 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,348 developers. It's quick & easy.

Dinamically loading an image into a iframe


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

Apr 26 '07 #1
1 1769
On Apr 26, 12:49 pm, spallared <spalla...@gmail.comwrote:
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?
Apr 26 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Steve - DND | last post: by
5 posts views Thread by joaopedrogoncalves | last post: by
3 posts views Thread by Namshub | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.