I'm downloading an external resource using a proxy on my server:
function retrieveOG(resource_url) {
$.ajax({
url: "/interne/asynch/fetchfeeds/FetchOG.aspx?resource=" + encodeURIComponent(resource_url),
success: function (page) {
var mypage = $page;
console.log($page("meta[name='og:title']"));
},
error: function () {
console.log("error");
}
});
}
basically, it send the url to my server, which download the page and return to the client the whole page. All of this because I need to catch the meta tags of a page.
But it says ReferenceError: $page is not defined
. Where am I wrong?