Dinamically loading an image into a iframe

Discussion in 'Javascript' started by spallared, Apr 26, 2007.

  1. spallared

    spallared Guest

    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
     
    spallared, Apr 26, 2007
    #1
    1. Advertising

  2. spallared

    shimmyshack Guest

    On Apr 26, 12:49 pm, spallared <> 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?
     
    shimmyshack, Apr 26, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?am9zZXBt?=

    loading dinamically webforms

    =?Utf-8?B?am9zZXBt?=, Oct 7, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    397
    Scott Allen
    Oct 7, 2005
  2. Leo sailer

    HowTo Loading ActiveX dinamically at runtime ?

    Leo sailer, Apr 27, 2005, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    226
    Leo sailer
    May 5, 2005
  3. Daedalous
    Replies:
    3
    Views:
    752
    Daedalous
    Jan 16, 2004
  4. Mel
    Replies:
    1
    Views:
    241
    Martin Honnen
    Jun 8, 2005
  5. edfialk
    Replies:
    0
    Views:
    194
    edfialk
    May 10, 2007
Loading...

Share This Page