WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-2003, 07:44 PM
WebProWorld Member
 

Join Date: Jul 2003
Location: SC
Posts: 65
design@divergentweb.com RepRank 0
Default One Page on Multiple Sites - Without Frames?

I have been trying to figure out how to reuse articles from one site to the next without using frames. Let's say I write an article on Email Virus' (virii, really) and do not want to use frames to place the artricle on 2 other sites I have.

I also do not want to have to remember that I have three copies of this article on 3 different sites and hunt it down for updating.

Ideas on how to implement this? I'd think it would be pretty easy somehow especially since I use ASP.
__________________
George Conklin
design@divergentweb.com
www.divergentweb.com
Reply With Quote
  #2 (permalink)  
Old 09-07-2003, 11:14 PM
redcircle's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Grand Rapids, MI USA
Posts: 553
redcircle RepRank 0
Default

asp or php.

it would be very easy to do that with the help of a database also
Reply With Quote
  #3 (permalink)  
Old 09-07-2003, 11:40 PM
WebProWorld New Member
 

Join Date: Sep 2003
Location: San Diego, CA
Posts: 4
orvadotech RepRank 0
Default ServerXMLHTTP

If your server is running Adv. Server 2000 and you have the Microsoft XML component installed (is it installed by default?), you can pull a page from any server. Try this code on your server to test it out.

<%
dim Htp, x, Out

set Htp = Server.CreateObject("Msxml2.ServerXMLHTTP")
x = Htp.open ("GET", "http://www.google.com/", false)
Htp.send()
out = Htp.responseText

%>
<html>
<head>
</head>
<body>
<H2>Server.XMLHTTP Test</H2>

<XMP>
<%= Out %>
</XMP>
</body>
</html>
__________________
Orvado Technologies http://www.orvado.com
Reply With Quote
  #4 (permalink)  
Old 09-08-2003, 10:41 AM
WebProWorld Member
 

Join Date: Aug 2003
Location: Seattle
Posts: 39
GooMoo RepRank 0
Default

Yeah try using asp includes. Single out only the article text, maybe even make two files if you have like an article title and image that the top that can't be put in the same place as the article itself. if the text formatting is dictated by your css rather than inline with the text it should look fine on whatever page you put it in.
Reply With Quote
  #5 (permalink)  
Old 09-08-2003, 11:39 AM
swstyles's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: Phoenix, AZ
Posts: 167
swstyles RepRank 0
Default

See if the site you are grabbing content from has webservices. If it does then that site can feed you only the content you desire.
__________________
Daniel M: South West Styles/STEELid
daniel@steelid.com
http://www.steelid.com
http://www.thephototool.com
Reply With Quote
  #6 (permalink)  
Old 05-25-2005, 08:34 PM
WebProWorld Member
 

Join Date: Jul 2003
Location: SC
Posts: 65
design@divergentweb.com RepRank 0
Default

Thank you all for your answers.

Simple answer years later. I could not get ASP includes to pull pages from other domains, don't want to be limited to using (or understanding) Windows Advanced Server, and do not want to be limited to a database.

The answer it turns out, only one among many came in the form of a PHP include. The target content should be unformatted HTML with no <HTML>, <HEAD> or <BODY> tags, and pictures need to have full paths. The code is simple:

<? include "http://www.articleresideshere.com/article.xyz"; ?>
__________________
George Conklin
design@divergentweb.com
www.divergentweb.com
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0