Supersized and codeigniter connection fails -
i have odd problem using codeigniter , supersized. plugin works fine , i'm able load root dir, when use in mvc workflow doesn't seem load image.
the image correctly linked , can see code supposed there. thing see though, black screen.
my code standard core example, nothing more/nothing less. linked still no dice.
controller
function test(){ $data['img'] = base_url()."../_data/images/bg.jpg"; $data['main_content'] = 'core_view'; $this->load->view('/includes/templatepop_view',$data); }
html
... <link rel="stylesheet" href="<?=base_url();?>../_data/css/supersized.core.css" type="text/css" media="screen" /> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script> <script type="text/javascript" src="<?=base_url();?>../_data/js/supersized.core.3.2.1.js"></script> <script type="text/javascript"> jquery(function($){ $.supersized({ slides : [ {image : '<?= $img;?>'} ] }); }); </script> </head> <body> <div id="content"> </div> ...
any suggestions?
the problem template used header. loaded jquery twice , bunch of other stuff, interfered supersized script. i'll leave might have similar problem.
Comments
Post a Comment