www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 01-17-2007, 10:57 AM
    Sharky2k6 Sharky2k6 is offline
    Registered User
     
    Join Date: Jan 2007
    Posts: 1
    JS code for a calendar that hides events that do not "fit"?

    Hello all,
    My name is Mike (Sharky) and this is my first time posting on this forum. Fyi I did do a search for this in advance...but found no results (sorry if there was a result I didn't see).

    In any case, here's my dilemma:
    I am currently making a calendar using a basic table to display it in a month format. I want to display the events within the table BUT found that when one day has more events than another, it disrupts the look of the table (one row is really tall while another is very short).

    I was curious if anyone has any idea how to write javascript code that will automatically "hide" events that do not fit - similiar to how Google calendar displays "+2, "+3" etc when the browser window is shrunk to a size that cannot fit all of the events.

    Unlike google calendar however, each table cell ("day") has an exact width & height of 70px (which should hopefully make this easier, since it's not "fluid") , however because the user may have a larger font size - I cannot assume that "Since the font size is 12 px, I do not show more than 3 events, etc"


    If anyone could tell me where to start, or give me a helpful "snippet" of code - I'm sure I'd be able to find my way to a solution.

    Any thoughts, ideas, or suggestions would be much appreciated. And thanks for reading through this entire post


    - Mike M.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 03:53 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.