I simplified the javascript file to just show an alert. And took the quotes off of the evalScripts:true. The AJAX page will fetch text, html, php but not javascript. Still looking at numerous tutorials and the documentation but it's pretty sparse and contradictory in a lot of places.
> >> >> <div id="newTable">NUMBERS</div> >> >> <script type="text/javascript"> >> function loadScript() { >> new Ajax.Updater('newTable', 'generateNumbers.js', { method: 'get' , >> evalScripts: true }); >> } >> </script> >> >> <form action=""><input type="button" id="resetButton" value="Refresh >> Table" onclick="loadScript();"/> >> >> In the external js file i have the following >> > <script type="text/javascript"> > >> alert("Hello"); >> > </script> > > The result is that the button clears the div, and doesn't populate it with > the contents of the javascript, it ends up being empty. > Any tips would be greatly appreciated. > > Thanks, > jim > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/wyzPLdqX0y8J. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.