Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VBScript / Javascript difference
Message
From
17/09/2008 16:06:55
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
General information
Forum:
ASP.NET
Category:
Client-side development
Environment versions
Environment:
ASP.NET
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01348223
Message ID:
01348391
Views:
18
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform