Hi, I am trying to delete an element in an Array. By specifying the code to be executed in the Onclick event of a hyperlink. However the code does delete the last element entered into the Array when the form loads and also on the onClick event? Does anyone know the reason. I thought the code would only be executed when the button is clicked?
Any ideas greatly appreciated. The code is shown below. This code is implemented in a loop which loops through an Array.
<A
href="checkout.cfm?delete=#rowCount#" <!---onclick="#ArrayDeleteAt(session.basket,rowCount)#"--->target=mainFrame>
<IMG border=0 height=28 name=Image2 src="checkout_files/remove.gif"
width=67></A></TD></TR>
<TR>