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.

asked May 31, 2011 at 6:37

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

answered May 31, 2011 at 6:40

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.

answered May 31, 2011 at 6:40

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.

answered May 31, 2011 at 7:44

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.

answered Oct 29, 2013 at 7:31

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.