Hi !
I need to call a C2 function in JS from my html page.
I know this question has already been asked, I went through a few posts about this on the forum.
But I only found a short clear answer : you should make a plugin.
Is there really no other way to do this ?
The opposite (calling a JS function from C2) is really easy with Browser.ExecuteJavascript.
I need to open a custom html login form from C2, and when logged in, I must send back to C2 that "we're logged in".
I could make an ajax call in C2 every X seconds to check if we're logged in or not, but for me it's not a proper way to do this.
If I must use a plugin to communicate from my page to C2, is there any demo / tutorial for this ?
I don't have too much time to implement this feature so I'm looking for the quickest way.
I know there are plugins like clay.io but I need to keep all the data in my own DB and I don't want any reference to an external service in my forms.