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" <[email protected]>
wrote:
> 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: [email protected] 
> [mailto:[email protected]] On Behalf Of T.J. Crowder
> Sent: Tuesday, August 18, 2009 4:24 PM
> To: Prototype & script.aculo.us
> Subject: [Proto-Scripty] Re: Using Ajax.Request and evalJS to load functions 
> on the fly
>
> 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 String#evalScripts documentation, and it's on
> my list, but I haven't had a chance to move it.
>
> [1]http://prototypejs.org/api/ajax/updater
>
> HTH,
> --
> T.J. Crowder
> tj / crowder software / com
> Independent Software Engineer, consulting services available
>
> On Aug 18, 8:00 pm, Remah <[email protected]> wrote:
> > 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 possible?  It seems like the function is
> > accessible within the CallBacks of Ajax.Request, but they are not
> > accessible outside.
>
> > Thanks for your help,
>
> > Remah
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to