Forum Moderators: phranque

Message Too Old, No Replies

span with a url

loading external page fragments

         

eveningwalk

3:40 am on Jul 15, 2006 (gmt 0)

10+ Year Member



I'm looking for something servlet/JSP-based which enables me to do

<span url="external url"> or

<div url="external url">

ie, loading external page/page fragments in a span/div.

Thanks,
ew

Rambo Tribble

4:40 am on Jul 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The iframe is intended to fulfill this role, of loading an external source into the page. Alternatively, allowing content to be added dynamically to a page is what AJAX is designed to do.

jtara

12:49 am on Jul 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There's really no good way to do this.

iframe is non-standard.

Dynamic HTML will do this (not sure the AJAX moniker really applies here) but this content won't be indexed by search spiders. (Ditto for iframe).

You could implement on the server side, increasing your bandwidth usage and degrading performance.

In any case, unless the site you are pulling from is your own, it's most certainly bad Internet citizenship.

opifex

7:44 am on Jul 19, 2006 (gmt 0)

10+ Year Member



iframe within a div tag is really the best anwer and it does work. as far as not being chased by bots... could be a good thing for temporary content that changes frequently.
here's one example:

<DIV
STYLE="position:absolute;
left:10;
top:10;
width:150;
height:200;
clip:rect(0,200,224,0);"
>
<IFRAME
SRC="http://www.myoldsite.com.mx/newspage.html"
WIDTH="150"
HEIGHT="200"
MARGINWIDTH=10
MARGINHEIGHT=10
FRAMEBORDER="NO"
SCROLLING="YES"
STYLE="border-width:5;
border-color:#000000;
border-style:solid;"
>
</IFRAME>
</DIV>