Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Frame with Template
#1
Bug 
I made a frame with template load in a region on my main form, 

But javascript is not executed on frame call

Attached example


Attached Files
.zip   AsyncRenderFrameTemplate.zip (Size: 6.33 KB / Downloads: 6)
Reply
#2
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
);
Reply
#3
(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.
Reply
#4
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
Reply
#5
this is not a practical solution.

Alright, I aborted the idea
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)