How to get contents of another website, I mean from the entire HTML code just by using jQuery and Javascript and then parse that content parsing every tag and every attribute from the response. Any Answer must be appreciated.
Asked
Active
Viewed 587 times
-2
-
2 question are here, and both already answered many times http://stackoverflow.com/questions/10642289/return-html-content-as-a-string-given-url-javascript-function http://stackoverflow.com/questions/10585029/parse-a-html-string-with-js – vitr Jun 14 '15 at 09:57
-
http://stackoverflow.com/questions/15005500/loading-cross-domain-html-page-with-jquery-ajax Else YQL might do the job. – Lain Jun 14 '15 at 10:24
1 Answers
-1
I guess u can achieve this using iframe or using jquery.load

Rajkumar
- 189
- 5
- 19
-
Both are restricted to same origin policy: https://en.wikipedia.org/wiki/Same-origin_policy – A. Wolff Jun 14 '15 at 09:53
-
@rajkumar same origin policy only allows data sharing between two URL of same origin and ajax also do the same. – API developer Jun 14 '15 at 09:58
-