I'm trying to get this script working inside Joomla 1.0.x. Everything seems to render just fine, but the click handler is not working. It gives an error trying to set the current date because no cellindex is being passed into the click handler. I have used FireBug to debug the cellindex being fed in during _buildDay and it all looks good, but the click still doesn't receive the cellindex.
Any ideas why?
David
I'm using 1.6.0 which looks
I'm using 1.6.0 which looks to be what you have in SVN right now.
Hi, David. What version of
Hi, David.
What version of prototype are you using?
For now I have "fixed" this
For now I have "fixed" this by adding a bit of a hack. I changed the _buildWrapper function to add an extra css class called cellindex_# where # is the cellindex of the new cell. So now all the cells have their index embedded in them in the form of a css class. Then in the _click function I just added some javascript to run through the classes of the selected element and find the cellindex_# class and pull out the index number. That has solved me present problem.
Still have no idea why cellindex was not being passed to the _click function, but at least for now I'm past this issue. I should mention that I've only tried this in FireFox and Safari on OSX. I'll test in Windows when I have a chance.
David
Rock on! Thanks for posting
Rock on! Thanks for posting the idea for the fix. I'll check into this when I have time to dig in and straighten things up.
Post new comment