whoops, I hijacked another thread.. but maybe it applies anyway... lol

On Fri, Jul 4, 2008 at 11:20 PM, David Morton <[EMAIL PROTECTED]> wrote:

> I know, I'm using the "for" attribute too.  The thing is, sometimes all the
> valid attributes are already in use for their "proper" uses...  the title
> attribute is used by thickbox for its caption, and I don't want it set
> there.  (yeah, thickbox needs an option to ignore it)
>
> So it would be nice to have another option. :)
>
> I think it would be easy... add an option "autoid", and then around line
> 249,
>
>  } else if (opts.local){
>     if(opts.autoid) {
>        var $localContent = $('cluetip_' + this.attr('id') + ':first');
>     } else {
>         var $localContent = $(tipAttribute + ':first');
>    }
>
> Or something like that... untested right now... I'm completely guessing.
> Maybe I can look at it tomorrow.
>
>
> On Fri, Jul 4, 2008 at 10:39 PM, Karl Swedberg <[EMAIL PROTECTED]>
> wrote:
>
>>
>> ok. quick suggestion for now until I look more into this:
>>
>> you don't need to use the rel attribute at all. you can instead set the
>> attribute option to any attribute you want. You could use the title
>> attribute from the area for the clueTip title (default) or use the alt
>> attribute for it; you can use the href attribute to fetch the contents from
>> an element with a matching id.
>>
>> $('area').cluetip({
>>        attribute: 'href',
>>        titleAttribute: 'alt',
>>        local: true
>> });
>>
>>
>>
>> --Karl
>> ____________
>> Karl Swedberg
>> www.englishrules.com
>> www.learningjquery.com
>>
>>
>>
>>
>> On Jul 3, 2008, at 3:04 PM, C.Everson wrote:
>>
>>
>>> On Thu, 3 Jul 2008 14:12:56 -0400, Karl Swedberg wrote:
>>>
>>>  Sorry for the delay in replying. I'll try to take a look at this
>>>> tonight.
>>>>
>>>
>>> Thanks Karl!
>>>
>>> BTW, another issue that I ran into with the Image Maps is that REL
>>> appears
>>> to NOT be a valid attribute of the <AREA> tag.  This was causing HTML
>>> validation to croak<g>.  I was able to reset ClueTip to use the "href" to
>>> pass the ID of a hidden content div down the page, but that seems a bit
>>> of
>>> a kludge...
>>>
>>>
>>> Thinking about that (and digging into your code some more) I found that
>>> the
>>> first parameter to ClueTip can be the tip.
>>>
>>> That made me wonder if (for Image Maps) it might be better to be able to
>>> set splitTitle: true and then pass both the tip and title as the first
>>> parameter (with the "|" or whatever as the split element.
>>>
>>> Of course that would not make the map 508 friendly (since there would be
>>> no
>>> Alt or Title over the AREA), but it might be a way to make things work
>>> and
>>> still pass validation.
>>>
>>> If that was an option, then I guess the only other consideration would be
>>> how to solve the REL issue (and still pass validation).
>>>
>>>
>>> Another idea (if possible), might be to use splitTitle and get it to pull
>>> the tip title from the first part of the content pulled in for the tip...
>>>
>>> Anyway - thanks again for your great work on this and I look forward to
>>> seeing what you come up with.
>>>
>>> Chuck
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
>
> --
> David Morton
> [EMAIL PROTECTED] - bulk address
> [EMAIL PROTECTED] - direct to my server




-- 
David Morton
[EMAIL PROTECTED] - bulk address
[EMAIL PROTECTED] - direct to my server

Reply via email to