19.01.2017, 19:58
Hi Buuuudzik,
A .lp file is used for client side LUA scripting, the .lp file is executed once during page load, at that moment the LUA is executed and data is requested from server and the reply is transfered to client and you can use the reply as JSON object.
When you want new data you have to do a http (xhtml / ajax) request to the .lp file (even with arguments) to get new or other information from the server. This way you can do a normal storage.get / storage.set LUA command (basicly any LUA command available inside the LM) and transfer the reply to a JSON object to use on client side.
The content inside the .lp file is very flexible and when you master this you can build whatever you need.
So there is nothing running on de background, only on page load and when you do a xhtml / ajax request to the .lp file.
BR,
Erwin
A .lp file is used for client side LUA scripting, the .lp file is executed once during page load, at that moment the LUA is executed and data is requested from server and the reply is transfered to client and you can use the reply as JSON object.
When you want new data you have to do a http (xhtml / ajax) request to the .lp file (even with arguments) to get new or other information from the server. This way you can do a normal storage.get / storage.set LUA command (basicly any LUA command available inside the LM) and transfer the reply to a JSON object to use on client side.
The content inside the .lp file is very flexible and when you master this you can build whatever you need.
So there is nothing running on de background, only on page load and when you do a xhtml / ajax request to the .lp file.
BR,
Erwin