jeffnovis
02-15-2006, 07:42 PM
Hi,
Im trying to create a page for a picture framing site where users can upload images to see how they would look framed. The idea is that users will be able to change, among other things, the color of the mount used (I think what I'm calling a "mount" is called a "mat" in the US).
The user's image is sent to "upload.php" where it is resized and overlaid with a GD-constructed gif (with a transparent aperture) which represents the mount. All this is surrounded by a picture-frame constructed from small images with CSS. "upload.php" is displayed in an iframe within the main page.
From the main page, I'm sending variables in the url of "upload.php" (retrieved using $_GET) in order to change the color and shape of the mount. I'm also storing these variables using $_SESSION so their values are not lost when the user changes something else.
So far, all this works fine in Firefox but it only works in IE if I manually refresh the main page.
Here's the page for you to have a look at:
http://www.winkleweb.org/picturegallery/virtualworkshop.php
Try uploading an image. On the "Mounts 1" tab there are two links which change the shape of the mount, and on the "Mounts 2" tab the small colored images are links to change the mount color. They all work without a page-refresh in Firefox, but not in IE. Any idea why?
The upload.php file is a bit long to paste here so I've uploaded it as a text file to: http://www.winkleweb.org/picturegallery/upload.txt
I'm new to all this so any help would be much appreciated.
Cheers,
Jeff
Im trying to create a page for a picture framing site where users can upload images to see how they would look framed. The idea is that users will be able to change, among other things, the color of the mount used (I think what I'm calling a "mount" is called a "mat" in the US).
The user's image is sent to "upload.php" where it is resized and overlaid with a GD-constructed gif (with a transparent aperture) which represents the mount. All this is surrounded by a picture-frame constructed from small images with CSS. "upload.php" is displayed in an iframe within the main page.
From the main page, I'm sending variables in the url of "upload.php" (retrieved using $_GET) in order to change the color and shape of the mount. I'm also storing these variables using $_SESSION so their values are not lost when the user changes something else.
So far, all this works fine in Firefox but it only works in IE if I manually refresh the main page.
Here's the page for you to have a look at:
http://www.winkleweb.org/picturegallery/virtualworkshop.php
Try uploading an image. On the "Mounts 1" tab there are two links which change the shape of the mount, and on the "Mounts 2" tab the small colored images are links to change the mount color. They all work without a page-refresh in Firefox, but not in IE. Any idea why?
The upload.php file is a bit long to paste here so I've uploaded it as a text file to: http://www.winkleweb.org/picturegallery/upload.txt
I'm new to all this so any help would be much appreciated.
Cheers,
Jeff