After implementing AJAX for a section of my webpage, such as a comment box, I noticed that no JavaScript functions properly in the reloaded area. For example, similar to how it's shown on cutetime
. It seems like I have to reload the cutetime
command every time the comment box is refreshed.
While this solution does work, I'm concerned that I might be duplicating the cutetime
command. If I include a confirm box or any other function, they also appear twice.
To sum it up succinctly:
I'm looking for a method to ensure JavaScript functions correctly within a reloaded AJAX box.
P.S.: I believe there must be a simple solution since everyone seems to use it :)