Seems I can't get it to work properly. I downloaded a demo, and put it up on the site. That worked just fine, which can be seen here: http://dev.bpch.no/tidsreiser/web/logindemo.html But when I try to move it to my own dev-page, I can't get it to work. I've tried removing other scripts running, tried removing the Strict doctype, no go. I can't get the box to open. As far a I can see, there isn't any errors popping up in Firebug either. Maybe I'm just not familiar enough with Firebug to get full potential from it. Anyway, on this page: http://dev.bpch.no/tidsreiser/web/index.php the "log in" link under the heading just goes to the login.html page - no lightbox at all. Anyone have any input? What am I missing?
Hi, it tells me that "window.onDomReady is not a function" in modalbox.js. There could be some syntax problem (like unterminated command). I encounter same problems with terminating lines in the case the javascript code gets packed. Did you change something in modalbox.js or is it the original source?? Btw. I think you did touch the file, because on demo page, there's no error.
No touching the file. None whatsoever, but I'll try to upload it again. Uploaded the file again, no difference. I get lots of reds when using Firebug, but I'm afraid I'm not good at interpreting them. Might there be an error with some of the other js-files I'm running? They all work just fine, it seems, and I don't get errors normally.
Ok then, is it possible there's problem in Mootools version? I see on demo page you're using - mootools.js, while on the real page you have - mootools-1.2.2-core-yc.js...
Yes, that is what I've been thinking too - that it might be due to the version of MooTools - although the one I'm using is the newest release, it might not contain what's needed, or maybe they've changed the framework. Will check. And that was the problem... okay, then the question becomes: how do I get the moodalbox.js to work with the latest version of Mootools core release? Or, what do I have to do to use the moodalbox.js with the latest release? This is somewhat annoying, as the new releases of mootools often (it seems) changes the framework, or does not contain some elements that are needed.
Okay. I've removed the non-working demo from the development site, will try to fix this some other way instead. If someone has some suggestions as to how I can make a modular login-box on my site, using mootools, I'd appreciate a comment in this thread. The working demo is still up, however.
yeah there was one a while back. http://web-kreation.com/index.php/tutorials/nice-login-and-signup-panel-using-mootools-12/ also, you really ought to come to our mail list - http://groups.google.com/group/mootools-users and then there is http://www.mooforum.net/ (the new unofficial forum, may get you more answers than here) I do a similar onclick login on one of my sites, for example, go here: http://www.webtogs.co.uk/Montane_Extreme_Smock_106.html click 'write review' - it does a modal login. however, i have not yet converted this to mootools 1.2 but its not a big drama, 10 mins tops. in fact, the whole script took me 20 mins to write.
If you're still looking for a version of Moodalbox that works with the latest Mootools, I did exactly that a while ago: http://www.voidsystems.co.uk/moodalbox/ void.