Re: [Trinidad] check for ppr with javascript

2008-12-16 Thread Daniel Niklas
Hi Walter, Walter Mourão-2 wrote: Makes the generalPPRMonitor method function be executed only when the PPR starts/stops. ... but i want to monitor *non* ppr-request!? Daniel -- View this message in context:

Re: [Trinidad] check for ppr with javascript

2008-12-16 Thread Walter Mourão
No idea... maybe using the page onload event. Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Tue, Dec 16, 2008 at 7:10 AM, Daniel Niklas co...@dniklas.de wrote: Hi Walter, Walter Mourão-2 wrote: Makes the generalPPRMonitor method function be

Re: [Trinidad] check for ppr with javascript

2008-12-16 Thread Daniel Niklas
Hi, perhaps i found a solution. Register an event-Handler on form-elements and then check for varialbe busy: if (typeof busy == 'undefined') // non-ppr-request This seems to work... Daniel :-) -- View this message in context:

Re: [Trinidad] check for ppr with javascript

2008-12-11 Thread Walter Mourão
http://myfaces.apache.org/trinidad/devguide/ppr.html#Javascript%20APIs%20for%20PPR sample code: ... function generalPPRMonitor(state) { if (state == TrRequestQueue.STATE_BUSY) { showDivWait(); } else { closeDivWait(); } } function generalOnLoad() { var

Re: [Trinidad] check for ppr with javascript

2008-12-11 Thread Daniel Niklas
Hi, Walter Mourão-2 wrote: function generalPPRMonitor(state) { if (state == TrRequestQueue.STATE_BUSY) { showDivWait(); } else { closeDivWait(); } } I'm not sure, but i think, that i wouldn't get a notification if it isn't a ppr request?! Daniel --

Re: [Trinidad] check for ppr with javascript

2008-12-11 Thread Walter Mourão
Hi, the code: ... function generalOnLoad() { var requestQueue = TrPage.getInstance().getRequestQueue(); requestQueue.addStateChangeListener(generalPPRMonitor); } ... Makes the generalPPRMonitor method function be executed only when the PPR starts/stops. Walter Mourão