I’m searching for things that return no result and it keeps doing the ‘Processing, please wait…’ . Is there a way to make it say that there are no results instead of saying processing infinitely?
Also, it seems that you can’t search anymore until you reload the page. It gets stuck on the infinite processing.
Edit: Actually, you’re not able to do anything after it gets stuck.
quick fix:
controller\ajax.php line 39
//Print please if (isset($record_items)) $this->output->set_output($this->flexigrid->json_build($records['record_count'],$record_items)); else $this->output->set_output('{"page":"1","total":"0","rows":[]}');Very nice! Thank you Mosos.
I have the same issue - but the ‘quick fix’ made no difference. Something I’ve done wrong?
I should add ... I used the Console in FireBug to find this:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Ajax_model::$db
Filename: models/ajax_model.php
Line Number: 31</div>
Fatal error: Call to a member function select() on a non-object in /var/www/domain_name_removed/html
/system/flexigrid/models/ajax_model.php on line 31
From that it appears the ‘db’ object has not been instantiated but this is an example code set, so I am sure it has.Ideas?
Thanks in advance.
Eric
ARGH! Silly mistake on my part. I thought the database library was loaded - it wasn’t! So, I simply added it to the autoload.php file and everything worked like a charm!
Sorry for wasting everyone’s time - but at least it is here for someone else - so they can avoid the same mistake.
Thanks,
Eric