PHP Classes

problem with ajax

Recommend this page to a friend!

      Eyesis Data Grid Control  >  All threads  >  problem with ajax  >  (Un) Subscribe thread alerts  
Subject:problem with ajax
Summary:Notice: Undefined variable: this in class.eyedatagrid.inc.php
Messages:4
Author:Gabriel Guzman
Date:2008-12-26 14:59:11
Update:2010-12-27 09:38:07
 

  1. problem with ajax   Reply   Report abuse  
Picture of Gabriel Guzman Gabriel Guzman - 2008-12-26 14:59:11
I got this message when i'm trying to test the grids with ajax funcionality:

Notice: Undefined variable: this in C:\www\test_gabo\eyedatagrid-1.1\class.eyedatagrid.inc.php on line 884

I copied and pasted the example from the web and replace the fields with the ones of my database. Anyone knows what can be wrong?

thanks!

gabo

  2. Re: problem with ajax   Reply   Report abuse  
Picture of Enrique Enrique - 2010-01-28 17:20:10 - In reply to message 1 from Gabriel Guzman
I have the same problem. anybody?

  3. Re: problem with ajax   Reply   Report abuse  
Picture of hakan kozakli hakan kozakli - 2010-04-20 15:29:44 - In reply to message 2 from Enrique
I dont know the answer but it works if you add error_reporting(0); to the top of the php file. You can use it like that until patch comes.

  4. Re: problem with ajax   Reply   Report abuse  
Picture of radhabn radhabn - 2010-12-27 09:38:07 - In reply to message 1 from Gabriel Guzman
Temporary Solution:

Comment the following Lines
if ($this)
{
$page = $this->page;
$order =(($this->order) ? implode(':', $this->order) : '');
$filter =(($this->filter) ? implode(':', $this->filter) : '');
}

Add The following line:

$page = '';
$order = '';
$filter = '';

The whole script works fine.

Radha Kishnan