Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1750 by [email protected]: Unable to reference google hosted
jquery (2.0.0) in google apps script web app, but works with 1.9.1
http://code.google.com/p/google-caja/issues/detail?id=1750
I originally posted this issue on the Google Apps Script issue tracker, but
they recommended that I post i here instead. For reference, the original
issue report is here:
https://code.google.com/p/google-apps-script-issues/issues/detail?id=2812
What revision of the cajoler exhibits the problem? On what browser and OS?
Uncertain, the one google apps script web apps use. Windows 7 x64 Chrome
Version 27.0.1453.94 m
What steps will reproduce the problem?
1.Create simple web app that references google's hosted jquery 2.0.0,
according to https://developers.google.com/speed/libraries/devguide#jquery
Code.gs:
function doGet() {
return HtmlService
.createTemplateFromFile('index')
.evaluate();
}
index:
<!DOCTYPE html>
<html>
<head>
<script
src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script>
$(document).ready(function () {
$("p").text("The DOM is now loaded and can be manipulated.");
});
</script>
</head>
<body>
<p>Not loaded yet.</p>
</body>
</html>
2. Publish > Deploy as web app...
What is the expected output? What do you see instead?
The message "The DOM is now loaded and can be manipulated." should be
displayed once the page has loaded. However, it seems that it is never
loaded. It works with 1.9.1, but not 2.0.0.
Please provide any additional information below.
I can reference 1.9.1 without any problems inside my web app, but if I try
to reference 2.0.0, it doesn't seem to work.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.