Hi Jonathan,
I can repro your issue with the third sample in the package.
Here I did a really simple test, I wrote following code in html to see if the app functions well.
<button id="helloButton" onclick="btclick()">Say "Hello"</button>
<div id="greetingOutput"></div>
<div id="greetingOutput1"></div>
<script>
function btclick()
{
var userName = document.getElementById("nameInput").value;
var greetingString = "Hello, " + userName + "!";
document.getElementById("greetingOutput1").innerText = greetingString;
}
</script>
I can see that when we back to the app from the app list, the greetingOutput1 works fine, that means the JavaScript code executed as expected. In another word, the js behind the page which is home.js does not successfully add event to the button click when
the app resumes.
var helloButton = document.getElementById("helloButton");
helloButton.addEventListener("click", this.buttonClickHandler, false);
As a quick walk around I may suggest you statically write the code as I did, but this could not be a best practice, I'm still trying to find out if we have a better solution for you.
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.