Exactly The Same Code Not working In other Server Environment |
[eluser]rwzhao[/eluser]
Hello, I am using Jquery UI Autocomplete on my test server and It works perfectly fine.The live is at the following link: http://git.click4ship.com/test/index.php/welcome/client To test, type word 'express'. Then I move the exactly the same code to the other server and It does not work and has 'data null' error at firebug. The other server is live at the following: http://www.click4ship.com/test/index.php/welcome/client Is there requirement for Jquery to work? Any help will be appreciated.
[eluser]Stoney[/eluser]
On http://www.click4ship.com/test/index.php/welcome/client, you don't get any JSON response (firebug), I would look at the CI side for the error...
[eluser]eokorie[/eluser]
You may want to check the PHP version that is on your server. I recently got caught short on exactly the same problem where I wasn't getting any JSON response. If you PHP Version is belowe 5.2, you may need to add a JSON library to your application in order to get it to work. Hope this helps
[eluser]Mat-Moo[/eluser]
I would change your JSOn callback to /index.php/..... got a feeling it's a path issue.
[eluser]rwzhao[/eluser]
[quote author="eokorie" date="1303995774"]You may want to check the PHP version that is on your server. I recently got caught short on exactly the same problem where I wasn't getting any JSON response. If you PHP Version is belowe 5.2, you may need to add a JSON library to your application in order to get it to work. Hope this helps[/quote] Thanks. It did not have Json Library. It is now. |
Welcome Guest, Not a member yet? Register Sign In |