Take the 2-minute tour ×

Hey, friend. as show in title: My aim is "use ajax to connect with client side written with asp.net and server side written with whatever", can I use a file instead of server side "apache http server + PHP + MySQL"? Instead of server side tech composite, the Demo still need to show ajax's asynchronous power, Is the design workable? thanks first:)

share|improve this question
A file? for what? Breaking out of jail? Soothing off a rough edge? –  Marc B Apr 25 '11 at 2:43
Just for doing an AJAX demo, friend. This solution use a html page instead the complexity of deploying server-side techs. –  parsifal Apr 29 '11 at 1:33
add comment

1 Answer

up vote 1 down vote accepted

Unless I'm mis-understanding your question, yes, you can use a static file instead of a dynamically generated PHP/MySQL scenario...for instance, pulling in an XML file:

<script type="text/javascript">
var xmlhttp;
if (window.XMLHttpRequest)
  xmlhttp=new XMLHttpRequest();
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        //do something with it

share|improve this answer
Exactly what I means, I also have a trial on html page as a virtual server, it also works :) –  parsifal Apr 28 '11 at 3:28
add comment

Your Answer


