Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic body change
#1
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
);


Attached Files
.zip   http_test.zip (Size: 435.5 KB / Downloads: 2)
Reply


Messages In This Thread
Dynamic body change - by VampireKB - 03-07-2022, 10:34 AM
RE: Dynamic body change - by Alexandre Machado - 03-16-2022, 12:58 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)