Problem with scriptaculous glyder

Discussion in 'JavaScript' started by sojic, Jan 12, 2009.

  1. #1
    sojic, Jan 12, 2009 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    scriptaculous relies on either prototype or mootools (as far as i remember).

    if it says addEvent undefined, it means it got to this part of the javascript before it has finished loading the prototype script. the only differences i can see between the school and the village site is that the one that doesn't work references the js files by domain name - which means, it has dns resolution to perform before it reaches the host and requests the file - this probably adds enough of a delay to cause the undefined error.

    otherwise, dunno - i could not find which of the included files define 'addEvent' - is that a native construct? i know mootools extends everything by adding this but i have not seen it used as addEvent(element, event, function);
     
    dimitar christoff, Jan 13, 2009 IP