[eluser]sandwormusmc[/eluser]
Hmm. This unfortunately isn't just an alternating color problem. It would have been _nice_ to keep that to keep my code consistent, using the tmpl array on each view page. The real problem here (and I probably didn't explain it well) is I wanted to do an refresh-less edit/list page for all of my results.
So, I have a column with the list of available actions and their icons all the way to the left. The ID of this element is set within a div in the format of cellname_id. So for actions, the div id is actions_104, for example. The next cell has content with another div, called hostid_104, for example. When I'm doing my AJAX calls, I split on the underscore to determine the action, and the identifier of the row to work on.
So, I was hoping to have an icon to click that would change the content (innerHTML, for lack of better wording) of the entire row of that result from the static HTML to form elements. This is why I was really hoping to be able to simply set the IDs of each individual row of results (each TR). Doesn't look like CI worked for that, but I'm playing with MOOdalBox now to bring up a box with the edit form within it, instead of trying to replace the contents of each cell in that row.
Now I just have to figure out how to pass the id of the result I need to edit. Should be a bit easier than trying to coerce CI to dynamically assign ids to each result using the Table Class.
Also, walesmd, I'm not sure I understand your reply. First, IDs have to be unique on a page, as xwero pointed out. Second, I'm used to seeing function calls within views as $this->CI->whatever()... Last time I tried to put a function in a view I got nothing but error messages. Is "alternator()" something you meant I should declare within the controller, or a CI built-in I missed somewhere?