$("#tabs").tabs();

should be just fine, the type of tab is detected automatically. Unless
you're using a very, very old version of Tabs.

--Klaus



On 17 Jul., 00:49, havanna <thomas.blas...@diacs.de> wrote:
> Hi together,
> I tried it in the group Jquery UI - but nobody answer there?!
>
> I'm really new to jQuery and UI. What I'm trying is to build a view in
> CakePHP with the jQuery UI Tabs. The first part, integration the
> informations from my Cake controller in Tab 1 to 4 is working.
> In Tab 5 and Tab 6 I want to show informations which are in relation
> to the dataset of Tab1 to Tab4. I.e. Im calling a Post-View. In Tab 5
> I want to show the attachements (1 : n relation).
>
> So I do the following:
>   <div id="tabs">
>     <ul>
>       <li><a href="#tab-1"><span><?php echo __('Details'); ?></span></
> a></li>
>       <li><a href="#tab-2"><span><?php echo __('Fittings'); ?></
> span></
> a></li>
>       <li><a href="#tab-3"><span><?php echo __('Conditions'); ?></
> span></a></li>
>       <li><a href="#tab-4"><span><?php echo __('Partner'); ?></span></
> a></li>
>       <li><a href="/admin/attachements/getlist/<?php echo $this->data
> ['Posts']['id]; ?>"><span><?php echo __('Object attachements'); ?></
> span></a></li>
>     </ul>
>
> I think I have to tell the object, that the fiftht tab is an ajax
> call. But I don't know how to mix them:
>
>   <script type="text/javascript">
>     $(function() {
>       $("#tabs").tabs();
>       $('#tabs').tabs({ remote: true });
>     });
>         </script>
>
> Have anybody an idea for me?
>
> Regards Thomas

Reply via email to