22.06.2017, 20:55
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:
But instead data I have nothing. And also no error
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.
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 error
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.