M
mt
In a nutshell, I'd like to have a list of items, each of which fills out a
small table which displays some info about a particular item(the items being
a trouble ticket for a tech support ASP-built web-based app). There may be
zero, one, or many of these per ticket. Since some tickets have many of
these items (call them work items), the page can get awful long. I have this
part working already.
So my proposed solution to make the pages shorter would be to have one line
for each of these little work items. If you click the text in that one line,
it shows what had been a hidden div. If you click it again, it hides it.
See below:
Current version:
<Main Table containing initial Ticket info>
<small table for work item #1, taking up 5 or so rows of space>
<small table for work item #2, taking up 5 or so rows of space>
<small table for work item #3, taking up 5 or so rows of space>
<small table for work item #4, taking up 5 or so rows of space>
<small table for work item #5, taking up 5 or so rows of space>
Proposed version:
<Main Table containing initial Ticket info>
<1 Line of text with brief description of item #1>
<hidden><small table for work item #1, taking up 5 or so rows of space>
<1 Line of text with brief description of item #2>
<hidden><small table for work item #2, taking up 5 or so rows of space>
<1 Line of text with brief description of item #3>
<hidden><small table for work item #3, taking up 5 or so rows of space>
<1 Line of text with brief description of item #4>
<hidden><small table for work item #4, taking up 5 or so rows of space>
<1 Line of text with brief description of item #5>
<hidden><small table for work item #5, taking up 5 or so rows of space>
Additionally, I'd like to come up with an "Expand all" and Contract all"
link or button for the whole page.
My thinking is that the way to do it would be to have a simple javascript
function which would change the styles from display:none to display:block,
and call that function with an OnClick event on that text. I guess I'm not
sure how to code that, and that's the help I'm asking for.
small table which displays some info about a particular item(the items being
a trouble ticket for a tech support ASP-built web-based app). There may be
zero, one, or many of these per ticket. Since some tickets have many of
these items (call them work items), the page can get awful long. I have this
part working already.
So my proposed solution to make the pages shorter would be to have one line
for each of these little work items. If you click the text in that one line,
it shows what had been a hidden div. If you click it again, it hides it.
See below:
Current version:
<Main Table containing initial Ticket info>
<small table for work item #1, taking up 5 or so rows of space>
<small table for work item #2, taking up 5 or so rows of space>
<small table for work item #3, taking up 5 or so rows of space>
<small table for work item #4, taking up 5 or so rows of space>
<small table for work item #5, taking up 5 or so rows of space>
Proposed version:
<Main Table containing initial Ticket info>
<1 Line of text with brief description of item #1>
<hidden><small table for work item #1, taking up 5 or so rows of space>
<1 Line of text with brief description of item #2>
<hidden><small table for work item #2, taking up 5 or so rows of space>
<1 Line of text with brief description of item #3>
<hidden><small table for work item #3, taking up 5 or so rows of space>
<1 Line of text with brief description of item #4>
<hidden><small table for work item #4, taking up 5 or so rows of space>
<1 Line of text with brief description of item #5>
<hidden><small table for work item #5, taking up 5 or so rows of space>
Additionally, I'd like to come up with an "Expand all" and Contract all"
link or button for the whole page.
My thinking is that the way to do it would be to have a simple javascript
function which would change the styles from display:none to display:block,
and call that function with an OnClick event on that text. I guess I'm not
sure how to code that, and that's the help I'm asking for.