P
pantagruel
Hi,
I've got an application I'm working with that is using Ben Nolan's
behaviors library.
The following code is not working:
'span.datareference' : function (element){
element.onclick = function(){ alert("why not workee?");}
},
evidently the reason is that the parts of the document I want to
associate a behavior with are dynamically written from the response to
a Ajax Post from Prototype's library. I say evidently because the code
is not raising any errors in the error console, I put it at the
beginning of my rules definition and all the other rules are working,
and when I save the page to the filesystem and open it in the browser
it works.
Any suggestions?
Cheers,
Bryan Rasmussen
I've got an application I'm working with that is using Ben Nolan's
behaviors library.
The following code is not working:
'span.datareference' : function (element){
element.onclick = function(){ alert("why not workee?");}
},
evidently the reason is that the parts of the document I want to
associate a behavior with are dynamically written from the response to
a Ajax Post from Prototype's library. I say evidently because the code
is not raising any errors in the error console, I put it at the
beginning of my rules definition and all the other rules are working,
and when I save the page to the filesystem and open it in the browser
it works.
Any suggestions?
Cheers,
Bryan Rasmussen