Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Copy a row 12 75
VBA: Select SQL query based on a config Sheet v2 11 55
Added a column screws up code 5 75
Formula problem with Excel attachment 6 44
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

738 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