Click to See Complete Forum and Search --> : Question about child and parent frames
wvmlt
12-01-2004, 04:19 AM
I have a form to upload images contained within an iframe but the image is displayed on the main page. The way it works now, you must click the refresh button after uploading an image to see the new image displayed. Is there a way to make the main page automatically refresh when an image is uploaded?
Warren86
12-01-2004, 06:01 AM
This will reload the parent frame, but I'm not sure about the timing. You'll have to find the correct place within your code to execute it.
And it may not work for everyone. Some people have their Internet Options set to update a page "On Every Visit," instead of "Automatically"
window.frames['mainFrameName'].location.reload()
window.frames['mainFrameName'].location.reload(true)
to force realoadig from server, if you need so