in reply to How do I mix up Perl and jQuery (for beginners)
my $app = sub { return [200, ['Content-Type' => 'application/xhtml+xml'], [<<'END_ +HTML']]; <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="http://code.jquery.com/jquery-2.0.3.min.js"></scr +ipt> <script> jQuery(document).ready(function(){ jQuery('p').append(' Hello world from jQuery!'); }); </script> </head> <body> <p>Greetings.</p> </body> </html> END_HTML };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How do I mix up Perl and jQuery (for beginners)
by eyekona (Acolyte) on Aug 21, 2013 at 14:27 UTC | |
by marto (Cardinal) on Aug 21, 2013 at 15:05 UTC | |
by eyekona (Acolyte) on Aug 22, 2013 at 08:00 UTC |