Mootools / Validation

aramshaw 26 May, 2010
Hi guys,

I have had Chronofroms running on my site with validation for about 2 months. Recently I changed the place that mootools is loaded from. It was loading form my local domain but I moved it to ajax.googleapis.com to be able to access a gzipped version and reduce page load time.

Now howver, I noticed that my forms work but validation (except the built in Verifciation code) no longer works.

Any ideas on how to fix. Do I need to go back to a local mootools load. I really want to keep the googleapis load for page speed.

Sample page is http://www.genroe.com/free-tool-downloads/return-on-retention-estimator .

Thanks.
Adam Ramshaw
GreyHead 27 May, 2010
Hi Adam,

MooTools doesn't appear to be loading at all on that page.

Providing that you are loading the correct version (MooTools 1.12 I think) there should be no problem in using a gzipped version either locally or from googleapis.
google.load("mootools", "1");


Bob
aramshaw 30 May, 2010
Bob,

Thanks for the response but I'm a little confused.

For this page (http://www.genroe.com/free-tool-downloads/return-on-retention-estimator).

I thought mootools was loading via line 80:

<script type="text/javascript" scr="http://ajax.googleapis.com/ajax/libs/mootools/1.1.2/mootools-yui-compressed.js"> </script> 


I had decided not to go with the google.load approach becuase of the extra DNS look-up.

Does this is not load mootools?

Thanks,
Adam
GreyHead 30 May, 2010
Hi aramshaw,

Indeed that should load it . . . but it isn't. All I see in the page source is
<script scr="http://ajax.googleapis.com/ajax/libs/mootools/1.1.2/mootools-yui-compressed.js" type="text/javascript">1</script>


Bob
aramshaw 30 May, 2010
Bob,

Thanks. In all honesty I'm sure sure exactly what the problem was but I moved the code line to above the <jdoc:include type="head" /> section and went back to the google.load approach and it works.

Thanks,
Adam
This topic is locked and no more replies can be posted.