Need a design advice for ajax.

Discussion in 'Programming/Scripts' started by danf.1979, May 24, 2007.

  1. danf.1979

    danf.1979 ISPConfig Developer ISPConfig Developer

    Hi,
    I have coded a CMS that in some ways feels very like ispconfig code. I'm using the template and database classes, and some similar ways of doing things. Now I want to go AJAX, but I'm having a bit of problems.

    I'm trying to use TabView from YUI. It has a dataSrc parameter that can load content dynamically. I want to use template variable assignments, dynamic blocks, and all that nice stuff that saves me from coding html in php scripts.
    Adding a tab in html looks like this:
    Code:
    tabView.addTab(new YAHOO.widget.Tab({
        label: 'Some Tab',
        dataSrc: 'dataSrc.php', // <----------- Cannot assign vars to tpl in here. It doen't work.
    }));
    
    So I load some php file and do the usual var assignment to the template. The template also loads dataSrc.php, who will be doing some template assigning on its own, but this assignments doesn't work. I dont want to echo a full html page from dataSrc.php just to load a tab's content, do I have more options than to echo de tab content from dataSrc.php?
     
  2. danf.1979

    danf.1979 ISPConfig Developer ISPConfig Developer

    Uhm, Ok, I had to do a FastPrint() on dataSrc. I think its solved then...
     

Share This Page