How to get text inside a div/class from another website using JS or Jquery?

blankaqq

New Member
i got a website where i do movie reviews. The website is made using datalife engine and as little as i know about DLE, there are no way to use pluggins. I'm not a programmer, but i go allong, so try to be easy on explaining :PI'm trying to build a simple code that gets the text inside a DIV on the IMDB website, and prints out on mine. What i am looking for is a way to give the IMDB link of the movie when i'm reviewing the movie, and the scripts get's the element with the class name "titlePageSprite star-box-giga-star" and print it out on my website.I've been searching for this, and as far as i know, the best way is to use jquery(wich i know nothing about btw) and when i implement the code i think it's right, it simply doesn't print nothing out... What i teste out was thisPut this between the tag\[code\]<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>\[/code\](i think i've tried with a link from jquery 1.9 if you are asking)Then put this on the body for testing:\[code\]<script type="text/javascript">jQuery(function($){ $('#result').load('http://www.imdb.com/title/tt2306299/ #titlePageSprite star-box-giga-star');});</script>\[/code\]And tested printing out with this where i wanted to print\[code\]<div id="result"></div>\[/code\]Nothing happend at all...Can you give me a little help?
 
Back
Top