Results 1 to 2 of 2

Thread: Tabs using DIV problem

  1. #1
    Join Date
    May 2012

    Tabs using DIV problem


    I created two tabs form, my code is just on one page, my goal is to divide my page into two tabs, I created it using ASP web and it works just fine, my problem is when I change it to HTML. when I change everything to HTML and run it on I.E, everything appears on One Page not on two tabs as intended.

    Here is my code below:

    <div id="tab-container" class='tab-container'>

    <ul class='etabs' style="">
    <li class='tab'><a href="#CDD_page1">Page 1 of 2 Pages</a></li>
    <li class='tab'><a href="#CDD_page2">Page 2 of 2 Pages</a></li>

    <div class='panel-container'>
    <form name="form" method="post" action="">

    <div id="CDD_page1">
    <fieldset><legend>DESCRIPTION OF CHANGE</legend>

    <tr title="Brief Description of Change"><td class="style17">
    Description of your Change Request <img src="req.gif" alt="Required" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;
    </td><!--<span title="Brief Description of Change">-->
    <input name="BriefDescriptionofChange" type="text" id="MainContent_TextBox1" style="width:168px;" />
    <tr title="Change Reference Number And The Change Type">
    <td class="style17">
    Change Number <img src="req.gif" alt="Required" />
    </td><!--<span title="Change Reference Number And The Change Type">-->
    <td class="style3">
    <input name="ChangeNumberType" type="text" id="MainContent_TextBox3" value="" style="width:95px;" />

    <select name="ChangeType" id="MainContent_DropDownList1" onchange="showEntry(this,this.value, 'Flare2')">
    <option value="">-Select-</option>
    <option value="Flare">Flare</option>
    <option value="SR">SR</option>
    <option value="PAF">PAF</option>
    <option value="CR">CR</option>


    <tr id="Flare" style="display: none;">

    <td class="style17">
    Hyperlink to Flare <img src="req.gif" alt="Required"/></td><td><input name="HyperlinktoFlare" type="text" id="MainContent_TextBox2" value="" style="width:168px;" /></td>

    <tr id="Flare2" style="display: none;"> <!--<span id="Flare2" style="display: none;">-->

    <td class="style17">
    Flare Priority <img src="req.gif" alt="Required"/></td><td>
    <select name="FlarePriority" id="MainContent_DropDownList2" onchange="changePriority(this.selectedIndex)" style="width:168px;">
    <option value="">-Select-</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>

    </select></td> <!--</span>--></tr><!--</span>-->

    <tr title="Dependency">
    <td class="style17">
    Dependency<img src="req.gif" alt="Required"/></td><td>
    <input name="Dependency" type="text" id="MainContent_TextBox4" value="" style="width:168px;" />

    <tr title="Developer">
    <td class="style17">
    Developer <img src="req.gif" alt="Required" />
    </td><!--<span title="Developer">-->
    <input name="Developer" class="reqtext" type="text" id="Developer" value= "" style="width:168px;" />

    <tr title="Dependency">
    <td class="style17">
    Unit Tester <img src="req.gif" alt="Required" />
    </td><!--span title="Dependency">-->
    <input name="UnitTester" class="reqUnit" type="text" id="MainContent_TextBox6" value= "" style="width:168px;" />
    <tr title="Developer">
    <td class="style17">
    Project Manager <img src="req.gif" alt="Required" />
    </td><!--<span title="Developer">
    --> <td>
    <input name="ProjectManager" type="text" id="MainContent_TextBox7" value= "" style="width:168px;" />

    <tr><td><input type="button" value="Continue" onclick="verify();"></td><td><a class="menuitem" href="CDD_page1.aspx">Cancel</a>

    <div id="CDD_page2">
    <fieldset><legend>TEST STATUS AND REQUIREMENT</legend>
    <table class="style6">
    <tr title="Is the COMPILED CODE and SOURCE CODE correct?">
    <td class="style9">
    SIT&nbsp; Test&nbsp;&nbsp;&nbsp;&nbsp; Status&nbsp;&nbsp; <img src="req.gif" alt="Required"/> </td>
    <td class="style10">

    <select name="SITStatus" id="DropDownSIT" onchange="showSITtxtField(this,this.value)" style="width:168px;">
    <option value="">-Select-</option>
    <option value="Not Applicable">Not Applicable</option>
    <option value="In Progress">In Progress</option>
    <option value="On Hold">On Hold</option>
    <option value="Signed Off">Signed Off</option>


    </tr >

    <!-- <span id="SITN/A" style="display: none;">-->

    <tr title="Is the COMPILED CODE and SOURCE CODE correct?" id="SITN/A" style="display: none;">
    <td class="style11">
    What testing was done? <img src="req.gif" alt="Required"/></td>
    <td class="style4">
    <input name="testingDone" id="Text13" type="text" value= "" style="width:168px;"/></td>

    <!-- </span> -->

    <span id="UAT" style="display: inline;">
    <tr title="Is the COMPILED CODE and SOURCE CODE correct?">
    <td class="style11">
    UAT Test Status <img src="req.gif" alt="Required"/></td>
    <td class="style4">
    <select name="UATTest" id="DropDownUAT" onchange="showUATtxtField(this,this.value)" style="width:168px;">
    <option value="">-Select-</option>
    <option value="Not Applicable">Not Applicable</option>
    <option value="In Progress">In Progress</option>
    <option value="On Hold">On Hold</option>
    <option value="Signed Off">Signed Off</option>


    <!--<span >-->

    <tr title="Is the COMPILED CODE and SOURCE CODE correct?" id="UATN/A" style="display: none;">
    <td class="style11">
    What testing was done? <img src="req.gif" alt="Required"/></td>
    <td class="style4">
    <input name="testingDone2" id="Text13" type="text" value= "" style="width:168px;"/></td>
    <tr >
    <td><a class="menuitem" href="#CDD_page1">Back</a></td><td><a class="menuitem" href="CDD_page1.aspx">Cancel</a>
    </td><td><input type="button" value="Submit" onclick="mySubmit();"/></td>




  2. #2
    Join Date
    Nov 2006
    There is no reason for your tabs to work when using ASP and fail in HTML. That's because ASP ultimately generates the HTML code to send to the web browser.
    Where is your CSS styles sheet?

    Your <div id="CDD_page1"> should be closed before the <div id="CDD_page2"> starts as well as its corresponding (nested in) table.
    I suggest you format your HTML properly to start with.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.08802 seconds
  • Memory Usage 2,866KB
  • Queries Executed 15 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (2)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (72):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates