I've been trying to get the aeron calendar (http://www.electricprism.com/aeron/calendar/) to work with the latest mootools

Theres a compatibility script to make it work, which it does, but in google chrome clicking the calendar submits the form in google chrome

I really need chrome support, does anybody have any idea what the problem is, or are there any javascript guru's out there that are able to fix the problem

I am willing to pay to get this fixed, I can put up a demo page if needs be

many thanks


  • The demo works in chrome, so it's got to be a conflict on the website you're working on. Post a link to the page and I will debug it a bit and see what's going on. Gary Hepting over 8 years ago
  • The demo on the link above isn't using the latest mootools though, will post a demo page as soon as i can, cheers Dave Marks over 8 years ago
  • heres there demo, thanks again http://dave-marks.co.uk/calendar/ Dave Marks over 8 years ago

2 answers

Mottie 1134

Did you try making the changes suggested in this forum post?

Answered over 8 years ago by Mottie
  • Yes!! thanks so much! :) ...I've googled and read various forum posts for hours on several different occasions trying to find a solution to this! Dave Marks over 8 years ago
  • Hello. I see the same problem on one of my websites but the link containing the fix is not valid anymore... I know the post is far old but it would be great if you could post the fix here. Thank you in advance. Eddy over 5 years ago
Eddy 0

Even the post is 2 years old, this is now that I encounter this problem and the link given by Fudgey is dead. So, I give my fix.

After having tried to repair the Calendar class, with no suitable result, I finally added a little trick to the script related to the form that uses this calendar object.

var clickSubmit = false;
window.addEvent('domready', function() { 
    new Calendar({ myDateInput: 'd/m/Y' });
    if (clickSubmit == false)
      clickSubmit = false;
clickSubmit = true;

It is not really a fix but a workaround instead for legacy. It let me fix an existing form that uses this Calendar class with a mootools version that I can't change ; but for newer forms, an up-to-date calendar class would be great. So, if somebody wants to suggest one that is functionally similar and compatible with the last mootools version, don't hesitate to post it here. Thank you.

Answered over 5 years ago by Eddy