Solved

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

Posted on 2004-08-18
6
171 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now