| | 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. |
Reply
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.
Reply
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.
Reply
Similar Topics
Keywords : html source code remote- Need Help With Some Code....
- (6)
Alright... so me and coolcat50 are working on a website... and yeah... I'm having a little
trouble getting a right column to go all the way down the page... any help?
http://2kart.trap17.com/gfxsite/index.html I want the right column to always be as long as the
content area..... any one know how? the css can be found here:
http://2kart.trap17.com/gfxsite/main.css (It would appear the page renders crappy in older
versions (I don't know about newer ones though) of IE...)...
Open Source Movement
- (2)
Pidgin Messenger
- All about this open source messenger... (3)
If you are interested in having a universal chat client... visit the below link.
http://www.pidgin.im/ You can sign into multiple accounts of various providers at the same time.
Like more than 2 gmail, yahoo etc. All your chat contacts will get listed. Very convenient to have
one application running rather than Gtalk, Y! messenger etc. Also, there are so many features.
You have everything you want and can go for max customizations... Have been using this for the past
one month. Its really nice. Its Open Source... So you know what can be done... Its available f...
Is there any open source Antivirus..
- (7)
I would like to know that is there any opensource antivirus...
How Long Did it take you to learn HTML
- (78)
Hey,
Im interested in learning HTML and i was just wondering how long you think it might take...
Moderator Bb Code
- (5)
Does anyone know how to activate the moderator bbcode in the IPB admin cp, or is it something coded
exclusively for Trap17? Any help appreciated. Thanks. ...
What Is A Self-sustaining Source
- (1)
This question has been boggling me for quite a while, what can be used as a safe self-sustaining
power source ( Meaning it has the ability to make energy but doesnt take in energy, it just uses
what it created to work again) i heard it defys physics, but of course a lot of things do. The
What Is..? forum is for explaining things. Please read the pinned topics. Moved to General Talk
. Warned. ...
Display 'from Ip Address' On Web Page
- PHP Code Help (9)
I need some help with adding a PHP Code into my Website. I need to get a code to add in someones IP
Address. Example: From IP: (IP Address Here) I also need to get a code to add how long it took
to load the page at the bottom of each page. Any help with this and I would be extremly grateful,
thanx heaps....
Does This Link Work For You?
- http://68.203.246.27:8080/index.html (6)
does this link work for you? i need to take a test online but the link doest works =-\
http://68.203.246.27:8080/index.html ...
Gtchat 0.95 Alpha Remote Denial Of Service Expl
- (4)
Here we go... #!/usr/bin/perl use LWP::Simple; if (@ARGV { print "\nUsage:
$0 \n"; print "sever - URL chat\n"; print "path - path to
chat.pl\n"; print "mode - poc or dos,\n"; print " poc - simple
check without DoS and exit,\n"; print " dos - DoS, you must set count for
requests in 4 argument.\n\n"; exit (); } $DoS = "dos"; $POC
= "poc"; $server = $ARGV ; $path = $ARGV ; &...
The Davince Code (spoilers)
- Your thoughts and opinoins (spoilers) (4)
Don't read bellow (not the responses either if you haven't read this book!!!) -
- - - - - - - - Well, a few days ago I finished the DaVince code by Dan Brown. It's a medium
sized book a little more than four hundred pages, and slightly over one hundred action-packed,
suspense filled, page tearing amasement. It features a harvard symbologist (Robert Langdon), a
French dcjp agent (Sophie Nevuea), and a police cheif who tries to put them in jail for all the
right, and the wrong reasons. The plot of the book is thick and filled with many brain-busti...
html bilder
- (4)
i need html bilder some one can help me...
Linking CSS to HTML
- (2)
CODE <LINK REL="StyleSheet" HREF="basic.css" TYPE="text/css"
TITLE="Preferred Style" MEDIA="screen, projection"> <LINK
REL="Alternate StyleSheet" HREF="altstyle.css" TYPE="text/css"
TITLE="Alternate Style" MEDIA="screen">
Linking to an External Style
Sheet
---
LINK tag
The link tag is used between the HEAD tags. It is the most common way
to link CSS to HTML.
REL Attribute
The REL attribute defines the differences between a
persistent or prefe...
HTML
- (4)
I need a script , I dont know how to o 'If i click the links on my websites,the text in the middle
of site is change to what it suppose to be...' someone help me....
Counter-Strike Source Question...
- (10)
If i get only Half-Life 2 can i use it to get Counter-STrike Source?...
Da Vinci Code
- (7)
The movie is already underway!...
For those interested, there is also a book about the book!...
Did someone go to that place in England?...
http://www.cheapdesign.co.uk/pulseradio/index.html
- (7)
i have not yet completed this website, because i dont currently have webhosting. but my mate has let
me upload this website temp so that you can see a sneak preview
http://www.cheapdesign.co.uk/pulseradio/index.html ...
Newpass2.html malware
- (0)
So, I was chatting it up with some people, and this one person says she got hit by some weird piece
of adware from www.lop.com/.../newpass2.html. So, smart as I am, I click on the link... and now,
when I maximize my IE window, it's all forced down to the bottom of the screen so that only like the
top couple of toolbars are visible. Anyone have suggestions? If you need a Hijackthis log...
Logfile of HijackThis v1.99.1
Scan saved at 10:47:14 PM, on 3/6/2005
Platform: Windows XP SP1
(WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106)
Running proces...
Need: Public_html file...
- (2)
I deleted it cuzz I thought I didn't need it :S Please someone send me it!!!...
PHP question (line of code)
- (1)
I am calling a profile pic to a custom page and it sometimes caches to an older pic because the
dateline is not appended.
How can I add the code to call the profile pic WITH the dateline to
this line of code?
CODE <img
src="$vboptions[bburl]/image.php?u=".$row[userid]."&type=profile".
34;" valign="top" alt="".$row[username]."" border="0"
width="$picturewidth" />
Thanks!
Here is the MEMBERINFO template where they
call it. How can I add that dateline code to the ...
How to send HTML mail to yahoo inbox
- (1)
I have a Ecard site .
I want to send ecard in HTML mail format, but my site alway send to BULK.
Does anyone know a site where i can send HTML mail to Yahoo Inbox....
Javascript/HTML form submissions On a Mac
- (1)
My hope is that someone out there can help me with this problem. I have some javascript that will go
thru (on a PC that is) a HTML page looking for a specifc word submitted via an onclick function.
Orginally it was a form submission with an onsubmit that ran the function. But in trying to
trouble shoot it I thought the mac was submitting the form differently than the PC versions (maybe
the DOM) so I created a button with an onclick command. Again it works for the PC but not for the
MAC.
I am at my wits end. If someone can help; below is the code I am using. I...
Cheat Code Cat Women
- (3)
Hi Guys..
I'm Playing Cat Women :cry: huh :roll: very dificult
any one know the cheat code
Cat Woman ? /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> ...
html
- (6)
does anyone know if the html used in myspace will work on a normal webpage..?...
HTML
- (2)
Hello FNH-Staff/Helpers..i was wondering..
i no very little of cpanel..like most of it..just the
installing crap is confusing. well i have a www.freewebs.com site.and i was wondering..is there n e
way to tranfer the files to the cpanel..if so is there n e way that i can get help..i would really
appreciate great assistance.tyvm for ure time..and hopes to ttyl.bye
Invigor8...
Browser Redirection Javascript code.
- (1)
Hi does anyone have a browser direction code( so if someone went to my site with IE it would forward
to a site telling you to download Firefox).
If so could you email it to me : daniel dot maxson at
gmail dot com
Thanks
Daniel...
html imput select help
- (0)
I would like to know, how I delete an options of "imput select" with source code.
Thanks...
html imput file
- (0)
I would like to know if is possible to cange the file of the "html imput file" with source code
Thanks...
Need How MAny On HTML Code or etc.
- (2)
OKIDOKIE
CLICK HERE ...
Basic HTML Tutorial
- (17)
Here is some basic HTML... I will give an example doc first, and then break it down. Also, will
give some extras that could make your page fun and interesting!
Example Doc: CODE
<HTML> <title>Page Title</title> <BODY> <body
bgcolor=background color><body text=Main Text> <center><h1>Title Of
Article</h1></center><br> Text.... </BODY> </HTML>
This will generate something like this:
Title Of Article (This
Centered)
Text.....
Looking for html, source, code, remote, page
|
|
Searching Video's for html, source, code, remote, page
|
advertisement
|
|