user1590759
user1590759

Reputation: 1

Google Libraries (mootools) not working with Google Script web app

I have a simple Google Script project. The code is:

function doGet() {
  return HtmlService.createHtmlOutputFromFile('main');
}

There is also main.html (where I am having the problem):

<html>
    <head>
       <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools.js"/>
    </head>
</html>

When I publish and test the script, I get the following error in the JavaScript console:

Cannot read property 'prototype_v___' of undefined 3953020933-maestro_htmlapp_bin_maestro_htmlapp.js:54

Can anyone shed some light on this?

Upvotes: 0

Views: 236

Answers (1)

Corey G
Corey G

Reputation: 7858

Currently the only supported libraries are jQuery and jQuery UI. You can't use mootools.

Upvotes: 1

Related Questions