I'm facing an issue. Here's the situation: I'm working on a quiz game where I need to implement a timer using JavaScript (jquery.timer.js). I have created a JavaScript file (question.js) with a method called startTimer, which utilizes the jquery.timer.js function to display the timer on the screen.
When the user clicks on the answer button, I call a managed bean method to validate their answer. If the answer is correct, I update the question on the screen.
My Questions: 1) How can I include both JavaScript files (question.js and jquery.timer.js)? 2) How can I execute the startTimer function when the form loads or when the question changes on the screen?
Additional Information: I am working with facelets and need to implement the above in myquiz.xhtml which utilizes the ui:composition tag.
Can anyone provide assistance with this situation?
Any help would be greatly appreciated.
Thanks & Regards, Rajeshwar