...

View Full Version : Modeless window refresh problem



bhakti_thakkar
07-14-2007, 02:39 PM
hi all,
i have a php page which i open in a window.showModelessDialog. the page is relations.php. the form data is save in another page [save_relations.php]. when the data is saved, i want that the relations.php should automatically display the new relation_id with the saved data. i tried the below code in save_relations.php, but is not helping me at all. save_relations.php closes but relations.php doesnt reload with the new ID. :eek:
Please help..
///////////////////////////////// save_relations.php ////////////////////

<?
//php code for save
?>

<script>
window.opener.url="relations.php?relaionid=<?=$relationid?>";
this.close();

</script>


Thanks in advance

glenngv
07-14-2007, 07:40 PM
Try this:

<script>
window.opener.location.href="relations.php?relaionid=<?=$relationid?>";
this.close();
</script>

bhakti_thakkar
07-16-2007, 05:19 AM
hi,


Try this:

<script>
window.opener.location.href="relations.php?relation_id=<?=$relation_id?>";
this.close();
</script>

i did try the above , but let me again specify that i am using window.showModelessDialog.
To check it , i put the below code in the page relations.php
<SCRIPT LANGUAGE="JavaScript">
<!--
alert();
alert('relation_id=<?=$relation_id?>');
</script>

but no alert comes....:confused: . that means the page is not refreshed

please help....


thanks in advance

glenngv
07-17-2007, 07:19 AM
Can you explain it again? I'm a bit confused as to which page is in which window. You said that the relations.php page is in a modeless window, but where is save_relations.php?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum