• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5966: Syntax changed for calling wz_tooltip.js, other issues

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension ToolTipPlugin Enhancement Closed TWiki:Main.GeorgeClark n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

It appears as though the latest Javascript routines from http://www.walterzorn.com/tooltip/tooltip_e.htm have a new syntax.

Parameters are now passed using Attribute, Value pairs. This item will update the wz_tooltip.js to version 5.20 and wil update the plugin to generate the new syntax.

TWiki:Plugins.ToolTipPlugin topic also had to be reworked with updated examples. Plus, the WYSIWYG editor corrupts several of the examples by changing some of the embedded HTML. Added sticky tags to the topic to keep it intact after update.

-- TWiki:Main/GeorgeClark - 28 Aug 2008

Also added a couple of other minor changes.

  • Changed the background image for the tooltip demo to make it more visible
  • Changed the postRenderingHandler to only add the wz_tooltip.js file when tooltips were present in the topic.
  • Cleaned up some of the examples and documented the URL and TARGET parameters
  • Converted most of the examples from raw html to %TOOLTIP markup.

-- TWiki:Main.GeorgeClark - 29 Aug 2008

Fixed a couple of more minor issues - the /A tag should be a lower case /a, and an example used the wrong filename for the background image.

-- TWiki:Main.GeorgeClark - 30 Aug 2008

Please upload your final version to the plugins page on twiki.org as soon as you're done. Will test your version on the dev page tomorrow and report any problems back here. (yet another: thought it was only my local setup that fails (at firefox) bug wink )

-- TWiki:Main.FranzJosefGigler - 31 Aug 2008

I can release, or could also address TWikibug:Item4485 I have not observed the bug, but the comments suggest that adding scripts that way is not the best. It should be pretty simple. The plugin currently adds the script include to the closing body tag. There is now a TWiki::Func API addToHEAD for the primary purpose of adding .js files. Should be easy to change to use that to add the script tags. I was thinking of also optionally adding the balloon and other tooltip extensions from wz at the same time.

According to the "yslow" yahoo performance hints, it is better to add .js to the end, but the wz .js instructions say that if possible it should be added to the head.

-- TWiki:Main.GeorgeClark - 31 Aug 2008

I've tested the .tgz from the dev topic on twiki.org. Tooltips now work on Firefox and IE as expected. Great job George. Thanks!

-- TWiki:Main.FranzJosefGigler - 01 Sep 2008

Hm, the latest feature add doesn't seem to work in my environment neither on firefox nor in the internet explorer.

tooltipplugin_ff.png

tooltipplugin_ie.png

-- TWiki:Main.FranzJosefGigler - 15 Sep 2008

Could you tell me if the javascript files are added to your page. Look at the page source just before the closing body tag. There should be 4 javascript files linked on the ToolTipPlugin page - ws_tooltip.js and the three extenstions - tip_centerwindow.js tip_followscroll.js and tip_balloon.js. Also, are you getting any javascript errors in the js console? Everything is clean here running on IE or Firefox. Maybe it's an issue with packaging or file permissions on the new .js files?

-- TWiki:Main.GeorgeClark - 15 Sep 2008

Looks like I broke something - the BALLOONIMGPATH is not being set to a default. I'll try to get a fix posted tomorrow night.

-- TWiki:Main.GeorgeClark - 15 Sep 2008

I had a typo in an if statement. BALLOONIMGPATH is now added to the tip if not manually overridden in the %TOOLTIP variable. Uploaded the (hopefully) last trial build before release.

-- TWiki:Main.GeorgeClark - 17 Sep 2008

ItemTemplate
Summary Syntax changed for calling wz_tooltip.js, other issues
ReportedBy TWiki:Main.GeorgeClark
Codebase 4.2.2
SVN Range TWiki-5.0.0, Mon, 18 Aug 2008, build 17431
AppliesTo Extension
Component ToolTipPlugin
Priority Enhancement
CurrentState Closed
WaitingFor TWiki:Main.GeorgeClark
Checkins TWikirev:17464 TWikirev:17465 TWikirev:17512 TWikirev:17518
TargetRelease n/a
ReleasedIn

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng tooltipplugin_ff.png r1 manage 3.5 K 2008-09-15 - 07:33 FranzJosefGigler  
PNGpng tooltipplugin_ie.png r1 manage 5.3 K 2008-09-15 - 07:33 FranzJosefGigler  
Edit | Attach | Watch | Print version | History: r15 < r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r15 - 2008-09-20 - GeorgeClark
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback