I have a simple page that I need to load .html file to a DIV ,but I always have 404 NOT FOUND
I have a file called demo_test.txt in the same folder of my JSP file,I
Like Claudio Redi said...
you're trying to load a file relative to the path you are at. Try hard coding the file path and then viewing it your browser and then it should load.
so your line will be like this (if file is located in WEBROOT /MY_APP/Files)
$("#div1").load("/MY_APP/Files/demo_test.txt", function(responseText, statusText, xhr)
or the full path
$("#div1").load("http://MyWebsite.com/MY_APP/Files/demo_test.txt", function(responseText, statusText, xhr)