DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

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.



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links