I set the URL property of a TUniURLFrame to a URL that returns a single value. The value can be seen in the TUniURLFrame.
The following event is not fired.
procedure TfrmShare.UniURLFrame1AjaxEvent(Sender: TComponent; EventName: string;
Params: TUniStrings);
begin
showmessage(params.Text);
end;
How do I read the value returned by the URL?
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1562)
hello, try with this
UniSession.AddJS (
' new Promise(function(resolve, reject) {' +
' const xhttp = new XMLHttpRequest();'
+ ' xhttp.open("GET", ''' + fURL + TRIM (cmd) + ''', false);'
+ ' xhttp.send(null);'
+ ' var sRes = xhttp.responseText;'
+ ' if (sRes != "") {'
+ ' ajaxRequest (' + myMemo.JSName