⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Integrating Fancy Box CSS



Christopher
  • profile picture
  • Member

Posted 13 February 2013 - 13:52 PM

[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 :)


Christopher
  • profile picture
  • Member

Posted 14 February 2013 - 06:49 AM

Anyone.. ????


deib97
  • profile picture
  • Member

Posted 28 March 2013 - 07:00 AM

same problem with me...


putoyair
  • profile picture
  • Member

Posted 31 March 2013 - 04:36 AM

oh, This is cool question, hope it gets solved