jquery 中完整日历的弹出窗口
我需要在 jquery 完整日历中创建事件时显示一个弹出窗口(如 google 日历中的气球弹出窗口)。
显示为气球并处理点击事件的弹出窗口有什么最好的插件(我用它来从弹出窗口创建/编辑/删除事件)?
I need to show a popup (balloon popup as in google calendar) while creating an event in the jquery full calendar.
Any best plugins for the popup which shows as balloon and also which handles the click events (which I am using to create/edit/delete events from popup)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我已经将 QTip 与 fullCalendar 一起使用,效果非常好!
只需确保您在 fullCalendar 的 eventRender 事件中定义 qtip 即可。 :)
我注意到的唯一问题(使用 JQuery 1.3)是当 qtip 弹出窗口淡入时,它在 fullCalendar 的样式网格后面开始淡入。在前几帧之后,就很好了。另外,这很可能是我项目中正在进行的其他一些事情的问题。我懒得进一步调试它,所以你的里程可能会有所不同。 ;p
I've used QTip with fullCalendar and it's working great!
Just make sure you're defining your qtip in fullCalendar's eventRender event. :)
The only issue I've noticed (w/ JQuery 1.3) is that when the qtip popup fades-in, it starts its fade-in behind fullCalendar's styled grid. After that first ~few frames, it's fine. Also, this could very well be a problem with some other stuff I have going on in my project. I'm too lazy to debug it further so your mileage may vary. ;p
qTip 插件可以处理工具提示中的任意内容,包括分配事件处理程序和获取的内容的能力更丰富的功能。
请参阅演示。
The qTip plugin can handle arbitrary content in the tooltips including the ability to assign event handlers and whatnot to get richer functionality.
See the demos.
我编写了自己的弹出窗口,它使用具有绝对位置的 div 来显示。
使用一些 JavaScript 调用
$('#addEvent').css({ left: xPos, top: yPos }).show().fadeIn();
来计算鼠标单击的位置并显示弹出窗口。I wrote my own popup which displays using div with absolute position.
call the
$('#addEvent').css({ left: xPos, top: yPos }).show().fadeIn();
with some javascripting to calculate the position of mouse click and show the popup.这是我的实现。我在悬停时执行此操作,如果您想单击,只需更改事件处理程序
,并且至少:
Here is my implementation. i did this on hover, bt if you want click, just change the event handler
and, at least:
“气球”插件本身不需要处理点击事件,因为 fullcalender 已经为此提供了配置的回调...
如果您正在寻找工具提示样式“气球”,推荐的 Qtip 是一个不错的选择。您可以根据需要使用 eventClick 函数动态创建工具提示,也许可以从其他地方获取提示的内容。
The "balloon" plugin itself doesn't need to handle the click event, as fullcalender already provides a configured callback for that...
If you are looking for tooltip style "balloons", Qtip as recommended is a good choice. You could create the tooltip on the fly with the eventClick function on an as-needed basis, perhaps fetching the contents of the tip from somewhere else.
试试这个......它是基于ajax的,但如果你愿意的话你可以删除它......你也可以将你的事件绑定到你想要的控件。
jquery ajax 工具提示
Try this one... It is ajax based but you can remove it if you want.. you can also bind your events to the controls your want.
jquery ajax tooltip
如果弹出窗口不适合您,请尝试使用旧版本的 jquery。
我尝试使用 jquery-1.4,它现在可以工作了。我尝试使用 jquery-1.2.6 并且它工作得很好。
请参阅有关使用旧版 jquery 使 qtips 正常工作的讨论
If the popup does not work for you, try to use an older version of jquery.
I tried with jquery-1.4 and it does now work. I tried with jquery-1.2.6 and it works perfectly.
See a discussion about using older jquery for making qtips work