Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

[OT] Syntax for: AJAX Prototype JSON response

by graq (Curate)
on Feb 19, 2007 at 12:16 UTC ( #600822=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <script language="javascript" type="text/javascript" src="prototype.js
    +"></script>
    <script>
    ...
    </script>
    
    <a href="#" onClick="javascript:ajax_test();">TEST</a>
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    
    print "Content-type: text/javascript\n\n";
    print $js