I am not happy with generating the html tags using C code, I want to have independent html pages which send their requests to the CGI using ajax. So I will have an static html page which communicate with my device using Ajax. Any body has done any example? Any idea?