Print Page | Close Window

INCLUDE URL?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=13222
Printed Date: 30 March 2026 at 7:50pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: INCLUDE URL?
Posted By: BoLt
Subject: INCLUDE URL?
Date Posted: 05 January 2005 at 8:29am
I need to INCLUDE part of a page into another page using java or somthing but not server side code.
 
Is there any way I can include a file ie moreshop.asp form an external site ie http://www.kindways.co.uk/asp/hasgot/moreshop.asp - http://www.kindways.co.uk/asp/hasgot/moreshop.asp something like you would using the
<!--#INCLUDE file="../asp/hasgot/moreshop.asp"-->
 
but with the full URL path ?Confused
 
 


-------------
BoLt (Computer Engineer)
I suffer from Dyslexia, it means I can not spell to well not that I am thick.

www.welshlens.co.uk



Replies:
Posted By: dj air
Date Posted: 05 January 2005 at 9:14am
you want to include an external page, like aspin .com with their rating scripts?

if so try

<script src="URL"></script>

i use the above code for one of my appliucations, which has a built in remote whats on now feature.


Posted By: Mart
Date Posted: 05 January 2005 at 11:34am
Search these forums for XMLHttp...  it lets you download data from other sites, you have to pass parameters on via querystring or post though


Posted By: BoLt
Date Posted: 05 January 2005 at 12:01pm
Thanz

I could not see for looking and did not think of thatLOL. That help lots

Thank you again



-------------
BoLt (Computer Engineer)
I suffer from Dyslexia, it means I can not spell to well not that I am thick.

www.welshlens.co.uk


Posted By: neotrix
Date Posted: 06 January 2005 at 12:08am
<%

    Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
    objXMLHTTP.Open "GET", "http://www.yahoo.com", False
    objXMLHTTP.Send
    strPageText = objXMLHTTP.responseText
    Response.Write(strPageText)
    Set objXMLHTTP = Nothing

%>

 


-------------
http://www.muhammadbinyusrat.com/blog/" rel="nofollow - Say to the believing men..


Posted By: BoLt
Date Posted: 06 January 2005 at 6:01am

Got it working now using java and the <script src="URL"></script>

Thank you allClap




-------------
BoLt (Computer Engineer)
I suffer from Dyslexia, it means I can not spell to well not that I am thick.

www.welshlens.co.uk


Posted By: snapey
Date Posted: 08 January 2005 at 6:51pm
Question  BoLt. If you do it that way do you end up with standards compliant output, ie only one set of <head><body> tags?
 
I just created some simple code using XMLHTTP so that I could import existing pages and then strip out some of the formatting so that I could produce 'printer friendly' pages.
 
I read in the entire page using XMLHTTP, then used the instr functions to find and remove <body> tags and everything eitherside.
 
It seems to work quite well and got me thinking about techniques for sponging pages from other sites and then replacing paths to image files etc. Not very ethical but when your Hosting company won't provide a simple 'white label' service status page what can I do?
 


Posted By: BoLt
Date Posted: 10 January 2005 at 9:10am

I have used the code I posted above and it seams to work ok in all browses I know. My fellow inmate LOL is using this in e-bay so he can post the same block of adds in all of his e-bay sales. This means he can then just change change the block of adds links ect without going into e-bay and editing all the sale items.

So far it is working well and no problems but thank you all the same.



-------------
BoLt (Computer Engineer)
I suffer from Dyslexia, it means I can not spell to well not that I am thick.

www.welshlens.co.uk



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net