So I want to get the xml data from this URL on my HTML5 JS Native UI project
http://interaqtive-studios.com/labs/LiveNSE/webapi.php
how do i work this out
So I want to get the xml data from this URL on my HTML5 JS Native UI project
http://interaqtive-studios.com/labs/LiveNSE/webapi.php
how do i work this out
Firstly, it doesn't parse as valid XML, but this tutorial shows how to use XML with JQuery. You need to change their URL (jquery_xml.xml) to yours/
this is my code... works ok on my browser (chrome) but not on my phone ...
Note that I'm running native html/js project
the xml isnt valid because my webhost adds some analytics script at the end but i take care of it in the code.
fetch.addEventListener("Clicked", function()
{
alert('test');
var url = 'http://interaqtive-studios.com/labs/LiveNSE/webapi.php';
$.get({
url: url,
dataType: 'text',
success: function(d){
//console.log(d)
alert(d);
},
});
});
What is the error message you get?