www.webdeveloper.com
Results 1 to 2 of 2

Thread: Fetch web page text and display in a window

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Posts
    1

    Fetch web page text and display in a window

    window.open('remote_url') can be used to open a window with content of remote_url. But since the remote web page I want to display has all kinds of links to his style sheets and Javascripts, I'd like to display the content as if I opened his page in browser, view source, select all (^A), copy (^C) and paste (^V) in my editor and save as a local html file and display it. Since his calls to stylesheets and Javascripts have URLs like '/somepath' without server name, some buttons etc. in my local page will look funny. But that's fine. So, is there a way to grab the text, not recursively following URL's, of a single web page so I can write it to my own window?

    I think I need to get an HTMLElement of the remote page and use innerHTML on the document or its body?

  2. #2
    Join Date
    Mar 2009
    Posts
    452
    HMMmMMm study some good tutorials about AJAX

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles