how client-side presentation code interacts with server-side sorting/filter code?

J

jrefactors

how client-side presentation code interacts with server-side
sorting/filter code?

I have a html table that has sorting and filter capabilities. The
sorting and filter features
are done by server side Java code. When the user clicks the icon, it
should trigger
the javascript onClick event, and then to submit the request to the
server and get the
new table. The question is how client-side code talk to server-side
code? I know
this is a very common question, and there should be a common technique
to this problem.

please advise. thanks!!
 
S

Sudsy

how client-side presentation code interacts with server-side
sorting/filter code?

I have a html table that has sorting and filter capabilities. The
sorting and filter features
are done by server side Java code. When the user clicks the icon, it
should trigger
the javascript onClick event, and then to submit the request to the
server and get the
new table. The question is how client-side code talk to server-side
code? I know
this is a very common question, and there should be a common technique
to this problem.

There certainly is! It's often called the MVC (Model View Controller)
model. You click on the page controls and it sends a message to the
controller which then informs the view as to how it should present
the data in the underlying model. A common implementation is available
in the Struts framework.
Or perhaps you were asking something else?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top