Project

General

Profile

Unable to make/find a working animation example.

Added by Fernando José Naranjo Talavera almost 12 years ago

Hi! It must be a fault of mine, a lack of understandig of how it works, but I have been unable to make a working example of an animation with either JWt or Wt.

I am using Eclipse Indigo IDE, and Maven Tomcat Plugin (and also Jetty) as my environment. I use JWt 3.2.0 from Maven's Codeaus repositories and everything works fine except animations.

I have not appended any Javascript code or library into my workspace (I don't know if this might be the problem).

I have got working all the examples bundled with the JWt 3.2.1 package but have not found any example dealing with WAnimation, or at least no one that is working for me.

Please help me!

Thank you all.


Replies (9)

RE: Unable to make/find a working animation example. - Added by Pieter Libin almost 12 years ago

Hi Fernando,

I've changed the dialog example to include some demonstrations on how to work with animations.

I've put the file I changed in attachment, we will also include these changes in the next JWt release.

Kind regards,

Pieter

RE: Unable to make/find a working animation example. - Added by Fernando José Naranjo Talavera almost 12 years ago

First of all, thank you for your extremely fast response.

As I can see from your code the use of animations is as intuitive as it might be, very easy to learn and also the way I was doing it.

And that's the problem, I must have misconfigured something because when I deploy your example in Tomcat I can see the boxes and dialogs, and interact with them but they appear all in a sudden without animations.

I know it is very difficult to diagnose with so little information but I don't know what I migh be doing wrong.

Thank you very much Pieter for your helping hand.

RE: Unable to make/find a working animation example. - Added by Pieter Libin almost 12 years ago

Hey Fernando,

Can you send some more information on the version of tomcat you are using.

Is the example working when you use Jetty (which version are you using)?

Can you also check that all css files arrive correctly at your browser,

for example using Firebug or the Chrome Developer tools?

kind regards,

Pieter

RE: Unable to make/find a working animation example. - Added by Fernando José Naranjo Talavera almost 12 years ago

Hi Pieter! Thank you very much for your support.

I am completely ashamed right now! I have tried using google-chrome to visualize the examples and have discovered that everything is working fine.

Possibly (I don't know) it could be reported as a bug? If the animation classes relies in css3 capabilities is just an issue of incompatibility. The question is, why I can see animations in Wt and JWt homepage? do them implement it with JQuery manually? I suppose so, connecting events with javascript fragments of code by hand.

In any case. Thank you, thank you very much Pieter and sorry for my time consuming mistake.

As a final note, the browser that caused me the trouble is "Abrowser" a modified version of icecat for Trisquel (OS), at the same time a modified version of firefox 11.0 (if I'm not wrong) so I imagined that everything should be ok with it, but seemingly not.

Thanks.

RE: Unable to make/find a working animation example. - Added by Fernando José Naranjo Talavera almost 12 years ago

Tested with the latest firefox for linux 32bits and is also lacking animations!

Connect with JQuery by hand is gonna be my only solution.

RE: Unable to make/find a working animation example. - Added by Wim Dumon almost 12 years ago

Fernando,

there's another bug in JWt 3.2.1 that misdetects FF 10 (it's our version of the Y2K bug). This explains why it shows ok in Chrome but nog in FF. The bug is fixed in 3.2.1, which also explains why it works on our public homepage.

Regards,

Wim.

RE: Unable to make/find a working animation example. - Added by Fernando José Naranjo Talavera almost 12 years ago

I'm struggling with Maven to add JWt 3.2.1 as an external dependency as it isn't in the repos, but everything is clear and well explained now.

Thank you Wim and Pieter for your invaluable help!

RE: Unable to make/find a working animation example. - Added by Fernando José Naranjo Talavera almost 12 years ago

I've finally achieved to run a Tomcat instance with a JWt 3.2.1 project and as Wim had pointed out some WAnimation issues were solved.

I could run an example of SlideInFromTop, and SlideInFromBottom, which are the only two that seems to work fine in firefox.

Are there any introductory steps to help in the project? I mean, I would like to try to debug the javascript inconsistencies across web browsers myself, but can't find where to begin. I have read the source code of WAnimation and couldn't find any actual implementation nor references to the implementation. so I suppose that all the "logic" is developed in a view scattered through some javascript files in the path, but I haven't been able to find them.

Thanks.

RE: Unable to make/find a working animation example. - Added by Wim Dumon almost 12 years ago

Hello Fernando,

No, such guide does not exist.

As JWt is largely auto-translated from the Wt sources, we do all developments on the C source. We welcome Java patches, which we will back-port to C.

All animations should work in FF - can you submit a bug report with a minimal example (+ versions of misbehaving browsers) that demonstrates your problem? Do the animations work in other browsers?

Regards,

Wim.

    (1-9/9)