Automatic loading indicator

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Automatic loading indicator

mjgraham
Hi,

Is it possible to specify the location of the automatic loading
indicator with an xhtml page? I have a submit button and I would like
the indicator to appear next to it when it is pressed and not at the top
of the page.

    Cheers,

    Matthew



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Automatic loading indicator

Alessandro Vernet
Administrator
Matthew,

On 6/25/07, Matthew Graham <[hidden email]> wrote:
> Is it possible to specify the location of the automatic loading
> indicator with an xhtml page? I have a submit button and I would like
> the indicator to appear next to it when it is pressed and not at the top
> of the page.

You can specify the "original position" with the
xforms-loading-loading class. Then as you scroll or change the size of
the window, we make sure that the loading indicator is positioned so
the distance from the right border and the top stay the same as the
original distance, even if the window is resized or if you scroll
through the window. This is to "guarantee" that the loading indicator
is always visible.

So you have some control of the position of the loading indicator, but
you can't position it to be, say, always next to a particular trigger.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Automatic loading indicator

Daniel E. Renfer
Personally, I would like to see a different form of loading indicator
available. It would be nice to have that little animated gif that you
see in most of the AJAX applications attached to the the control that
triggered the update.

In theory that is... This then raises the question of which control is
considered to trigger the update when multiple controls are being
updated at once. Do you show one next to each, or only one? Which one,
and how would you decide?

For instance, when the focus changes from one control to another, you
have the fact that the one control is losing focus, but you also have
that the second one is gaining focus. Gaining focus could probably be
considered more significant than losing focus, but what if that
control is nested within 20+ layers of repeat? Should they all be
considered significant?

It's an interesting idea, but these issues make it somewhat infeasible.

--
Daniel E. Renfer
http://kronkltd.net/

On 6/26/07, Alessandro Vernet <[hidden email]> wrote:

> Matthew,
>
> On 6/25/07, Matthew Graham <[hidden email]> wrote:
> > Is it possible to specify the location of the automatic loading
> > indicator with an xhtml page? I have a submit button and I would like
> > the indicator to appear next to it when it is pressed and not at the top
> > of the page.
>
> You can specify the "original position" with the
> xforms-loading-loading class. Then as you scroll or change the size of
> the window, we make sure that the loading indicator is positioned so
> the distance from the right border and the top stay the same as the
> original distance, even if the window is resized or if you scroll
> through the window. This is to "guarantee" that the loading indicator
> is always visible.
>
> So you have some control of the position of the loading indicator, but
> you can't position it to be, say, always next to a particular trigger.
>
> Alex
> --
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> http://www.orbeon.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Automatic loading indicator

Alessandro Vernet
Administrator
Daniel,

On 6/27/07, Daniel E. Renfer <[hidden email]> wrote:
> Personally, I would like to see a different form of loading indicator
> available. It would be nice to have that little animated gif that you
> see in most of the AJAX applications attached to the the control that
> triggered the update.

You can already implement this right now, just with XForms. But of
course this requires some coding. Essentially, the idea is:

1) A click on a trigger runs an action block, which changes a value in
an instance, which makes a group next to the trigger relevant. The
group contains the animated GIF.
2) The same action block runs an xxforms:script which sends a custom
event to the model.
3) The long running action is executed by the event handling for the
custom event on the model. At the end (e.g. last action), it sets a
value in the instance so the group that contains the animated GIF
becomes non-relevant.

I agree that it would be nice to have simpler way of doing this with XForms :).

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws