Hi all,

I am trying to use the cluetip plugin to display some information I'm
pulling from a $.getJSON call. Perhaps it's obvious to someone what
the best way to do this is. Right now, I'm having some difficulty
getting the content to display. Here's what I have:

There's a hidden div, let's call it "#content", that I am using as the
rel attribute of my anchor - this is the div from which the cluetip
will get its contents. #content is initially empty, but in the cluetip
options, I am populating the div with data from a $.getJSON call
within the function that's called in the onActivate cluetip option.
The problem seems to be that that function is called too late -- the
cluetip shows up as empty when I initially mouseover, but then it
shows the correct contents when I mouseover a second time. What would
be the proper way to do this?

I have a feeling I should be using the ajax functionality of cluetip,
but I am getting cross-domain errors when I try it that way (placing
the URL of the JSONP call as the anchor's rel value). Is there a
specific way to allow me to access data from other domains?

thanks in advance,
Yazan

Reply via email to