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

Just starting out? Need help? Post your questions and find answers here.
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 799
Joined: Fri Dec 04, 2015 9:26 pm

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

Post 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?
User avatar
mk-soft
Always Here
Always Here
Posts: 6320
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post by mk-soft »

With WebViewGadget and BindWebViewCallback ;)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 799
Joined: Fri Dec 04, 2015 9:26 pm

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

Post 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
User avatar
mk-soft
Always Here
Always Here
Posts: 6320
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post by mk-soft »

I'm not fit with JavaScript found this ...
https://stackoverflow.com/questions/122 ... javascript
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply