patrik1972 Posted October 20, 2016 Share Posted October 20, 2016 Hi, I try to add this code to a CMS page, but I only get "Content is invalid", anyone know why? <div id='loading' style='width: 200px; margin: auto;padding-top:50px;'> <div style='float:left;width:25px;margin-top:10px;'><img src='https://www.bokamera...dingSpinner.gif' /></div><div style='float:left;margin-left:10px;'><h3>Laddar bokningen..</h3></div> </div> <script src='https://code.jquery....ry-2.2.3.min.js' integrity='sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=' crossorigin='anonymous'></script> <script type='text/javascript'> $(document).ready(function () { var frame1 = document.getElementById('frameBooking'); var loadingDisplay = document.getElementById('loading').style; loadingDisplay.display = 'block'; if (frame1.onload == null) { frame1.onload = function () { loadingDisplay.display = 'none' }; if (window.attachEvent) { frame1.attachEvent('onload', frame1.onload); } } }); </script> <iframe id='frameBooking' width='100%' height='950' src='https://www.bokamera...ded/?embedded=1' frameborder='0' allowfullscreen></iframe> Link to comment Share on other sites More sharing options...
Giuseppe C. Posted October 20, 2016 Share Posted October 20, 2016 Allow iframes on HTML fields in PREFERENCES/General Consulenza, Formazione e Sviluppo Prestashop Link to comment Share on other sites More sharing options...
patrik1972 Posted October 20, 2016 Author Share Posted October 20, 2016 Allow iframes on HTML fields in PREFERENCES/General Consulenza, Formazione e Sviluppo Prestashop Hi, it's already activated. Link to comment Share on other sites More sharing options...
Giuseppe C. Posted October 20, 2016 Share Posted October 20, 2016 delete the javascript code Link to comment Share on other sites More sharing options...
patrik1972 Posted October 21, 2016 Author Share Posted October 21, 2016 delete the javascript code Thanks! Link to comment Share on other sites More sharing options...
Giuseppe C. Posted October 21, 2016 Share Posted October 21, 2016 Please enter solved the open topic. thank you Link to comment Share on other sites More sharing options...
patrik1972 Posted November 23, 2016 Author Share Posted November 23, 2016 Solved Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now