PHP/Spry Tabs/Pagination

Hello all,
I have a results page which contains tabs for separate query results from multiple DBs on one page.  I would like to include record set paging for each record set under each tab.  When I select a different tab, click on "Next" in the paging, the page refreshes back to the first tab.  Is the way to keep it on the tab selected and make the paging work?
Any help or insight would be appreciated!
Thanks

Better late than never I guess... I'm no great shakes at this stuff but I found the following is what worked for me http://foundationphp.com/tutorials/spry_url_utils.php bit messy URL but it does work.  I'd be interested to hear if anyone has a better solution.

Similar Messages

  • PHP Form in Spry Tabbed Content Div

    I have placed some PHP forms inside some Spry Tabbed Content
    divs. When the forms are submitted, the page reloads with the
    default tabbed content displayed instead of the tab where the form
    is. If I click to the tab with the form, I can see the information
    PHP properly returned.
    Does anybody know how to make the Spry Tabbed Content script
    return to the tab that had focus when a PHP form is submitted
    instead of the default tab?
    Thanks in advance for any advice.

    Hi,
    On the main forum page you will have read the following.
    Announcement: New to Spry, or  the Spry forums?
    Hide Details
    Before you post a topic please verify that:
    You are using the latest Spry files
    The latest version of the Adobe Spry Framework is 1.6.1, this is the same version that ships with Dreamweaver CS4. If you use Dreamweaver CS3 (uses Spry 1.4), its wise to upgrade your files to the latest version. This can easily be done using the Spry Updater that can be found here.
    After you have upgraded and not removed the remarks from the Spry files, we will have another look at it.
    Ben

  • Spry Tabbed XML data panels within HTMLPanel not working.

    Many thanks for reading.
    s
    I trying to provide a rapid solution using adobe's samples
    to make Spry Tabs work within an html panel (in order to avoid
    many links in my page).
    I am using the following code:
    initial page with html panel with the ready products.js to parse the links:
    <script src="../SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryPagedView.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryDOMUtils.js" type="text/javascript"></script>
    <script  src="../SpryAssets/SpryHTMLPanel.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript" src="../SpryAssets/SpryDataExtensions.js"></script>
    <script src="SpryNestedXMLDataSet.js" type="text/javascript"></script>
    <script src="../SpryAssets/products.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="TabbedPanels/SpryTabbedPanels.css"/>
    <script src="TabbedPanels/SpryTabbedPanels.js"></script<script type="text/javascript">
    var ds1 = new Spry.Data.XMLDataSet("ajaxbibliaxmlbridgetitle.php", "root/row[katigoria=1]", {sortOnLoad: "ID_BIBLIOU", sortOrderOnLoad: "ascending"});
    var pv1 = new Spry.Data.PagedView( ds1 ,{ pageSize:10 });
    var pv1PagedInfo = pv1.getPagingInfo();
    //var TabbedPanels1 = new Spry.Widget.TabbedPanels();          
    </script>
    </head>
    <body class="twoColFixRtHdr">
    <div id="container">
    <div id="sidebar1">
      <div id="productPageLinks">
       <ul>
        <li><a href="index.php">Index</a></li>
        <li><a href="booklist.php">Product List</a></li>
            <li><a href="test.php">Σχετικά με τη Βιβλιοθήκη</a></li>
       </ul>   
      </div>
    </div>
    <div id="mainContent">
    <br />
    <div class="HTMLPanelLoadingContent"> Waiting</div>
    <div class="HTMLPanelErrorContent"> error </div>
    </div>
    </div>
    </body>
    </html>
    Products.js (adobe'S change to can load xml dataset)
    var mainPanel = null;
    // Our initialization function which unobtrusively attaches
    // click handlers on the product links within the page.
    function InitProductPage()
    mainPanel = new Spry.Widget.HTMLPanel("mainContent" , { evalScripts: true });
        var observer = {onPostUpdate: function(){ Spry.Data.initRegions('mainContent'); 
    mainPanel.addObserver(observer);
    // For every link on the page which points to a product page,
    // attach an onclick handler that will intercept clicks and
    // and fire off a request to load the URL via the HTMLPanel.
    // For these links, we want to load the static product page
    // and extract out the content underneath the "mainContent"
    // node.
    Spry.$$("#productPageLinks a").addEventListener("click", function(e)
      mainPanel.loadContent(this.href, { id: "mainContent" });
      return false;
    }, false);
    // For every link on the page which points to a product HTML
    // fragment, attach an onclick handler that will intercept clicks and
    // and fire off a request to load the URL via the HTMLPanel.
    // For these links, we are loading HTML fragments, so there is no
    // need to specify an ID to extract out. The HTMLPanel will insert
    // all of the content recieved.
    Spry.$$("#productFragmentLinks a").addEventListener("click", function(e)
      mainPanel.loadContent(this.href);
      return false;
    }, false);
    // Add our InitProductPage() function as a load listener
    // so that it gets executed once the page has fully loaded.
    Spry.Utils.addLoadListener(InitProductPage);
    XML data and stuff all loaded correctly
    What I am trying to do is to load a second page from a link in my initial page
    that contains a Tabbed Panel.
    The page loads but no panel functionality exists. The first Panel load correctly but behaves as a simple html page .
    I have searched several hours the forums and playing around by moving the definition of Spry.Widget.TabbedPanels within
    the initial HTMLPanel page and other spots but this  produced js errors as expected (because the tab panel definitions exist in bookcategories.php)
    which is loaded only when it is called.
    Any ideas?
    Page to load is like this :
    <bookcategories.php>
    <link rel="stylesheet" type="text/css" href="TabbedPanels/SpryTabbedPanels.css"/>
    <script src="TabbedPanels/SpryTabbedPanels.js"></script>
    <script language="JavaScript" type="text/javascript" src="../SpryAssets/SpryDataExtensions.js"></script>
    </head>
    <body >
    <div id="container">
    <div id="mainContent">
             <div class="TabbedPanels" id="TabbedPanels1">
      <ul class="TabbedPanelsTabGroup">
              <li class="TabbedPanelsTab">SOmething ... </li>
              <li class="TabbedPanelsTab">Something else </li>
    <
      </ul>
      <div class="TabbedPanelsContentGroup">
              <div class="TabbedPanelsContent">Blah Blah
                  <div spry:region="pv1" id="bibliapv"><br />
                    <br />
                  <div spry:state="ready">
                      <table width="775" height="42"  >
                        <tr style="color:#900"; >
    <th etc>
                        </tr>
                        <tr spry:repeat="pv1" spry:even="even" spry:odd="odd">
                          <td >       {ID_}
                         </td>
                          <td>{Writer}</td>
                          <td>{Book_Title}</td>
                           </tr>
                      </table>
                    </div>
                  </div>
              <div class="TabbedPanelsContent">Tab 2 Content</div>
    <div class="TabbedPanelsContent">Tab 3 Content</div>
       <div class="TabbedPanelsContent">Tab 4 Content</div>
      </div>
    </div>
    </div>
    <br class="clearfloat" />
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>
    Many thanks

    Ok I went back through everything and checked to make sure my
    files were in the right places both my SpryTabbedPanels.css and my
    SpryTabbedPanels.js are in the SpryAssets folder and they work fine
    until I try and add data from an xml file to them then the tabs
    populate with the info but become unclickable and the content area
    has every bit of content in on tab. Below is what I have let me
    know what I'm doing wrong I am using Spry 1.6
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryTabbedPanels.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("solutions3.xml",
    "solutions/solution");
    //-->
    </script>
    <link href="SpryAssets/SpryTabbedPanels.css"
    rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div spry:region="ds1">
    <div id="TabbedPanels1" class="TabbedPanels">
    <ul class="TabbedPanelsTabGroup">
    <li spry:repeat="ds1" class="TabbedPanelsTab"
    tabindex="0">{name}</li>
    </ul>
    <div class="TabbedPanelsContentGroup">
    <div spry:repeat="ds1"
    class="TabbedPanelsContent">{desc}</div>
    </div>
    </div>
    </div>
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new
    Spry.Widget.TabbedPanels("TabbedPanels1");
    //-->
    </script>
    </body>
    </html>

  • Submitting a Form in a Spry Tabbed Region

    I have a spry tabbed region with 6 tabs.
    I have constructed a menu which targets and opens the specific tab using the ?tab=4 type notation.  I have also created links between tabs using the same notation.  All works fine.
    I have a form in one tab which, when I submit it, I want to return to the same tab.  However when I use the notation <form action="index.php?tab=4" > the page just reloads on the first tab, stripping off the ?tab=4 part of the url. I have searched the forums but can't find any reference to how to target a specific tab when submitting a form.
    Any help much appreciated.
    Thanks
    John

    Hi
    Thanks for your patience.
    Because there are 8 tabs on this page there is a lot of code, much of it irrelevant, so I have copied below the chunks which relate to this part of the page.
    When the form is submitted the data being returned from the database is correct and is loaded into the page. It is just that the page loads the first tab and you then have to click on the 'Results' tab to see the data which has been returned.
    Ok, from the top of the page the php code which filters the recordset is as follows;
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    // recordset for results
    $var1_rsCompResults = "-1";
    if (isset($_GET["event_ID"])) {
      $var1_rsCompResults = $_GET["event_ID"];
    $var2_rsCompResults = "-1";
    if (isset($_GET["age_group"])) {
      $var2_rsCompResults = $_GET["age_group"];
    $var3_rsCompResults = "-1";
    if (isset($_GET["gender"])) {
      $var3_rsCompResults = $_GET["gender"];
    mysql_select_db($database_connPublic, $connPublic);
    $query_rsCompResults = sprintf("SELECT tblResults.result_ID, DATE_FORMAT(tblEvents.event_start_date, '%%Y') AS year, tblResults.event_ID, tblEvents.event_name, tblResults.age_group, tblResults.points, tblIndividuals.forename, tblIndividuals.surname, tblIndividuals.sex FROM tblEvents INNER JOIN tblResults ON tblEvents.event_id = tblResults.event_ID INNER JOIN tblIndividuals ON tblResults.individual_ID = tblIndividuals.individual_id WHERE tblResults.event_ID = %s AND age_group = %s AND sex = %s ORDER BY tblResults.points", GetSQLValueString($var1_rsCompResults, "int"),GetSQLValueString($var2_rsCompResults, "text"),GetSQLValueString($var3_rsCompResults, "text"));
    $rsCompResults = mysql_query($query_rsCompResults, $connPublic) or die(mysql_error());
    $row_rsCompResults = mysql_fetch_assoc($rsCompResults);
    $totalRows_rsCompResults = mysql_num_rows($rsCompResults);
    ?>
    then the links to the Spry Assets and the  js which creates the datasets is as follows;
    <script src="../SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryDataExtensions.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryNestedXMLDataSet.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryXML.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryPagedView.js" type="text/javascript"></script>
    <script src="../SpryAssets/xpath.js" type="text/javascript"></script>
    <script type="text/javascript">
    var dsYears = new Spry.Data.XMLDataSet("competitions_year_data_xml.php", "root/row");
    var dsCompetitions = new Spry.Data.XMLDataSet("calendar_competitions_data_xml.php", "root/row[year = '{dsYears::year}']");
    var dsAgeGroups = new Spry.Data.XMLDataSet("competitions_age_group_data_xml.php", "root/row[event_ID = '{dsCompetitions::event_ID}']");
    var dsGender = new Spry.Data.XMLDataSet("competitions_sex_data_xml.php", "root/row[age_group = '{dsAgeGroups::age_group}']");
    </script>
    Then the html which creates the tabbed region is as follows;
                      <div id="TabbedPanels1" class="TabbedPanels">
                          <ul class="TabbedPanelsTabGroup">
                            <li class="TabbedPanelsTabLeft" tabindex="0">News</li>
                            <li class="TabbedPanelsTab" tabindex="1">Calendar</li>
                            <li class="TabbedPanelsTab" tabindex="2">Rules</li>
                            <li class="TabbedPanelsTab" tabindex="3">Competition Entries</li>
                            <li class="TabbedPanelsTab" tabindex="4">Results</li>
                            <li class="TabbedPanelsTab" tabindex="5">Rankings</li>
                            <li class="TabbedPanelsTab" tabindex="6">Contacts</li>
                            <li class="TabbedPanelsTabRight" tabindex="7">FAQ</li>
                          </ul>
                          <div class="TabbedPanelsContentGroup">
    Then the form which includes the four select statements is as follows;
    <div class="TabbedPanelsContent" id ="results_data">
                   <h3>Results</h3>
    <form name="selectForm" action="index.php?tab=4&" method="get">
            Year:
    <span spry:region="dsYears" id="yearSelector">
            <select spry:repeatchildren="dsYears" spry:choose="spry:choose" name="year" onchange="dsYears.setCurrentRowNumber(this.selectedIndex);">
                <option value="{year}" spry:when="{ds_CurrentRowID} == {ds_RowID}" selected="selected">{year}</option>
                <option value="{year}" spry:default="spry:default" >{year}</option>
            </select>
    </span>
            Event:
    <span spry:region="dsCompetitions" id="eventSelector">
            <select spry:repeatchildren="dsCompetitions" name="event_ID" onchange="dsCompetitions.setCurrentRowNumber(this.selectedIndex);">
                <option value="{event_ID}">{event_name}</option>
            </select>
    </span>
            Age Groups:
    <span spry:region="dsAgeGroups" id="agegroupSelector">
            <select spry:repeatchildren="dsAgeGroups" name="age_group" onchange="dsAgeGroups.setCurrentRowNumber(this.selectedIndex);">
                <option value="{age_group}">{age_group}</option>
            </select>
    </span>
            Gender:
    <span spry:region="dsGender" id="genderSelector">
            <select spry:repeatchildren="dsGender" name="gender">
                <option value="{sex}">{sex}</option>
            </select>
    </span>
    <input type="submit" value="Submit" />
    </form>
    <?php if ($totalRows_rsCompResults > 0) { // Show if recordset not empty ?>
      <div id="result_ID" name="result_ID">
        <table>
          <tr>
            <th>Athlete Name</th>
            <th>Event</th>
            <th>Score</th>
          </tr>
          <?php do { ?>
            <tr>
              <td><?php echo $row_rsCompResults['forename']; ?> <?php echo $row_rsCompResults['surname']; ?></td>
              <td><?php echo $row_rsCompResults['event_name']; ?></td>
              <td><?php echo $row_rsCompResults['points']; ?></td>
            </tr>
            <?php } while ($row_rsCompResults = mysql_fetch_assoc($rsCompResults)); ?>
        </table>
      </div>
      <?php } // Show if recordset not empty ?>
           </div> <!-- end of TabbedPanelsContent div Results -->
    Then at the end of the page is this code;
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab: params.tab ? params.tab : 0});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsCompResults);
    ?> 

  • Spry Tabs are no longer showing after upload

    I was just recently finished working on my website and had created a spry tab to use for 4 different forms.  Now when I view the page, the tabs are not showing but the four forms are all on one page. 
    I remember seeing in split view </div> out to the side of my layout in layout view and I thought it was an extra div and deleted it.  My guess is that's why my form is no longer showing the tabs.
    Any help on where I need to add the </div> back in would be MUCH appreciated.
    Here is the page http://www.munchkinsplace.com/custom-quote-form.html

    I removed all the content from each Tab and created a new page and inserted a new Spry Tab to compare the code but I'm still not seeing what is different.  It appears that all my divs are correct.  Am I missing the obvious?
    Here is the page link
      <div id="mainContent">
        <form action="contactform.php" method="post" enctype="multipart/form-data" name="customquote" id="customquote">
          <div id="TabbedPanels1" class="TabbedPanels">
          <ul class="TabbedPanelsTabGroup">
            <li class="TabbedPanelsTab" tabindex="0">Hair Bow</li>
            <li class="TabbedPanelsTab" tabindex="0">Hair Bow Holder</li>
            <li class="TabbedPanelsTab" tabindex="0">Tutus</li>
            <li class="TabbedPanelsTab" tabindex="0">Diaper Cakes</li>
          </ul>
          <div class="TabbedPanelsContentGroup">
            <div class="TabbedPanelsContent">Tab Contents 1</div>
            <div class="TabbedPanelsContent">Tab Contents 2</div>
            <div class="TabbedPanelsContent">Tab Contents 3</div>
            <div class="TabbedPanelsContent">Tab Contents 4</div>
          </div>
          </div>
        </form> 
      </div>
        <p> </p>
        <div align="left"></div>
      <script type="text/javascript">
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    //-->
      </script>
      <!-- end #mainContent -->

  • Linking between spry tabs

    I've created a page with spry tabs and want to place a link
    on a tab that will take the user to a place on another tab. I
    assumed that I would use named achors but can't get them to work.
    Any ideas?

    RSW14 wrote:
    > I've created a page with spry tabs and want to place a
    link on a tab that will
    > take the user to a place on another tab.
    To open another tab from anywhere in the same page, give the
    target tab
    an ID, and create the link like this:
    <a href="javascript:;"
    onclick="TabbedPanels1.showPanel('targetID')">Go
    to other tab</a>
    To go to a specific place within a tabbed panel, you would
    need to use
    SpryURLUtils.js, which is part of the Spry framework that you
    can
    download from Adobe Labs. Details of how to use it are on the
    following
    page:
    http://labs.adobe.com/technologies/spry/samples/utils/URLUtilsSample.html
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Spry Tabbed Panels does not work as I want

    Sorry, but this is an utter NOOB question.
    I tried to use a Gooey ment on my page, but it does not work as intended.
    Here it works OK: http://ppbm5.com/DB-PPBM5-2.php
    Here it does not work: http://ppbm6.com/Planning.html
    I assume it is related to the menu already on this page. Anyway, since this did not work, I tried to replace the Gooey menu with Spry Tabbed panels, but being an utter noob in this area, I have made some mistakes that the experts here can probably help solve easily. What happens:
    It looks OK in DW:
    Go to Live View and it still looks OK:
    but then go to the actual page and it looks like this:
    Why do the tabbed panels not display at the top of the page next to the vertical menu, like it does in DW?
    Second question: How can I add text to each page/ tabbed panel, like here http://ppbm6.com/Planning.html

    Spry Tabbed Panels 2.0 have a number of support files to make them run.
    <!--files for Spry Tabbed panels-->
    <script type='text/javascript' src='../Spry-UI-1.7/includes/SpryTabbedPanels2.js'></script>
    <script type='text/javascript' src='../Spry-UI-1.7/includes/plugins/TabbedPanels2/SpryFadingPanelsPlugin.js'></script>
    <script type='text/javascript' src='../Spry-UI-1.7/includes/plugins/TabbedPanels2/SpryTabbedPanelsKeyNavigationPlugin.js'></script>
    <link type='text/css' href='../Spry-UI-1.7/css/TabbedPanels2/SpryTabbedPanels2.css' rel='stylesheet'/>
    Below, I have a Spry demo page with 3 widgets on it.  If you look at the source code, you'll see how the the various support files are organized.
    Function code is near the bottom of the page.
    http://alt-web.com/DEMOS/Spry-test.html
    Second question: How can I add text to each page/ tabbed panel, like here http://ppbm6.com/Planning.html
    Turn off CSS.  View > Style Rendering > un-tick Display Styles.  You'll see an unstyled HTML page in Design View.  But this won't effect styles in Live View or Preview.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Spry tabbed panels with a Google map?

    I am building a website with a CS4 Spry tabbed panel (fixed size).  On one of the tabs I have a Google map.  All works well except....   When I am on a tab different from the map tab and resize the browser window, when I go to the map tab the map does not display or work correctly.  A small amount of the map will display in the upper left of the tab panel.
    Any ideas?
    Thanks, any help is appreciated.
    -David
    <div id="mainContent">
    <h2 id="pageheader">Garden Tours and Events</h2>
    <div>
    <div id="TabbedPanels1" class="TabbedPanels">
    <ul class="TabbedPanelsTabGroup">
    <li class="TabbedPanelsTab" tabindex="0">Map</li>
    <li class="TabbedPanelsTab" tabindex="0">Text</li>
    </ul>
    <div class="TabbedPanelsContentGroup">
    <div class="TabbedPanelsContent" id="map" style="height: 500px; width: 770px;">
    <script type="text/javascript">
    </script>
    </div>
    <div class="TabbedPanelsContent"  style="height: 500px;">
    <p> </p>
    <p> </p>
    <table border="0" id="gardenTourData">
    <tr>
    <th scope="col">Date</th>
    <th scope="col">State</th>
    <th scope="col">City</th>
    <th scope="col">Event Type</th>
    <th scope="col">Id</th>
    <th scope="col">Coordinates</th>
    </tr>
    <?php do { ?>
    <tr onClick="window.open('http://localhost/details.php?id=<?php echo $row_rsListGardenTours['id'] ?>','detailsWindow','width=656,height=600,scrollbars=yes')" >
    <td><?php echo $row_rsListGardenTours['tour_date']; ?></td>
    <td><?php echo $row_rsListGardenTours['state']; ?></td>
    <td><?php echo $row_rsListGardenTours['town_city']; ?></td>
    <td><?php echo $row_rsListGardenTours['event_type']; ?></td>
    <td><?php echo $row_rsListGardenTours['id']; ?></td>
    <td><?php echo $row_rsListGardenTours['start_location_coordinates']; ?></td>
    </tr>
    <?php } while ($row_rsListGardenTours = mysql_fetch_assoc($rsListGardenTours)); ?>
    </table>
    </div>
    </div>
    </div>
    </div>
    </div> <!-- end #mainContent -->

    It is best to check the forum first before asking for assistance.
    Have a look here http://forums.adobe.com/message/33236#33236
    or here http://forums.adobe.com/message/2654715#2654715
    I hope this helps.
    Ben

  • Spry tabs quit working with template change

    Hola Dreamweaver and Spry users that know more than I...
    I am in process of updating a site template and have run into a glitch. The Spry Tabs don't work in the new template. I've done all sorts of troubleshooting and test pages, and I still don't get it!
    Here is the BEFORE page: http://www.energeticnutrition.com/vitalzym/seb.html
    Here is the same page with new template/design: http://www.energeticnutrition.com/vitalzym/sebAK.html
    It is worth mentioning that there is a new JS at the top for an image rotation (also not working properly), and we are now calling up the left nav with PHP.
    Not being much of a programmer, I politely request that your answers be formatted for a 4th grader, since it turns out 5th graders often know more than I do.
    Thank you in advance for any guidance or ideas you may have.
    AmyK

    You also need to add an instance of the object using the following constructor placed anywhere after the TabbedPanels
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    Gramps

  • Single Page Spry Tabbed Insert - Delete - Update

    Hi Guys
    I like to make a page with three Spry Tabs.
    * Using ( PHP - Mysql )
    * Example ( Table of "Users" Fields ID, Name, Age )
    ( First Tab )
    List of all people with navigation dividing table by ten rows
    each time.
    On each row Delete & Update This person.
    When Clicked on Delete [ Delete This Person and update the
    list ]
    When clicked on Update [ Go to third tab and update this
    exact person ]
    ( Second Tab )
    Insert new person to Mysql
    ( Third Tab )
    Update the person who was send here to be updated from tab
    one
    Can I have all list - Insert - Delete - Update in one page
    under different Spry Tabs? How can I send these info from one tap
    to another. How should I go about this?

    It was never possible to have more than one of those
    behaviours on a page
    using the standard behaviours in previous versions. You
    always had to write
    your own scripts.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Sanj" <[email protected]> wrote in message
    news:enjulr$qma$[email protected]..
    > Hi,
    >
    > Prior to Dreamweaver 8.02 it was possible to have more
    than 1
    > Insert/delete/update however this is no longer the case
    - is there a way
    > around this?
    >
    > Thanks!
    >
    > Sanj
    >

  • Multi page recordset output from ASP page on Spry Tabbed Panel Widget

    I am using a simple Spry Tabbed panel set on my asp page to show the output from different ASP pages, inside the tabbed panels. The tabbed panels on the page under consideration (destination page) display the output from different asp pages (source pages). The source asp pages generate multi page outputs which are paginated on the source page itself and pagination links are displayed on the source page itself.
    However, we dont want to display the source page outside of the tabbed panel, but instead the output content from the source asp pages should show inside the tabbeed panels only. The first page generated by the source asp page displays correctly inside the tabbed panel. However, when the user clicks on the links for the next page generated by the source asp page, but which is being displayed inside the destination page tabbed panel, they dont display the next page inside the tabbed panel. Instead the source asp page displays the output outside the tabbed panel destination  page.
    Please advise on how to ensure that the user can page through the recordset generated by the source asp page by clicking on the pagination links at the bottom of the records, while ensuring that the output displays within the tabbed panels on the destination asp page.
    I am enclosing the source code being used to generate the spry tabbed panel widget and also updating it with the output from the source asp page. In this case, the code given below is from the main page containing the widget and the source asp page is "sample.asp", which generates multi page output.
    Please note that I am not too keen on using xml data sets output from the source asp page, but would be more comfortable with directly using the asp pages to fill the tabbed panel content.
    Please help
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <script language="javascript" src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('two','sample.asp?page=' <%=i%>); Spry.Data.initRegions();" >Tab 1</li>
           <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div id=two class="TabbedPanelsContent">Content 1</div>
        <div class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>

    I fully agree that the problem does not lie with tthe tabbed panels.
    The solution would probably be first required to be tried using ajax on any div tab.
    Then the same code would have to be used on Sprytabbed panel. Hence, the following may be advised:
    1. Sample code for server side pagination and displaying inside any div tag and refreshing it using ajax. the update link would also lie inside the div tag which would show the next/ previous page without reloading the page.
    2. Then adapting the refresh technique using ajax in the Spry Tabbed panel using the inbuilt updatecontent method of the Spry Tabbed panels.
    In order to achieve the above, I am getting the recordset output in the tab content as expected. The recordset is also getting the pagination links from server side asp as required.
    However, it is also generating the following error.
    Webpage error details
    Message: Unterminated string constant
    Line: 9
    Char: 56
    Code: 0
    URI: http://localhost/test/test5.asp
    The sourcecode is as given below. If you can help with the error indicated above, my problem would probably get solved.
    <html><head>
    <title>Untitled Document</title>
    <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
    <script src="/SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="/SpryAssets/xPath.js" type="text/javascript"></script>
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('one','untitled-5.asp');">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0" >Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div id=one class="TabbedPanelsContent">Content 1</div>
        <div id ="two" class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>

  • Return focus to spry tab

    Hi,
    I know this has been asked previously and I have gone thorugh the posts day after day trying to figure them but am having no luck at all.
    Would appreciate someone in the know looking at my code and pointing me in the right direction..
    I have an admin section to my site which contains 8 Spry tabs, each one containing a form that I can sue to update my database. I am trying to get the  "Submit" button to return me to the tab I was working on but so far either get returnd to the default page or the tabs themselves stop working.. Each seperate tab will have it's own form and so far cannot get even one to work . Can someone advise please.. code below for my admin page. The code I have inserted relating to the Spry tabs I have placed in bold here ..
    Any help will be greatly appreciated..
    Regards,
    gyesdahl
    *****************  CODE*************
    <?php require_once('../Connections/la.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form2")) {
      $insertSQL = sprintf("INSERT INTO days (name) VALUES (%s)",
                           GetSQLValueString($_POST['day'], "text"));
    ////////////  MY INSERT //////////////////////
    $tabToShow = 7; // 2 = 3rd tab
      mysql_select_db($database_la, $la);
      $Result1 = mysql_query($insertSQL, $la) or die(mysql_error());
      $insertGoTo = "admin.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "" : "";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_la, $la);
    $query_days = "SELECT days.name FROM days";
    $days = mysql_query($query_days, $la) or die(mysql_error());
    $row_days = mysql_fetch_assoc($days);
    $totalRows_days = mysql_num_rows($days);
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/sub.dwt.php" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <script src="../SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script type="text/javascript" src="../SpryAssets/SpryURLUtils.js"></script>
    <link href="../SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    // Grabs the values of the URL parameters for the current URL.
    var params = Spry.Utils.getLocationParamsAsObject();
    </script>
    <!-- InstanceEndEditable -->
    <style type="text/css">
    <!--
    @import url("../la.css");
    body {
    background-color: #000033;
    font-family: "Times New Roman", Times, serif;
    font-size: 12px;
    color: #CC6666;
    .style1 {font-size: 12px}
    .links {color: #CCCC66}
    -->
    </style>
    <link href="backup/styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <table width="65%" height="430" border="3" align="center" bordercolor="#666666" bgcolor="#FFFFFF">
      <tr>
        <td valign="top"><table width="100%" height="134" border="0" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
          <tr>
            <td width="523" height="72" align="center" valign="top"><div align="left"><img src="../Images/logo.jpg" width="259" height="72" /></div></td>
            <td width="1" height="72"> </td>
            <td width="200
            " height="72" border="2" bordercolor="#000033"><div align="center"><img src="images/la<?php echo rand(1,10); ?>.jpg" width="159" height="72" /></div></td>
          </tr>
          <tr align="center" valign="top">
            <td height="23" colspan="3" bgcolor="#993300"><div align="center" class="links"><a href="../index.php">Home</a> | About Us | Contact Us | Tours | Air Charter | Managed Properties
              <div align="right" style="font-size: 8pt;">
                      <div align="center"><b><?php echo date("l d M Y"); ?></b></div>
              </div>
            </div></td>
          </tr>
          <tr align="center" valign="top">
            <th height="17" colspan="3" background="backup/images/sub_feature.jpg"> </th>
          </tr>
        </table>
        <hr align="center" width="100%" size="2" class="brown" />
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="left"></td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="610" valign="top"><!-- InstanceBeginEditable name="Sub_main" -->
                <div id="TabbedPanels1" class="TabbedPanels">
                  <ul class="TabbedPanelsTabGroup">
                    <li class="TabbedPanelsTab" tabindex="0">View Tours</li>
                    <li class="TabbedPanelsTab" tabindex="0">Create Tour</li>
                    <li class="TabbedPanelsTab" tabindex="0">Delete Tour</li>
                    <li class="TabbedPanelsTab" tabindex="0">Add Country</li>
                    <li class="TabbedPanelsTab" tabindex="0">Inclusions</li>
                    <li class="TabbedPanelsTab" tabindex="0">Exclusions</li>
                    <li class="TabbedPanelsTab" tabindex="0">Currency</li>
                    <li class="TabbedPanelsTab" tabindex="0">Days</li>
                  </ul>
                  <div class="TabbedPanelsContentGroup">
                    <div class="TabbedPanelsContent" style="display: none">Content 1</div>
                    <div class="TabbedPanelsContent" style="display: block">Content 2</div>
                    <div class="TabbedPanelsContent" style="display: none">Content 3</div>
                    <div class="TabbedPanelsContent" style="display: none">Content 4</div>
                    <div class="TabbedPanelsContent" style="display: none">Content 5</div>
                    <div class="TabbedPanelsContent" style="display: none">Content 6</div>
                    <div class="TabbedPanelsContent" style="display: none">Content 7</div>
                    <div class="TabbedPanelsContent" style="display: none">
                      <form action="admin.php" method="post" name="form2" id="form2">
                        <table align="center">
                          <tr valign="baseline">
                            <td nowrap="nowrap" align="right">Day:</td>
                            <td><p>
                                <input type="text" name="day" value="" size="32" />
                              </p>
                                <p>
                                  <input type="submit" name="button" id="button" value="Submit" />
                              </p></td>
                          </tr>
                          <tr valign="baseline">
                            <td nowrap="nowrap" align="right"> </td>
                          </tr>
                        </table>
                        <input type="hidden" name="MM_insert" value="form2" />
                      </form>
                      <p> </p>
                      ontent 8</div>
                  </div>
                </div>
                  <div align="center"></div>
                <script type="text/javascript">
    HAVE TRIED BOTH OF THE BELOW CODES WITH NO RESULTS. EITHERE RETURNS TO DEFAULT (0) TAB OR THE TABS STOP WORKING
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1",{defaultTab:<?php echo($tabToShow);?> });
    //-->
                  </script>
                  <script type="text/javascript">
    <!--
    //var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab:(params.panel ? params.panel :7 )});
    //-->
      </script>
              <!-- InstanceEndEditable --></td>
            </tr>
          </table>
        <p> </p></td>
      </tr>
      <tr>
        <td valign="top"><div align="center" class="style1">Copyright © 2009 Leisure Africa - All Rights Reserved</div></td>
      </tr>
    </table>
    <p> </p>
    </body>
    <!-- InstanceEnd --></html>
    <?php
    mysql_free_result($days);
    ?>

    Hi David,
    Many thanks for replying to my post and the time taken. I have tried your advice but my tabs are not working. Seems like everything I try ends up in this state Have checked the submit format as POST
    I added the code and when the page loads the tabs are non-active.. code below with added parts in bold
    ***** code*****
    <?php require_once('../Connections/la.php'); ?>
    <?php
    if (isset($_POST['tab']) && !empty($_POST['tab'])) {
      $tabToShow = $_POST['tab'];
    } else {
      $tabToShow = 0;
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form2")) {
      $insertSQL = sprintf("INSERT INTO days (name) VALUES (%s)",
                           GetSQLValueString($_POST['day'], "text"));
    ////////////  MY INSERT //////////////////////
    $tabToShow = 7; // 2 = 3rd tab
      mysql_select_db($database_la, $la);
      $Result1 = mysql_query($insertSQL, $la) or die(mysql_error());
      $insertGoTo = "admin.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "" : "";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_la, $la);
    $query_days = "SELECT days.name FROM days";
    $days = mysql_query($query_days, $la) or die(mysql_error());
    $row_days = mysql_fetch_assoc($days);
    $totalRows_days = mysql_num_rows($days);
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/sub.dwt.php" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <script src="../SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script type="text/javascript" src="../SpryAssets/SpryURLUtils.js"></script>
    <link href="../SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    // Grabs the values of the URL parameters for the current URL.
    var params = Spry.Utils.getLocationParamsAsObject();
    </script>
    <!-- InstanceEndEditable -->
    <style type="text/css">
    <!--
    @import url("../la.css");
    body {
    background-color: #000033;
    font-family: "Times New Roman", Times, serif;
    font-size: 12px;
    color: #CC6666;
    .style1 {font-size: 12px}
    .links {color: #CCCC66}
    -->
    </style>
    <link href="backup/styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <table width="65%" height="430" border="3" align="center" bordercolor="#666666" bgcolor="#FFFFFF">
      <tr>
        <td valign="top"><table width="100%" height="134" border="0" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
          <tr>
            <td width="523" height="72" align="center" valign="top"><div align="left"><img src="../Images/logo.jpg" width="259" height="72" /></div></td>
            <td width="1" height="72"> </td>
            <td width="200
            " height="72" border="2" bordercolor="#000033"><div align="center"><img src="images/la<?php echo rand(1,10); ?>.jpg" width="159" height="72" /></div></td>
          </tr>
          <tr align="center" valign="top">
            <td height="23" colspan="3" bgcolor="#993300"><div align="center" class="links"><a href="../index.php">Home</a> | About Us | Contact Us | Tours | Air Charter | Managed Properties
              <div align="right" style="font-size: 8pt;">
                      <div align="center"><b><?php echo date("l d M Y"); ?></b></div>
              </div>
            </div></td>
          </tr>
          <tr align="center" valign="top">
            <th height="17" colspan="3" background="backup/images/sub_feature.jpg"> </th>
          </tr>
        </table>
        <hr align="center" width="100%" size="2" class="brown" />
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="left"></td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="610" valign="top"><!-- InstanceBeginEditable name="Sub_main" -->
                <div id="TabbedPanels1" class="TabbedPanels">
                  <ul class="TabbedPanelsTabGroup">
                    <li class="TabbedPanelsTab" tabindex="0">View Tours</li>
                    <li class="TabbedPanelsTab" tabindex="0">Create Tour</li>
                    <li class="TabbedPanelsTab" tabindex="0">Delete Tour</li>
                    <li class="TabbedPanelsTab" tabindex="0">Add Country</li>
                    <li class="TabbedPanelsTab" tabindex="0">Inclusions</li>
                    <li class="TabbedPanelsTab" tabindex="0">Exclusions</li>
                    <li class="TabbedPanelsTab" tabindex="0">Currency</li>
                    <li class="TabbedPanelsTab" tabindex="0">Days</li>
                  </ul>
                  <div class="TabbedPanelsContentGroup">
                    <div class="TabbedPanelsContent" style="display: none">Content 1</div>
                    <div class="TabbedPanelsContent" style="display: block">Content 2</div>
                    <div class="TabbedPanelsContent" style="display: none">Content 3</div>
                    <div class="TabbedPanelsContent" style="display: none">Content 4</div>
                    <div class="TabbedPanelsContent" style="display: none">Content 5</div>
                    <div class="TabbedPanelsContent" style="display: none">Content 6</div>
                    <div class="TabbedPanelsContent" style="display: none">Content 7</div>
                    <div class="TabbedPanelsContent" style="display: none">
                      <form action="admin.php" method="post" name="form2" id="form2">
                       <input name="tab" type="hidden" value="7" /> <table align="center">
                          <tr valign="baseline">
                            <td nowrap="nowrap" align="right">Day:</td>
                            <td><p>
                                <input type="text" name="day" value="" size="32" />
                              </p>
                                <p>
                                  <input type="submit" name="button" id="button" value="Submit" />
                              </p></td>
                          </tr>
                          <tr valign="baseline">
                            <td nowrap="nowrap" align="right"> </td>
                          </tr>
                        </table>
                        <input type="hidden" name="MM_insert" value="form2" />
                      </form>
                      <p> </p>
                      ontent 8</div>
                  </div>
                </div>
                  <div align="center"></div>
                <script type="text/javascript">
    <!--
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1",{defaultTab:<?php echo $tabToShow;?> });
    //-->
    </script>
              <!-- InstanceEndEditable --></td>
            </tr>
          </table>
        <p> </p></td>
      </tr>
      <tr>
        <td valign="top"><div align="center" class="style1">Copyright © 2009 Leisure Africa - All Rights Reserved</div></td>
      </tr>
    </table>
    <p> </p>
    </body>
    <!-- InstanceEnd --></html>
    <?php
    mysql_free_result($days);
    ?>

  • Spry Menus on Spry Tabbed Panels?

    Hi,
    I'm designing a site that has major tabs at the top, each of which takes the visitor to an appropriate section of the site... each with a default section overview page and a horizontal nav menu that's appropriate for that section. (This design is similar to going to a site like AT&T and clicking on top tabs for Home, Small Business or Enterprise. Once you've done so, the menu below then presents links appropriate to the Home, Small Business or Enterprise products.) I've been trying to implement this by putting instances of Spry Menus in Spry Tabbed Panels within the TabbedPanelsContentGroup div. Specifically, I have the MenuBarHorizontal class is each TabbedPanelsContent div/class.
    I have the basic layout working, but the wiring is mystifying me. Clicking the various tabs indeed presents the correct corresponding menus. But I also need to figure out how to make clicking a section tab go to the section overview page (which happens to also correspond the first menu item, "Overview", in each section). There's no real <a href> kind of option that's apparent in conjunction with the TabbedPanelTabs in the TabbedPanelsGroup. Is there a way to force a particular page to display when switching tabs? Or am I trying to use the wrong tool for the job and there's a better technical approach to implementing this design?
    I've tried David Powers' blog entry re "Opening Specific Tabs and Panels from Another Page" (http://foundationphp.com/tutorials/spry_url_utils.php), but it describes exactly what the title implies.
    Thanks!
    Jeffrey

    Hi, Jeffrey,
    I think I'm going to need to diagram this out!
    Let's see...when you say "major tabs at the top" are you referring to a separate MenuBar or are you speaking of Spry Tabbed Panels?
    You of course realize that if you are speaking of Spry Tabbed Panels, that EVERYTHING on the panels is on one page. If that is your main organization, yeah, it's a little hairy.
    Now, if you have a "normal" one-level set of nav buttons that each takes you to a page that contains a set of Tabbed Panels for that "department," that will get you where you need to be without quite as much mind-blowing follow-the-wire through the wall hijinks, if you know what I mean.
    Here is a site that I put together using Spry Tabbed Panels: http://www25.uua.org/uuhs/index.html Although the top "tabs" nav looks like Tabbed Panels tabs, the Tabbed Panels don't start until you get inside the site, and there I use Vertical tabs (on the left side) and on the Panels have put lots of Spry Accordions.
    By using this technique, you have an effective "landing page" on each "department" linked to with the top navigation buttons.
    Best of luck, and watch out for short-circuits!
    Beth

  • Spry Tabbed Panels and Master/ Detail Page Set interraction

    Hi,
    I have created a feedback form and am using a Spry Tabbed Panel to allow users to review all responses to one question and then all responses to the next question in different tabs, there are 6 tabs in all. In each tab I have created a Master/ Detail Page set - well actually just the Master appears in the tab. This is working fine. I allow up to 20 responses to be shown on each tab, after which the user selects First/Previous/Next/Last. When they do this the screen refreshes and the tabbed panel display goes back to the default tab, clicking on the tab previously used correctly displays whichever of First/Previous/Next/Last the user selected. I'd like the display to remain on the user's current tab when they select First/Previous/Next/Last.
    The page in question is here http://www.hollisterairshow.com/feedback-results2.php, then scroll about half way down the page and select one of the tabs.
    Thanks.
    Tony

    Hi Tony,
    Look at the following, blue coded is comment only, red coded is what has to be added to your existing code and orange coded is added by the SpryDataSet creator if done properly. Where the orange part starts, thats where you place your cursor when creating the dataset.
        <p> </p>
       <div id="TabbedPanels1" class="TabbedPanels">
          <ul class="TabbedPanelsTabGroup">
            <li class="TabbedPanelsTab" tabindex="0">All feedback</li>
            <li class="TabbedPanelsTab" tabindex="0">Suggestions for improvement</li>
            <li class="TabbedPanelsTab" tabindex="0">What did you like the most</li>
            <li class="TabbedPanelsTab" tabindex="0">What did you like the least</li>
            <li class="TabbedPanelsTab" tabindex="0">What else would you like to see</li>
            <li class="TabbedPanelsTab" tabindex="0">Any other comments</li>
          </ul>
          <div class="TabbedPanelsContentGroup">
            <div class="TabbedPanelsContent">
              <table border="1" align="center" id="allFeedback"> .... start feedback table tag (line 763)
                <tr>
                  <td width="80"><strong>Feedback Number</strong></td>
                  <td><strong>Days attended</strong></td>
                  <td><strong>Arrived by</strong></td>
                  <td><strong>Arrival arrangements</strong></td>
                  <td><strong>Expectations met</strong></td>
                  <td><strong>Ticket price</strong></td>
                  <td><strong>Zip code</strong></td>
                </tr>
    .................... rest of table probably your PHP repeat area
                  </tr>
              </table> .... end feedback table tag    
              <div spry:region="dsAllFeedback">
                <table>        
                   <tr>
                    <th spry:sort="Feedback_Number">Feedback Number</th>
                    <th spry:sort="Days_attended">Days attended</th>
                    <th spry:sort="Arrived_by">Arrived by</th>
                    <th spry:sort="Arrival_arrangements">Arrival arrangements</th>
                    <th spry:sort="Expectations_met">Expectations met</th>
                    <th spry:sort="Ticket_price">Ticket price</th>
                    <th spry:sort="Zip_code">Zip code</th>
                  </tr>
                  <tr spry:repeat="dsAllFeedback" spry:setrow="dsAllFeedback" spry:odd="row_odd" spry:even="row_even" spry:hover="row_hover" spry:select="row_select">
                    <td>{Feedback_Number}</td>
                    <td>{Days_attended}</td>
                    <td>{Arrived_by}</td>
                    <td>{Arrival_arrangements}</td>
                    <td>{Expectations_met}</td>
                    <td>{Ticket_price}</td>
                    <td>{Zip_code}</td>
                  </tr>
                </table>
              </div>
              <br />
              <table border="0">
    I hope this helps.
    Ben

  • Spry Tabbed Panel and Master/Detail Page Set interraction

    Hi,
    I have created a feedback form and am using a Spry Tabbed Panel to allow users to review all responses to one question and then all responses to the next question in different tabs, there are 6 tabs in all. In each tab I have created a Master/ Detail Page set - well actually just the Master appears in the tab. This is working fine. I allow up to 20 responses to be shown on each page, after which the user selects First/Previous/Next/Last. When they do this the screen refreshes and the tabbed panel display goes back to the default tab, clicking on the tab previously used correctly displays whichever of First/Previous/Next/Last the user selected. I'd like the display to remain on the user's current tab when they select First/Previous/Next/Last.
    The page in question is here http://www.hollisterairshow.com/feedback-results2.php, then scroll about half way down the page.
    Thanks.
    Tony 

    Hi Tony,
    Have a look here http://labs.adobe.com/technologies/spry/samples/data_region/PagingSample.html and here http://labs.adobe.com/technologies/spry/samples/data_region/SpryPagedViewSample.html
    If you need further assistance, go to the Spry Forum http://forums.adobe.com/community/labs/spry
    I hope this helps.
    Ben

Maybe you are looking for

  • ITunes could not copy " song " to the iPhone " iPhone name " because the file could not be read or written.

    Hi All, Computer- MacBook Pro Processor  2.3 GHz Intel Core i5 Graphics  Intel HD Graphics 3000 384 MB Software  Mac OS X Lion 10.7.4 (11E53) Phone- Iphone 4s Model MC922LL 14GB -iTunes version 10.6.3 64-bit.  -Happening since os x update 10.7.4.  No

  • T61 touchpad won't drag to mark or drag Windows

    Since a recent update to the Ultranav driver (15.1.19) I've got a problem with the touchpad: can't use the touchpad to mark text (shift/drag on touchpad), though I can do this with the trackpoint.  Never used the trackpoint much before but am glad I

  • Track field changes - Modelling

    Hello Gurus, I hope someone out there can help me. I have a requirement to track header data field changes from data loaded from a non-SAP external system and report on the changed columns showing old value and new value. I am using dbconnect to extr

  • JDBC 2.0 - Dynamic cursors

    Hi, I am trying to create a cursor, and i need to use some features of JDBC 2 like "scrolling backwards" and updating data from cursor relative position, but i got an exception, and e.printStack() infromed me this feature was not "yet" implemented. /

  • Is there anyway to make a PC look like a PLC on a Profibus network?

    We currently have a PC based data acquisition system. A customer has asked us to integrate the PC into their PLC (Profibus) network and make it appear as though it (the PC) is a slave on the profibus. I have found some interfaces that convert profibu