On Thu, Oct 15, 2015 at 5:40 AM, Aniruddha Pandit <[email protected]
> wrote:

> Now how do I get the script to run that source file, states.pl ?
> Currently it is giving me a 404 Not Found error. I have tried putting the
> script in the root, public and the folder in which the script for the form
> exists to no avail.
>

Is states.pl a Mojolicious app?

For testing purposes, and proof of concept:

Start states.pl with something like:

$ mojo states.pl daemon

Update your jQuery with:

source: "http://localhost:3000";, (don't specify states.pl because, per the
command above, it's already listening on port 3000)


Your jQuery should now send a GET request to http://localhost:3000 which
states.pl will handle.

This is a proof of concept to prove to yourself that you can get the
Mojolicious app and the jQuery code to work.  You'll then of course update
all your locations as your app progresses from PoC to production.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to