:: Forum >> Version 2 >>

Javascript Error on new AW.UI.Grid

obj.setClass("selectors",function(){return this.getSelectorVisible()?"visible":"hidden"});

The debugger highlights the code within the function with

"Object does not support this property or method"

Page works fine in firefox.. If I cant get this to work I wont be able to convince the client to purchase license, so this is pretty urgent :x
Paris
Thursday, September 27, 2007
That's strange. Do you see it in the standard examples or your own code? If its your code, could you make an example how to reproduce this?
Alex (ActiveWidgets)
Friday, September 28, 2007
works fine in standard, which is what is weird..there is other code before this, using the button js, etc..but javascript executes them and displays them fine, its when it run into the initiating the class that is dies..

i was thinking maybe the obj var is being called in the table response function to soon, but even when i removed it, the error still came up..

var parry = new Array();
    var 
error;
    var 
string = new AW.Formats.String;
    var 
money = new AW.Formats.Number;
    
money.setTextFormat'$#,###.##' );

    var 
= new AW.HTTP.Request;
    
c.setURL'calculate.php' );
    
c.setParameter'session' '<?= session_id() ?>' );
    
c.setRequestMethod'POST' );
    
c.response1 c.response;
    
c.setAsyncfalse );
    
c.setParameter'month' , <?=$month?> );
    
c.response = function( data )
    { 
        if( 
error this.getResponseHeader'Error' ) )
            
alerterror );
        else
        {
            
this.response1data );
            
alert('Your register has been updated.')
        }
    }

    var 
table = new AW.XML.Table;
    var 
prev
    var 
ishis;
    var 
hascalc;
    
table.setURL'xml.php' );
    
table.setParameter'session' '<?= session_id() ?>' );
    
table.setRequestMethod'POST' );
    
table.setAsyncfalse );
    
table.response1 table.response;
    
table.setParameter'month' , <?=$month?> );
    var 
uplast false;
    
table.response = function( data )
    {
        if( 
error this.getResponseHeader'Error' ) )
            
alerterror );
        else
        {
            var 
thiscalc = <?=$hascalc?>;
            
/*
            if( !thiscalc )
            {
                fresh();
                return;
            }
            else
            {
            */
                
prev =  parseFloatthis.getResponseHeader'Prev' ) );
                
ishis =  this.getResponseHeader'History' );
                var 
income this.getResponseHeader'Income' );
                if( 
income )
                {
                    $(
'moni').value income;
                    $(
'moni').disabled 'disabled';
                }
                
                
obj.setRowCountthis.getResponseHeader'Rowcount' ) );
                
obj.setFooterText( [''this.getResponseHeader'Newdate' ) , 'New Balance' '' '' money.dataToTextthis.getResponseHeader'Newbalance' ) ) ] );
                
this.response1data );
            
//}
        
}
    };
    
    
table.setData = function( value col row )
    {
        var 
node this.getNodecol row );
        if( 
AW.ie )
            
node.text value;
        else
            
node.textContent value;
    }        

    var 
obj2 = new AW.UI.Grid;
 
Paris
Friday, September 28, 2007
* var obj = new AW.UI.Grid;
Paris
Friday, September 28, 2007
i figured out the error, disregard this...ie is just proving how horrible of a browser it is..
Paris
Monday, October 1, 2007



This topic is archived.

Back to support forum

Forum search