views:

26

answers:

1

In the project I am working on uses established and then used in many parts

 function Ajax (recvType, waitId)

I want to use the "prototype framework" it have class Ajax it is better to do and where to change ? or change in prototype and afte using another name instead Ajax some else name? Or change in all project ? or is there a way to produce two desired method with the same name?

A: 

Prototype has a class named Ajax. This is bound to create conflicts with your existing class.

I would strongly recommend renaming your class. Renaming Prototype's Ajax class is a lot of work, you'd have to repeat it for every new version, and it may break other plugins relying on it.

JSFiddle demo throwing an error

Pekka