I've been tasked to develop a page that lists some number of rows of data from a DB table with that list shown in priority order (a column in record) and then allow the user to change that priority. When the user changes a priority the list should change (re-order) accordinly. The database should not be updated when the list is reordered but only when the user is completed and clicks the SAVE button. Someone mentioned Netflix and how it displays a users priority listing of movies. I'm not familiar with Netflix but I believe I understand the concept.
The application is written in ASP and we use SQL Server 2005.
I'm thinking I could manhandle something together but being new to this world of web development (see background below) I would like to learn the best approach to this.
My thoughts were maybe;
* creating some type of temporary table that I could update and reSELECT with an ORDER BY on the priority and then save the TEMP table's records to the real table when SAVE clicked.
* Maybe a Javascript to do this but I'm not aware of how to pass all the displayed rows to the script.
* have it call another .asp program to manhandle the rows
Any insights to the best approach to this would be very appreciated.
My Background
I have been a mainframe develper for 25+ years and just 6 months ago was asked to support an internal web application in ASP using MS SQL Server. I knew NOTHING of HTML, ASP, Javascript and web applications and am learning as I go and still doing my mainframe work along with this. Because of this I'm missing MANY basic concepts and I'm sure this issue probably refers to some basic understanding I lack. I just joined EE as a premium member as I need to find the best and fastest means to learn. Be kind.
Thanks
Bill
Start Free Trial