Jump to content

How to use 'ajaxRequest' in TUniHTMLFrame.HTML


uniguibbs

Recommended Posts

I want to use 'ajaxRequest' in TUniHTMLFrame.HTML. Source Code:

TUniHTMLFrame.HTML:

<input type="button" value="Test"  class="button"  onclick="ajaxRequest(sender, 'MyEvent1', [ 'param0=A', 'param1=B' ]);"/>

 

procedure UniHTMLFrame1AjaxEvent(Sender: TComponent;
  EventName: string; Params: TStrings);
begin
  ShowMessage(EventName);
end;

 

When I click 'Test' button, It cannot call 'UniHTMLFrame1AjaxEvent'. Why?

 

 

 

 

Link to comment
Share on other sites

But I have another problem. If the parent of 'UniHTMLFrame' is not a Form, how to get then object 'UnitHTMLFrame' in client sides.

I put the 'UniHTMLFrame' in a 'TFrame'.

I use 'document.getElementById('UniHTMLFrame1'), but it cannot get the object? Why?

Link to comment
Share on other sites

  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...