Getting HTML source code of a remote page.

free web hosting
Free Web Hosting, No Ads > Have your say > General Talk

Getting HTML source code of a remote page.

101
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

God
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

101
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



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : html source code remote

  1. 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...)...
  2. Open Source Movement - (2)
  3. 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...
  4. Is there any open source Antivirus.. - (7)
    I would like to know that is there any opensource antivirus...
  5. 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...
  6. 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. ...
  7. 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. ...
  8. 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....
  9. 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 ...
  10. 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 ; &...
  11. 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...
  12. html bilder - (4)
    i need html bilder some one can help me...
  13. 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...
  14. 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....
  15. Counter-Strike Source Question... - (10)
    If i get only Half-Life 2 can i use it to get Counter-STrike Source?...
  16. 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?...
  17. 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 ...
  18. 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...
  19. Need: Public_html file... - (2)
    I deleted it cuzz I thought I didn't need it :S Please someone send me it!!!...
  20. 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 ...
  21. 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....
  22. 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...
  23. 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' /> ...
  24. html - (6)
    does anyone know if the html used in myspace will work on a normal webpage..?...
  25. 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...
  26. 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...
  27. html imput select help - (0)
    I would like to know, how I delete an options of "imput select" with source code. Thanks...
  28. 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...
  29. Need How MAny On HTML Code or etc. - (2)
    OKIDOKIE CLICK HERE ...
  30. 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



Getting HTML source code of a remote page.



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE