[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

Webbrowser events does not trigger?

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
foxeye
Asked:
foxeye
1 Solution
 
_agj_Commented:
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
 
foxeyeAuthor Commented:
I want a function to trigger when the browser-object that I've created switches pages
0
 
_agj_Commented:
Sub brow_NavigateComplete2()
0
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!

 
foxeyeAuthor Commented:
Doesn't work
0
 
bingieCommented:
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
 
foxeyeAuthor Commented:
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
 
Computer101Commented:
PAQed with points refunded (250)

Computer101
EE Admin
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now