Search found 5 matches

by jockerfox
Tue Dec 16, 2025 10:39 am
Forum: Coding Questions
Topic: WebView & JavaScript return String
Replies: 11
Views: 434

Re: WebView & JavaScript return String

Thanks Piero.
I'd already noticed that you can set JS vars via PB.
I'm continuing to develop in the evenings, day after day. The company has asked me to have it ready for use by September 2026. I hope it'll be ready by June.

[ITA]
Grazie Piero.
Avevo già notato che si può impostare le var di JS ...
by jockerfox
Sun Dec 14, 2025 2:19 pm
Forum: Coding Questions
Topic: WebView & JavaScript return String
Replies: 11
Views: 434

Re: WebView & JavaScript return String

Oh yes! Now I understand the mechanism!
I modified my HTML and PB studying what you suggested and it works as I would like.

Sorry if I was a bit slow at first but thanks for the help.
Actually it was easier than i thought but only after you helped me 😀.

My company where I work (a bus company ...
by jockerfox
Sun Dec 14, 2025 10:08 am
Forum: Coding Questions
Topic: WebView & JavaScript return String
Replies: 11
Views: 434

Re: WebView & JavaScript return String

I forgot to include the map upload:
LoadMap() ;Carica Leaflet

Procedure LoadMap()
SetGadgetText(WVMap, "file://D:\PureBasic\RPS\map.html")
EndProcedure


Therefore, the correct file is as follows (the rest of the files remain unchanged):
XIncludeFile "FormMain.pbf" ;includes the file generated ...
by jockerfox
Sat Dec 13, 2025 10:09 pm
Forum: Coding Questions
Topic: WebView & JavaScript return String
Replies: 11
Views: 434

Re: WebView & JavaScript return String

Hi @infratec.
Thank you for helping me.

HTML named map.html
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<title>Mappa Leaflet</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY ...
by jockerfox
Sat Dec 13, 2025 4:19 pm
Forum: Coding Questions
Topic: WebView & JavaScript return String
Replies: 11
Views: 434

WebView & JavaScript return String

Hi everyone.
I come from B4X and before that from XoJo.
I'm learning PureBasic and I don't mind it as a development environment. For now, I'm using the demo version because I'm evaluating it before possibly purchasing it.
I think my last problem to tackle with PureBasic is the return of a string ...