Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Mootools loaded AFTER calendar-script
(1 viewing) (1) Guest
Universal booking and reservations component for Joomla!.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Mootools loaded AFTER calendar-script

Mootools loaded AFTER calendar-script 11 years, 8 months ago #37429

  • nhhs
  • OFFLINE
  • Posts: 7
Suddenly the inline javascript for the calendar in the header was inserted before the mootols-script.
I now get : TypeError: window.addEvent is not a function

This happens only on the booking object-view and not in other pages on the site.

How can i fix this?
The topic has been locked.

Re: Mootools loaded AFTER calendar-script 11 years, 8 months ago #37493

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

Do you use jQuery on your website? Maybe you have conflict between mootools and jQuery.
How to resolve MooTools x JQuery conflict?
ARTIO Support Team
The topic has been locked.

Re: Mootools loaded AFTER calendar-script 11 years, 8 months ago #37494

  • nhhs
  • OFFLINE
  • Posts: 7
I use jQuery but it's not any problem on other pages. Only the page that show the object and where you choose day/hour. On that page the inline javascript generated by the booking-script in header comes before all other javascrips-files.
The topic has been locked.

Re: Mootools loaded AFTER calendar-script 11 years, 8 months ago #37499

  • maju
  • OFFLINE
  • Posts: 1107
Ok, can you post url to your website here? But I don't think that this will be problem.
Object detail is first page where you can have problem with mootools vs jQuery. If jQuery is not in non-conflict mode, then it will never work.
ARTIO Support Team
Last Edit: 11 years, 8 months ago by maju.
The topic has been locked.

Re: Mootools loaded AFTER calendar-script 11 years, 8 months ago #37504

  • nhhs
  • OFFLINE
  • Posts: 7
I have opened up the bookingpage. It usually for logged in users.

beta.nhhs.no/student/rombooking/objects/3-moterom
The topic has been locked.

Re: Mootools loaded AFTER calendar-script 11 years, 8 months ago #37506

  • maju
  • OFFLINE
  • Posts: 1107
Ok, so I checked it and I still think that it is problem of conflict:

1. mootools is loaded before jQuery (jQuery have to be loaded first and modified to non-conflict mode)
2. window.addEvent('domready', function() { is mootools function which doesn't work because of conflict.
This row only say to mootools 'wait until document will be ready and then continue in script'. This is mootools functionality and without it booking can't work.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
  • 2
User Login Empty