Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebBrowser automation
Message
 
To
15/11/2010 07:01:14
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01489079
Message ID:
01489450
Views:
103
>Hi Dragan.
>How can I call the ajax script directly?

Do yourself a favor and remove that script code from the onclick handler and move it to a function:

onclick="Myfunction(this);"
<script type="text/javascript">
function MyFunction(el)  {
    ... do your JS stuff
}
</script>
You can also call this function from FoxPro code.

Here's a blog post that talks about calling script code in the Web Browser control.
http://www.west-wind.com/Weblog/posts/493536.aspx

Note that FoxPro can't mixed case functions and always looks for lowercase function names. So the function above should 'myfunction' if you want to call it from FoxPro.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform