How to create and populate a table using jquery and database?

3

I need to create a table in HTML that populates rows and columns with data coming from a specific table in my database. But I want whenever a new data is inserted into this database table, it automatically appears to the user in the HTML table. That's all without doing all page loading again.

I'm already using it in my Java, JavaScript, jQuery, and HTML project. Is there any way to do this with jQuery? If not, any idea that meets this need will be welcome.

    
asked by anonymous 06.04.2016 / 15:55

1 answer

1

Good by what you describe exergo 2 steps that are needed.

  • I think a solution would be for you to do a service to receive the information given that it is a database, so the method would return this data and you would only do Javascript with jQuery consuming the service.
  • On updating the fields, good you need to use a default that if memory fails me is OBSERVER. From x to x time it queries the method and changes if it has content.

I found this example in stackoverflow in English: link

I hope I have helped

    
29.06.2016 / 17:12