I just want report you an error i have found and solve (perhabs not
with the best way).

I'm using the version 1.6.0.3 of prototype.js library.

I have to add the jquery datepicker library. There have a confict with
the jquery event fired.

I just add a try ... Catch block in the prototype.js library to sove
the probleme.

My new "fire: function(element, eventName, memo)" look like this at
line 4053 of prototype.js library:

    fire: function(element, eventName, memo) {
      element = $(element);
      if (element == document && document.createEvent && !
element.dispatchEvent)
        element = document.documentElement;

      var event;
      if (document.createEvent) {
        event = document.createEvent("HTMLEvents");
        event.initEvent("dataavailable", true, true);
      } else {
        event = document.createEventObject();
        event.eventType = "ondataavailable";
      }

      event.eventName = eventName;
      event.memo = memo || { };

      if (document.createEvent) {
        element.dispatchEvent(event);
      } else {
        // Add Try...Catch block to solve jquery-1.3.1.js conflict
        try {
        element.fireEvent(event.eventType, event);
        catch(Exception ex) {}
      }

      return Event.extend(event);
    }


Best regards

David

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to