Mootools 1.2.2 + Moodalbox

Discussion in 'JavaScript' started by PoPSiCLe, May 21, 2009.

  1. #1
    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?
     
    PoPSiCLe, May 21, 2009 IP
  2. lp1051

    lp1051 Well-Known Member

    Messages:
    163
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    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.
     
    lp1051, May 21, 2009 IP
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    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.
     
    PoPSiCLe, May 21, 2009 IP
  4. lp1051

    lp1051 Well-Known Member

    Messages:
    163
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #4
    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...
     
    lp1051, May 21, 2009 IP
  5. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #5
    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.
     
    PoPSiCLe, May 21, 2009 IP
  6. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #6
    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.
     
    PoPSiCLe, May 21, 2009 IP
  7. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #7
    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.
     
    dimitar christoff, May 22, 2009 IP
  8. void

    void Peon

    Messages:
    119
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #8
    void, Jun 23, 2009 IP