in reply to Mojolicious/Ajax Server-Side File Tree
what exactly does my Mojo code need to do to respond to the AJAX post properly?
use post with a suitable /path as examples in Mojolicious::Lite +and jQuery +AJAX + Mojo::Template and return the content
What is the strategy I need to implement to make the appropriate post response from my server?
Read the basic introductory tutorial on Mojo ... or view the slideshow/video ... and run the examples and play with them (or make them run) ... save each change to a different file ... review as necessary ... repeat as necessary ... and then you're done :)
Then you can use param like Mojolicious::Lite +and jQuery +AJAX + Mojo::Template and return some content
Old CGI Connector
Looks like its missing the following (needs read use CGI or die; Ovids CGI Course/Ovid's CGI Course )
use CGI(); my $q = CGI->new ; my $dir = $q->param('dir');
See also
Mojolicious::Lite +and jQuery +AJAX + Mojo::Template
Re: Perl CGI multiple buttons (http/ajax), Re: How do I mix up Perl and jQuery (for everyone), Post from jQuery to Perl - can't access parameters
How do I mix up Perl and jQuery (for beginners)
Mojolicious::Lite +and jQuery +AJAX + Mojo::Template
Using Perl, jQuery, and JSON for Web development
Basic debugging checklist
brian's Guide to Solving Any Perl Problem
CGI Help Guide
Troubleshooting Perl CGI scripts
learn about the internet, Web Programming: For Beginners, to get an overall picture of how the internet works, how tcp/ip, sockets, html, ajax, all fit together.
Re: How do I mix up Perl and jQuery (for everyone)
Simple example of CGI (Perl) + HTML + CSS + Javascript/jQuery + Ajax
use CGI or die;
Mojolicious::Lite +and jQuery +AJAX + Mojo::Template
Re: Perl CGI multiple buttons (http/ajax), Re: How do I mix up Perl and jQuery (for everyone), Post from jQuery to Perl - can't access parameters
|
|---|