We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Call controller from jquery | Forum

Topic location: Forum home » Support » General Questions
Marcus
Marcus Mar 24 '19
How can i call some specific controller from javascript instead of using url? I want to pass some values to that controller. Thanks. What does it mean.... new something() that i see inside the sourse code?
The Forum post is edited by Marcus Mar 24 '19
AppXprt
AppXprt Mar 24 '19
Traditionally, JS used ajax XMLHttpRequest, but there is now another option called Fetch.

AJAX
Fetch


The Forum post is edited by AppXprt Mar 24 '19
Marcus
Marcus Mar 25 '19
Thanks for your reply. I could use some like this: $.ajax({
            type: "POST",
            dataType: 'json',
            data: response,

            url: 'some_url_here',


I thought there could be an other way more oxwall friendly one. Going straight to the CTRL.


Another question please. What does it mean when you call this from jquery???



window.OW_FB = new OW_FBConstructor();


or

new OW_FloatBox();

The Forum post is edited by Marcus Mar 25 '19
AppXprt
AppXprt Mar 25 '19
Looks like some JavaScript constructs for Facebook and I believe the Floatbox stuff is theme related.