From: at on
Hi,

After load page with

Set ie = CreateObject("InternetExplorer.Application")

ie.navigate "http://www.random_web.com"

i want call function javascript in this page, how to ?

Thx


From: Tom Lavedas on
On Mar 30, 2:52 pm, at <a...(a)noemail.fr> wrote:
> Hi,
>
> After load page with
>
> Set ie = CreateObject("InternetExplorer.Application")
>
> ie.navigate "http://www.random_web.com"
>
> i want call function javascript in this page, how to ?
>
> Thx

Set ie = CreateObject("InternetExplorer.Application")
ie.navigate "http://www.random_web.com"
do until ie.readystate = 4 : wsh.sleep 100 : loop
ie.visible = true
res = ie.document.parentWindow.JavaFunction(parameters_if_any)
_____________________
Tom Lavedas
From: at on
Tom Lavedas a exprim� avec pr�cision :

> Set ie = CreateObject("InternetExplorer.Application")
> ie.navigate "http://www.random_web.com"
> do until ie.readystate = 4 : wsh.sleep 100 : loop
> ie.visible = true
> res = ie.document.parentWindow.JavaFunction(parameters_if_any)

THX, but the right is

ie.document.parentWindow.execScript("parameters")

Regards.


From: Tom Lavedas on
On Mar 31, 3:39 pm, at <a...(a)noemail.fr> wrote:
> Tom Lavedas a exprimé avec précision :
>
> > Set ie = CreateObject("InternetExplorer.Application")
> > ie.navigate "http://www.random_web.com"
> > do until ie.readystate = 4 : wsh.sleep 100 : loop
> > ie.visible = true
> > res = ie.document.parentWindow.JavaFunction(parameters_if_any)
>
> THX, but the right is
>
> ie.document.parentWindow.execScript("parameters")
>
> Regards.

Mine works too as long as it is understood that the name of the Java
function to be executed is actually "JavaFunction". I guess I didn't
make that clear.
_____________________
Tom Lavedas
 | 
Pages: 1
Prev: Parsing file name
Next: help with the script