Results 1 to 2 of 2

Thread: addEvent function

  1. #1

    addEvent function

    I've figured that I'm going to need two addEvent functions. One for the class to use internally and a public one for the coder addEvent($start_date, $end_date, $name)

    The way the class is setup now, it takes a multidimensional array to create the events inside the table, which is fine, but i would like to simplify it more using an addEvent function. when it adds an event, it adds a class to the table TD, and thats how they get a highlight color and contain the event's info. if the event lasts 2 hours then it needs to do that for 4 td's (each td is 30 minutes), so things get complicated.

    I was thinking about adding some absolute CSS positioning. so I would just add a <div class="event">event data</div> and resize it according to the duration of the event. the DIV would float over the table.

    You guys think this calls for trouble that may make things even more complicated or run into a lot of messed-up divs because of CSS browser issues?
    "You are playing a very dangerous game"
    "Change always is"

    Creativo Development

  2. #2
    mmm I'll probably go for a pure CSS calendar, it will also make it easier to implement the _html function and not output HTML from the clasS
    "You are playing a very dangerous game"
    "Change always is"

    Creativo Development

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
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012