I’m having issues in using FindTextInPage in a IE publication, HE 4.6.1. I do not receive any errors when using the code below, basically it acts like nothing has happened. To verify that the variable is passed correctly, I included the MessageBox, which popups “test” in the Message Box as expected, when uncommented.
Are there any issues in using FindTextInPage in a IE publication or am I using the wrong syntax? Also, I am assuming, that this would give me the same find dialog box, as if pressing the [Ctrl]+[F] keys and enter the search string in a IE publication. Is that correct?
Thanks,
Are there any issues in using FindTextInPage in a IE publication or am I using the wrong syntax? Also, I am assuming, that this would give me the same find dialog box, as if pressing the [Ctrl]+[F] keys and enter the search string in a IE publication. Is that correct?
Thanks,
Code:
Javascript code
mData="test";
window.external.RunHEScriptCom('CustMain.dispFind|'+mData);
HE function code
function dispFind(Sitem: String);
begin
//MessageBox(Sitem, "Test Var", MB_OK+MB_ICONINFORMATION);
FindTextInPage(Sitem, false, false);
end;
Last edited: