HTML
  Home arrow HTML arrow Page 2 - 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 - Special Modification of the showMonth() Function


    (Page 2 of 4 )

    We addressed the table cells using their IDs. Here, we give the Input Text elements the same IDs as the table cells. Thus, the JavaScript code remains unchanged, except for the line in the for-loop that has to write the number for the day of the month, or the lines in the for-loops that write the space characters.

    The line that has to write the number for the day of the month was:


    document.getElementById(tdID).innerHTML = monthDayNo;


    It is now:


    document.getElementById(tdID).value = monthDayNo;


    The "innerHTML" is used to set the content of a table cell. For Input Text elements, we use "value," as in the above statement. The line in the for-loop that writes the space character was:


    document.getElementById(tdID).innerHTML = " ";


    It is now:


    document.getElementById(TDID).value = " ";


    Note the value attribute in the line. Also, note that “ ” has been assigned, and not " ". This is because the value for the attribute of the Input Text element considers " " literally and would display it as such.

    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 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek