#! /usr/bin/python import cgi import cgitb ################################################ # AjaxResponse ################################################ def AjaxResponse(): Message = '

To clear, click here' Text = '

Hello from Ajax - %s

' % Message return Text ################################################ # AjaxResponse ################################################ def main(): ReplyText = AjaxResponse() print 'Content-Type: text/html\r\n' print '\r\n' print ReplyText if __name__ == "__main__": cgitb.enable() main()