Originally posted by lesliekirk
View Post
Create a new custom page TEST2 with the content like...
Code:
$23.00
Code:
<button id="get-custom-content">Get the custom content</button> <div id="custom-page-content"></div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script type="text/javascript"> $("#get-custom-content").click(function(){ $.ajax({url: "/mm5/merchant.mvc?Screen=TEST2", success: function(result){ $("#custom-page-content").html(result); }}); }); </script>
Now open your TEST Screen and you should see the button, which will download the content of the TEST2 when you click on it without re-loading the page.
Leave a comment: