I have two servers, development and production running both IIS7 and Coldfusion 8 standard.
Although the entire website is on SSL, all pages other than logs are SSL.
I was working on a half-cold / half-ajax power site search.
The dev server, when taken to production, I really started getting weird errors.
Like the fact that the data did not return data in the Jason format, even if ReturnType = Jason, and the serialization array that was returning to me was returning data.
Then when I try to remove returntype = JSON, it always says invalid token.
When called ajax, it specifies to specify JSN's datatype, and the return format in the URL says that Jason. And all of this works well on our dev server, but Ajax refuses to work on part production.
At first I thought that there was an SSL issue, which is if the Ajax URL is SSL, then this error is being called the original root policy, so I change the Ajax URL to a non-SSL , And then this is either not returning data or it says invalid token.
In my CFC, I have a main CFC that I need all the data, I want it in different ways of the form, then put those results in a different position inside an array.
Then go
I have tried to remove returntype = json at the cffunction command, and it seems that when I try to see CRC directly in the URL but when AJAX calls it, either it calls an invalid token.
When I run the same code on Dev, there is no error, so all AJAX works 100%.
Can there be any suggestions for this issue?
Thanks
Well apparently, I deleted the data type : 'Json' started working with Ajax request!
Sweet Mom I wonder why production is so strange on Dev.
Thank you.
Comments
Post a Comment