Hello all !
is it possible to change body of http throw intraweb ?
as an example:
i have a static template
<html>
<body>
#1
#2
#3
<body>
<html>
and i want to replace #1 with my data and show it to user...
(searched all examples on git and help docs...)
While it get an approvement i already find an answer and have a problem #2 ))
i'm using IWTemplateProcessorHTML>>onunknowntag to create info i needed
and now i need to return info back into intraweb ,...
i tryied to copy function from DBGRID ( <a HREF="#" OnClick="return SubmitClickConfirm('IWDBGRID1','0_name', true, '');">name</a> ) but it do nothing... )
Self answer...
at template add:
<script>
function Submitrowdata(e) {
var a=e
ajaxCall( "Submitrowdata","id="+a )}
</script>
At form "OnCreate" add:
RegisterCallBack('Submitrowdata',
procedure (aParams: TStrings; out aResult: string)
begin
IWMemo1.Lines.Add(aParams.Values['id']);
end
);
is it possible to change body of http throw intraweb ?
as an example:
i have a static template
<html>
<body>
#1
#2
#3
<body>
<html>
and i want to replace #1 with my data and show it to user...
(searched all examples on git and help docs...)
While it get an approvement i already find an answer and have a problem #2 ))
i'm using IWTemplateProcessorHTML>>onunknowntag to create info i needed
and now i need to return info back into intraweb ,...
i tryied to copy function from DBGRID ( <a HREF="#" OnClick="return SubmitClickConfirm('IWDBGRID1','0_name', true, '');">name</a> ) but it do nothing... )
Self answer...
at template add:
<script>
function Submitrowdata(e) {
var a=e
ajaxCall( "Submitrowdata","id="+a )}
</script>
At form "OnCreate" add:
RegisterCallBack('Submitrowdata',
procedure (aParams: TStrings; out aResult: string)
begin
IWMemo1.Lines.Add(aParams.Values['id']);
end
);