admin管理员组文章数量:1306822
My client has a Google site and is requesting some jQuery/javascript functionality like lightboxes, etc. Can I assume I can tackle most generic jQuery/javascript features (By way of the gadgets API), or are there limitations I need to know about?
Thanks-
My client has a Google site and is requesting some jQuery/javascript functionality like lightboxes, etc. Can I assume I can tackle most generic jQuery/javascript features (By way of the gadgets API), or are there limitations I need to know about?
Thanks-
Share Improve this question asked May 4, 2011 at 20:54 YarinYarin 184k155 gold badges410 silver badges524 bronze badges1 Answer
Reset to default 8Wow I just googled Google Sites JQuery
and the first page that came was a google FAQ answering your question.
Can I use JQuery in Google sites?
The most popular answer:
Yes you can. Step by step : Add "safe html bypass" gadget to your site. Then in the properties section of the gadget, insert this html :
<script type="text/javascript" src="http://ajax.googleapis./ajax/libs/jquery/1.3/jquery.min.js"></script>
After that you can use jquery by adding more html elements and javascript. Example code :
<script type="text/javascript" src="http://ajax.googleapis./ajax/libs/jquery/1.3/jquery.min.js"></script>
<input type="text" value="oerten" id="text" onclick="" />
<input type="button" value="Click" id="but" onclick="var val=$('#text').attr('value');alert(val);" />
<br />
Just paste this code snippet into the "HTML Code" section of the "safe html bypass" gadget. Save it and go
Further Reading:
How to add javascript or custom contents to google sites with gadget
本文标签: JavaScriptjQuery limitations in Google SitesStack Overflow
版权声明:本文标题:JavaScriptjQuery limitations in Google Sites? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741805957a2398505.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论