[Proto-Scripty] Re: Using Ajax.Request and evalJS to load functions on the fly

2009-08-20 Thread T.J. Crowder
Hi, Can you post a minimal, self-contained example[1] of the problem? [1] http://proto-scripty.wikidot.com/self-contained-test-page -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Aug 19, 2:39 pm, Donnie Carvajal

[Proto-Scripty] Re: Using Ajax.Request and evalJS to load functions on the fly

2009-08-19 Thread Donnie Carvajal
HI T.J., Will this work with Ajax.Request? I changed my script so that it is created instead of defined and I still can't access it using evalJS. Donnie -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of

[Proto-Scripty] Re: Using Ajax.Request and evalJS to load functions on the fly

2009-08-18 Thread T.J. Crowder
Hi, They're accessible from anywhere after they're evaluated, but mind how you declare them, because of a bit of a quirk about how they're evaluated. There's a badly misplaced note about this in the documentation, at the bottom of the discussion of Ajax.Updater[1]. It really should be in the

[Proto-Scripty] Re: Using Ajax.Request and evalJS to load functions on the fly

2009-08-18 Thread Miguel Beltran R.
maybe http://proto-scripty.wikidot.com/prototype:how-to-load-scripts-dynamically 2009/8/18 Remah donnie.carva...@tfmx.com I am trying to call a JS file using Ajax.Request that will return a javascript function. This function will be used by code taht will be injected into a div. Is this