N Nicolás Cieri Active Member Licensed User Oct 1, 2019 #1 Hi!, I need to pass some vaiarbles to the page that is loaded in the webview. For example... If I use webview.loadurl("https://www.something.com/mp1.html") 'Works good But if I pass a parameter.. webview.loadurl("https://www.something.com/mp1.html?lng=es&id=1") The webview don't show anything. If i paste the url in the browser works! Any idea about pass parameters to webview url? Thanks.
Hi!, I need to pass some vaiarbles to the page that is loaded in the webview. For example... If I use webview.loadurl("https://www.something.com/mp1.html") 'Works good But if I pass a parameter.. webview.loadurl("https://www.something.com/mp1.html?lng=es&id=1") The webview don't show anything. If i paste the url in the browser works! Any idea about pass parameters to webview url? Thanks.
Erel B4X founder Staff member Licensed User Longtime User Oct 2, 2019 #2 Are these the actual parameters that you pass? They are valid however other values might need to be escaped. Upvote 0
Are these the actual parameters that you pass? They are valid however other values might need to be escaped.
N Nicolás Cieri Active Member Licensed User Oct 2, 2019 #3 Ok ok, and how do you escape the values? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 3, 2019 #4 You can use StringUtils.EncodeURL to encode the parameters. Don't encode the ampersands between the parameters. Upvote 0
You can use StringUtils.EncodeURL to encode the parameters. Don't encode the ampersands between the parameters.