Page 1 of 1

Unable to define zones - Mootools problem?

Posted: Sun Mar 08, 2009 10:17 pm
by jefft
Hi,

I can't define zones in ZM 1.24.1 and I think the problem is something to do with Mootools, but I don't know enough about it to work this one out. Hoping someone out there knows more than I do and can point me in the right direction :o)

Problem is this:
When I click "Add a new zone", there are no +/- buttons under the points list (and no points). If I try to click the image itself to get a new point, FireBug reports two errors:
(1) "Ajax is not defined" - mootools.ext.js, line 50
(2) "div.makeDraggable is not a function" - zone.js, line 446

Relevant files:
/srv/www/htdocs/zm/js/mootools.ext.js - looks like decent enough JavaScript code, can see the Ajax call there;
/srv/www/htdocs/zm/tools/mootools/mootools.js - version 1.2.1, which I downloaded when this didn't work under 1.1.0;
/srv/www/htdocs/zm/mootools.js - odd looking bit of code. A load of symbols listed after what looks like a single function call, "eval(function(p,a,c,k,e,d)...".

Also, though not sure if relevant:
/usr/share/kde4/apps/kget/www/mootools-more.js
/usr/share/kde4/apps/kget/www/mootools-core-yc.js
/usr/share/kde4/apps/kget/www/mootools-core-yc.js.v1.2.0

This is on openSUSE 11.1 with a KDE desktop.

Anyone able to help me work this out?

Thanks in anticipation!

Jeff

Posted: Mon Mar 09, 2009 5:15 pm
by zoneminder
ZM currently ships with Mootools v1.11. I have not adapted it to work with 1.2.1 yet and it will not work with that version as it stands.

The only files you should have under your web root are tools/mootools/mootools.js and js/mootools.ext.js both of which should have been installed by ZM.

Posted: Mon Mar 09, 2009 8:41 pm
by jefft
OK, thanks. I'll put that back and see what Firebug tells me - I downloaded 1.2.1 'cos it was behaving in that way initially, so it will be interesting to see what happens now.

I'll get right back to you - thanks!

Posted: Mon Mar 09, 2009 8:58 pm
by jefft
Ah, ha! It was that dodgy looking mootools.js in the zm root directory that was screwing things up. Changed the name of that to hide it and I now have zones :D :D

Thanks very much!

Jeff

Having the same problem

Posted: Mon May 04, 2009 2:26 pm
by carlo1973
I'm having the same problem. I've posted a request for help but not recieved any for this issue as of yet.

Unlike Jefft, I did not make any changes/updates to mootools. I'm using the one included with zoneminder. I'm not seeing any corrupt/dodgy mootools.js scripts. Everything seems to be in their proper directories.
Other than this - my problem is exactly the same as to what Jefft was experiencing.

Suggestions?

Posted: Mon May 04, 2009 9:54 pm
by cordel
What browser are you using, zones editing does not work in some. Specially the ones that think they can develop there own standards.

Posted: Tue May 05, 2009 1:00 pm
by carlo1973
cordel wrote:What browser are you using, zones editing does not work in some. Specially the ones that think they can develop there own standards.
LOL This is true LOL I am using IE. I don't have FireFox on this station. I'll have to ask the main IT guy to test out zone creation. I'm only doing an internship here. Just finnished my course a month a go. Trying to gain experience in IT.