Load URL contents into a variable

I am looking for a way in javascript/jquery to load the contents of a URL into a variable.
Blowfelt82Asked:
Who is Participating?
 
Gurvinder Pal SinghConnect With a Mentor Commented:
use load() method to get the content of a URL into a div, and then you can take it from that div
http://api.jquery.com/load/

also check get() method's success event
http://api.jquery.com/jQuery.get/
0
 
Blowfelt82Author Commented:
Ok this looks promising, as far as you know would this work for external websites outside of my own domain?
0
 
Gurvinder Pal SinghCommented:
Nope, only for the same domain....for external domain, you need to get the content from your server side script
0
All Courses

From novice to tech pro — start learning today.