Kim Kortermand

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromKim Kortermand
ToMe
SubjectJavascript to fetch the HTML source from any homepage and put it into a variable
Date7 December 2005 11:28
Dear Sir

I am looking for the following javascript :

The tool is purely crossbrowser Javascript. It can actually fetch the HTML
source from any homepage and put it into a variable.

I actually found this tool a few weeks ago, but now I can't find it.

Can you help me out?

Best regards
Kim Kortermand
FromMe
ToKim Kortermand
SubjectRe: Javascript to fetch the HTML source from any homepage and put it into a variable
Date9 December 2005 07:16
Kim,

> The tool is purely crossbrowser Javascript. It can actually fetch the
> HTML source from any homepage and put it into a variable.

This is not possible. JavaScript security restrictions will prevent it from
loading content cross domain (except in Internet Explorer where there is no
security, and you can use XMLHttpRequest to collect the user's personal
information very easily). You should use a server side script and pass it
through that. That is the only way to achieve a proper cross browser effect.

Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.