Solved

Webbrowser events does not trigger?

Posted on 2004-08-30
10
284 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
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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Author Comment

by:foxeye
ID: 11939387
0
 
LVL 1

Accepted Solution

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

Computer101
EE Admin
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

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