Do you mind sharing your JQuery?

On Jan 11, 2010, at 8:00 AM, Ilja Pavkovic wrote:

> Hi,
> 
> use a veil. You could use this one:
> 
> http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-lines-
> of-code/
> 
> or (as I personally think it bloats the ajax links)
> 
> get familiar with some javascript, add
> 
> <div id="veil"/> to your page with a style like
> 
> #veil {
>        position: absolute;
>        z-index:10000;
>        top: 0px;
>        left: 0px;
>        height:100%;
>        width:100%;
>        background: grey;
>        display: none;
> }
> 
> and add some javascript to your page like 
> 
> window.wicketGlobalPreCallHandler = function() {
> window.getElementById("veil").style.display="block";
> };
> 
> window.wicketGlobalPostCallHandler = function() {
> window.getElementById("veil").style.display="none";
> };
> 
> javascript may not work as I personally use jquery here to get some more 
> fance 
> fadeIn fadeOut and I just wrote it down here :)
> 
> 
> Best Regards,
>       Ilja Pavkovic
> 
> 
> Am Montag, 11. Januar 2010 14:43:42 schrieb Giovanni:
>> In my current project, we have many situations in which we have to load a
>> page, which is very slow. The slowness is not because of Wicket, but
>> because there are heavy queries on the DB.
>> 
>> In some of these situations, we used the AjaxLazyLoadPanel, when we have to
>> load a "slow" panel.
>> 
>> In some other situations, when we are not loading a panel, but a page, how
>> can we do to prevent the user from "crazy clicking" on the application,
>> because he is impatient with the slow loading?
>> 
>> More generally, is there a standard way to disable all the links and
>> click-able components of the application, while a new component is
>> loading?
>> 
>> best regards,
>> giovanni
>> 
> 
> -- 
> binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin
> 
>   +49 · 171 · 9342 465
> 
> Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
> Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to