Hi
Thanks for the reply. I have tried a few different methods with the .load method
I tried something as simple as this:
<body>
<script>
$('#result').load('feed://www.vetsonline.com/annonces/rss.php?idp=18&id_rss=80&site=14&page=accueil&c_texte=&c_secteur=&c_type_transac=&c_type', function(data) {
alert('Load was performed.');
console.log(data);
});
</script>
<div id="result"></div>
</body>
I tried it with and with and without the 'data' and console.log but no joy. It will load any file locally but not remotely.
Can i use .load to load a remote .php file and console the data so i can understand the structure and then manipulate the data afterwards?
I have done something similar with the .get method which kind of works for an XML file, but again its locally
<script type="text/javascript">
$(document).ready(function()
{
$.get('rss.xml', function(d){
//$('#postlist2').append('<h2> Latest stories from vetsonline </h2>');
$('#postlist2').append('<dl />');
var html = '<ul data-role= "listview" data-filter="true">';
$(d).find('item').each(function(){
var $book = $(this);
var title = $book.find("title").text();
var slink = $book.find("link").text();
var description = $book.find('description').text();
//var imageurl = $book.attr('imageurl');
html += '<li>';
//var html = '<div class = "newsStories" ';
//html += '<dd>';
html += '<h3">' + title + '</h3>';
html += '<p> ' + description + '</p>' ;
html += '</li>';
//html += '</div>';
//html += '</dd>';
$('dl').append($(html));
html+= '</ul>'
$('.loadingPic').fadeOut(1400);
});
});
});
</script>
The above script is kind of what i am hoping to achieve after getting the data, with each entry clickable so it goes to a new page with all of the data.
Hope this helps a bit, sorry but i's still trying to get to grips with it all :-)