[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 78
  • Last Modified:

json with xmlhttprequesr

BUT in javascript any external connections like AJAX XMLHttpRequest() or the newer WebSocket( )  WILL NOT WORK in a browser, because the XMLHttpRequest() requests a connection to the ajax URL which does not exist in a "File System" environment. So to have ANY javascript with the XMLHttpRequest() you MUST get a windows operating system server "SET UP" to handle web connection request that are use in the XMLHttpRequest() operation.


i was reading as above.

any good end to end examples, links on this?(prefrably using java web servers like tomcat etc rather than .Net engines(actually either is fine)

please advise
0
gudii9
Asked:
gudii9
2 Solutions
 
Kim WalkerWeb Programmer/TechnicianCommented:
Without knowing the context of this comment, I'd have to say it is utterly false. However, in the context of a localhost-only, non-internet, non-intranet situation, it might be true.

Where did you find this statement?
0
 
Dave BaldwinFixer of ProblemsCommented:
AJAX makes an HTTP connection to a web server to get a response.  The normal file system does not have a way to respond to an HTTP request so you can't use AJAX to open local files.  A web server is necessary but it can be Linux or even Mac OSX instead of Windows.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now