Hello, Trying to implement thickbox but when I click the image/link it
does nothing.

in template head I have this:
<?php echo  $this->Html->script(array('jquery/
jquery-1.4.4.min','jquery/jquery-ui-1.8.6.custom.min',  'thickbox/
thickbox.js'));?>

and this:
<?php echo $scripts_for_layout; ?>
<?php $css_for_layout; ?>

both thickbox and jquery show in firebug

thickbox.css in webroot

in AppController:
var $helpers = array('Time','Html', 'Form', 'Session', 'Javascript',
'Js' => 'Jquery', 'Calendar.Calendar', 'Calendar');

in my view:
echo  $this->Html->link(
$this->Html->image('/useruploads/document.png',
array('width'=>'50px')),
'/useruploads/document_large.png',
array(
    'escape' => false,
    'class' => 'thickbox'
)
);

What I actually need is this but using the above as a test:
echo $this->Html->link(
$this->Html->image('/useruploads/document.png',
array('width'=>'50px')),
array(
        'controller' => 'templates',
        'action' => 'view',
        $template['Template']['id']
),
array(
        'escape' => false,
        'class' => 'thickbox'
)
);

If I remove the 'class' => 'thickbox' the link works fine but no
thickbox.  What am I missing

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to