Hi Rolf, Thanks a lot.
Now, using the rel attribute, it works as desired. The outdated demos at http://demos111.mootools.net/Tips confused me. Greetings Chris On Feb 27, 10:05 pm, Rolf Langenhuijzen <plentyofr...@gmail.com> wrote: > From the docs, for both methods (http://mootools.net/docs/more/ > Interface/Tips#Tips:setTitle): > > "this method allows you to change it after it's visible" > > So, you can do this after the 'show' event is fired for > example:http://jsfiddle.net/k9C3F/ > The docs also say it's re-assigned when it's hidden and displayed > again, so performance wise this is not the best solution. > > Better would be to have it in the title (for title) and rel (for text) > properties, or store > it:http://mootools.net/docs/more/Interface/Tips#Tips:Storage > > Rolf > > On Feb 27, 1:05 pm, Chris <cndrei...@gmail.com> wrote: > > > > > > > > > Hi, > > > I use the following code > > > var callback = function(tagsClass) { > > var myTips = new Tips('.'+tagsClass); > > myTips.setTitle('my title'); > > myTips.setText('my text'); > > } > > callback.delay(2000, null, [tagsClass]); > > > to create a Tips object. The Tips are shown, but the title and text > > are title='' and text='javascript:' instead of 'my title' and 'my > > text'. > > > Please tell me the reason for this behavior of Tips and how I can > > avoid it. > > > Many thanks. > > > Mootools Core and More: > > > this.MooTools = { > > version: '1.4.2', > > build: '552dfd4704fccffed444e0211c50831a2bfe209f' > > > }; > > > MooTools.More = { > > 'version': '1.4.0.1', > > 'build': 'a4244edf2aa97ac8a196fc96082dd35af1abab87' > > > }; > > > Greetings > > Chris