Do you have a question? Post it now! No Registration Necessary. Now with pictures!
May 13, 2005, 10:48 am
rate this thread
shown to the user along with some input fields so that the user can enter
information about the image into a database. The trick here is that the
images located on a client side DVD are not accessible to the scripts on
the web server which are creating the html.
To get around this, I have tried two approaches:
1) using window.open to open up the image as another document in another
window. Using a link like 'file://localhost/D:/....' works fine.
changing the iframe's location.href property, again with the above type of
The problem is that in case 1) above, the image nicely resizes when the
new window is resized. In case 2 with the iframe, the image is not
resized, and if it does not fit into the iframe, not all of the image can
be seen at once.
The iframe is the preferred solution, since everything is on one page,
both the image and the input fields. Is there some way I can get the
document to resize itself to fit into the iframe?
Re: image size within an iframe
Its been some hours and I have been doing some trying ...
In the meantime I solved the original problem in another way. I found out
that I can use a link like the above in an ordinary image tag (thought
that this would not work before) and so the resizing issue of the image is
no longer an issue.