how to open external web address in div?
Posted: 24 December 2006 05:22 AM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2006-12-24

I need an external page to show up in a DIV tag in a page on my site.
For example if I want http://www.xyzabc.com to show up as content
in a DIV tag on a page located at
http://www.asdasdf.com 
Can anybody point me to some code or give me an idea
of how to do this?  I have seen web pages load into other web pages, this is what I need to do..
Thank you so much!

Profile
 
 
Posted: 26 December 2006 03:05 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  10
Joined  2006-10-02

You could use an iframe tag instead of a div. See source below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>iframe</title>
</
head>
<
body>
  <
p>My paragraph</p>
  <
iframe src="http://www.google.com" style="height: 300px; width: 300px; border: 1px solid black;" />
</
body>
</
html
Profile
 
 
Posted: 27 December 2006 01:45 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  2
Joined  2006-12-24

George, beautiful, thank you so much, I will try it, looks like exactly what I was looking for.

Profile