Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: [OT?] formatting response text for AJAX widget

by jfluhmann (Scribe)
on Aug 04, 2006 at 19:25 UTC ( #565728=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://565728]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2020-02-22 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (98 votes). Check out past polls.

    Notices?