I have a form, I've been doing this in javascript:
entry = $('busCalForm').serialize(true);
entry = JSON.stringify(entry);
new Ajax.Request("modules/buscal/processes/saveBooking.php", {
parameters: "year=" + year + "&recnum=" + busmstr_id + "&json=" +
entry,
onSuccess: busCal.gotEntry.bind(this),
onFailure: busCal.gotFailure.bind(this)
});
But i have a user that has typed a # in one of the fields, and the
script dies. How can I effectively escape an entire form, without
having to get the value and escape them individually? Is there a
command I'm missing?
-David
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---