Webbrowser object...

Discussion in 'AutoCAD' started by Gilles, Apr 22, 2004.

  1. Gilles

    Gilles Guest

    What is ppDsip and how can I retrieve the name of this object or any
    information/properties about it???


    Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)

    Cancel = True '(No Pop up)
    'Cancel = False '(Pop up)

    End Sub
     
    Gilles, Apr 22, 2004
    #1
  2. Gilles

    bcoward Guest

    Gilles

    NewWindow2 is an event that fires when a new window is created when talking browser window.

    ppDisp is an object expression that, optionally, receives a new, hidden WebBrowser or InternetExplorer object with no URL loaded. This will apply to Win32 and Windows CE.

    Cancel is a boolean value to determine whether the current navigation should be canceled.

    true = Cancel the navigation.
    false = Do not cancel the navigation.

    You may also want to look at the NavigateComplete2 Event which fires after a navigation to a link is completed on either a window or frameSet element.

    Syntax:

    Private Sub object_NavigateComplete2( _
    ByVal pDisp As Object, _
    ByVal URL As Variant)
    Parameters:
    object = Object expression that resolves to the object applied.

    pDisp = Object that evaluates to the top-level or frame WebBrowser object corresponding to the event.

    URL = String expression that evaluates to the URL, UNC file name, or PIDL that was navigated to. Note that this URL can be different from the URL that the browser was told to navigate to. One reason is that this URL is the qualified URL; for example, if an application specified a URL of "www.AutoDesk.com" in a call to the Navigate or Navigate2 method, the URL passed by Navigate2 will be "http://www.AutoDesk.com/". Also, if the server has redirected the browser to a different URL, the redirected URL will be reflected here.


    I hope this helps. If not please repost additional questions.

    Best of luck,

    Bob Coward
    CADS Inc
    800-366-0946

     
    bcoward, Apr 23, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.