Solved

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

Posted on 2004-08-18
6
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

728 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