Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Going at the end of a browser page
Message
 
À
08/01/2005 23:31:12
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00974921
Message ID:
00975480
Vues:
30
This message has been marked as the solution to the initial question of the thread.
>>I have done some (re)search and it appears that if you want use the execScript working (or webbrowser's document DOM in general)you have to get
>
>I have added the COM reference to the project. Then, I do this:
>
>
>        Log.Document.GetElementById("DivInner").InnerHtml = lcHTMLWebService
>        Dim MyDocument As mshtml.HTMLDocument = Log.Document
>        MyDocument.parentWindow.execScript("Go()", "JavaScript")
>
>
>I obtain No such interface supported.

Strange, then I don't know howto solve, it works in c#. But I have found an article about using the webbrowser in vb.net,it also explains scrolling, in fact you don't need JavaScript (just the document DOM) to do the scrolling.

In the above example you can replace then MyDocument.parentWindow.execScript("Go()", "JavaScript") with
MyDocument.getElementById("DivGoTo").scrollIntoView("DivGoTo");
Take a look at the article, now it has to work :)

http://www.devjunkies.com/default.aspx?name=viewart&type=1&tid=90
Zakaria al Azhar
My blog on Actuaris.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform