Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with a form

Status
Not open for further replies.

crystalb24

Programmer
Aug 31, 2004
75
US
I am trying to create a form in the following scenario -

I have a list of several individual checklists. When a user selects one, and pop-up window appears that allows them to customize that that specific checklist, reordering items mainly.

I have the pop-up window feature working, but what I can't figure out is how to set up the reordering feature. What I'd like is to have textareas available next to the individual items on the checklist that the user can number in the order that they would like them to be, click a button and have the list refresh into the order they have indicated. (A good example of this, and the first one that pops to mind is the BlockbusterOnline > Manage your Q screen where you can reorder the movies on your list, click update and the page refreshes with the movies in the new order).

Anyone know how to do this?

~Crystal
 
How do you want the ordering to be?

Like this:
Code:
Value  | Pos
------------
Item 1 | 3
Item 2 | 2
Item 3 | 1
becomes
Code:
Value  | Pos
------------
Item 3 | 
Item 2 | 
Item 1 |

Can you show in this format?

--Chessbot

"So it goes."
Kurt Vonnegut, Slaughterhouse Five
 
Here's the idea:

On the main page
Code:
<script language="javascript">
function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "resizable=yes");
}
</script>

<a href="javascript:Start('checklist1.htm')";><input type="checkbox" name="checkbox4"></a>Checklist 1
<br>
<a href="javascript:Start('checklist2.htm')";><input type="checkbox" name="checkbox4"></a>Checklist 2

checklist1.htm
Code:
Item 1
     subitem 1
     subitem 2
Item 2
     subitem 1
     subitem 2
Item 3
     subitem 1
     subitem 2
Item 4
     subitem 1
     subitem 2
Item 5
     subitem 1
     subitem 2

All of the items on the subsequent (checklist1.htm, checklist2.htm) pages would be orderable and/or deleteable to create a custom checklist from the choices.

~Crystal
Click here ( for a free iPod
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top