I have this sample page:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ajax Page</title>
<script type="text/javascript">
function ajax_hello() {
alert ("hello");
}
alert ("Hello from JS");
</script>
</head>
<body>
This is the Ajax page.
<a href='#' onclick='ajax_hello();'>Click here to fire off JS function</a>.
</body>
</html>
I am calling it with this:
new Ajax.Updater($(element), page, { method: "get", evalScripts: true });
The alert is running, but the function is not registering (ajax_hello()).
Is there a way to get ajax to register a javascript function to the calling page?