|
Google Calendar style bubble
|
|
8th May, 19:13
Post: #1
|
|||
|
|||
|
Google Calendar style bubble
Hi,
i've like to create a tooltip for a calendar that functions like that of the Google calendar. [list=*] [*]Load content from hidden div or span Open on click Close button and close on click outside tip Not to exceed the current pages width[/*] [/list] If this can't be done with qTip can it be done with any others? Thanks. |
|||
|
8th May, 20:29
Post: #2
|
|||
|
|||
|
Google Calendar style bubble
This can indeed be done with qTip. Try out this little code snippet:
JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
9th May, 17:30
(This post was last modified: 10th May 06:57 by berko.)
Post: #3
|
|||
|
|||
|
Google Calendar style bubble
Excellent! Just what i was after!
One problem I have though (pardon my ignorance) is how to I get it to only display the hidden content associated with the link you click on? So basically if there are lots of events on the calendar and each has it's own info, how do i show only the info of only the event that was clicking? At the moment is shows all content wrapped in the "event_bubble" class. My markup goes like this.... JS Code
Also can I make the title of the tooltip the same as the title of the link or the same as a h4 inside the "event_bubble" class? Thanks for your help. |
|||
|
9th May, 23:57
Post: #4
|
|||
|
|||
|
Google Calendar style bubble
Sure. Try this code out:
JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
10th May, 06:56
(This post was last modified: 10th May 06:56 by berko.)
Post: #5
|
|||
|
|||
|
Google Calendar style bubble
Thanks for your patience. I'm almost there!
If the "event" link is wrapped in a p tag it doesn't pick-up the event bubble. JS Code
Also how can i hide the .event_bubble content until the link is clicked? I tried setting "display: none;" in the CSS but that stops it from being displayed even when clicked. Thanks again for your help.
|
|||
|
10th May, 07:03
Post: #6
|
|||
|
|||
|
Google Calendar style bubble
I fixed the issue with hiding the content with the following CSS
JS Code
But I still have the problem of the tooltip not working if link is wrapped in a p tag. |
|||
|
10th May, 23:40
Post: #7
|
|||
|
|||
|
Google Calendar style bubble
It isn't picking up the element because its basically searching for sibling elements within the p element for your event bubble content. Try this code out instead, which should also fix the display problem you're facing (remove the display: none in your CSS):
JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help




