Ok ,
- please go through the sample from the video. Make sure it is working for you
- then change requested source to yours and verify whether you have faced cross-domain request problem : basically you can make http request only within your domain otherwise it will not work without any sign -- no response back. But you can get javascript from any domain and that feature is a workaround
That cross-domain http request problem is quite common -- google for solution or ask me for more info. Check jQuery --- it has already embedded mechanism to make cross-domain request with ajax but LIMITED to http GET
UPDATE : apparently Series 40 WEB local emulator allows cross-domain requests but cloud emulator does not.
this code below does not work in browser as it should not , but works on Series 40 WEB local emulator --- that is a bit confusing
Code:
$.ajax({
url: 'http://news.bbc.co.uk',
type: 'GET',
success: function(res) {
var html = '';
var headline = $(res.responseText).find('a.tsh').text();
html += '<li>' + headline+ '</li>';
$('#list').html(html);
},
error: function(jqXHR, textStatus, errorThrown) {
$('#list').html('<li><b>ERROR</b>: '+textStatus+'</li>');
}
});
Regards,
Igor