Chris Sansom wrote:
> At 11:21 -0400 22/8/09, bill wrote:
>
>> now
>>
>> $('messageProcessForm').observe('submit',function(event) {
>> 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");
>> }
>> });
>> Event.stop(event); // will stop it doing its default action!
>> }
>>
>> the error changes to:
>> Error: missing ) after argument list
>> Source File:
>> <http://192.168.0.101/MP2010-v2/scripts/mail.js>http://192.168.0.101/MP2010-v2/scripts/mail.js
>> Line: 36, Column: 1
>> Source Code:
>> }
>> ^
>>
>> As far as I can see the parens and brackets are balanced
>>
>
> Nope - just loaded this snippet into BBEdit which has a very handy
> facility for seeing whether pairs of brackets (of all types) are
> balanced. You have no closing ) to match the ( after '.observe'. In
> fact you need a ');' at the end of the whole thing.
>
> And btw, shouldn't mail/process_message.php be in quotes?
>
right you are, both times.
Many thanks !
bill
--
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 [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
-~----------~----~----~----~------~----~------~--~---