Update Text Inside Page With Image
I am working with Delphi7 and TEmbeddedWB. I have some difficulty to update text of a page in twebbrowser. Because that webpage contains images. So Complete Html code is
Solution 1:
Maybe you can use the StringReplace function of Delphi to replace the text in the HTML of the browser, so something like:
Doc.Body.innerHTML := StringReplace(Doc.Body.innerHTML, '«signature»', 'Your Signature', []);
innerHTML should return the body contents, including all elements, while innerText only gets the text, without markup.
A nicer way would be to use methods like getElementById and other similar methods that you have available in e.g. Javascript, but I don't know if those methods are exposed by TEmbeddedWB.
Post a Comment for "Update Text Inside Page With Image"