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

yes. I had them in single quotes. doh!

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

Looks better now. Do you have any thoughts on the 2nd part of my last question? About if I need a loop to make sure each sql is executed and associated with the appropriate tab?

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

    The data shown will be from the query with the ? (a placeholder) replaced by the the active tab heading $tab->active

    SELECT team as TEAM, url as URL
      FROM sports
      WHERE sport = ?
    

    So you only get the data associated with that tab

    poj

      Ok. I think I get it now. I'm running this as a perl batch script to create the html and then ftp it to our webserver to display the html. This is not meant to be used as a batch script I guess. Maybe CGI::WIDGET::TABS is not the right module for me to use? My goal was to generate the html one time, put in on the webserver, and have tabs that would display the relevant content when each tab was selected. Is what I'm looking to do possible with this module?