Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2006
    Location
    India Mumbai
    Posts
    248
    Thanks
    13
    Thanked 1 Time in 1 Post

    Modeless window refresh problem

    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.
    Please help..
    ///////////////////////////////// save_relations.php ////////////////////

    <?
    //php code for save
    ?>

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

    </script>


    Thanks in advance

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Try this:
    Code:
    <script>
    window.opener.location.href="relations.php?relaionid=<?=$relationid?>";
    this.close();
    </script>

  • #3
    Regular Coder
    Join Date
    Sep 2006
    Location
    India Mumbai
    Posts
    248
    Thanks
    13
    Thanked 1 Time in 1 Post
    hi,

    Quote Originally Posted by glenngv View Post
    Try this:
    Code:
    <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.... . that means the page is not refreshed

    please help....


    thanks in advance

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •