1

I have to develop a website for mobile phones and I am using html5 and javascript. Can I access/insert into server database using html5 and javascript only without using asp, php or any other server side language.

4 Answers 4

2

Yes it is. You will however need a backend database with a HTTP interface. One of which is MongoDB which has a REST interface.

More info here http://www.mongodb.org/display/DOCS/Mongo+Extended+JSON

Sign up to request clarification or add additional context in comments.

Comments

1

No, you can't, and if you could then you would be insane to do so as it would allow everybody to make arbitrary SQL queries.

Comments

0

Html and Javascript are the Front end side languages, it not advisable to use those languages features to connect to database. Later it would be very tough to maintain it and enhance it.

ALWAYS THINK IN FUTURE PERSPECTIVE, else your code becomes obsolete

instead you can use any scripting language like php to connect to database. Since you wanted to create a website, obviously PHP and mysal will be always available to you at NO COST.

Comments

0

Use javascript and maybe you may not want to connect to mysql... Try .csv formats and excel... It's good if you are not storing sensitive information.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.