[attachment=467:output.png]After reading this /topic/355-answered-how-to-add-fancybox-in-grocery-crud/, I was working on integrating fancy box .
Although everything is working well, except the fancy box css does not seems to be linked
By default, the list_template.php file has fancybox css and js linked.
Heres my code.
function customers_management() { $crud = new grocery_CRUD(); $crud->set_js('assets/grocery_crud/js/jquery-1.8.2.js'); $crud->set_js('assets/grocery_crud/js/custom.js'); $crud->set_table('customers'); $crud->callback_column('test',array($this,'_callback_test_function')); $crud->display_as('salesRepEmployeeNumber','from Employeer') ->display_as('customerName','Name'); $crud->set_subject('Customer'); $crud->set_relation('salesRepEmployeeNumber','employees','lastName'); $output = $crud->render(); $this->_example_output($output); }
And this is the callback_function
function _callback_test_function($value, $row) { $attributes = array( 'width' => '500', 'height' => '500', 'scrollbars' => 'no', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0', 'class' => 'various fancybox.ajax' ); return anchor_popup('examples/test_content/'.$row->customerNumber,'Click Here', $attributes); }
And the custom js file
$(document).ready(function() { $(".various").fancybox(); });
I have attached screen shot . Please guide, how to solve this problem :)