When you are connecting from JavaScript to a webserver, you need to make sure to setup your webserver (Apache?) in a way it allows requests from other domains (cross origin scripting). Otherwise, when you try connecting to your service, you will get an error message similar to "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '...' is therefore not allowed access." You can check the Chrome/Firefox JavaScript console to verify that this error message appears.
Please see this post and try to google cross origin scripting and the webserver you are using (the exact steps depend on the product), and you'll find a step-by-step guide how to fix this issue.
Best,
Martin
E
Edgar Macas
said
about 9 years ago
Greetings ..
Thanks for the help and that was the problem, change the settings in my virtualhost with Header set Access-Control-Allow-Origin "*" and it worked perfectly
Edgar Macas