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
September 27,
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)
September 28,
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 c = new AW.HTTP.Request;
c.setURL( 'calculate.php' );
c.setParameter( 'session' , '<?= session_id() ?>' );
c.setRequestMethod( 'POST' );
c.response1 = c.response;
c.setAsync( false );
c.setParameter( 'month' , <?=$month?> );
c.response = function( data )
{
if( error = this.getResponseHeader( 'Error' ) )
alert( error );
else
{
this.response1( data );
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.setAsync( false );
table.response1 = table.response;
table.setParameter( 'month' , <?=$month?> );
var uplast = false;
table.response = function( data )
{
if( error = this.getResponseHeader( 'Error' ) )
alert( error );
else
{
var thiscalc = <?=$hascalc?>;
prev = parseFloat( this.getResponseHeader( 'Prev' ) );
ishis = this.getResponseHeader( 'History' );
var income = this.getResponseHeader( 'Income' );
if( income > 0 )
{
$('moni').value = income;
$('moni').disabled = 'disabled';
}
obj.setRowCount( this.getResponseHeader( 'Rowcount' ) );
obj.setFooterText( ['', this.getResponseHeader( 'Newdate' ) , 'New Balance' , '' , '' , money.dataToText( this.getResponseHeader( 'Newbalance' ) ) ] );
this.response1( data );
}
};
table.setData = function( value , col , row )
{
var node = this.getNode( col , row );
if( AW.ie )
node.text = value;
else
node.textContent = value;
}
var obj2 = new AW.UI.Grid;
Paris
September 28,
* var obj = new AW.UI.Grid;
Paris
September 28,
i figured out the error, disregard this...ie is just proving how horrible of a browser it is..
Paris
October 1,