Solved

Webbrowser events does not trigger?

Posted on 2004-08-30
10
291 Views
Last Modified: 2012-06-27
Hello, I have the following code... Why doesn't the NavigateComplete2 event trigger?

<HTML>
<body>
<OBJECT id="brow" name="brow" style="LEFT: 0px; TOP: 0px" height=600 width=800 classid="clsid:8856F961-340A-11D0-A96B-00C04FD705A2" VIEWASTEXT>
      <PARAM NAME="ExtentX" VALUE="21167">
      <PARAM NAME="ExtentY" VALUE="15875">
      <PARAM NAME="ViewMode" VALUE="1">
      <PARAM NAME="Offline" VALUE="0">
      <PARAM NAME="Silent" VALUE="0">
      <PARAM NAME="RegisterAsBrowser" VALUE="1">
      <PARAM NAME="RegisterAsDropTarget" VALUE="0">
      <PARAM NAME="AutoArrange" VALUE="0">
      <PARAM NAME="NoClientEdge" VALUE="0">
      <PARAM NAME="AlignLeft" VALUE="0">
      <PARAM NAME="NoWebView" VALUE="0">
      <PARAM NAME="HideFileNames" VALUE="0">
      <PARAM NAME="SingleClick" VALUE="0">
      <PARAM NAME="SingleSelection" VALUE="0">
      <PARAM NAME="NoFolders" VALUE="0">
      <PARAM NAME="Transparent" VALUE="0">
      <PARAM NAME="ViewID" VALUE="{0057D0E0-3573-11CF-AE69-08002B2E1262}">
      <PARAM NAME="Location" VALUE="http://www.google.com/"></OBJECT>
      <script language="vbscript">
      Sub brow_NavigateComplete2(a,b)
            msgbox("hello")
      end sub
      </script>
</BODY>
</HTML>
0
Comment
Question by:foxeye
[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
10 Comments
 
LVL 7

Expert Comment

by:_agj_
ID: 11929395
dont understand what u are trying to do....

are u trying to write some vbscipt in an html page?

u cud do this:

<body onload="brow_NavigateComplete2"> or so...
0
 
LVL 1

Author Comment

by:foxeye
ID: 11929516
I want a function to trigger when the browser-object that I've created switches pages
0
 
LVL 7

Expert Comment

by:_agj_
ID: 11929637
Sub brow_NavigateComplete2()
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 1

Author Comment

by:foxeye
ID: 11929762
Doesn't work
0
 
LVL 11

Expert Comment

by:bingie
ID: 11929961
Have you tried the wb_BeforeNavigate event?

The complete event will not fire if the page does not compleatly load.

Post your event code.
0
 
LVL 1

Author Comment

by:foxeye
ID: 11929996
Yep, tried it...
     <script language="vbscript">
     Sub brow_BeforeNavigate()
          msgbox("hello")
     end sub
     </script>

I can get normal events ( like onfucus, onmouseover etc. ) to work, but not the browser specific.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12561039
PAQed with points refunded (250)

Computer101
EE Admin
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

690 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