Google Answers Logo
View Question
 
Q: Calling a web page ( Answered,   1 Comment )
Question  
Subject: Calling a web page
Category: Computers > Internet
Asked by: chefjeff-ga
List Price: $25.00
Posted: 23 Jan 2003 01:58 PST
Expires: 22 Feb 2003 01:58 PST
Question ID: 147391
Hello,
I have a website that sells credit cards. On one of the pages, I need
to "call" a page from an affilliate partners website "credit card page"
into the main body of my page. I have already done this using frames.
Here is my page with the "called page" in the frames
(http://www.prepaidpos.com/creditcard.htm). Here is the location of
the page Im calling into my site
(http://www.radianttelecom.com/prepaid_cards.asp?hidetl=1). My
question is: I want to call that page into the main body of my page
without using frames. How do I accomplish this?
Thank you,
Jeff McCommas

Request for Question Clarification by errol-ga on 23 Jan 2003 06:30 PST
Do you have the use of PHP or ASP on your web server?
regards,
errol-ga

Clarification of Question by chefjeff-ga on 23 Jan 2003 12:25 PST
Dear errol-ga,
Yes, I do have the use of PHP or ASP on my web server. I use
Dreamweaver MX for my editor.
Jeff

Clarification of Question by chefjeff-ga on 23 Jan 2003 13:02 PST
The type of server Im using is Linux Apache with Plesk Administrator
Answer  
Subject: Re: Calling a web page
Answered By: sycophant-ga on 26 Jan 2003 01:32 PST
 
Hi Jeff, 

In principle, your request is quite simple and can be achieved with a
PHP include() command, however it is a little more difficult than that
for the following reasons:

1) The image locations are relative to the page, so when the code is
simply imported the resulting page has broken images.
2) The <html>, <head> and <body> tags are included and result in a
page that is not standards compliant and confuses some browsers.

An example of the result is here:
http://dylan.wibble.net/ga-test/147391.php
The source for that is here:
http://dylan.wibble.net/ga-test/147391.txt

Another problem is the form on the page, it has a submit that is
relative to the page, which results in a 404 error when submitting the
form (ie. selecting a country for rates). Furthermore, the links
within the page are also relative, and have a similar result.

Even if the image locations, links and form submissions are corrected
before the page is displayed, once a link it followed, it is
impossible to maintain it within your site, and the links are to
another site.

It would be possible, in theory, to handle the links yourself, and
forward the requests to maintain the content within your own site,
however the potentially changing nature of the link makes that a very
improbable task.

In short, while what you are proposing is possible, however it will be
very hard to maintain, and possibly alter or destroy the functionality
supplied to you by the underlying site. In my opinion, your current
solution, using frames, is far more maintainable and much less likely
to break the functionality offered through the site.

I realise this isn't quite the solution you were after, but it is
really the only answer.

If you really have your mind set on including the content of that page
within your site, post a clarification request and I will create some
PHP code that will make it display properly, however once links are
followed or forms submitted the control would be leaving your site.

Regards,
sycophant-ga
Comments  
Subject: Re: Calling a web page
From: gwermter-ga on 23 Jan 2003 08:53 PST
 
The primary way that you can include an outside page in an existing
site is through the use of "server-side includes".  There are a couple
of different ways to do this, but the most likely is to simply include
the following in your HTML code:

<!--#include virtual="http://www.radianttelecom.com/prepaid_cards.asp?hidetl=1"-->

This tells the server to process the code and insert the page located
at that address.  As the previous respondent suggested, there are a
couple of other ways to perform this function, and it matters what
type of web server you are using (IIS on Windows, Apache, ColdFusion,
etc.)  A little more detail can help us get you a more detailed
answer.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy