Welcome to WebmasterWorld Guest from 54.146.240.181

Forum Moderators: incrediBILL

Message Too Old, No Replies

Remote document insertion on-the-fly

     

Brett_Tabke

3:30 am on Aug 30, 2000 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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

4:02 am on Aug 30, 2000 (gmt 0)

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



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

5:34 am on Aug 30, 2000 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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

6:18 am on Aug 30, 2000 (gmt 0)

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



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

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

8:19 pm on Sep 2, 2000 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month