HTML
  Home arrow HTML arrow Page 3 - Browser Compatibility Modifications for a ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Browser Compatibility Modifications for a Web Page Calendar
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-06-01

    Table of Contents:
  • Browser Compatibility Modifications for a Web Page Calendar
  • Special Modification of the showMonth() Function
  • The Container for the Yearly Calendar
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Browser Compatibility Modifications for a Web Page Calendar - The Container for the Yearly Calendar


    (Page 3 of 4 )

    In the previous parts of the series, we used a main DIV element to hold all the months of the year. The complete layout works very well with Internet Explorer, but does not work with other browsers. So we have to redesign the complete layout.

    First we replaced each table cell with an Input Text control. We then abandoned the table, which had the table cells. This table we have abandoned was in a DIV element. Now we have to abandon this DIV element, as I explain in the next paragraph.

    Please note from the above single month layout that there is a line break element at the end of each row of Input Text elements. It is this line break element that determines the rows. When you now put these rows in a DIV element, the result with the browsers is not what you expect.

    According to the specification, everything should be all right. However, browsers are still unable to handle what we're doing here. So we have to abandon the DIV element for each table.

    This means that each Input Text element will not be inside a DIV element, as in the previous part of the series. So the following CSS statement controlling the style of these DIV elements is not needed for this part of the series.

    div.CalM {border:2px solid black; display:inline}


    There are two DIV elements we are talking about here. One held a month; we have abandoned that. The other one was a main DIV element; we have also abandoned that.

    In the previous part of the series, we had a main DIV element (which we have abandoned) that held all the months of the year. Well, having this DIV element now does not help us (with <br /> at the end of each row of the months) to keep the months in rows with browsers. The problem is that browsers have limits in the extent to which they respect the HTML, CSS and JavaScript specifications.

    So the main DIV element is replaced by an HTML TABLE element. A set of Input Text elements for a month is in a table cell of this table that replaces the main DIV element. The table has three rows and four columns. Each cell takes a month. This is the table with the content of its first cell:


    <table id="YR" onclick="CalJustClicked = true;" width="670">

    <tr>

    <td>

    <input type="text" class="calHead" id="IA1" readonly><input type="text" class="calHead" id="IA2" readonly><br />

    <input type="text" class="sun" value="S"><input type="text" class="cell" value="M"><input type="text" class="cell" value="T"><input type="text" class="cell" value="W"><input type="text" class="cell" value="T"><input type="text" class="cell" value="F"><input type="text" class="cell" value="S"><br />

    <input type="text" class="sun" id="MA00" value=""><input type="text" class="cell" id="MA01" value=""><input type="text" class="cell" id="MA02" value=""><input type="text" class="cell" id="MA03" value=""><input type="text" class="cell" id="MA04" value=""><input type="text" class="cell" id="MA05" value=""><input type="text" class="cell" id="MA06" value=""><br />

    <input type="text" class="sun" id="MA10" value=""><input type="text" class="cell" id="MA11" value=""><input type="text" class="cell" id="MA12" value=""><input type="text" class="cell" id="MA13" value=""><input type="text" class="cell" id="MA14" value=""><input type="text" class="cell" id="MA15" value=""><input type="text" class="cell" id="MA16" value=""><br />

    <input type="text" class="sun" id="MA20" value=""><input type="text" class="cell" id="MA21" value=""><input type="text" class="cell" id="MA22" value=""><input type="text" class="cell" id="MA23" value=""><input type="text" class="cell" id="MA24" value=""><input type="text" class="cell" id="MA25" value=""><input type="text" class="cell" id="MA26" value=""><br />

    <input type="text" class="sun" id="MA30" value=""><input type="text" class="cell" id="MA31" value=""><input type="text" class="cell" id="MA32" value=""><input type="text" class="cell" id="MA33" value=""><input type="text" class="cell" id="MA34" value=""><input type="text" class="cell" id="MA35" value=""><input type="text" class="cell" id="MA36" value=""><br />

    <input type="text" class="sun" id="MA40" value=""><input type="text" class="cell" id="MA41" value=""><input type="text" class="cell" id="MA42" value=""><input type="text" class="cell" id="MA43" value=""><input type="text" class="cell" id="MA44" value=""><input type="text" class="cell" id="MA45" value=""><input type="text" class="cell" id="MA46" value=""><br />

    <input type="text" class="sun" id="MA50" value=""><input type="text" class="cell" id="MA51" value=""><input type="text" class="cell" id="MA52" value=""><input type="text" class="cell" id="MA53" value=""><input type="text" class="cell" id="MA54" value=""><input type="text" class="cell" id="MA55" value=""><input type="text" class="cell" id="MA56" value="">

    </td>

    <td>

    </td>

    <td>

    </td>

    <td>

    </td>

    </tr>

    <tr>

    <td>

    </td>

    <td>

    </td>

    <td>

    </td>

    <td>

    </td>

    </tr>

    <tr>

    <td>

    </td>

    <td>

    </td>

    <td>

    </td>

    <td>

    </td>

    </tr>

    </table>

    More HTML Articles
    More By Chrysanthus Forcha


     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek