Hi together,
I give the question in UI Group 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 and 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. I'm 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>

The coding above is wrong - I know. I have read that it should be
possible to mix "normal" tabs with ajax. But how?
Have anybody an idea for me?

Regards Thomas

Reply via email to