in reply to [OT?] formatting response text for AJAX widget

I'm not sure if this is it, but your innerHTML enclosing quotes don't match. The next to last '; should be \"; And I think you need to escape the backslashes within the innerHTML quotes.
$response = "\$('override_$componentId').innerHTML=\"<a href='#' onCli +ck='javascript:makeForm( \\"$componentId\\", \\"$componentType\\", \\ +"$newTitle\\");'>$newTitle</a>\";";

Replies are listed 'Best First'.
Re^2: [OT?] formatting response text for AJAX widget
by geektron (Curate) on Aug 04, 2006 at 19:45 UTC
    Adding more toothpicks (  \\" ) is what fixed it.