Can this be done with Scriptalicious?

http://www.communitychristian.org/aboutus/staff#a



I basically want to do something similar, but with my wine application
that displays a table:


Presently in my code, I have new "table row data" coming back from the
server via AJAX.  In this variable, which I just call "bob" here for
testing, I go through and add a new row for each line of information
back from the server.  I'm using the tableobj.insertRow call.  Then I
go and populate the columns for that new row one-by-one.

bob = eval('(' + myajax.responseText + ')');

                        for (var t = 0; t < bob.results.length; t++)  {

                                tableobj=document.getElementById("winetable");

                                var rowvar = tableobj.insertRow(row);

                                var cell = rowvar.insertCell(0);
                                cell.innerHTML = bob.results[t].sellprice;

                                var cell = rowvar.insertCell(0);
                                cell.innerHTML = bob.results[t].drinkingwindow;

                                var cell = rowvar.insertCell(0);
                                cell.innerHTML = bob.results[t].location;

                                var cell = rowvar.insertCell(0);
                                cell.innerHTML = bob.results[t].size;

                                var cell = rowvar.insertCell(0);
                                cell.innerHTML = bob.results[t].numinside;

                                var cell = rowvar.insertCell(0);
                                cell.innerHTML = bob.results[t].wine;

                cell.style.width = "10px";
                cell.style.height = "50px";

}


Right now, these new rows just POP into the table.  I really would
like these new rows to "slide in" gracefully, like the demo in the
link at the top of this message.  They are using a table too.  Is
there hope for me and my little table using Scriptalicious?

--~--~---------~--~----~------------~-------~--~----~
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