Evalscripts

The-PISW
Fri, 12 Oct 2007 04:45:27 -0000

Hey all,
I''m just checking my understanding.  Would someone be so kind as to
comment on the following?

Event.observe(''this_link'', ''click'',
function() {
AJAX.Updater(''that_div'', ''my.php'', {
evalscripts: true}) });




///////
my.php

echo(" alert(''Loaded'')");


There''s a lot more to all of it than that, but this is where
I''m
hitting problems and I have no idea why.  this is my first time using
evalscripts and I''m a fairly novice prototyper (though an experienced
coder)

the eventual javascript will actually call Event.Observe again and
$F().present to validate form elements to submit data to a php file
that will insert an element into a database.

currently it''s not working for even the alert function.

Any help would be appreciated.