I developed a webpage which takes the wifi network name & password and invokes a script. This script validates the n/w name & password and connect to that network on success. I'm using jquery to call the script. Here is the code.
var request = $.ajax({
url: "/cgi-bin/wifi.sh?netwotk_name="+ssid+"&pswd="+pswd,
type: POST
)};
request.done(function(msg) {
alert(msg);
});
request.fail(function(jqXHR, textStatus) {
alert("failed");
});
This code is working good. Network also changing but i'm not getting any thing back. I know IP changed. But how I can confirm that when networked is changed and what is the new IP?