I haven't learned AJAX yet (hopefully this summer), but I don't think
you can do it exactly as you have envisioned.
The CGI/Perl script runs on the server and produces some static HTML
code which contains the AJAX. The script finishes. The HTML is sent to
the browser. The browser then renders the HTML and runs any JavaScript
it finds. At this point, you can prompt the user for input. (Or use
plain HTML without JS and just have an HTML form.) If you are using
AJAX, you can now have the JS sent the input to the server and call
the script with the data. The script can generate some output that the
JS would add to the webpage.
The script itself can not directly ask for input.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to