[thelist] Grabbing a file across domains

Beach Computers Web Hosting Groups at Beachcomp.com
Wed Jan 10 07:24:33 CST 2007


Thank you for the links.
How would an IFrame Proxy effect SEO?
As far as I know, bots hate Iframe.
Does that apply here?

|Beach Computers                    |
|Affordable Hosting Solutions       |
|http://www.beachcomp.com           |
|Cheap Domain Warehouse             |
|Get Your Own Dot!                  |

Disclaimer and confidentiality note:

The contents of this communication are intended/meant only for addressee(s)
and may contain information that is privileged or otherwise confidential.
If you are not the intended recipient you are hereby notified that any
disclosure, copying, distribution or taking any action in reliance on the
contents of this information is strictly prohibited and may be unlawful.
The contents of this e-mail shall not be forwarded to any third party. If
you have received this electronic mail transmission in error, please delete
it from your system without copying or forwarding it, and notify the sender
of the error by reply email, so that the sender's address records
can be corrected.
Views and opinions are solely those of the sender unless clearly indicated
as being that of Beach Computers or any of it's affiliated companies.
Beach Computers cannot assure that the integrity of this communication has
been maintained or that it is free of errors, virus, interception or

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Christian Heilmann
Sent: Wednesday, January 10, 2007 3:34 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Grabbing a file across domains

> I have an ASP file which changes often.
> I want to be able to call it from php, htm, html and asp pages on the fly,
> and across multiple domains.
> I currently use the below script to call it in asp.
> Is there any way to call it using javascript, AJAX, or any other universal
> method?

XMLhttpRequest does not work across domains for security reasons,
therefore you need a server side proxy component like your ASP script
to pull the data. There is nothing stopping you to read the output of
the component with Ajax and display it though.

Your own server side proxy also enables you to filter our bad URLs,
cache content and give logical error messages.

If you can use JSON, there is no problem with cross-domains though as
it is JavaScript and you can create a SCRIPT tag on the fly.

Snook has done a good job collecting ideas:

There is also a hack available that uses hidden IFRAMES:

Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

More information about the thelist mailing list