On Thursday 15 March 2007 20:27, Fernando Correia wrote:
> Have anyone experienced ERROR: tl has no properties in SMW_timeline.js?

Thanks for the note. I think this code is wrong anyway. I now uncommented the 
whole resize-event and it still seems to work normally in various browsers. I 
checked this change into SVN.

-- Markus

>
> This error seems to happen when editing a page. It may be related to
> my environment.
>
> In Firefox the error is silently logged. In IE, a popup window appears.
>
> The error happens on this line: tl.layout();
>
> It is caused because "tl" is null:
>
> var resizeTimerID = null;
> function onResize() {
>     if (resizeTimerID == null) {
>         resizeTimerID = window.setTimeout(function() {
>             resizeTimerID = null;
>             tl.layout();  // ERROR: tl has no properties
>         }, 500);
>     }
> }
>
> We were able to work around it this way:
>
> var resizeTimerID = null;
> function onResize() {
>     if (resizeTimerID == null) {
>         resizeTimerID = window.setTimeout(function() {
>             resizeTimerID = null;
>           if (tl != null)
>               tl.layout();
>         }, 500);
>     }
> }
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Semediawiki-user mailing list
> Semediawiki-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user

-- 
Markus Krötzsch
Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe
[EMAIL PROTECTED]        phone +49 (0)721 608 7362
www.aifb.uni-karlsruhe.de/WBS/     fax +49 (0)721 693  717

Attachment: pgpsMVN0LPn6g.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to