I icanet New Member Licensed User Longtime User Nov 3, 2024 #1 I have a html page with some javascript code that show a gauge i can show it in a webview using loadurl from a local file How can i update the gauge value (variable in javascript) reading a variable defined in Global B4i ? Thanks in advance Marco Piai Last edited: Nov 3, 2024
I have a html page with some javascript code that show a gauge i can show it in a webview using loadurl from a local file How can i update the gauge value (variable in javascript) reading a variable defined in Global B4i ? Thanks in advance Marco Piai
I icanet New Member Licensed User Longtime User Nov 4, 2024 #2 I have solved I read the file as a text and i replace the value before load the page as loadhtml in the html page i have insered a placeholder for the 2 value that i need to change example: <gaugetitle> and <gaugevalue> Code: Copy Dim pagehtml as String Dim title as String Dim value as Int pagehtml = File.ReadString(File.Dirassets,"gauge.html").replace("<gaugetitle>",title).replace("<gaugevalue>",value) WebWiew1.loadhtml(pagehtml) if anyone have different solution, please tell me Marco Upvote 0
I have solved I read the file as a text and i replace the value before load the page as loadhtml in the html page i have insered a placeholder for the 2 value that i need to change example: <gaugetitle> and <gaugevalue> Code: Copy Dim pagehtml as String Dim title as String Dim value as Int pagehtml = File.ReadString(File.Dirassets,"gauge.html").replace("<gaugetitle>",title).replace("<gaugevalue>",value) WebWiew1.loadhtml(pagehtml) if anyone have different solution, please tell me Marco
I icanet New Member Licensed User Longtime User Nov 4, 2024 #3 Now another issue. The webview after few reload don't refresh Marco Upvote 0
DonManfred Expert Licensed User Longtime User Nov 4, 2024 #4 icanet said: Now another issue. Click to expand... You should start a new thread for yany new problem/question you have. Posting multiple questions in the same thread is a mistake; one Thread should summarize one question. Upvote 0
icanet said: Now another issue. Click to expand... You should start a new thread for yany new problem/question you have. Posting multiple questions in the same thread is a mistake; one Thread should summarize one question.