This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Getting data from .lp script
#1
Hello guys,

I am preparing a few html pages but for saving memory I want prepare them fully on my PC and after tests I will upload them to LM.

Maybe somebody knows how can I connect my local page with lm .lp file?

I've tried something like this:
Code:
<!DOCTYPE html>
<html lang="en">
 <head>
   <meta charset="utf-8">
   <title>title</title>
   <script  src="https://code.jquery.com/jquery-3.2.1.min.js"  integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="  crossorigin="anonymous"></script>
 </head>
 <body>
   
<script type="text/javascript">
$.get("LM_IP_ADDRESS/user/data.lp", function(data) {
 data = data.trim();
 data = JSON.parse(data);
 console.log(data);
});
</script>
</body>
</html>

But instead data I have nothing. And also no errorSad

I've also prepared some file which is a copy of a data which is generated via .lp file(json table) but then I have error:
~"Error in XML processing: syntax error" which is also very general error and I don't understand what is the problem .

The same is when I try only use $.get() for downloading very simple .txt and alert its source.
Reply


Messages In This Thread
Getting data from .lp script - by buuuudzik - 22.06.2017, 20:55

Forum Jump: