Support Forums

Development Forum

overlib.js?


You must be signed-in to post.

AuthorSubject
  Page: 1 | 2
vegard

Avatar for vegard
Subject: overlib.js?Quote this post in your reply
short question, the overlib.js file that is included, is it only used for the floating glossary boxes that appear when hovering glossary terms in content pages and side menu, or does it have different functions in other places of the system?

reason I ask is that it gives me some problems in different themes and with different browsers, and I'd like to replace it with some more elegant js (jquery).

we'll look into this if it doesn't have many other uses.
Posted: 2008-12-09 08:18:41
greg

Avatar for greg
Subject: Re: overlib.js?Quote this post in your reply
overlib.js is used just for glossary popups.

A jquery replacement would be nice. overlib is getting a little dated.
Posted: 2008-12-09 08:41:23
havardp

Avatar for havardp
Subject: Re: overlib.js?Quote this post in your reply
Fixed smile

atutor.no/2009/01/new-tooltip-code-glossary-module
Posted: 2009-01-12 07:51:07
vegard

Avatar for vegard
Subject: Re: overlib.js?Quote this post in your reply
overlib is indeed dated! smile

we have used Håvards fix for some weeks now, and it works like a charm. I've added a few comments on our post about it on how I believe you best could implement it in core:

atutor.no/2009/01/new-tooltip-code-glossary-module#comment-973
Posted: 2009-01-20 08:08:27
greg

Avatar for greg
Subject: Re: overlib.js?Quote this post in your reply
We're off working on other things for a little while. We'll add this when get closer to the next release. May/June
Posted: 2009-01-20 08:52:51
vegard

Avatar for vegard
Subject: Re: overlib.js?Quote this post in your reply
may / june would be about now smile

will this be added in 1.6.3?

www.atutor.ca/atutor/mantis/view.php?id=3690
Posted: 2009-06-23 04:42:07
greg

Avatar for greg
Subject: Re: overlib.js?Quote this post in your reply
That was the plan, but unfortunately it is reliant on Fluid being upgraded. It contains jquery. We did try to upgrade, but there are bugs in fluid that need to be resolved before that happens. They are working on the problems, but I have a feeling they will not be ready for the next release.

There's still a slim chance it will make it in.
Posted: 2009-06-23 08:59:39
greg

Avatar for greg
Subject: Re: overlib.js?Quote this post in your reply
We spent a few hours today trying to get this patch into ATutor, but I'm thinking it needs more work.

We ended up updating just the jquery libs in fluid. Turns out jquery.dimensions is not in the current jquery. The styles are not being applied either. They are references by a class, but defined with the hash (#) which refer to IDs. Even when correcting the styles, or removing them, nothing seemed to happen. We tried using just the jquery js files with the patch, but js errors are generated (catch find jquery). Assuming these error messages can be resolved, If we included the patch we'd end up having to modify all the themes and so would everyone who has a custom theme, then having to modify them all again in the next version once the Fluid libs have been updated.

So, I think we'll stick with overlib for the time being.
Posted: 2009-06-23 16:26:22
vegard

Avatar for vegard
Subject: Re: overlib.js?Quote this post in your reply
hm, it installed flawlessy here, and you don't need the newest jquery version either (1.3), but it works with that one too.

jquery.dimensions is included in the patch.
Posted: 2009-06-24 09:45:47
greg

Avatar for greg
Subject: Re: overlib.js?Quote this post in your reply
I wonder if we are using the same patch. The only way to get the patch to install is to remove the dependency it contains. Yes it does work without the dimensions file, which makes me wonder if there's something missing, or whether that file should be part of the patch.

In any case, it means having to modify everyone's themes, now and again when the fluid libs are updated. If we can get away with not having to edit themes, and assuming the JS errors are resolved, will look again at trying to include it in this release. There's only a few days left though, before we stop adding features.

We'll take a look at the blog subscribe patch for this release.
Posted: 2009-06-24 10:20:29
greg

Avatar for greg
Subject: Re: overlib.js?Quote this post in your reply
Turns out we got Fluid upgraded. And, jquery will be in place shortly. We are going to have to modify themes for Fluid 1.1 anyway, so we'd like to give the tooltips patch another try now, so we don't have to modify themes again later.

Is anyone there able to work on this over the next week or so? Working from subversion with the new Fluid in place, and setting up tooltips to work with its version of jquery.
Posted: 2009-06-26 18:36:52
havardp

Avatar for havardp
Subject: Re: overlib.js?Quote this post in your reply
Since I did the tooltip patch, I could do this. But I would be very surprised if the tooltip patch didn't work with any version of jQuery.

Just let me know what you need. smile
Posted: 2009-06-29 02:56:03
greg

Avatar for greg
Subject: Re: overlib.js?Quote this post in your reply
The Fluid libraries have now been upgraded in the trunk, which includes the full set of jQuery libs. Can you rewrite tooltips to work with the libraries in fluid. You should be able to get rid of the jquery files in your patch, as well as get rid of the jquery dependency.

You will need a fresh checkout from the trunk in Subversion. The old fluid is still there at the moment in fluid_components/ directory. Ignore the old version, it will be deleted once we have everything else using fluid tested and working properly with the new version. The new jquery is in jscripts/infusion/jquery

Checkout from here:
atutorsvn.atrc.utoronto.ca/repos/atutor/trunk/docs

Let me knwo if there's anything else you need.
Posted: 2009-06-29 15:37:48
havardp

Avatar for havardp
nst_glossary_tooltip.zip

Attachment: nst_glossary_tooltip.zip
Subject: Re: overlib.js?Quote this post in your reply
The CSS targeting id (#) and not class (.) is intentional. It is not meant to style the a-tag. It is meant to target the tooltip box (a div-tag) which is generated by the javascript on demand.

The attached patch seems to work on the trunk. smile All I did was remove the dependency on our jquery patch and the dimensions jquery plugin.
Posted: 2009-07-01 08:57:51
greg

Avatar for greg
Subject: Re: overlib.js?Quote this post in your reply
Thx Harvard. Will give it a try tomorrow. We're off for the Canada day holiday today.
Posted: 2009-07-01 10:00:55
 Page: 1 | 2

You must be signed-in to post.