How to use Event System?

Mar 12, 2013 at 9:29 PM
I'm trying to subscribe to "onLoadingError" event. Can you tell me how to subscribe to this event and fire custom action?

Thanks
Coordinator
Mar 15, 2013 at 8:56 AM
Edited Mar 15, 2013 at 8:57 AM
I guess you want to handle this event of a page. If so, just write some code like below:
var page = new nova.Page("mypages/home.html");
page.onLoadingError(function(ex){
    alert("Loading error:" + ex);
    nova.application.gotoPage("url of this page");
});
nova.application.gotoPage(page).
Hope it helps.
Mar 15, 2013 at 11:05 PM
Edited Mar 16, 2013 at 6:50 PM
Thanks for you response. It helped me alot.

Thank you very much.