Alex McAuley wrote: > var request=new Ajax.Updater('element','/url',{ > method: 'post', > evalScripts: true, > parameters : > { > id: id, > page: page > } > > > }); > request=null; > > - works fine... > > Its probably a syntax error in your returning javascript > > Alex Mcauley > http://www.thevacancymarket.com
Thanks Alex, my error was trying to put evalScripts:True after the parameters bracket. > > ----- Original Message ----- > *From:* bill <mailto:will...@techservsys.com> > *To:* prototype-scriptaculous@googlegroups.com > <mailto:prototype-scriptaculous@googlegroups.com> > *Sent:* Tuesday, August 25, 2009 2:26 PM > *Subject:* [Proto-Scripty] ? of format of evalScripts > > My function is: > new Ajax.Updater('showMessageDiv', 'mail/process_message.php', { > parameters: $('showMessageDiv').down('form').serialize(true), > onFailure: function(response) { > alert ("mail.js: failure to submit form - getmessage"); > } > }); > > When I try to add evalScripts:true so I can download and evaluate > scripts I get a syntax error, no matter what I try. > > Would someone please show me the correct format to add > evalScripts:true the this function ? > > -- > Bill Drescher > william {at} TechServSys {dot} com > > > > > -- Bill Drescher william {at} TechServSys {dot} com --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---