473,382 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 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 1898
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steve - DND | last post by:
There has to be an answer out there somewhere for this, but I couldn't find it in Google anywhere. I have a page with two IFrames. In IFrame#1 I have a link that looks like so: <a...
5
by: joaopedrogoncalves | last post by:
Hi, I want to load an external javascript file, get its results and stick them inside a <div> block. I also want to do this in several places on a web page. This way the browser doesn't have...
3
by: coolsti | last post by:
I need some help here. I am making an application which allows a user to look at a series of picture files one at a time, and enter the outcome of various visual tests to a database. The...
1
by: Mel | last post by:
how can i wait for one iframe to completely load before loading a second one ? thanks for your help
5
by: Tudor Tihan | last post by:
Hi, This is my first post here, so please be kind. I have tryed to make a javascript html page loader by using an invisible <IFrame> and some javascript variable text passing between...
3
by: Namshub | last post by:
I'm trying to create a dynamic link to different sources when a page loads (I want a set of buttons at the top before the IFrame) but the content of the IFrame will be dynamic but know when the...
0
by: punitshrivastava | last post by:
Hi to All, I am Punit Shrivastava.i created one html page for this i cde like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
by: DiegoBernini | last post by:
I have two assembly written in Managed C++ (VS2005) CdWrapperApi.dll, "contains" namespace CDWrapperApi { ... public interface class ICDProxy { public:
4
by: djlender | last post by:
Hi All! I'm hoping someone can help me with this situation. I am a developer working on a project that has a video voting page. The situation is this: The parent page has an iFrame ( named...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.