http://www.perlmonks.org?node_id=880504


in reply to Re^2: cgi scripts running javascript and passing control back and forth
in thread How to allow a user to reorder rows from a database using a web form?

....Does the javascript code get embedded in the perl script? I've seen some examples of this. Does the perl script load the javascript? Do the function definitions go into a separate file? How does the cgi script even know that JQuery-ui even exists?

Um, holy batguano batman!

Drop whatever you are doing now and read about the internet on wikipedia.

Read about the World Wide Web and web pages.

Or watch a video like World Wide Web in Plain English

Eventually go to Tutorials: Web Programming: CGI Programming

CGI Programming 101

Ovid's CGI Course