Say I have a JavaScript function that is inserted into the page after page load how can I then call that function. For example lets keep things simple. Say I make an Ajax call to get the markup of the script and the following is returned:
<script type="text/javascript">
function do_something() {
alert("hello world");
}
</script>
If I then add this markup to the DOM can I call do_something() later?
I'm use the jQuery JavaScript framework.