Réduire
Brouillon
0
01/03/2013
0
Exécuter du javascript après mise à jour d'une page via AJAX
Mots-clés:
That will always happen with scripts loaded via AJAX into the document. To get around this you can do two things.
  1. Use DOM to get the AJAX response, and then append it to the head of the document so that it will be treated as a script.
  2. Use eval(). I discourage doing this, but some people don't care about using it, especially when the code is small.