ajax-loader not showing?

64 views
Skip to first unread message

Jeppe Nejsum Madsen

unread,
Oct 29, 2009, 9:21:11 AM10/29/09
to lif...@googlegroups.com
Hi,

In boot I have

LiftRules.ajaxStart =
Full(() => LiftRules.jsArtifacts.show("ajax-loader").cmd)

LiftRules.ajaxEnd =
Full(() => LiftRules.jsArtifacts.hide("ajax-loader").cmd)

which I would think should show a spinning wheel during ajax
requests.

But it doesn't seem to work for me. It never shows. I tried to make the
requests take longer (4s), but still it doesn't show. Only when I
terminate the server and make an ajax request, the wheel shows before
the alert dialog saying there was a problem. This indicates that the html to
show the image is correct.

Any clues?

/Jeppe

Timothy Perrett

unread,
Oct 30, 2009, 7:25:59 PM10/30/09
to Lift

Jeppe, did you get any further with this?

Cheers, Tim

Jeppe Nejsum Madsen

unread,
Oct 31, 2009, 4:56:34 AM10/31/09
to lif...@googlegroups.com
Timothy Perrett <tim...@getintheloop.eu> writes:

> Jeppe, did you get any further with this?

Nope. Don't really know how it's supposed to work, so haven't filed a
ticket (yet :-)

I took a cursory look at the javascript generated by Lift for ajax
handling and to me it looks like the functionality to show the image is
never invoked in the normal execution flow....but alas, this could be
intentional :.)

/Jeppe

David Pollak

unread,
Oct 31, 2009, 11:09:36 AM10/31/09
to lif...@googlegroups.com
It's a bug.  Please file a ticket.
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

Jeppe Nejsum Madsen

unread,
Oct 31, 2009, 12:04:41 PM10/31/09
to lif...@googlegroups.com
David Pollak <feeder.of...@gmail.com> writes:
>
> It's a bug. Please file a ticket.

Done. http://github.com/dpp/liftweb/issues/#issue/152

/Jeppe

David Pollak

unread,
Nov 2, 2009, 6:20:32 PM11/2/09
to lif...@googlegroups.com
Fixed

Jeppe Nejsum Madsen

unread,
Nov 3, 2009, 3:40:18 AM11/3/09
to lif...@googlegroups.com
Works :-) Thanks.

/Jeppe

CodeSlave9000

unread,
Nov 9, 2009, 2:57:13 PM11/9/09
to Lift
Is this in M7? It wasn't mentioned in the release notes, and I'm not
sure I'm seeing it working...
Chris


On Nov 2, 6:20 pm, David Pollak <feeder.of.the.be...@gmail.com> wrote:
> Fixed
>
> On Sat, Oct 31, 2009 at 9:04 AM, Jeppe Nejsum Madsen <je...@ingolfs.dk>wrote:
>
>
>
> > David Pollak <feeder.of.the.be...@gmail.com> writes:
>
> > > It's a bug.  Please file a ticket.
>
> > Done.http://github.com/dpp/liftweb/issues/#issue/152
>
> > /Jeppe
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890

David Pollak

unread,
Nov 10, 2009, 1:20:04 AM11/10/09
to lif...@googlegroups.com
It's in M7.  If you created your code from an archetype prior to M7, you have to manually put the spinning gif into your /images directory
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Reply all
Reply to author
Forward
0 new messages