Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Tue, 12 Aug 2008 06:06:29 -0700 (PDT),    group: microsoft.public.inetsdk.programming.wininet        back       


wininet with javascript   
hello,

i am connecting to a web-server and assign two post variables to a
*.php file via the wininet-lib. till this point everything is working,
but the file also contains javascript which does not get executed. i
need the output of the javascript for the further continuation of my
program.


is there a way to get this working, with wininet or some other method?


der.Moh
date: Tue, 12 Aug 2008 06:06:29 -0700 (PDT)   author:   der.moh

Re: wininet with javascript   
"der.moh"  wrote in news:66dca001-8c44-4086-af79-
2d214c0739ab@c65g2000hsa.googlegroups.com:
> i am connecting to a web-server and assign two post variables to a
> *.php file via the wininet-lib. till this point everything is working,
> but the file also contains javascript which does not get executed. i
> need the output of the javascript for the further continuation of my
> program.
> 
> 
> is there a way to get this working, with wininet or some other method?

 You need to link in a javascript interpreter (like mozilla's 
spidermonkey), pass the javascript to that, and it'll give you the results 
of evaluating the script -- you can then start again from there.

 -- dan
date: Tue, 12 Aug 2008 12:19:43 -0700   author:   Dan Mitchell

Re: wininet with javascript   
hello,

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...

do you have got an advice?
date: Thu, 14 Aug 2008 09:47:57 -0700 (PDT)   author:   der.moh

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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us