1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

jQuery and prototype

Discussion in 'jQuery' started by blognol, Aug 10, 2008.

  1. #1
    When i use jQuery and prototype in a same page , the jQuery functions are not working.

    Can we use jQuery and prototype in same page ?
     
    blognol, Aug 10, 2008 IP
  2. kceleb9

    kceleb9 Peon

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes - you need to use the jQuery.noConflict() or jQuery.noConflict(extreme) - methods - these turn back control of the $ shortcut to any other library that wants it. You will then have to call jQuery methods using the "jQUery" function name instead of $.

    jQuery is BY FAR the best library at "playing friendly" with other libraries - one of the big shortcommings of Prototype is the way it takes over $ with no way of getting it back.

    You can find more info here:

    http://docs.jquery.com/Core
     
    kceleb9, Aug 11, 2008 IP