I have problems making an JSONP with jquery mobile. I can´t received the data.
I put the code:
Could someone help me?
html:
</head>
<body>
<script>
$(function() {
$("#callAjax").click(function() {
$.ajax({
url: 'http://atcsat.es/App/ws/listadoModelos.php?callback=?',
type: 'GET',
dataType: 'jsonp',
error : function (){ document.title='error'; },
success: function (data) {
alert(data);
}
});
});
});
</script>
<div data-role="page" id="page">
<div data-role="header">
<h1>Page One</h1>
</div>
<div data-role="content">
<input id="callAjax" type="button" value="Errores" />
</div>
<div id="listadoListas"></div>
</div>
When i execute it says [object,Object] could someone help me about it?