Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6081983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:14:17+00:00 2026-05-23T11:14:17+00:00

jQuery UI Tabs – Content via Ajax shows what the Ajax tabs should look

  • 0

jQuery UI Tabs – Content via Ajax shows what the Ajax tabs should look like:

<li><a href="ajax/content1.html">Tab 1</a></li>
<li><a href="ajax/content2.html">Tab 2</a></li>

But this Yii example code is for one Ajax and one static tab:

class ROrganizationTabs extends CJuiTabs {
    public $tabs = array(
        'Statistics'=>'content',
        'Main Data' => 
        array('ajax'=>array('user/dashboard.loadone','id'=>1)),
    );
}

Which gives me HTML code like this:

<li class=""><a href="#yw12_tab_0" title="#yw12_tab_0">Statistics</a></li>
<li class=""><a href="#yw12_tab_1" title="#yw12_tab_1">Main Data</a></li>

Both are static, not Ajax.

And I can’t find in the page code (HTML, and JavaScript) where Yii placed the Ajax URL for Ajax tab. Where is it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:14:17+00:00Added an answer on May 23, 2026 at 11:14 am

    As far as I can tell I would say the jQuery plugin does the Ajax and URL handling. Without a detailed look at the JavaScript code there, the man page of the plugin states:

    Tabs supports loading tab content via
    Ajax in an unobtrusive manner.

    The HTML you need is slightly
    different from the one that is used
    for static tabs: A list of links
    pointing to existing resources (from
    where the content gets loaded) and no
    additional containers at all
    (unobtrusive!). The containers’ markup
    is going to be created on the fly: […]

    http://jqueryui.com/demos/tabs/#Ajax_mode

    The complete tabs behaviour is just wrapped in this line

    jQuery('#yw0').tabs({'collapsible':true});
    

    Take a look at the Yii playground example: http://www.yiiplayground.cubedwater.com/index.php?r=UiModule/jui/ziiTab

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jQuery Tabs for my project, with lazy loading tab content via
I used jQuery tabs widget in my page with ajax mode, something like <li><a
i have a page loaded via jquery tabs ajax, i have a form within
I used jquery tabs, and by clicking in one tab I loaded page via
I have three jQuery tabs where each tab is having an HTML table with
I'm using jQuery tabs for an interface. I'd like my main div (the tab
The engine I use calls the jquery tabs.js script to handle the tab functions.
This is jQuery tabs script: http://jqueryui.com/demos/tabs/#manipulation var $tabs = $( #tabs).tabs({ tabTemplate: <li><a href='#{href}'>#{label}</a>
I have jquery tabs, in which one tab has an iframe and the other
I need to use jquery tabs in my asp.net website with ajax mode to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.