Thanks a million hhaamu that was beautiful! Here's what what I did --
added to ZooDemo.pm: sub js_esc { my $ref = shift; $$ref =~ s/'/\\'/; } then in the appropriate page: $m->interp->set_escape("j"=>\&js_esc); and the clincher in the Ajax call (same page): ...parameters: { name: '<%$data[1]|j,h%>' Which should make a nice short, sweet addition to the tutorial, methinks (if I have this all right): how to add an escape rountine for javascipt. BTW it must be "j,h" to avoid the error. Not too sure if I really need the "h" at all with the js call, but probably since it does appear in the page source, as this -- parameters: { name: 'heap\'s moose', wonder of wonders. Much thanks! I'll finish my re-write this weekend and let you all know. -- MK ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users