0 Replies Latest reply on May 30, 2008 1:58 PM by Jane Zhen

    onmousemove event ajax requset frequency

    Jane Zhen Newbie

      I have this onmousemove event handler and that triggers the following ajax request to be sent to the server to update a bean variable:

      <a4j:jsFunction name="updateTabIndex" eventsQueue="tabonmouseout" ignoreDupResponses="true" requestDelay="400">
      <a4j:actionparam name="param1" assignTo="#{sessionBean.selectedIndex}" />

      I used eventsQueue, ignoreDupResponse and requestDelay trying to control the frequency of the ajax requests sent by client. Still sometimes, I see wierd slow loading of page in browser. From my understanding, I'm putting the ajax requests to a separate event queue, and the event is sent every 400ms if the event is different from the previous one (?), and the duplicate response will be ignored. Am I right? How do I improve this frequency control?