barrymavin
2012-10-06, 01:42
You can call JavaScript functions that you have in your WebViews and return the result back directly into your Visual FoxPro code. This allows you to interact directly with a WebViewWidget in Visual FoxPro.
Supposing you have a WebView section with the name "mywebview" and inside that you have a JavaScript function called "getMyData()" Just call it like this and Lianja will marshall the call and the result returned.
mydata = Lianja.getElementByID("mywebview").webview.evaluate("getMyData();")
You do exactly the same in Python, PHP or JavaScript code.
If you load the jQuery library into your WebView you can issue normal jQuery calls directly from Visual FoxPro, PHP, Python or JavaScript as well.
Supposing you have a WebView section with the name "mywebview" and inside that you have a JavaScript function called "getMyData()" Just call it like this and Lianja will marshall the call and the result returned.
mydata = Lianja.getElementByID("mywebview").webview.evaluate("getMyData();")
You do exactly the same in Python, PHP or JavaScript code.
If you load the jQuery library into your WebView you can issue normal jQuery calls directly from Visual FoxPro, PHP, Python or JavaScript as well.