N
nicver
I am working on updating a Web site with a frameset. A page opens a
pop-up window in which the user uploads pictures. Once the upload is
done, I would like to refresh the content of the frame which opened the
pop-up but so far have failed. Here is my code:
<%
(ASP code which saves the photo in a database)
%>
<HTML>
<head>
<script language="javascript">
var url = top.parent.window.opener.document.all.MYURL.innerHTML +
'?ADID=<%=pintADID%>&MODE=S1&VIEWMODE=2';
top.parent.window.opener.location.href = url;
top.parent.window.close();
</script>
</head>
<body></body>
</html>
What I am trying to do is simply refresh the parent window with the
same URL. The ?ADID=<%=pintADID%>&MODE=S1&VIEWMODE=2' portion is there
to ensure that the browser does not refresh without the parameters.
Thanks a lot for your help!
pop-up window in which the user uploads pictures. Once the upload is
done, I would like to refresh the content of the frame which opened the
pop-up but so far have failed. Here is my code:
<%
(ASP code which saves the photo in a database)
%>
<HTML>
<head>
<script language="javascript">
var url = top.parent.window.opener.document.all.MYURL.innerHTML +
'?ADID=<%=pintADID%>&MODE=S1&VIEWMODE=2';
top.parent.window.opener.location.href = url;
top.parent.window.close();
</script>
</head>
<body></body>
</html>
What I am trying to do is simply refresh the parent window with the
same URL. The ?ADID=<%=pintADID%>&MODE=S1&VIEWMODE=2' portion is there
to ensure that the browser does not refresh without the parameters.
Thanks a lot for your help!