>>>Hi,
>>>
>>>
>>>>What is Document.Script refers to? I think it's a VFP question - how to call JavaScript function from VFP. What exactly you're trying to achieve?
>>>
>>>Document is an IE document object. All I'm trying to do is execute a Javascript function that's defined in a document script element..
>>>Best,
>>>Viv
>>>
>>>
>>The examples should be in Rick Strahl article. I'll search for it a little bit later if nobody answers in the meantime.
>
>Hi,
>
>Took a look myself. Only found one example and, AFAICS, Rick is using syntax that is identical to mine - but his example is running against a VBScript function not a Javascript one.....
I've put code like this into the click event of a VFP button that in turn calls functions in an external js file.
thisform.oweb.Document.parentwindow.execScript("saysomething('hello Mike');", "javascript")
WAIT WINDOW TIMEOUT 2
thisform.oweb.Document.parentwindow.execScript("drawchart();", "javascript")
Hope this helps.
Mike