Patrick Deuster wrote:
Heya all :)
I need check if a specified text is on a website.

With TWebBrowser i did:

function TForm1.SearchText(aText: string):Boolean;
var
i: Integer;
begin
SearchText := false;
for i := 0 to WebBrowser1.OleObject.Document.All.Length - 1 do
begin
if Pos(aText, WebBrowser1.OleObject.Document.All.Item(i).InnerText) <> 0 then
begin
SearchText := true;
end;
end;
end;


How can i code a function like this that works with TMozillaBrowser?
Everytime i try the funtion above it tells me "Library not registered"


Not sure if this is your problem, but Mozilla doesn't support Document.All, you'll need to use the standard DOM interfaces to iterate through the DOM nodes, not proprietary IE ones.


--
jst
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to