title: Javascript read html from url into string
body: <p>I'm currently building a site that should be able to function as a ftp sort of browser. Basically what I have is a ftp server with some images on it.</p>
  
  <p>What I can't figure out is: if I browse to this ftp site I can view the source of the ftp site (as seen in some browser), what I need is to save that source in a way to a string (using javascript).</p>
  
  <p>The reason is, that I will make som kind of 'image' browser. I plan on accomplishing that by reading the source into a string, then copy all the image sources and use innerHTML to create a new layout.</p>
  
  <p>In short: I want to read information from a url and display it in a different way.</p>
  
  <hr>
  
  <p>Well, can't seem to get it working. The problem might be that I cannot use serverside scripting. Would it be possible however to put a file on the ftp server that I can load that can dynamically load the data in the same folder? (when I say FTP I actually mean a NAS server with FTP access).</p>