OT But Related - Get Source of a URL

Pierre Sahores psahores at easynet.fr
Fri Aug 16 03:34:03 EDT 2002


Scott Rossi a écrit :
> 
> In MetaCard we have the ability to put a url into a container, such as:
> 
>   put url "http://www.mypage.com/index.html" into fld 1
> 
> ...and we see the source of the file in field 1.
> 
> Anyone know of an equivalent way to do this using Javascript?
> 
> I've already dug up several references similar to the following but
> unfortunately they seem to fail in IE Mac:
> 
>   <script language="javascript">
>   function viewsource() {
>     window.location = "view-source:" + window.location;
>   }
>   </script>
> 
> Just wondering if anyone knows of some script that would allow me to read
> the source code of HTML page into a variable, instead of physically
> displaying the page in the browser.
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
> -----
> E: scott at tactilemedia.com
> W: http://www.tactilemedia.com
> 
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard

Hi,

What do you want to do with the resulting variable ? Display it back to
the webbroswer trough an mt/cgi-script (javascript can't do this by it
self without interacting with the server-side stuff) ? 

-- 
Regards, Pierre Sahores

WEB & VPN applications & databases servers
Inspection académique de Seine-Saint-Denis
Qualifier & produire l'avantage compétitif



More information about the metacard mailing list