Hey Guys,
I'm having a problem with ajax-calls in my jquery-mobile application. I'm doing an ajax call like
- $.ajax({
- url:SOMEURL,
- Origin: "*",
- dataType: 'json',
- success:function(data){
- alert(data);
- },
- error:function(xhRequest, ErrorText, thrownError) {
- console.log('xhRequest: ' + xhRequest + "\n");
- console.log('ErrorText: ' + ErrorText + "\n");
- console.log('thrownError: ' + thrownError + "\n");
- alert("Could not connect to Server!");
- }
- });
My Setup:
- - one PC that works as client,
- - one Server somewhere in the web
- - one PCServer that works as client and as Server running python-SimpleHTTPServer where the clients can run the script from. In addition there is an apache-server running on that machine that could replace Server
If SOMEURL points to a local apache-server
- - calling the page from PCServer - everything works fine
- - calling the page from PC - everything works fine
If SOMEURL points to Server:
- - calling the page from PCServer - everything works fine
- - calling the page from PC - get an Error but no specific information about what went wrong
Since I don't want to use the local apache server I need to use the Server. However I just can't figure out, why the PC can't get the information from Server
Can anyone help me please?
Thanks in advance
greets
golden_wing