Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Going at the end of a browser page
Message
 
To
08/01/2005 23:31:12
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00974921
Message ID:
00975480
Views:
31
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform