The problem is that 1.2 does not send the xhr header if the call is made with a full http:// uri. If you just use the pathname it works fine. Took me a few hours of playing to figure this one out. Guess its a cross site security fix.
On Oct 11, 4:30 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > So I just tried upgrading from 1.1.4 to 1.2 and everything breaks. I > have gotten ajax calls working with the json data type. However > anything with the type of script is seen byrailsas a html request > and it work accept the data as well. I am manually setting the > headers, which I have had to do sorailscan recognize it as a > javascript request. I am even using the compatibility plugin and > nothing works. I can just go back to 1.1.4 because a lot of the > plugins I am wanting to use require 1.2. Anyone have any ideas how to > fix this?