0

I need to create, edit and delete the data in mysql. I made the servlet program for CRUD operation. I want build the webpage which displays the Table and buttons for CRUD. How should i start up write my JavaScript.

5
  • You don't write user interfaces in JavaScript. That's HTML. Commented Aug 17, 2010 at 8:32
  • Maybe you should try to do a proof-of-concept, something simple that uses JavaScript, a button, sends a message to the server, the server parses it and saves something in BD. Then, when you are sure of how to do each part... think about a CRUD :) Commented Aug 17, 2010 at 8:32
  • @Delan Azabani If i can write using J-Query. what is J-Query actually. Please explain me. Commented Aug 17, 2010 at 8:49
  • jQuery is a JavaScript library that defines a bunch of functions to extend features and smooth out browser incompatibilities. I don't use it myself as I don't believe 'general' libraries are any good. If you can write it with JavaScript alone, why go and find a way to do it with jQuery? Read more: azabani.com/articles/dependence Commented Aug 17, 2010 at 8:51
  • @DelanAzabani why you link dead links. Bring the site up. Commented Jan 22, 2012 at 17:06

2 Answers 2

1

You should get your JavaScript to talk to your servlet that is performing the CRUD actions. So your button "Create" calls a create method in your servlet. A easy way to do this is to use the Direct Web Remoting (DWR) JavaScript library - check their tutorial.

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

Comments

1

You should connect your javascript with a Web Service.

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.