jquery .post and .ajax always executing javascript
Hi,
I seem to recall some documentation on this feature but now cannot find it to save my life.
I am fetching some HTML which contains some JAVASCRIPT tags using jquery ajax features. If I receive the data back and then in the success function use .append to place it in the page the javascript effectively executes twice. Once as the retrieval happens and a second time as the .append is called (the second time in the context of the page).
I don't want this first execution, I only want the javascript to execute when I .append that code and I only want it to run in the context of the page.
I can think of many work arounds abut wanted to ask if there was an official setting for this.
Thanks in advance,
Dan