If it helps, I can replace the js with something real simple (an alert) and it still won't run in the AJAX page. If I put plain text or html or php in the external file it will run, but not javascript.
On Thursday, July 26, 2012 12:22:54 PM UTC-4, Jim Longo wrote: > > Hi, I'm very new to this so excuse my ignorance. > I've simplified this, but basically I have a function in an external js > file that I want to be able to re-run from my page using AJAX.Updater > > So in my html page I have the following section. A div I want to replace, > a function containing the Updater that I want to run from the button. > > > <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> -- 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/-/J37qs3VY54cJ. 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.