Jump to content

get prperty from activex


delagoutte

Recommended Posts

Hi,
 
I did an activex.
I put it in the form in an UniHTMLFrame. (with UniHTMLFrame1.HTML.Add(...) )
 
in the form i put 2 buttons :

 

procedure TForm_Signature.Btn_SetClick(Sender: TObject);
begin
  unisession.AddJS('document.getElementById("pActiveXTest").Property1 = "' + e_set.text + '";');
end;

 

procedure TForm_Signature.Btn_GetClick(Sender: TObject);
begin
  unisession.AddJS('alert(document.getElementById("pActiveXTest").Property1)');
end;

 

 

All work fine.

 

But instead of

unisession.AddJS('alert(document.getElementById("pActiveXTest").Property1)');

 

i want to save the result in a string variable (or edit or memo ...) to use the result in my form.

 

How cani do this ?

 

Thank you

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...