homepage Welcome to WebmasterWorld Guest from 23.22.173.58
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Remote document insertion on-the-fly
Brett_Tabke

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29 posted 3:30 am on Aug 30, 2000 (gmt 0)

What is the easiest and most compatable way to insert a document from another document on-the-fly from a remote server? Jscript document write and a inline frame are two ways. Jscript has certain compatability problems that must be overcome and iframes are only available on Opera 4, IE 5, and Moz6, which limits its utility (no matter how attractive an option it is). So, what does that leave? Another js option I am overlooking that is more compat?

 

rcjordan

WebmasterWorld Senior Member rcjordan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29 posted 4:02 am on Aug 30, 2000 (gmt 0)

In certain circumstances, you can sniff the browser and then insert an iframe (if IE) or an ilayer (if NS).... LOTS of limitations, but it will work well for banners. The ilayer becomes too cumbersome if you are trying to do a vertical column, such as a newsfeed.

The above is essentially a js document.write at its core.

How about injecting the document w/ SSI?


Brett_Tabke

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29 posted 5:34 am on Aug 30, 2000 (gmt 0)

ssi - Not on the same server. I'm looking for a news distribution options. I've looked at all the others (news hub, moreover, isyndicate, etc), and I am looking for a better solution than they are presenting. There is something I don't like about each of their systems.

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29 posted 6:18 am on Aug 30, 2000 (gmt 0)

Brett, I'm using moreover on two sites. What is the limitation you're running into with their method?

I split their code up into separate js functions and took it to external files. It seems to work fine -- of course not for the 10% who don't run js, but these sites have lots of other js and css anyway.

However, I realize that I may be hitting other limitations and just not realize it. Would appreciate your view.

Hotrodder

10+ Year Member



 
Msg#: 29 posted 6:29 pm on Aug 30, 2000 (gmt 0)

I use the moreover XML feeds with my own script and I'm happy with it.

The only problems have to do with the fact the category I chose is a bit broader than I'd like, and the lack of information on some of the headlines. (There are at least 3 racers with the last name Schumacher and the headlines don't give you a clue what form of motor sports the headline is about)

<edit>
But the best way to fetch news is to write/find a PHP/Perl/ASP/Python/etc.. to grab and process the file then include the script with SSI on your page.
</edit>

Brett_Tabke

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29 posted 8:19 pm on Sep 2, 2000 (gmt 0)

Tedster; The moreover code isn't compatable with Opera 4. Not sure what it is, but it won't pass a jscript validator. The Moreover homepage can crash Opera 3.62. Look in your logs on pages that have Moreover code on them and you will see a wild set of bad hits and errors from various browsers having trouble with the code. So I don't have a great deal of faith in their setup. I won't put it on my pages.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
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