Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WebBrowser automation
Message
 
À
15/11/2010 07:01:14
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01489079
Message ID:
01489450
Vues:
101
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform