read pages html with jquery -
i want use jquery read html of web page. use following
$.ajax({ url: page, datatype: 'html' });
where page address of page.
this works fine if want read page same domain calling page.
however if want read page different domain, returns blank.
anyone know how can read html different domain?
it's simple: can't. there tricks execute javascript code other domains (jsonp), if other side supports it. html, out of luck.
the way can go have proxy running on server redirects requests through domain.
Comments
Post a Comment