By wscript I meant the win script host.. Sorry for that confusion...
Yeah.. The permissions thing is there.. But there has to be a work
arround, in only say this because the html code is sent back to the
caller in a stream.. It seems like you can use asp/COM or WSH to get the
stream, put it in a html file with FSO to make it part of your site,
then use whatever you want.. Anyway.. Whatever.
daniel
-----------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
-----------------------------
-----Original Message-----
From: George Smyth [mailto:george.smyth@U...]
Sent: Wednesday, October 31, 2001 10:55 AM
To: javascript
Subject: [javascript] Re: Reading HTML
Hmmm, well, I don't know wscript (I could do ASP), so that's probably
not going to be an option. I had never known of HTMLText and have a use
for it on my personal website - parsing the code and using the relevant
information was my idea. However, I'm guessing that the permissions
issue is going to make this not possible.
Cheers -
George L Smyth
-----Original Message-----
From: Daniel O'Dorisio [mailto:daniel@o...]
Sent: Wednesday, October 31, 2001 10:26 AM
To: javascript
Subject: [javascript] Re: Reading HTML
I understand that you cannot get the server side script, wether it be
php, asp, jsp, perl.. Whatever.
But the html code isnt the same.. I mean I can get any html code off any
web site, it is sent back to me and stored on my HDD..
George:
Maybe have an asp page that uses wscript to open a telnet session on
port 80 of the server you want, then issue the correct GET command, and
sent the output to a file.. You can then parse it like you wish with
either javascript, or FSO.. Kinda a hack, but I know it would work.
daniel
-----------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
-----------------------------
-----Original Message-----
From: DANIEL RADU [mailto:radudanielro@y...]
Sent: Wednesday, October 31, 2001 10:06 AM
To: javascript
Subject: [javascript] Re: Reading HTML
Using frames it's not a solution because you'll get the error "Access
is
denied". And be careful: most of the pages that Yahoo (and most of the
portals) brings them to the client are processed on the server (asp,
php,
Java servlets). So you could receive some html code not useful for you.
You
could receive any HTML code in any way, but from the client. Of course,
it's a security issue.
Not only createTextRange method could get HTML code. Using innerHTML
property you can get what you want, but remember, not from a frame
containing a page from a server.
George Smyth <george.smyth@U...> wrote: HTML can be extracted from
the body of your document through the script
below.
var range = document.body.createTextRange(); alert(range.htmlText);
Is it possible to get this information from another's website? For
instance, is it possible to put Yahoo's code into a String object within
my code?
Thanks -
George L Smyth