Your server side script must be a valid piece of JS code -- your example is not.
So, you might want to try something like
response.write("<html><body>");
var headers = request.headers();
response.write(headers["REMOTE_ADDR"]);
response.write("</body></html>");
Of course, for more advanced stuff, you should use templates to generate output.
Sincerely,
Ondrej Zara2010/7/20 Nilima Chavan <nilima...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "v8cgi" group.
To post to this group, send email to v8...@googlegroups.com.
To unsubscribe from this group, send email to v8cgi+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/v8cgi?hl=en.
--
You received this message because you are subscribed to the Google Groups "v8cgi" group.
To post to this group, send email to v8...@googlegroups.com.
To unsubscribe from this group, send email to v8cgi+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/v8cgi?hl=en.
Is that means if I am writing any web application based on v8/v8cgi, I need to write all HTML pages using java script language?