I'm using .get()
to get html that include scheme relative. (like <a href="//example.com/pic.gif">
)
phonegap don't recognize the //
and need http/s
.
Any tip for auto fix for that?
$.getJSON('http://www.example.com/jsonAPI.php?action=post&postid='+id, function(data) {
//alert("success");
$('#setTitle').html(data.post.title);
})
.fail(function() { alert("error"); })
//.done(function() { alert("complete"); });