Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

jQuery Post not working with text file on IIS

$
0
0

On my Windows Server 2012 R2 IIS 8.5, I've put a simple script for testing purposes and jQuery POST is not working with text file. It works with php though.

Example:

/* parse.js */

$(document).ready(function(){
   $.post("test.php", function( data ){
   alert(data);
   });

   $.post("test.txt", function( data ){
   alert(data);
   });
});

When page is loaded, test.php shows in alert box, but test.txt doesn't load an alert box. Does anyone have idea where is the problem?


Viewing all articles
Browse latest Browse all 780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>