Hello,
I have a perl cgi.pm page I made that I now want to have it display a message that something is loading and then have that message go away when it has completed without reload/refresh. I loaded CGI::Ajax, but I have no clue on how to make an CGI::Ajax page. I see that the create a $pjx object and export perl function. They then run a $pjx->build_html function in which they pass in the $cgi object and a function name to make the html page (\&Show_HTML). In my code I have it calling $cgi->header and $cgi->start_html with things I want (i.e., the style sheet to use and location of a javascript file (main.js). If I use $pjx->build_html, how do I specify my css and js files? Lastly, if you clear that up, how do I do my initial requirement? Does anybody have a short example of how to display text in the manner I need (i.e., I have an Update button that once it is clicked with display loading... that will then run a function to load stuff, and then I need the message to save complete for a few seconds and then disappear)? By the way, do I need $cgi->end_html anymore? Do I find out param values with $cgi->param, or do I use the pjx object to do this? It is confusing on how to move from CGI.pm to CGI::Ajax.