:: Forum >>

Change Cell image from combo selection

I am trying to update the image in the cell based on a combo selection.
Everything seems to work except that when the object is refreshed it causes the values to go back to the original values, both image and text.
not sure why but it seems like onCellTextChanged is being run after the refresh function.

here is the code for the list and combo:
var arrow_text='<?php echo implode(",",$a_arrow_labels); ?>';

var arrow_value='<?php echo implode(",",$a_arrow_values); ?>';
var arrow_css='<?php echo implode(",",$a_arrow_css); ?>';

    var arrow_list = new AW.UI.List;
    arrow_list.setItemText(arrow_text);//arrow_text is built in mine.php based on sql.

function arrowpic(col, row){
return arrow_css[i];

    ArrowCombo = new AW.Templates.Combo;
    obj2.setCellTemplate(ArrowCombo, 1);
    obj2.setPopupTemplate(arrow_list, 1);

And here is the onCellTextChanged code:

obj2.onCellTextChanged = function(text, column, row){
                        updateVC(row,column,arrow_value[i],obj2); //arrow_value is defined in mine.php
                                table2.getNode(column, row).textContent=text;
                                //this.setCellData(text, column, row);
//this.setCellText(undefined, column, row);

As you can see from the commented code I have tried a number of different things. I am greatful for any ideas.
Monday, November 27, 2006

This topic is archived.

Back to support forum

Forum search