I'm trying to add fancybox in grocery crud.
My concept is , when I click the "add" or "edit" button on flexigrid, then opens a fancybox(jquery).
Like---
.Can you please help me.
Thanks again for the library.
⚠ 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. ⚠
Posted 23 April 2012 - 23:20 PM
Posted 23 April 2012 - 23:22 PM
Posted 25 April 2012 - 16:28 PM
<link rel="stylesheet" href="<?=base_url()?>assets/plugins/fancybox/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen" />
<script type="text/javascript" src="<?=base_url()?>assets/plugins/fancybox/jquery.fancybox.pack.js?v=2.0.6"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".fancybox").fancybox();
});
</script>
$crud->callback_column('phone', array($this, '_callback_phone'));
//FANCYBOX TEST
public function _callback_phone($value, $row)
{
return "<a href='http://www.grocerycrud.com/assets/themes/default/images/logo.png' class='fancybox'>$value</a>";
}

Posted 25 April 2012 - 16:40 PM
$crud->callback_column('customerName', array($this, '_callback_name'));
function test_content()
{
echo 'BLARRRRP!!';
}
public function _callback_name($value, $row)
{
$atts = array(
'width' => '500',
'height' => '500',
'scrollbars' => 'yes',
'status' => 'yes',
'resizable' => 'yes',
'screenx' => '0',
'screeny' => '0'
);
return anchor_popup('examples/test_content', $value, $atts);
}
Posted 25 April 2012 - 16:48 PM
[/font][/color]
<link rel="stylesheet" href="<?=base_url()?>assets/plugins/fancybox/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen" />
<script type="text/javascript" src="<?=base_url()?>assets/plugins/fancybox/jquery.fancybox.pack.js?v=2.0.6"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".various").fancybox();
});
</script>
[/font][/color]
<a href='<?php echo $add_url?>' title='<?php echo $this->l('list_add'); ?> <?php echo $subject?>' class='various fancybox.ajax'>

Posted 25 April 2012 - 18:22 PM
Posted 25 April 2012 - 23:57 PM
Posted 26 April 2012 - 09:07 AM
//home.php
<div id="container">
<?php $this->load->view("header"); ?>
<div id="wrapper">
<?php $this->load->view($view); ?>
</div>
<?php $this->load->view("footer"); ?>
</div>
//output.php ($view variable contain the file name output.php)
<div style="width:950px; margin:0 auto;min-height:450px;">
<?php echo $output ; ?>
</div>
Posted 26 April 2012 - 10:42 AM
class='various fancybox.ajax'
class='various' data-fancybox-type="iframe"
href='<?php echo $add_url?>#wrapper'
class='various'
Posted 03 May 2012 - 15:05 PM
<link rel="stylesheet" href="<?=base_url()?>assets/plugins/fancybox/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen" />
<script type="text/javascript" src="<?=base_url()?>assets/plugins/fancybox/jquery.fancybox.pack.js?v=2.0.6"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".fancybox").fancybox();
});
$(document).ready(function() {
$(".various").fancybox({
maxWidth : 800,
maxHeight : 600,
fitToView : false,
width : '70%',
height : '70%',
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
});
</script>
$crud->add_action('More', '', 'demo/action_more','ui-icon-plus varius fancybox.iframe ');
[list]
void add_action( string $label, string $image_url , string $link_url , string $css_class , mixed $url_callback)
Posted 08 May 2012 - 18:38 PM
$crud->add_action('More', '', 'demo/action_more','ui-icon-plus various');
Posted 12 May 2012 - 06:43 AM
$crud->add_action('More', '', 'demo/action_more','ui-icon-plus various'); and not "varius fancybox.iframe". Follow the instructions of [member='KaBaDaBrA'] and it will work for the action too. [/quote]Posted 12 May 2012 - 08:18 AM
Posted 17 July 2012 - 08:04 AM
Posted 18 July 2012 - 05:58 AM
Posted 18 July 2012 - 06:13 AM
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
Posted 17 September 2012 - 13:41 PM
Posted 28 March 2013 - 13:35 PM
Hi guys
I've tried to implement it but it's not working with the new crud...or is there anyone who can send a working demo of the fancybox add.
Thanks