In article <ce******************@news.demon.co.uk>,
co**************@andthis.mms3.com enlightened us with...
kaeli wrote: In article <9a*************************@posting.google.com> ,
se********@yahoo.com enlightened us with... I am trying to open an html document on a html page as a text
variable. So that in a perfect world the code would look like this:
Not in a client-side javascript in the default security environment, you
can't.
Solutions that are either not cross-browser, not stictly client-side
script, and/or not default security:
java applet
server-side script to create a javascript text file from the html file
ActiveX
COM
HTA
Or open it in a frame / iframe.
That will not work if the content is outside the domain of the opener
(security error). You can't access the content of a frame from another frame
if it's in a different domain of the script trying to access it. Even a
different protocol would throw the error.
Otherwise it would work in DOM browsers pretty well.
--
--
~kaeli~
If that phone was up your a$$, maybe you could drive a
little better!
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace