Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - INCLUDE URL?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

INCLUDE URL?

 Post Reply Post Reply
Author
BoLt View Drop Down
Senior Member
Senior Member


Joined: 20 November 2003
Location: United Kingdom
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote BoLt Quote  Post ReplyReply Direct Link To This Post 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.
 
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 something like you would using the
<!--#INCLUDE file="../asp/hasgot/moreshop.asp"-->
 
but with the full URL path ?Confused
 
 


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
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
BoLt View Drop Down
Senior Member
Senior Member


Joined: 20 November 2003
Location: United Kingdom
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote BoLt Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post 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

%>

 
Back to Top
BoLt View Drop Down
Senior Member
Senior Member


Joined: 20 November 2003
Location: United Kingdom
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote BoLt Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
snapey View Drop Down
Newbie
Newbie


Joined: 28 July 2002
Location: United Kingdom
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote snapey Quote  Post ReplyReply Direct Link To This Post 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?
 
Back to Top
BoLt View Drop Down
Senior Member
Senior Member


Joined: 20 November 2003
Location: United Kingdom
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote BoLt Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.