virafh
asked on
Javascript from child window to parent window
Dear Friend,
The below javascript working fine in IE7 but its not working in Firefox,
please have a look and revert where i am wrong.
what i am doing
i have a product page which contain the image field,
now i given a link which open a new window, which contain FileUpload control , a Upload Button and a Submit Button.
when user upload file successfully then he has to click on the submit button, on this the below javascript call and the parent page will refresh.
or is there any other way let me know
i am using it in asp.net.
The below javascript working fine in IE7 but its not working in Firefox,
please have a look and revert where i am wrong.
what i am doing
i have a product page which contain the image field,
now i given a link which open a new window, which contain FileUpload control , a Upload Button and a Submit Button.
when user upload file successfully then he has to click on the submit button, on this the below javascript call and the parent page will refresh.
or is there any other way let me know
i am using it in asp.net.
function BackToParentPage()
{
window.opener.form1.submit();
window.close();
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I tested that with both FF and IE and it works... if it's not working then something else is wrong. I could only evaluate the code you showed me.
Lets see the code that's opening the new window, as well as the form declaration, and the code you put in to replace what you had to postback the form.
I suspect you have a JS error that is causing the whole thing to stop before that line runs.
Lets see the code that's opening the new window, as well as the form declaration, and the code you put in to replace what you had to postback the form.
I suspect you have a JS error that is causing the whole thing to stop before that line runs.
ASKER
Thank You
ASKER