WOW thanks, now it works also in IE (the confirm msg abort and the
tooltip)!
To the problem with the trailing comma: I thought first when I started
with jquery that thisd may be wrong but than I often saw it with a
trailing comma at the end of an array and since in php it's also
allowed (array('asd', 'asd312', );) I thought that wouldn't be the
problem...

Now another question: Is it possible to show the tooltip a little bit
faster in IE and with the fade effect???


On 30 Dez. 2007, 20:18, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Okay, it looks like it's working fine in Firefox, but not at all in
> IE6. The problem is that you have a trailing comma in your object
> literal, an incorrect syntax that Firefox overlooks.
>
>         $('a.help').cluetip({
>                 cluetipClass: 'jtip',
>                 arrows: true,
>                 dropShadow: false,
>                 positionBy: 'auto',
>                 leftOffset: 20,
>                 fx: {
>                   open:       'fadeIn', // can be 'show' or 'slideDown' or 
> 'fadeIn'
>                   openSpeed:  ''
>                 },
>                 local: true,
>                 hideLocal: true, // <-- REMOVE THIS COMMA
>         }).click(function() {
>             return confirm('Diese News wirklich löschen?');
>        });
>
> Actually, hideLocal is set to true by default, so you don't need that
> line at all. If you remove the line, however, make sure you remove the
> trailing comma after local: true as well.
>
> --Karl
> _________________
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Dec 29, 2007, at 8:17 AM, KnoxBaby wrote:
>
>
>
> > Still the problem:
>
> >http://www.jahlabs.de/jquery/test/
>
> > In IE: Tooltips and confirm message bug still not working :(
>
> > On 26 Dez., 01:45, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> >> On Dec 24, 2007, at 5:41 PM, KnoxBaby wrote:
>
> >>> Hello,
>
> >>> thanks for your help again. Thanks, I want to say that I didn't
> >>> upload
> >>> the new "version" because it worked everything ...
>
> >>> Second, I want to ask you if you can add the possibility to split
> >>> the
> >>> local content too if spitTitle is set because than I would not
> >>> have a
> >>> redundant data as title again and again.
>
> >> Hmm. I doubt I'll be adding that as a feature.
>
> >>> Than, to your solution about the link with the onclick="return
> >>> confirm(...)", I have to say: Is there another solution because I
> >>> have
> >>> several links and every link has a tooltip with the same "style",
> >>> but
> >>> another confirm message so I would have to use the same cluetip with
> >>> different confirm messages and that would be a little be
> >>> redundant :(
>
> >> Adding onclick handlers directly in your HTML seems to be the most
> >> redundant way you could possibly do this. There are a number of ways
> >> to target your confirm messages to the particular link that is being
> >> clicked. Here is just one way:
>
> >> $('a.help')
> >>    .cluetip({
> >>        cluetipClass: 'jtip',
> >>        arrows: true,
> >>        dropShadow: false,
> >>        positionBy: 'auto',
> >>        leftOffset: 20,
> >>        fx: {
> >>            open:       'fadeIn', // can be 'show' or 'slideDown' or
> >> 'fadeIn'
> >>            openSpeed:  ''
> >>        },
> >>        local: true
> >>    })
> >>  .filter(':first-child') // from all a.help elements, select only
> >> those that are the first child of their parent
> >>    .click(function() {
> >>        return confirm('Diese News wirklich löschen?');
> >>    });
>
> >> You could also, as another example, filter by what the value of any
> >> of
> >> the link's attributes is.
>
> >>> thanks!!!
>
> >> You're welcome. :-)
>
> >>> On Dec 24, 8:31 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> >>>> Okay, after investigating a bit more, I discovered that there is an
> >>>> error in the Metadata plugin that you're using.
>
> >>>> On line 95 the left curly bracket is not escaped in the regexp:
>
> >>>>             if ( !/^{/.test( data ) )
>
> >>>> it should be this:
>
> >>>>             if ( !/^\{/.test( data ) )
>
> >>>> Actually, that isn't what is causing this particular problem, so
> >>>> something else is going on there, too.  Regardless, the good news
> >>>> is
> >>>> that the SVN version of Metadata 2.0 does not change the contents
> >>>> of
> >>>> the element to [object object] when you use .wrapInner() on it. You
> >>>> can pick it up here:
>
> >>>>http://jqueryjs.googlecode.com/svn/tags/plugins/metadata/2.0/
> >>>> jquery.m...
>
> >>>> --Karl
> >>>> _________________
> >>>> Karl Swedberg
>
> >>>> On Dec 24, 2007, at 4:23 AM, KnoxBaby wrote:
>
> >>>>> WOW thanks, I try this ... the problem is: I need metadata plugin
> >>>>> for
> >>>>> the table sorter to work correctly :( Do you think there's a
> >>>>> nother
> >>>>> version of metadata, that would work?
>
> >>>>> jtip.js can be removed as it is only necesary on the login page!
> >>>>> Thanks for your effort, I hope, that the problem with the metadata
> >>>>> plugin can be fixed! that would be great :)
>
> >>>>> On Dec 24, 4:25 am, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> >>>>>> The plot thickens!
>
> >>>>>>>> I really don't know the reason ... tried everything. But one
> >>>>>>>> question
> >>>>>>>> more: When I use local content, I think the spiTitle option
> >>>>>>>> should be
> >>>>>>>> available for this too to split the local content into title/
> >>>>>>>> content
> >>>>>>>> or how to do that instead? thanks!
>
> >>>>>> I started plucking out other stuff that was on your page, and
> >>>>>> when I
> >>>>>> removed the metadata plugin, the problem magically vanished. Not
> >>>>>> sure
> >>>>>> why, but it looks like something breaks with your version of the
> >>>>>> metadata plugin and the .wrapInner() method. Can you try removing
> >>>>>> the
> >>>>>> metadata plugin from the page and testing again? Also, might as
> >>>>>> well
> >>>>>> remove jtip.js, just in case. I haven't tested in IE yet, but
> >>>>>> firefox
> >>>>>> stopped displaying [object object].
>
> >>>>>> Thanks, and sorry about the hassle.
>
> >>>>>> --Karl
> >>>>>> _________________
> >>>>>> Karl Swedberg
>
> >>>>>> On Dec 23, 2007, at 5:36 PM, KnoxBaby wrote:
>
> >>>>>>> oh I missed the link to my site:
> >>>>>>>http://www.jahlabs.de/jquery/test/
>
> >>>>>>> On 23 Dez., 22:39, KnoxBaby <[EMAIL PROTECTED]> wrote:
> >>>>>>>> Thanks again for your great support and help, but it doesn't
> >>>>>>>> fix my
> >>>>>>>> prob :(
> >>>>>>>> Again my site:
>
> >>>>>>>> it's the newest jquery file and cluetip comes from svn! I have
> >>>>>>>> removed
> >>>>>>>> the spitTitle but also when I try to use rel="asd.html" without
> >>>>>>>> local:true and the asd.html is in the same directory, I have an
> >>>>>>>> empty
> >>>>>>>> tooltip ...
>
> >>>>>>>> Now with the local content, the tooltip displays again [object
> >>>>>>>> Object]
> >>>>>>>> in Firefox and doesn't display the tooltip in IE :(
>
> >>>>>>>> On 23 Dez., 22:13, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
> >>>>>>>>>> -In IE it shows sometimes in the status bar "errors on the
> >>>>>>>>>> page",
> >>>>>>>>>> and
> >>>>>>>>>> sometimes not ... I'm a little bit confused ...
> >>>>>>>>>> -In Firefox, Tooltips are shown correctly if I use title=""
> >>>>>>>>>> attribute
> >>>>>>>>>> and spitTitle in tpl/my_cluetips.js and without spitTitle and
> >>>>>>>>>> using
> >>>>>>>>>> local:true, it shows a tooltip with [object Object] as
> >>>>>>>>>> content
> >>>>>>>>>> -In IE, both options don't work and don't even show a tooltip
> >>>>>>>>>> with
> >>>>>>>>>> wrong content
> >>>>>>>>>> -in IE, the sorting of the table doesn't work on the columns
> >>>>>>>>>> with
> >>>>>>>>>> dates in it ...
>
> >>>>>>>>> Hi there. Looks like a problem with your script is causing a
> >>>>>>>>> JavaScript error in the clueTip code. I believe this error
> >>>>>>>>> could
> >>>>>>>>> be
> >>>>>>>>> keeping the rest of your scripts from running on
> >>>>>>>>> document.ready,
> >>>>>>>>> so
> >>>>>>>>> this could be the reason you're having all the other problems:
>
> >>>>>>>>>     $('a.help').cluetip({
> >>>>>>>>>             cluetipClass: 'jtip',
> >>>>>>>>>             arrows: true,
> >>>>>>>>>             dropShadow: false,
> >>>>>>>>>             leftOffset: 20,
> >>>>>>>>>             fx: {
> >>>>>>>>>               open:       'fadeIn', // can be 'show' or
> >>>>>>>>> 'slideDown' or 'fadeIn'
> >>>>>>>>>               openSpeed:  ''
> >>>>>>>>>             },
> >>>>>>>>>             local: true,
> >>>>>>>>>             hideLocal: true,
> >>>>>>>>>             splitTitle: '|'  // this is the problem option.
> >>>>>>>>>     });
>
> >>>>>>>>> Here you're using the splitTitle option as well as the local
> >>>>>>>>> option.
> >>>>>>>>> You can only have one or the other. Also, those links don't
> >>>>>>>>> have a
> >>>>>>>>> title attribute, and that is what is causing the error. The
> >>>>>>>>> plugin
> >>>>>>>>> should really handle that more gracefully. In fact, the svn
> >>>>>>>>> version
> >>>>>>>>> has fixed it as of November 27 ("clueTip: fixed error
> >>>>>>>>> (reported
> >>>>>>>>> athttp://jquery.com/plugins/node/941)
> >>>>>>>>> when splitTitle is used and title attribute is empty."). If
> >>>>>>>>> you
> >>>>>>>>> want
> >>>>>>>>> to use the splitTitle option, you'll need a title attribute to
> >>>>>>>>> split. ;-) If you want to use local content, remove the
> >>>>>>>>> splitTitle
> >>>>>>>>> option.
>
> >>>>>>>>>> -whgen the tooltips are shown and you click the delete link
> >>>>>>>>>> and
> >>>>>>>>>> click
> >>>>>>>>>> on "abort", the link is clicked even though the browser
> >>>>>>>>>> should
> >>>>>>>>>> "stop"
>
> >>>>>>>>> This is because you need to attach the event handler to the
> >>>>>>>>> abort
> >>>>>>>>> link
> >>>>>>>>> after the clueTip is populated with the content. Actually, if
> >>>>>>>>> you're
> >>>>>>>>> using local content and jQuery 1.2.x, it should work.
> >>>>>>>>> Otherwise,
> >>>>>>>>> you're going to have to re-bind the click event to the link.
> >>>>>>>>> Shawn
> >>>>>>>>> Grover wrote an excellent blog entry on "Using the jQuery
> >>>>>>>>> clueTip
> >>>>>>>>> plugin with dynamic content" (thanks, Shawn!!), which might
> >>>>>>>>> give
> >>>>>>>>> you
> >>>>>>>>> some ideas:http://grover.open2space.com/node/191
>
> >>>>>>>>> I'm planning to package up the last month's improvements/bug
> >>>>>>>>> fixes
> >>>>>>>>> into a new release within the next few days. In the
> >>>>>>>>> meantime, if
> >>>>>>>>> you
> >>>>>>>>> want to grab the version from svn, feel free.
>
> >>>>>>>>>http://jqueryjs.googlecode.com/svn/trunk/plugins/cluetip/
>
> >>>>>>>>> If you want to stick with the version you have, then fix that
> >>>>>>>>> local:
> >>>>>>>>> true / splitTitle: '|' issue, and we can take another look.
>
> >>>>>>>>> --Karl
> >>>>>>>>> _________________
> >>>>>>>>> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> >>>>>>>>> On Dec 23, 2007, at 2:16 PM, KnoxBaby wrote:
>
> ...
>
> Erfahren Sie mehr »

Reply via email to