I have a script that shows a record with images uploaded into a DB.
I have an image upload script (child window) which on close I would like it to refresh the parent window.
The issue is the parent window has a query string attached to the script name.
E.g.
Expand|Select|Wrap|Line Numbers
- http://www.mysite.org/cgi-bin/admintoy/dbedit_recccf.cgi?snumber=001&kit=BLOCK&id=BLOCK001&item_name=Bunny%20Builders&in_out=in&itemd_name=30%20Large%20molded%20plastic%20bunnies%20that%20fit%20together%20to%20make%20many%20things--good%20for%20older%20toddlers--young%20preschoolers&date_out=&date_in=&name_out=&staff_out=&photo=&staff_in=
Expand|Select|Wrap|Line Numbers
- <SCRIPT language=JavaScript>
- <!--
- function win(){
- window.opener.location.href='';
- self.close();
- //-->
- }
- </SCRIPT>
Expand|Select|Wrap|Line Numbers
- <input type='image' src='/shared/purple/done.gif' border='0' alt='done' width='56' height='24' onClick='win();'>
Expand|Select|Wrap|Line Numbers
- <SCRIPT language=JavaScript>
- <!--
- function win(){
- window.opener.location.href='http://www.mysite.org/cgi-bin/admintoy/dbedit_recccf.cgi/$ENV{QUERY_STRING}';
- self.close();
- //-->
- }
- </SCRIPT>
Is this possible?
thanks