#1 2016-08-04 22:02:50

mauriciobs
Member
From: Brazil
Registered: 2016-05-11
Posts: 16

MVC Javascript question

It would be possible to call a procedure or function of a TMVCApplication from a javascript?

Offline

#2 2016-08-05 07:40:59

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: MVC Javascript question

TMVCApplication is server-side rendering, but you can of course call the server using an AJAX request, and a method-based service.

Offline

#3 2016-08-08 13:23:56

mauriciobs
Member
From: Brazil
Registered: 2016-05-11
Posts: 16

Re: MVC Javascript question

Thanks for reply. I chose to create a form on the page and run the javascript code below:

callback: function() {
            document.forms["form-bridge"].action = "Logout";
            document.forms["form-bridge"].submit();
}

Offline

Board footer

Powered by FluxBB