Reputation: 541
I am trying to make carousel in google site using Google Apps Script. This carousel includes text messages that would be changed dynamically. I am using jquery to implement this but GAS HtmlService api is not able to evalute that js script files.
I used http://flexslider.com carousel in my application. But its not working. I also tried with caja playground but it does not have carousel implementation js file. I upload all required js files to google cloud storage and made them public.
<script type="text/javascript" src="http://commondatastorage.googleapis.com/shCore.js"></script>
<script type="text/javascript" src="http://commondatastorage.googleapis.com/shBrushXml.js"></script>
<script type="text/javascript" src="http://commondatastorage.googleapis.com/shBrushJScript.js"></script>
<!-- Optional FlexSlider Additions -->
<script src="http://commondatastorage.googleapis.com/jquery.easing.js"></script>
<script src="http://commondatastorage.googleapis.com/jquery.mousewheel.js"></script>
<script defer src="http://commondatastorage.googleapis.com/demo.js"></script>
Any suggestion to implement this?
Upvotes: 0
Views: 1189
Reputation: 3732
It is because of Caja which sanitizes the script and filters some of the code from your js. Check here for details.
Alternatively, you can use Google Drive Webhost to publish your carousel and then embed it in Google Site using publicly available iFrame gadget. Check a similar demo here https://sites.google.com/site/appsdatepicker/test-page-2
Upvotes: 1