Matthew Weier O'Phinney-3 wrote:
> 
> -- aad pouw <[email protected]> wrote
> (on Sunday, 30 November 2008, 04:56 AM -0800):
>> Before I go on with this issue, I first want to mention this.
>> ZFW 1.7 needs a patch to get the Zend_Dojo_View_Helper_Tooltip working
>> anyhow and 
>> that's to be found at http://framework.zend.com/issues/browse/ZF-4635. 
> 
> Since we were not able to get it into 1.7, at this point, it's scheduled
> for 1.8 (no new features in mini releases).
> 
>> Then my issue.
>> I just don't get it work with a contentpane. It's not the helper itself
>> because I can see in firebug/php that is is loading properly. 
>> It's like that I just missing or do something wrong in the code? 
>> 
>> <?php $this->dojo()->enable()?>
>> <!--begin def-main--><div id="def-main">
>> <?php $this->TabContainer()->captureStart('main-content', array('class'
>> =>
>> 'main-content'))?>
>> <?= $this->Tooltip('tooltip1',array('connectId' => 'tab1','label' =>
>> 'Home'))?>
> 
> Contrary to what you say, you're putting it in the TabContainer body,
> not one of the content panes... try putting this call *after* the
> TabContainer has been fully setup, and see if that makes a difference.
> 
>> <?= $this->contentPane('tab1','', array('title' => 'tab1', 'href' =>
>> $this->url(array('controller' => 'content', 'action' => 'tab1'),
>> 'default',
>> true), 'parseOnLoad' => true, 'selected' => true))?>
>> <?= $this->contentPane('tab2','', array('title' => 'tab2', 'href' =>
>> $this->url(array('controller' => 'content', 'action' => 'tab2'),
>> 'default',
>> true)))?>
>> <?= $this->contentPane('tab3','', array('title' => 'tab3', 'href' =>
>> $this->url(array('controller' => 'content', 'action' => 'tab3'),
>> 'default',
>> true)))?>
>> <?= $this->contentPane('tab4','', array('title' => 'tab4', 'href' =>
>> $this->url(array('controller' => 'content', 'action' => 'tab4'),
>> 'default',
>> true)))?>
>> <?= $this->contentPane('tab5','', array('title' => 'tab5', 'href' =>
>> $this->url(array('controller' => 'content', 'action' => 'tab5'),
>> 'default',
>> true)))?>
>> <?= $this->TabContainer()->captureEnd('main-content')?>
>> </div><!--end def-main-->
> 
> -- 
> Matthew Weier O'Phinney
> Software Architect       | [email protected]
> Zend Framework           | http://framework.zend.com/
> 
> 


> Dear Matthew,
> 
> It's a bit late response just because of 'time'.
> 
> About the patch, I've added that line into zfw 1.7 myself and that's
> working great. 
> The issue.
> Besides the mistakes, I was missing something too and I fixed that all.
> Still the problem remained.
> There is no way to get 'tooltip' on top of a contentPane 'button' and I've
> tried many ways.
> At the latest I got it working on the pane itself but not the button.
> 
> Then I used my creativity and found a solution for this problem.
> I made a kind of strip with corresponding blocks on top over the
> contentpane 'buttons', just with some CSS.
> The relevant lines in my css file;
> div#tooltipbalk{margin: -8px auto 0px;width: 974px;height: 8px;               
>                                         
> position: relative;top: 12px;z-index: 12;border: none;}
> .title{width: 188px;height: 8px;float: left;background:
> transparent;border: none;cursor: pointer;}
> 
> This in my view file;
> <!--begin tooltipbalk--><div id="tooltipbalk">
> <!--begin title1--><div id="title1" class="title"></div><!--end title1-->
> <!-- the other titles -->
> <!--begin tooltip1--><div id="tooltip1" position="top"></div><!--end
> tooltip1-->
> 
> <?= $this->Tooltip('tooltip1',array('connectId' => 'title1','label' =>
> '<div class="label"><h3>Home</h3></div>'))?>
> <!-- the other tooltips -->
> </div><!--end tooltipbalk-->
> 
> <?php $this->BorderContainer()->captureStart('main-border', array('class'
> => 'main-border'))?>
> <?php $this->TabContainer()->captureStart('main-content', array('class' =>
> 'main-content'))?>
> <?= $this->contentPane('tab1','', array('title' => 'home', 'class' =>
> 'tab', 'href' => $this->url(array('controller' => 'content', 'action' =>
> 'tab1'))))?>
> <!-- the other tabs -->
> <?= $this->TabContainer()->captureEnd('main-content')?>
> <?= $this->BorderContainer()->captureEnd('main-border')?>
> 
> Anyhow, this way it's working great :)
> Aad Pouw
> 
-- 
View this message in context: 
http://www.nabble.com/dojo-tooltip-in-a-contentpane-tp20757413p21005546.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to