Skip to Content

How to call function of controller from inside a "core:HTML" embedded java script?

I am using an embedded html inside my view:

<core:HTML id="html" content="hello"/>

And I am loading that page in my corresponding controller like so:

var that = this;
$.get( "././util/cam/takePhoto.html", function( data ) {
that.getView().byId('html').setContent(data);
});

Now I want to trigger functions of my controller from inside that takePhoto.html.
How do it do this? I have not found any solution yet.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 12, 2017 at 09:20 AM

    Do I need to provide additional explaination because the question is unclear or is it simply not possible to do what I want to do?
    Need feedback, thank you in advance.

    Add comment
    10|10000 characters needed characters exceeded