PhaseListener and Client-side event
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ranadhir_nag
Posted On:   Friday, February 23, 2007 07:17 AM

We have a text-box which submits a AJAX request on the keyup event.
On entry of each character ,a request is submitted to get the possible list of matching words.
We have a phaselistener to do the AJAX processing on the RESTORE_VIEW phase.
Is it possible to identify the client-side event('keyup' in this case) which triggered the request,at the phaselistener somehow?
The clientId will give us the source element - but we are not able to trap the triggering event.

Re: PhaseListener and Client-side event

Posted By:   Anonymous  
Posted On:   Sunday, March 4, 2007 10:00 AM


Hi Ranadhir,
AJAX is just another way to submit the data with out
actually submitting the page. So, there will be no difference
to the server whether it is an AJAX request or a page submit
request. So, you cannot find the triggering event.

One way you can do this is to send a flag with your AJAX
request which says whether it is a normal request due to page
submit or an AJAX call.

I think this is what you wanted...
About | Sitemap | Contact