I'm trying to get data from a site with this:
$.get(wallpaperUrl, function(data) {
html = $(data).find(".photo").html();
wallpaper.img = $(html).find("img").attr("src");
$('#MainPanel').css('background-image', 'url(' + wallpaper.img + ')');
});
This works no problem when viewing it on a desktop, but when its run on a mobile version of the site it completely messes up due to the mobile view not having this section of the website included.
Is there any way to get data from a desktop website on a mobile website? Again I'm not viewing the form, I'm just grabbing data. I cant get the data I want on the mobile site, I need the desktop site.