I'm writing a cgi-based web application. In one part of the application you can maintain a list of items, and one of the things you can do is move an item up one spot on the list.
The link for moving an item up looks basically like this:
foo.cgi?action=moveItemUp&itemID=12345
My problem arises when there is an item that I want to move up two spots on the list. I can move it up one spot just fine, but when I click on the "move up" link the second time, the browser won't load the new page. Nothing happens at all.
I think it's because the browser sees that the URL for the new page is the same as the current page and therefore assumes that there is nothing to be done.
I can get around this by changing the link into a form submit button, but I wondered if there are any easier solutions out there.