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.
Unfortunately when i click on these images, and run the following codeCode:divTag.innerHTML = sName + '<img src="images/up.png" id="MoveUp'+ sName + '" onclick="MoveUp()"/><img src="images/down.png" id="MoveDown'+ sName + '" onclick="MoveDown()"/>';
The MoveUp routine gives the message "undefined" in the alertCode:function MoveUp(){ alert(this.id); RefreshOrder("TRUE"); }
Any help would be appreciated.
Thanks
Jonathan



Reply With Quote

Bookmarks