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 -~----------~----~----~----~------~----~------~--~---
