Page 1 of 1

Is there a way to call native functions in purebasic, through the website using javascript?

Posted: Mon Mar 04, 2024 6:51 pm
by skinkairewalker
Hello guys, is there a way to call native functions in purebasic, through the website using javascript?
for example: every 10 seconds, I want to call a function to create a temporary file to keep the user's session always saved.
Is there a way to trigger this native function in purebasic, every 10 seconds timed by javascript?

Re: Is there a way to call native functions in purebasic, through the website using javascript?

Posted: Mon Mar 04, 2024 7:27 pm
by mk-soft
With WebViewGadget and BindWebViewCallback ;)

Re: Is there a way to call native functions in purebasic, through the website using javascript?

Posted: Mon Mar 04, 2024 8:00 pm
by skinkairewalker
but isn't the Bind WebView Callback for listening to components?

Would you have an example so I can have a better view? I'm lost ... xD

Re: Is there a way to call native functions in purebasic, through the website using javascript?

Posted: Mon Mar 04, 2024 8:15 pm
by mk-soft
I'm not fit with JavaScript found this ...
https://stackoverflow.com/questions/122 ... javascript