Getting PopUp of IP Address On ajax call On IPhone and IPad
In my jquery mobile project I have the following code being called when the user clicks the 'SUBMIT' button:
- $('#submitBtn').click(function () {
- if (validateData()) {
- $.mobile.changePage('#activelog', { transition: 'pop', changeHash: false });
- }
- });
This page makes a call to the server using ajax to check the username and password and returns a boolean value. On the page change it goes to the activelog page.I then have the following code:
- $('#activelog').live('pagebeforeshow', function (event, ui) {
- getListInfo();
- });
My ajax call is as follows:
- function getListInfo() {
- $(function () {
- $.ajax({
- type: "POST",
- beforeSend: function () { $.mobile.showPageLoadingMsg(); },
- async: true,
- crossDomain: true,
- url: "myHandler.ashx",
- contentType: "application/json; charset=utf-8",
- data: "{type: 2}",
- dataType: "json",
- success: function (r) { ..... }});
What I'm noticing is that before the data is pulled up and placed in a list control it gives me an alert box with the IP address of the server. I've experienced this on the IPhone and IPad. However, it works fine in the desktop browser. Any ideas as to what could be causing this problem?