I am trying to create small application such as weather & live sport scores apps using HTML5,CSS3 and JQuery .
thanks in advance
“If you’re good at something, never do it for free.” —The Joker
I recommend you to use some server side code between your frontend and your database. Accessing the database directly from jQuery Ajax using username and password is not a good option.
This case apply to any database services. If you using an API with token validation and permissions like Twitter, you can access the data directly from Ajax calls.