.
onFailure: function() {alert(bombed);},
onSuccess: ...
On Jul 27, 2012 12:04 AM, Jim Longo wrote:
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
called are functions.
having code in an external file indicates to me you want to call a
function.
I think a little more clarity might help us help you.
On Fri, Jul 27, 2012 at 10:21 AM, Jim Longo wrote:
Thanks for your response. I'm sorry, I forgot to mention I had tried
, Jim Longo wrote:
Thanks Phil,
I do want to call a javascript function.
But let me try to simplify my problem.
Here is a page . . .
div id=myDiv/div
script type=text/javascript
new Ajax.Updater('myDiv', 'XYZ.html', {evalScripts: true}) ;
/script
Here is the page being called
P.S. The reason I haven't tried Jason's code yet, was there were too many
elements in there that I didn't understand at all, and I'm loathe to open
any more wormholes. But I'll take another look at it.
--
You received this message because you are subscribed to the Google Groups
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
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
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