ckrack / fbootstrapp

HTML, CSS, and JS toolkit for facebook apps
http://ckrack.github.com/fbootstrapp/
Apache License 2.0
1.61k stars 173 forks source link

fbootstrap tabs #19

Closed ninja-yan closed 12 years ago

ninja-yan commented 12 years ago

Hi everyone! I'm having problem in fbootstrap tabs. In my first and second tab, i included a .php file to fetch data from database. When I only include 1 php file, tabs are working. But if I include another .php file on the other tab it doesn't work.

Here's my code

main file - first tab

Add Delivery Method
```
Delivery Method Status Action

---
## main file - second tab

<div class="tab-pane" id="document-types">
              <div id="document-types-container">
                <form action="process_add_document_types.php" method="post" id="update_username" class="well custom-form-center">
                  <fieldset>
                    <legend>Add Document Type</legend>
                    <div id="document_type_box" class="clearfix">
                      <label for="document-type">Document Type</label>
                      <div class="input">
                          <input type="text" class="span10" id="document-type" name="document-type" maxlength="150" autocomplete="off" placeholder="Document type" />
                      </div>
            </div>
            <div id="number_of_days_box" class="clearfix">
              <label for="number-days"><strong>Days</strong></label>
              <div class="input">
                <input type="text" class="span10" id="number-days" name="number-days" maxlength="3" autocomplete="off" placeholder="Number of days" />
              </div>
            </div>
            <div class="actions">
              <button type="submit" class="btn primary">Add</button>
            </div>
          </fieldset>
        </form>
        <div class="custom-space"></div>
        <!--table for document types-->
        <table id="document-types-table" class="condensed-table bordered-table zebra-striped">
          <thead>
            <tr>
              <th>Document Type</th>
              <th>Number of Days</th>
              <th>Action</th>
            </tr>
          </thead>
          <tbody>
            <?php include("get_document_types.php"); ?>
          </tbody>
        </table>
        <!--end table for document types-->
      </div>
    </div>