Conflicting Scripts - Menu and Slim Box

Discussion in 'JavaScript' started by lippstuh, Oct 17, 2008.

  1. #1
    I'm running a drop down script and a "milk box" script which is like slim box for the images on my page. also the contact section on the side is run by jquery which is also not working. so only thing "loaded" to work is the milk box. menu and contact scripts are down.

    Now how do I fix it?


    url: http://www.wendtgallery.com/wendtgallery/newarrivals/
     
    lippstuh, Oct 17, 2008 IP
  2. Marshton

    Marshton Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Err... I'm not expert but shouldn't there be a <body onload=""> with an function inside it?
     
    Marshton, Oct 17, 2008 IP
  3. lippstuh

    lippstuh Guest

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    lippstuh, Oct 17, 2008 IP
  4. agnus

    agnus Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi guys, I'm the developer of the drop down menu script. I found this post by accident and thought I could give a hand.

    @lippstuh

    MooTools and jquery are more than sure conflicting. The MooTools devs always stated that they don't care to make MooTools compatible with jquery or any other framework. Try using only MooTools, it's more than enough. It's actually quite easy to submit a form in MooTools:

    $('form_id').addEvent('submit',function(event){
       new Event(event).stop();// to stop the form from submitting
       new Request({
          url:$('form_id').get('action'),
          onComplete: function(response){
             alert(response);
          }
       }).post($('form_id')); // send the form
    })
    Code (markup):
    @Marshton

    No more need for the <body onload=""... Now you can add events directly from JavaScript
    Example: window.addEvent('domready',function(){ do something when dom is ready })
    This is the approach MooTools uses, I don't know about other frameworks.

    I hope I'm not too late with the explaining.
     
    agnus, Oct 30, 2008 IP