Solved

How to Re-Call opener window from the Explorer control??Pleeeeeeeeeeeeeeease Help :(

Posted on 2004-08-18
6
174 Views
Last Modified: 2008-03-03
Hi All,
- I have a UserControl (VB6), which has a toolbar of buttons.
- I use the Internet Explorer to load this activex within an aspx page Page1.aspx
- when clicking on one of the buttons i call another aspx page Page2.aspx using the Explorer control in code like this:-

 Dim Explorer As SHDocVw.InternetExplorer
 Set Explorer = New SHDocVw.InternetExplorer
 Explorer.Visible = True
 Explorer.Width = 400
 Explorer.Height = 200
 Explorer.AddressBar = False
 Explorer.MenuBar = False
 Explorer.Resizable = False
 Explorer.StatusBar = False
 Explorer.ToolBar = False
 Dim path As String
 path = "http://localhost"/MyFolder/Page2.aspx"
 Explorer.Navigate path

- Page2.aspx do some work on database tables and then must refresh Page1.aspx(which has the activex)
- I don't know how to do this??????
PLLLLLLLLLLLLLZ Help, any comment will be very helpful.
Thanx in advanced...
samjav


0
Comment
Question by:samjav
  • 2
6 Comments
 
LVL 4

Expert Comment

by:hamood
ID: 11828223
you can use this method to reload the parent window

<script language=javascript>
function CloseWindow(){
window.opener.location = "page1.aspx"
}
</script>

hamood
0
 
LVL 4

Expert Comment

by:hamood
ID: 11828369
other way is simply redirect the page2.aspx to page1.aspx. like

response.redirect("Page1.aspx") when page2 has finished its operation

If you have opend anthoer window for page2 then you have to close the page2 window and reload the parent window (page1) then you can do that by using this function

<script language=javascript>
                  function CloseWindow(){
                        window.opener.location = "page1.aspx"
                        window.close()
                  }
            </script>
0
 

Author Comment

by:samjav
ID: 11828421
i have opened another window for page2, so i tried window.opener.location = "page1.aspx"
but it gave me that it is null or is not an object.
but i solved the problem by the following:-
on the unLoad event of body of Page2 i called the dorefresh function:-
<script language="javascript">
   function doRefresh(){
      window.open("Page1.aspx","myFrame");           
      window.close();
   }
</script>
and this is solved the problem..
thanx :)
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 12433250
Question answered by asker or dialog valuable.
Closed, 125 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question