Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Dinamically loading an image into a iframe

Reply
Thread Tools

Dinamically loading an image into a iframe

 
 
spallared
Guest
Posts: n/a
 
      04-26-2007

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

 
Reply With Quote
 
 
 
 
shimmyshack
Guest
Posts: n/a
 
      04-26-2007
On Apr 26, 12:49 pm, spallared <(E-Mail Removed)> wrote:
> 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?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
loading image -> detect when image is done loading edfialk Javascript 0 05-10-2007 07:28 PM
loading dinamically webforms =?Utf-8?B?am9zZXBt?= ASP .Net 3 10-07-2005 05:35 PM
wait for one IFRAME to load before loading a second IFRAME Mel Javascript 1 06-08-2005 02:31 PM
HowTo Loading ActiveX dinamically at runtime ? Leo sailer ASP .Net Web Controls 4 05-05-2005 04:45 PM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM



Advertisments