cdoverlaw
06-23-2009, 04:15 PM
hi
I use this code to create 2 images next to a string, these are going to be used for moving nodes up and down.
divTag.innerHTML = sName + '<img src="images/up.png" id="MoveUp'+ sName + '" onclick="MoveUp()"/><img src="images/down.png" id="MoveDown'+ sName + '" onclick="MoveDown()"/>';
Unfortunately when i click on these images, and run the following code
function MoveUp(){
alert(this.id);
RefreshOrder("TRUE");
}
The MoveUp routine gives the message "undefined" in the alert
Any help would be appreciated.
Thanks
Jonathan
I use this code to create 2 images next to a string, these are going to be used for moving nodes up and down.
divTag.innerHTML = sName + '<img src="images/up.png" id="MoveUp'+ sName + '" onclick="MoveUp()"/><img src="images/down.png" id="MoveDown'+ sName + '" onclick="MoveDown()"/>';
Unfortunately when i click on these images, and run the following code
function MoveUp(){
alert(this.id);
RefreshOrder("TRUE");
}
The MoveUp routine gives the message "undefined" in the alert
Any help would be appreciated.
Thanks
Jonathan