Test passed.
The whole site is a large joomla site, with PHP+MySQL.
I have wasted way too long with this issue, since these are common technologies, it shouldn't be so difficult to solve it...
I'm looking for an answer in stackoverflow, so far it seems Jquery+PHP script isn't ok. I'll post the solution here, perhaps it will help others.