1 Reply Latest reply on Jul 24, 2006 6:08 AM by peterent

    setInterval and Datagrids

    WEBPHP
      Hello,

      I have a setInterval that runs every 5 seconds. Now, I have data in the datagrids and when selected it posts the data in a form for reading. However, when the setInterval runs, it deselects the item from the datagrid and the data that was posted is gone. I'm just wondering if there was a way to fix that so it does. I was thinking of setting a variable for when I click in the datagrid is saves the data to the variable and cannot be changed until the user selects another item.

      Any help is great,
      Jesse
        • 1. Re: setInterval and Datagrids
          peterent Level 2
          Obviously you have a conflict. And I'm a little confused by the situation you describe. What is the purpose of the timer? Perhaps you should stop the timer, do the post, then when you receive the response, start the timer again. Or you could intercept the itemClick event, see if the conditions are right to continue and if not, cancel the event.