Earlier I was using wampserver 2.0h. Later I Uninstalled wampeserver 2.0h and installed 2.0i.
The problem is that i am encountering an apache error while running ajax scripts. Then I uninstalled the 2.0i version and installed 2.0h version. Now Its running fine! What may be the problem? Is it not possible to use 2.0i version?