Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > image size within an iframe

Reply
Thread Tools

image size within an iframe

 
 
coolsti
Guest
Posts: n/a
 
      05-13-2005
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


 
Reply With Quote
 
 
 
 
coolsti
Guest
Posts: n/a
 
      05-13-2005
On Fri, 13 May 2005 12:48:29 +0200, coolsti wrote:

> 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.


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.

/steve
 
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
mega pixels, file size, image size, and print size - Adobe Evangelists Frank ess Digital Photography 0 11-14-2006 05:08 PM
Div inside an iframe - how to set height relative to the iframe's visible size? Joe Attardi Javascript 0 01-17-2006 08:01 PM
controlling an iframe from another iframe within a frame James Wallace Javascript 1 05-14-2004 05:18 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
Reloading a iframe from within that same iframe Gustavo Javascript 0 08-25-2003 02:45 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57