471,831 Members | 924 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,831 software developers and data experts.

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 1839
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
NeoPa
reply views Thread by NeoPa | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.