View Full Version : Can't Figure this out - Ajax Get URL

Oct 25th, 2009, 11:53 AM
What in the world is wrong with this? I have been looking at it for hours.

url: "wifitos.html",
type: "GET",
dataType: "html",
error: function(){ $("#loading").html("Error Loading Site. Try again later.");},
beforeSend: function(){ $("#loading").show("fast");},
complete: function(){ $("#loading").hide("fast");},
success: function(html){

All the HTML tags are right. It shows the loading properly, but does not return an error and just says loading forever without loading wifitos.html.

Help appreciated!

FIXED! DON'T REPLY TO THIS THREAD: After hours of trying to figure this out, I find it 10 sec after I post this thread. Go figure. It was because I had a return false before the ajax.