Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
apply is not a function
12th July, 15:02
Post: #1
apply is not a function
Hi Craig,

Very cool plugin, and an actual helpful forum, which is even cooler. My problem is that Firebug is giving me the following error:

fullcalendar.min.js (line 89):
this.options[a].apply is not a function
[Break on this error] 1)}this.title=oa(c,this.option("titleF...)},eventEnd:function(a){return a.end?

Environment:
jQuery v1.4.2
FullCalendar v1.4.7
qtip 1.0-rc3

I'm successfully loading my calendar with a couple of Google calendars, then trying to attach qtips to events like so:
JS Code
// create qTips
      viewDisplay: $('.fc-event').each(function(){
            // Grab event data
            var title = $(this).find('.fc-event-title').text(),
               data = calendar.data('fullCalendar').clientEvents(function(event){
                  return event.title === title;
               })[0];
 
            $(this).qtip({
               content: event.title,
               position: {
                  my: 'bottom center',
                  at: 'top center'
               },
               show: 'mouseOver',
               hide: 'mouseOut',
               style: {
                  tip: true
               }
            })
         }) // end qTips


My calendar shows up with all the events, but my qtips aren't happening. Any ideas?

thanks!
Bill
Find all posts by this user
Quote this message in a reply
13th July, 10:05
Post: #2
RE: apply is not a function
Sunset, does that error disappear when when you remove the above code? The error seems to originate from fullCalendar, not qTip.

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
27th July, 03:49
Post: #3
RE: apply is not a function
Have You tried setting qTip in eventRender?

Take a look at http://arshaw.com/fullcalendar/docs/even...entRender/

Regards,
Rodrigo

JS Code
$('#calendar').fullCalendar({
    events: [
        {
            title: 'My Event',
            start: '2010-01-01',
            description: 'This is a cool event'
        }
        // more events here
    ],
    eventRender: function(event, element) {
        element.qtip({
               content: event.title,
               position: {
                  my: 'bottom center',
                  at: 'top center'
               },
               show: 'mouseOver',
               hide: 'mouseOut',
               style: {
                  tip: true
               }
        });
    }
});
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] How to call javascript function within Qtip? When2Meets2 7 1,099 19th September 16:49
Last Post: Craig
  [Solved] Cant seem to apply the styles yetanotherdeveloper 2 441 31st August 00:19
Last Post: yetanotherdeveloper
  Show api function not working occulens 1 688 27th May 17:10
Last Post: Craig
  [Solved] Firefox Debug -> qtip is no function Hesostein 7 6,173 5th March 03:02
Last Post: Aigw3v75d3Z
  [Solved] Content from function? AndiHoffi 1 550 11th January 11:32
Last Post: Craig
  [Solved] $ is not a function drtanz 4 2,683 7th December 00:21
Last Post: drtanz
  [Solved] Simple apply event bindings onShow bigorangemachine 5 1,324 24th November 14:29
Last Post: bigorangemachine
  using live function with qtip corbeeresearch 1 2,143 2nd September 12:33
Last Post: Craig
  qTip: just utilizing the rounding function on an element thumbslinger 0 558 2nd May 20:29
Last Post: thumbslinger
  Call javascript function within Qtip? Meista 1 2,301 1st April 14:06
Last Post: sveiki



User(s) browsing this thread: 1 Guest(s)