Skip to content Skip to sidebar Skip to footer

Javascript Get Plain Text From Server

I want to receive a plain text(or any document) from my server as a string variable and for example show it in alert I tried this solution wordsurl = 'http://alpha/test'; function

Solution 1:

Ah, now I see..

You should serve your html page from a http:// server.. Not as a file file:// So setup a simple http server, and try to access it again. You could also serve it from the same server, like your app logic

Solution 2:

  1. URL not found.(Is http://alpha/test in your computer?)

Maybe you can change file:// to http://

Post a Comment for "Javascript Get Plain Text From Server"