Reloading in a separate window.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Reloading in a separate window.

Hybrid View

  1. #1
    Steve Guest

    Reloading in a separate window.


    Hi Im trying to open a pop up window from a list of elements in a database
    and have that popup window contain a delete form. After the record is deleted
    I have a script close that popup window. I then have the main window refresh(right
    now it uses onFocus self.reload() ) but that causes problems with certain
    browsers. What I would like to do is include the code to refresh the main
    window, inside the code from the form that deletes and then closes that window.
    The page I want to reload is contained in a frame named="main" and the pop
    up window where I delete the record is called "popup". I have tried many
    different combinations of parent.location.reload() and such. Any help in
    reloading a main page from a popup would be greatly appreciated.

  2. #2
    Frederiek Guest

    Re: Reloading in a separate window.


    Do you reload the main window *before* closing the popup window?

    BTW, the correct syntax to point to a frame from a popup is:
    opener.parent.frameName.location

    where of course frameName is the name of your target frame.

    cya
    Frederiek

    "Steve" <savante21@yahoo.com> wrote:
    >
    >Hi Im trying to open a pop up window from a list of elements in a database
    >and have that popup window contain a delete form. After the record is deleted
    >I have a script close that popup window. I then have the main window refresh(right
    >now it uses onFocus self.reload() ) but that causes problems with certain
    >browsers. What I would like to do is include the code to refresh the main
    >window, inside the code from the form that deletes and then closes that

    window.
    > The page I want to reload is contained in a frame named="main" and the

    pop
    >up window where I delete the record is called "popup". I have tried many
    >different combinations of parent.location.reload() and such. Any help in
    >reloading a main page from a popup would be greatly appreciated.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center