Atozed Forums

Full Version: Frame with Template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I made a frame with template load in a region on my main form, 

But javascript is not executed on frame call

Attached example
there are no need to change local info.
This thread helps me:
https://www.atozed.com/forums/thread-1429.html

<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
);
(03-07-2022, 11:22 PM)VampireKB Wrote: [ -> ]there are no need to change local info.
This thread helps me:
https://www.atozed.com/forums/thread-1429.html

<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
);

I do!

I want to simulate the behavior of frames. See the template I use.

https://coreui.io/react/demo/4.0/#/dashboard

Frames have datatable, select2, scripts that need to be executed at the time of frame creation.

What is the need to reload the entire page?

I would love to simulate that, it would be beautiful.
i founded only 1 solution
function Submitrowdata(e) {
var a=e
ajaxCall( "Submitrowdata","id="+a )
document.location.reload(true);<-- Reloading the whole page...
};

here is a sample:
http://techrk.ru:8081
this is not a practical solution.

Alright, I aborted the idea