Hello All,

I have the following code:

        myAjax = new Ajax.PeriodicalUpdater("div", "tickets.jsp", {
            evalScripts: true,
            parameters: queryString
        });

Tickets.jsp displays rows of data obtained from a database.  Each row
is color coded.  For example, red for failed tickets, gray for
expired, etc.  When the mouse hovers over a row, it gets hightlighted
in orange via onmouseover event in the tr element in tickets.jsp.

The problem is after each update, the browser doesn't remember the
pointer position before the update and the highlight dissappears.
I've used javascript to keep track of  the row id and change its color
after the update.  However, when the page updates, the color has to
change from its original color to orange.  As a result, the
highlighted row blinks with each update.

I don't like the blinking.  Creating a new ajax object upon each mouse
move (with the row id stored in a hidden field  for example) will
likely solve the problem.  But that's not what I like either.

Ideally, I would like to pass the row id before the page is generated,
so that the original color of that row can be set to orange.  The
question is: is there a way to pass it to the ajax so that it can be
used before each XMLhttpRequest is sent?

As a last resort, would modifying transport.response work?

Thanks a lot for your time.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to