Solved

Webbrowser events does not trigger?

Posted on 2004-08-30
10
280 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
 
LVL 1

Author Comment

by:foxeye
ID: 11929762
Doesn't work
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
z = x + y – 1 6 56
Window placement 17 64
VBA saving file message display 5 47
Access Object Property from VBA Module in Excel 2010 2 18
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now