Take a peek at the ProgressiveDisplay component, which handles all the
mechanics of loading page content dynamically.

On Mon, Feb 15, 2010 at 12:55 PM, Thiago H. de Paula Figueiredo
<thiag...@gmail.com> wrote:
> On Mon, 15 Feb 2010 18:36:14 -0200, Argo Vilberg <wilps...@gmail.com> wrote:
>
>> Hi,
>
> Hi!
>
>> Last time i dealing with javascript and Tapestry5 there was very difficult
>> to write any javascript. Tapestry just took control over my own javascript.
>
> Please explain what you meant by "Tapestry just took control over my own
> JavaScript". Tapestry doesn't mess with <script> blocks in your page
> template.
>
>> My example is here www.elavtoit.com/loading.html
>
> This example uses onLoad="init()", a deprecated way to make something run
> when a page is loaded, as just one function can be invoked.
>
> I implemented the same with this:
>
> @IncludeJavaScriptLibrary({ "${tapestry.scriptaculous}/prototype.js"}) in my
> class.
>
>
> <div id="loading" style="position:absolute; width:100%; text-align:center;
> top:300px;z-index: 10; font-size: 100px;background-color:
> white;">Loading!!!</div>
> <img src="http://www.spp.ee.kth.se/res/tools/mms/MMS_large.jpg"/> <!-- just
> to force a slow loading page -->
>
> <script type="text/javascript">
>        Event.observe(window, 'load',
>                function() { $('loading').hide(); }
>        );
> </script>
>
> in the template.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, software architect and developer, Ars Machina Tecnologia da
> Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to