this is ajax.html ------------------------------------------------ simple ajax json example
click here
111213
212223
313233
-------------------------------------------- This is /cgi-bin/ajax.cgi -------------------------------------------- #!/bin/env python import random print "Content-type: text/html;charset=utf-8\r\n" data =[] data.append({"one":'Hello world',"two":12345678L,"three":3.1415926}) data.append(['to',"be","or",'not',"to",'be']) data.append({'title':"that's the question",'random':random.randrange(0,1000000)}) print str(data) ----------------------------------------------