|
|
|
date: Tue, 12 Aug 2008 06:06:29 -0700 (PDT),
group: microsoft.public.inetsdk.programming.wininet
back
Re: wininet with javascript
"der.moh" wrote in news:9b5b9240-4110-4b5f-a34d-
7c40c3ff9017@z72g2000hsb.googlegroups.com:
> i found on wikipedia (german version, i think quoting is senseless),
> that spidermonkey does not support the Document Object Model, so i
> guess that it is not possible to call functions like
> document.getElementById, which i need to fetch content from the html
> body...
Sorry, I don't know where you'd go there -- I was only using spidermonkey
to evaluate WPAD-style "which proxy server do I use" stuff.
One (difficult) solution would be to declare those external functions
yourself, pass them into the spidermonkey evaluator, and implement
getElementByID yourself; pass the HTML into some sort of HTML-to-DOM
converter somehow? I'm just guessing, I haven't tried this myself.
You could also see if there's an appropriate forum on
forums.mozillazine.org to ask about spidermonkey; searching, there's been
some questions in the past, so it could be worth a try.
-- dan
date: Thu, 14 Aug 2008 13:07:25 -0700
author: Dan Mitchell
|
|