Displaying 1 result from an estimated 1 matches for "featuredcont".
2008 May 19
0
up/down/delete functions for list items, problem with bound parameters
...t element. This is causing a problem when I
create the functions for ordering the list (up/down). I can reorder
them, but the id stays with that element so that clicking on the up
button for one element causes a different element to move. Here is my
stripped down code for your viewing pleasure.
// FEATUREDCONTENT OBJECT
     featuredcontent = Class.create({
			initialize: function(name) {
				this.name = name;
				this.place = -1;
				this.FCArray = new Array(0);
			},
          addElement: function(id,headline) {
               upf = (function (pos) {
                    // Create div -> link ->...