Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2016 VB code 9 115
Restricting text box entry from \/:?<>"| 9 86
Adding to a VBA? 6 69
SLMGR Switches Are Not Working On KMS Host 3 91
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 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