On Nov 12, 4:37 pm, Namotco <[EMAIL PROTECTED]> wrote: > Maybe this evals, but the functions do not get exposed. How should I > be doing this? > > function reCalc() { > var sendSymsN = new Ajax.Request(url, {method:'post', onSuccess: > function() { > var evalMe=decode(transport.responseText); // > returns > ( fname = function() { doStuff; } > eval(ev); > } > } > ); > > }
Change server response from: `fname = function(){ doStuff; }` to: `window.fname = function(){ doStuff; }` -- kangax --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---