# 1
 09-01-2006, 09:57 PM
DaveinLondon  vbmenu_register("postmenu_631799", true);
Registered User
Join Date: Jul 2004
Location: UK
Posts: 396
How do I get back to prevois window ?
Hi all.
My script launches a new window when the link is clicked.
here is the link:
<td class="ad_top_row"><a href='$Ad_detail' target='_blank' onclick=\"window.open (this.href, '$Ad_detail', 'height=800,width=960,scrollbars'); return false\" ><b>$event</b></a></td>
In the new window (the child window) is a form that then calls another script - called do_it when the form is submitted.
I want to run this script in the parent window.
Is that possible - How do I do it ?
This is my form ( in the child window):
PHP Code:
<form name="detail" action = "do_it.php" method = 'POST'> <td style="vertical-align:center; height:30px;"> <input type="hidden" name="ad_ref" value= "<?php echo "$ad_ref"; ?>" > <input type="hidden" name="section" value= "<?php echo "$section"; ?>" > <input type="hidden" name="x_detail" value= "<?php echo "$N_detail"; ?>" > <input type="hidden" name="x_yct" value= "<?php echo "$N_yct"; ?>" > <input type="hidden" name="x_yct_op" value= "<?php echo "$N_yct_op"; ?>" > <input type="TEXT" name="x_reason" value = "enter reason" size = '40' maxlength='200' /> </td> </tr> <tr> <td> <input type="submit" class="btn_wide1" value = "Delete Advert and send Email." onMouseover="this.style.backgroundColor='#66ccff'" onMouseout="this.style.backgroundColor='#ccffff'" > </td> </form>
Thanks very much for your help.
dave
__________________
Developers Choice Revealed: Please login or register to view this content. Registration is FREE
Which host has won, and why ?
|