homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

How can i display external info with javascript ?
is it possible to display a content of external folder in a page?

Msg#: 4203863 posted 2:45 pm on Sep 19, 2010 (gmt 0)

I need your help since i am not experienced with coding...

I have a movie review website which is running under vBulletin.


And i have imdb script which fetch movie information from imdb.com website. That script is located in a different folder since i could not make it compatible with vBulletin.


The result url of movie information page is :

http://www.my_domain.com/imdb/info.php?id=MOVIE_ID (movie id is numeric)

I can show the movie information with the iframe.

<iFrame src="{param}" width="100%" height="500"></iFrame>

Usage of the iframe in my forum :


Since each movie has different information, the iframe size may not be static. Ok, i can keep it static with a bigger size but then it will not look good in my page due to the space between iframe and rest of the message in post.

Is that possible to fetch the data through javascript and show it in my forum page as a part of message ?

Thanks in advanced...



10+ Year Member

Msg#: 4203863 posted 8:45 am on Sep 20, 2010 (gmt 0)

Welcome to the Webmasterworld.

It won't be possible to use JavaScript for that, due to the crossdomain policy security restrictions.

But you can use PHP (or any other server-side language) to retrieve the information you need from IMDB.


Msg#: 4203863 posted 10:29 am on Sep 20, 2010 (gmt 0)

Well thanks a lot for your kind answer alias.

But actually i don't want to retrieve information from IMDB. I already do that with a php script. What i would like to do is, i need to find a better way to show this information in my forum page instead of using IFRAME.

The imdb script is located at another folder of my website. (not in root directory but in a directory called imdb)

And each movie information page is something like : [my_domain.com...]

Above page is customizable. I can change the look and the size of the table.

So i would like to learn if there is any other way to show the above page instead of using IFRAME.



WebmasterWorld Senior Member 5+ Year Member

Msg#: 4203863 posted 4:58 am on Sep 21, 2010 (gmt 0)

You should be able to do that with AJAX. I understand vBulletin uses the Yahoo YUI library ? so check the YUI documentation on AJAX, I am not familiar with vBulletin OR YUI.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved