|
|
|
|
![]() ![]() |
|
Guest_101_*
Guests
|
Post
#1
Feb 6 2005, 12:43 AM
Hi there,
I'm trying to get the source code of a page hosted on another domain using JS. I've tried a couple of methods but nothing seems to work with pages located on a remote host. I know this could be easily done using a server-side script, but my question is: it is possible to do it with JS? Thanks in advance. |
|
Guest_God_*
Guests
|
Post
#2
Feb 7 2005, 06:35 PM
You mean read it in to a variable? You can, but it will only work in IE. Mozilla's too secure. You have to use the Javascript XML HTTP Request object. Search Google for it.
|
|
Guest_101_*
Guests
|
Post
#3
Feb 7 2005, 11:40 PM
Yep, that's exactly what I mean. I've tried the XML http object but as you pointed out, it works only in IE. So I have to conclude that it's not possible to do it with cross-browser support. Thank you.
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
1 | illnet | 575 | 20th June 2004 - 04:50 PM Last post by: ultrasmad |
|||
![]() |
100 | chelcy | 36,343 | 23rd April 2006 - 08:53 PM Last post by: moh-maverick |
|||
![]() |
19 | templest | 1,169 | 16th August 2004 - 08:19 AM Last post by: psp-playstation |
|||
![]() |
19 | EricDrinkard | 1,934 | 18th November 2007 - 05:32 PM Last post by: -X- Manager |
|||
![]() |
6 | galexcd | 472 | 27th June 2007 - 03:56 PM Last post by: alex7h3pr0gr4m3r |
|||
![]() |
11 | football123213 | 749 | 30th July 2004 - 03:34 PM Last post by: templest |
|||
![]() |
7 | odomike | 2,094 | 30th April 2008 - 02:44 PM Last post by: FeedBacker |
|||
![]() |
86 | Xenon | 7,183 | 4th November 2008 - 06:52 AM Last post by: dragonfang00 |
|||
![]() |
97 | djleli | 4,849 | 16th November 2008 - 10:16 AM Last post by: EinReaper |
|||
![]() |
5 | saitunes | 172 | 26th September 2008 - 12:35 AM Last post by: jlhaslip |
|||
![]() |
12 | bttfpromo | 1,363 | 14th September 2004 - 08:55 PM Last post by: Magic-Node |
|||
![]() |
7 | Saint_Michael | 559 | 20th November 2004 - 08:02 PM Last post by: swanx |
|||
![]() |
32 | xmod | 3,634 | 17th April 2005 - 04:39 AM Last post by: theoutlaws |
|||
![]() |
41 | habbovalley | 1,530 | 7th November 2008 - 03:26 AM Last post by: dragonfang00 |
|||
![]() |
0 | deedee2003 | 412 | 5th September 2004 - 09:11 PM Last post by: deedee2003 |
|||
|
Lo-Fi Version | Time is now: 5th December 2008 - 01:30 PM |