| Author |
Topic Search Topic Options
|
BoLt
Senior Member
Joined: 20 November 2003
Location: United Kingdom
Status: Offline
Points: 285
|
Post Options
Thanks(0)
Quote Reply
Topic: INCLUDE URL? 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.
<!--#INCLUDE file="../asp/hasgot/moreshop.asp"-->
but with the full URL path ?
Edited by BoLt - 05 January 2005 at 8:30am
|
|
BoLt (Computer Engineer)
I suffer from Dyslexia, it means I can not spell to well not that I am thick.
www.welshlens.co.uk
|
 |
dj air
Senior Member
Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
Mart
Senior Member
Joined: 30 November 2002
Status: Offline
Points: 2304
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
BoLt
Senior Member
Joined: 20 November 2003
Location: United Kingdom
Status: Offline
Points: 285
|
Post Options
Thanks(0)
Quote Reply
Posted: 05 January 2005 at 12:01pm |
Thanz
I could not see for looking and did not think of that . 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
|
 |
neotrix
Mod Builder Group
Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
|
Post Options
Thanks(0)
Quote Reply
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
%>
|
|
|
|
 |
BoLt
Senior Member
Joined: 20 November 2003
Location: United Kingdom
Status: Offline
Points: 285
|
Post Options
Thanks(0)
Quote Reply
Posted: 06 January 2005 at 6:01am |
Got it working now using java and the <script src="URL"></script>
Thank you all
|
|
BoLt (Computer Engineer)
I suffer from Dyslexia, it means I can not spell to well not that I am thick.
www.welshlens.co.uk
|
 |
snapey
Newbie
Joined: 28 July 2002
Location: United Kingdom
Status: Offline
Points: 33
|
Post Options
Thanks(0)
Quote Reply
Posted: 08 January 2005 at 6:51pm |
 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?
|
 |
BoLt
Senior Member
Joined: 20 November 2003
Location: United Kingdom
Status: Offline
Points: 285
|
Post Options
Thanks(0)
Quote Reply
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
|
 |