Hi André,
There are a couple ways I can think of to do #1. I've whipped up a
couple demos to show you:
http://plugins.learningjquery.com/cluetip/demo/multi-ajax.html
http://plugins.learningjquery.com/cluetip/demo/multi-ajax2.html
Just view source to see how they're done.
The second one is simpler, but it appends the second file's contents
after the cluetip is shown, at which point the drop-shadow divs have
already been drawn, so I had to resize them too or else they wouldn't
really be drop shadows. The quick resize shouldn't be too noticeable,
but thought you should know.
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Aug 27, 2008, at 9:24 AM, André wrote:
Hi everyone,
I've just started using jquery and a few plugins including cluetips:
they are wonderful! :-)
Now, my question. I am using cluetips to display the content of a
short help file on some elements. Many elements are such that their
help file differ only slightly. What I would like to is create a file
(common.html) containing elements that are common, and even shorter
files for each element (let's call them elem1.html, elem2.html,
etc.). Then, I'd be happy if I could do either of the following:
1. when displaying a cluetip, appending common.html to elem1.html
automatically, and displaying the result.
2. having an active element within elem1.html (let's call it "more")
and using "more" as the source of a new cluetip, used to pull
common.html. (I don't want to have it displayed as a separate web
page, losing focus; a popup might be acceptable).
Thanks for any help,
André