Hi,
I've developed an app using php, mysql and ajax. It works fine in my developer enviroment, but when I load it in frihost, part of the ajax code stop working. Does anyone have suffered the same? the strangest part to me is that some code works, but other don't.
I've noticed that when I run a code that depends on a field that changes (example a listbox), the code doesn't work.
Do you have any idea about what is happening?
Thanks in advance.
If you posted a link to your page, which contains that code, it would be easier for Frihosters who are AJAX experts to identify the issue. 
Thanks for your reply. I solved it with help of a friend. For some reason in my development enviroment when I call ajax code using "post" method, the receiving page is able to read the variables sent in the url. However when I use frihost, it is only able to read them if I use "get" method.
I'll have to change my code, since I'm sending textarea variables in some forms, so I can't send all them through "get".
Did you contact any moderator? Maybe that is a server limitation.
You didn't forget to set the header when using POST?
| Code: |
| xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") |
it should be before the send method.
Today I'm going to test an Ajax code for the first time. I hope that I won't have to deal with errors and such complexities.
For me it's better to change the code. My app will run in a hosting that my client is going to choose, so I prefer having this issues here and not in the production enviroment.
I didn't understand what you meant about setting the header. I can send url variables, but they are only read when I use get method.
I think this has been sorted out. I'll close this thread now.
If you're still facing problems, I recommend you use the other forums such as the HTML, Javascript and other forums that we have for support. Someone will be able to help you much faster there. This forum is meant mainly for support questions related to the Frihost Forums and other Frihost services not including the hosting. :)
-close-