Questions tagged [ihtmldocument]

26 questions
0
votes
1 answer

Entering text into webpage searchbox

I am trying to enter text into a searchbox and am running into different errors. Below is my code, can anyone point out to me where i have gone wrong? Sub GetHTMLDocument() Dim IE As New SHDocVw.InternetExplorer Dim HTMLDoc As…
0
votes
0 answers

VBA HTML Add Input Element to Span

Original information: I am trying to work with an internet explorer session using VBA. The HTML of the website adds input check boxes using some background procedure when a div element is clicked, rather than a native input checkbox. When fired, the…
0
votes
1 answer

How to parse doctype to string as html doctype

I'm working on C# app to get html file from current IE tab by EnumWindows. Now I got HTMLDocument and can parse it to html file from outerHTML ({HTMLDocument}.documentElement.outerHTML) by HtmlAgilityPack, but my output html file has not doctype. I…
GSP
  • 574
  • 3
  • 7
  • 34
0
votes
2 answers

VBA GetElementsById Method "Object Variable Not Set"

I'm trying to select the main menu ID of this page http://greyhoundstats.co.uk/index.php labeled ("menu_wholesome") in order to get their hyperlinks later on. In the HTML document, there are two tags with this ID, a
and its child element
    ,…
thiggy01
  • 129
  • 1
  • 11
0
votes
0 answers

HTMLDocument.getElementsByTagName() not working with non-html tag names

The following code works well with standard html tags such as div or p. This deletes the first accruing tag: Dim htmlDoc As HTMLDocument Dim Node As IHTMLDOMNode Set htmlDoc = New HTMLDocument htmlDoc.body.innerHTML = strSomeData Set Node =…
user3305711
  • 441
  • 5
  • 16
0
votes
1 answer

getElementsByTagName with IHTMLDocument3 randomly returns nothing

I'm trying to fill some form input fields in internet explorer from a c++ program but I'm facing a random bug that I hope is because of my code: UINT msg = RegisterWindowMessage("WM_HTML_GETOBJECT"); LRESULT result = 0; SendMessageTimeout(hwnd, msg,…
Entretoize
  • 2,124
  • 3
  • 23
  • 44
0
votes
0 answers

Firing a CustomEvent into an IHTMLDocument instance from C++

I have a Qt 3.3 application that instantiates a WebBrowser control and I need to fire a CustomEvent at the current document with a JSON string as the detail property. A similar question has been asked before but the answer uses deprecated APIs (e.g.…
Andy Bisson
  • 580
  • 5
  • 19
0
votes
1 answer

Need MsHtml update for new Internet Explorer versions

Since Internet Explorer 9 there is a new interface IDOMDocumentType (http://msdn.microsoft.com/en-us/library/ff975983%28v=vs.85%29.aspx). These interfaces are declared in mshtml.h. But I have Visual Studio 2005 which does not yet have this interface…
Elmue
  • 7,602
  • 3
  • 47
  • 57
0
votes
2 answers

what is the actual meaning of parsing a html file?

I am not able to understand what actually parsing the html means ? As i understand - - it means that suppose we have any html file by parsing we can have the contents of the html file and we can edit them using parsing. Am i right ?? (parsing…
Sss
  • 1,519
  • 8
  • 37
  • 67
0
votes
1 answer

IHTMLElement2.getBoundingClientRect() does not work correctly

The getBoundingClientRect() does not work accurately for all cases. It fails when say a list of links that are side by side in a row and half of them are pushed to the next line because all the links cannot be fit into the same line. Now for the…
dattebayo
  • 2,012
  • 4
  • 30
  • 40
0
votes
1 answer

how to get html text through bho at when user want, not at OnDocumentComplete (above ie8)

these steps are what i did. 1) i just got IWebBrowser2 interface pointer from pUnkSite in SetSite as most bhos do in usual. 2) in OnDocumentComplete, 2-1) got IHTMLDocument interface pointer successfully from IWebBrowser2. 2-2) got html text from…
1
2