While testing the work Antonio (yes sir, you did the hard part for rehydrating comets for me to copy) and I have done to make Lift utilize clustered containers, I have discovered I really need to use GET instead of POST in order to fetch the comet IDs when a session gets restored to a new Lift node. However, only ajaxPost has "dataType" as a parameter which I need to set to "html". On the other hand, ajaxGet only does "script" type.
I'd like to add "dataType" as a final optional parameter to ajaxGet, but unfortunately ajaxPost has it as the third argument. Hence our ajaxPost and ajaxGet will have the parameters in different order:
ajaxPost: function(url, data, dataType, onSuccess, onFailure)
ajaxGet: function(url, data, onSuccess, onFailure, dataType)
I could slap it into the center and do arguments length checking and so forth, but that would make existing code really gross. I feel like having the parameters inconsistent between the two is the lesser of two evils. What say the community?
Joe