$('[data-role=page]').live('pageshow', function (event, ui) { try { alert("this worked!"); var connectionParams={}; connectionParams.apiKey = "b1bcbdac8f41458abdc03875086673db"; connectionParams.server = "http://solutions.bunchball.net/nitro/json"; connectionParams.userId = escape(""); connectionParams.signature = ""; connectionParams.debug = true; connectionParams.timeStamp = "1516593876"; var nitro = new Nitro(connectionParams); nitro.showPendingNotifications(); nitro.refreshNML(); } catch(err) { } });