Hi,
I have a html pages that call a javascript.
In the javascript file i call two URL that response with a text.
For do this i use Ajax Call with the code below :
With this code in a function, i recall the function in 2 step.
The first with pass IP1, the second pass IP2
If the HTML and JS file is on my pc (desktop directory) the system work on every IP.
If i put this file in my server online, i read only the IP2.!
I don't understand how works only the second ip.
I try to change the sequence IP2 than IP1, nobody, only an IP works!
help me please !
- function pass(ip){
- $.ajax({
- type: "GET",
- url: 'http://'+ip,
- dataType:"text",
- success: function (data2) {
- $('#respose').text(data3);
- }
- });
- }