tg.flash documentation and expected behavior

4 views
Skip to first unread message

pipoun

unread,
Oct 28, 2009, 10:51:11 AM10/28/09
to TurboGears
Hi all,

I've only found this page for the in depth tg.flash doc:
http://turbogears.org/2.1/docs/modules/tgflash.html
( and of course, many examples in theses forums and the TG
tutorials :) )

What are the differents possible states?
And above all, I'm wondering what should be the expected behavior? I
was guessing some sort of dhtml fading out notification area on top of
the body page...
But from the tests I've done, the notification bar is static, is there
a way to animate it?

Thanks a lot!

Jorge Vargas

unread,
Nov 4, 2009, 10:21:38 PM11/4/09
to turbo...@googlegroups.com
On Wed, Oct 28, 2009 at 8:51 AM, pipoun <pip...@gmail.com> wrote:
>
> Hi all,
>
> I've only found this page for the in depth tg.flash doc:
> http://turbogears.org/2.1/docs/modules/tgflash.html
> ( and of course, many examples in theses forums and the TG
> tutorials :) )
>
> What are the differents possible states?
Please see http://hg.python-rum.org/WebFlash/file/9b1d215635fc/webflash/webflash.js#l1

> And above all, I'm wondering what should be the expected behavior? I
> was guessing some sort of dhtml fading out notification area on top of
> the body page...

see in your master.html there is a section where the flash is set.

> But from the tests I've done, the notification bar is static, is there
> a way to animate it?
>
The default "effect" is pretty simply just a html entry. The effects
will be library dependent so you should use whichever toolkit you
prefer to do animations.

> Thanks a lot!
>
I have created a ticket for us to work on the docs for it
http://trac.turbogears.org/ticket/2400

> >
>

pipoun

unread,
Nov 5, 2009, 6:06:01 AM11/5/09
to TurboGears
On Nov 5, 4:21 am, Jorge Vargas <jorge.var...@gmail.com> wrote:
> On Wed, Oct 28, 2009 at 8:51 AM, pipoun <pip...@gmail.com> wrote:
>
> > Hi all,
>
> > I've only found this page for the in depth tg.flash doc:
> >http://turbogears.org/2.1/docs/modules/tgflash.html
> > ( and of course, many examples in theses forums and the TG
> > tutorials :) )
>
> > What are the differents possible states?
>
> Please seehttp://hg.python-rum.org/WebFlash/file/9b1d215635fc/webflash/webflash...

Thanks for link!
I can see a delay parameter in the js implementation, but I haven't
found out how to set it with the python flash module.
Is it possible?

>
> > And above all, I'm wondering what should be the expected behavior? I
> > was guessing some sort of dhtml fading out notification area on top of
> > the body page...
>
> see in your master.html there is a section where the flash is set.

Yup, I've already played with the master examlple, but the flash
banner is static. I just would like to know how to close it with a
timeout.

>
> > But from the tests I've done, the notification bar is static, is there
> > a way to animate it?
>
> The default "effect" is pretty simply just a html entry. The effects
> will be library dependent so you should use whichever toolkit you
> prefer to do animations.

Sorry, I'm lacking of knowledge regarding your last sentence. Do you
plan to make the effects dependent on external js library? Is it
already possible?
And above all, would it possible to have a link (or info) that shows
how to do that?

Thanks again!

Jorge Vargas

unread,
Nov 6, 2009, 9:07:23 PM11/6/09
to turbo...@googlegroups.com
On Thu, Nov 5, 2009 at 5:06 AM, pipoun <pip...@gmail.com> wrote:
>
> On Nov 5, 4:21 am, Jorge Vargas <jorge.var...@gmail.com> wrote:
>> On Wed, Oct 28, 2009 at 8:51 AM, pipoun <pip...@gmail.com> wrote:
>>
>> > Hi all,
>>
>> > I've only found this page for the in depth tg.flash doc:
>> >http://turbogears.org/2.1/docs/modules/tgflash.html
>> > ( and of course, many examples in theses forums and the TG
>> > tutorials :) )
>>
>> > What are the differents possible states?
>>
>> Please seehttp://hg.python-rum.org/WebFlash/file/9b1d215635fc/webflash/webflash...
>
> Thanks for link!
> I can see a delay parameter in the js implementation, but I haven't
> found out how to set it with the python flash module.
> Is it possible?
>

Sorry no idea about that.

>>
>> > And above all, I'm wondering what should be the expected behavior? I
>> > was guessing some sort of dhtml fading out notification area on top of
>> > the body page...
>>
>> see in your master.html there is a section where the flash is set.
>
> Yup, I've already played with the master examlple, but the flash
> banner is static. I just would like to know how to close it with a
> timeout.
>

Because this is outside the scope of the project. webflash shouldn't
do "fancy" effects. That is why the code is in your project and not
buried inside the framework.

What you want can be done very simple with a JS library like jquery
http://docs.jquery.com/Effects/fadeOut

>>
>> > But from the tests I've done, the notification bar is static, is there
>> > a way to animate it?
>>
>> The default "effect" is pretty simply just a html entry. The effects
>> will be library dependent so you should use whichever toolkit you
>> prefer to do animations.
>
> Sorry, I'm lacking of knowledge regarding your last sentence. Do you
> plan to make the effects dependent on external js library? Is it
> already possible?
> And above all, would it possible to have a link (or info) that shows
> how to do that?
>

Think of it from a framework perspective, what is the right effect?
why should we normalize on one? why wil the framework force you on
using a JS library?
Reply all
Reply to author
Forward
0 new messages