C
coolsti
I am working on an application where a series of images, one at a time, is
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.
2) using an iframe, and using javascript to switch images on command by
changing the iframe's location.href property, again with the above type of
link.
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?
Thanks,
Steve
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.
2) using an iframe, and using javascript to switch images on command by
changing the iframe's location.href property, again with the above type of
link.
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?
Thanks,
Steve