html - How to create JSON response to AJAX request locally without WWW server -


I want to practice with JSON and AJAX only with HTML pages (no PHP, no espin, no ruby, No web server locally installed). I want to create web page which will produce JSAN data as a result for AJAX request.

Is this possible?

Added: Change it a bit, suppose I have a webpage (no asp.net, no php) with headset set to headset, how to create a web page with Jason data ( 'Content-Type: App / Jason');

You give AJAX request URL as "file: /// d: / test dot."

I think IE allows and Chrome does not. And I'm not sure all versions of IE support it.

Of course this 'reaction' will be static. It will not change on the basis of your request inputs.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -