The script that loads the div is:
function scriptChain (evt, newDivID, chainToProgram, chainFromFormID) {
// scriptChain
//alert (scriptChain: + newDivID + - + chainToProgram + with
+ chainFromFormID +);
stopBubble (evt);
//
I understand how Prototype works with regards to the removal of
script tags after evaling the results of an Ajax request. However,
I was doing some research and am now starting to wonder why the way I
declare functions works.
According to the Prototype documentation, you need to declare the
I've create an Object in my pages script tags, something like this:
a = new A();
and when I want to call a method of a in the script which is actually
the ajax content (evaluated with .evalScripts) everything is fine. but
when the creation and the calling code, both are in the ajax contents