I'm building a monthly calendar with cells for the days. I'm using php to get the data for a month's events from a mySql database, and then create the cells as I go, filling the cells with text corresponding to the event details, all with php.
When a record for an event that spans more than 1 day is reached, rather than putting in the cell for each day that it covers, I want to place an absolute positioned div across the days for the event, but I need to get the xy position of the cell where it would have gone if it were a single day event.
I can do that in javascript outside of php but I don't know how to do it when I'm between <?php and ?>. What is the correct way to call a javascript function from within the php code?
When a record for an event that spans more than 1 day is reached, rather than putting in the cell for each day that it covers, I want to place an absolute positioned div across the days for the event, but I need to get the xy position of the cell where it would have gone if it were a single day event.
I can do that in javascript outside of php but I don't know how to do it when I'm between <?php and ?>. What is the correct way to call a javascript function from within the php code?