XDK redirect to template file won't work correctly


#1

I am trying to redirect to a template file after an Ajax call using:

window.location.href = “templates/somepage.html”;

It goes to the page, however, on that page, the buttons won’t load properly and the JavaScript won’t get called when I click the buttons. I probably need some sort of callback because index.html needs to get called as well as templates/somepage.html.

NB: We are using the Ionic framework but I am not experienced with it, as I am a php developer. Also, I would prefer a non-jquery solution. Thanks.