open
Public

I know it is possible to call javascript function in ForeUI  but I need to do the reverse

Javascript function call ForeUI Custom Event

 

Imagine a Do_Login custom event in ForeUI

 

<foreui>

Do_Login()

</foreui>

 

Now javascript to call the ForeUI Do_Login Custom Event

<script>

function UpdateLogin() {

{FOREUI.parent(Do_Login);

}

 

</script>

 

???

Is that possible?

 

1 answer

Staff February 28, 2016

ForeUI is using JQuery’s event model, so calling the custom event is simply.

Say your custom event is a global event with name “Do_Login”, you just need to call this in your Javascript code:

$(document).trigger("Do_Login");
#1

Please login or Register to Submit Answer