Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    print qq{
    {"componentId": "$componentId",
     "html": "<a href='#' onClick='javascript:makeForm( \"$componentId\", 
    +\"$componentType\", \"$newTitle\");'>$newTitle</a>"}
    };
    
  2. or download this
    jsonText = eval( '(' request.responseText ')' );
    $('override_' + jsonText.componentId).innerHTML = jsonText.html;
    

Log In?
Username:
Password:

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

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










    Results (96 votes). Check out past polls.

    Notices?