Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML to FOXPRO9
#1
Hey guys, is it possible to press a button in the html and open a form in foxpro9?

Ok I figured it out, I dont know if this is the best way but it works.

Javascript:

<button onclick="sendMessage()" id="btn">Open</button>
<script>
function sendMessage() {
if (window.chrome && window.chrome.webview) {
window.chrome.webview.postMessage('test');
} else {
console.log('WebView is not available');
}
}
</script>

then in in procedure OnWebMessageReceived you receive 'test' in LPARAMETERS messageasstring
Reply


Messages In This Thread
HTML to FOXPRO9 - by joao - 2024-11-06, 14:12:56
RE: HTML to FOXPRO9 - by wila - 2024-11-06, 15:52:43
RE: HTML to FOXPRO9 - by joao - 2024-11-06, 17:57:15

Forum Jump:


Users browsing this thread: 1 Guest(s)