I am writing a script that includes the ability to let users upload a photo if they want. They click a link, which spawns a new window. What I want to happen, is have the name generated after uploading the file in the remote window, to be returned to the parent window to a form element. The page is at http://www.hotmusicstars.com/teenfind/addprofile.html
In javascript, opener references the parent window, so you would need to do something like: onSubmit="opener.document.formName.field.value = document.currentForm.anotherField.value"
Ok that worked great thanks!
Also what would I put in the body tag to make this happen when the window is closed? I want to make sure that when this window is closed, the photo url gets to the correct portion of the form no matter what.
[edit]
Nevermind I got it to work I had onClose instead of onUnload in the body tag. Stupid me
Last edited by JordanTLClive; Jun 2, 2001 at 18:09.
Bookmarks