in reply to Re: Help with CGI::WIDGET::TABS
in thread Help with CGI::WIDGET::TABS

thanks poj

I'm getting HTML::Template::param() : attempt to set parameter 'headings' with a scalar - parameter is not a TMPL_VAR! at html.pl line 67

Did you get yours to run?

Replies are listed 'Best First'.
Re^3: Help with CGI::WIDGET::TABS
by poj (Abbot) on Aug 03, 2017 at 05:52 UTC

    Yes mine runs, but notice I replaced this loop in your template

    <tr> <TMPL_LOOP NAME=HEADINGS> <th><TMPL_VAR NAME=HEADINGS></th> </TMPL_LOOP> </tr>

    with the single line

    <TMPL_VAR NAME=HEADINGS>
    poj

      That solved it poj. I think I'm real close to accomplishing the task of being able to click on each tab to go to a different page so to speak. However, I see the default tab of Football along with the corresponding URL's, but when I click on the BASEBALL Tab nothing happens

      Content-Type: text/html 'FOOTBALL' 'BASEBALL' Patriots http://www.patriots.com Bengals http://www.bengals.com Ravens http://www.ravens.com Steelers http://www.steelers.com

      Any idea what I could be missing?

      thanks again. I really appreciate your help

        If you look at the page source you should see something like this

        <!-- Generated by CGI::Widget::Tabs v1.14 --> <table class="tab"> <tr> <td class="tab_spc"></td> <td class="tab"><a href="?tab=Football">Football</a></td><td class="ta +b_spc"></td> <td class="tab_actv"><a href="?tab=Baseball">Baseball</a></td><td clas +s="tab_spc"></td> </tr> </table> <!-- End CGI::Widget::Tabs v1.14 -->
        poj