You can build some Javascript function dynamically before opening the webkit. Here’s one I use :
dataBase.EcrireGPSVille = function (nomVille, nomPays)
local js = [[function sendAddress() {\r]]
js = js..[[codeAddress("]]..nomVille..[[,]]..nomPays..[[", "http://]]..nomVille..[[");\r]]
js = js.."}"
local r = dataBase.writeFile ("myCity.js", js)
if r then print ("Ecriture du fichier myCity.js") end
return true
end
You can listen to event like HTML request from link. Link can be an href link but could be a JS event that behave like a mouse click.
[import]uid: 5578 topic_id: 26715 reply_id: 108354[/import]