Hi,
Thanks for all the suggestions..
As I am not a style/DHTML expert I used a low tech approach. I am sure
it could have been done more elegantly....
function toggleDisplay(itemnumber)
{
// This function will change the visibilty of the Aneasthestic
fields when in MBS mode dependant on the item number
if (itemnumber == '25025' || itemnumber == '25030' || itemnumber
== '25050')
{
document.getElementById('ANAESTHESTIC_TIMES_START').style.display
= "block";
document.getElementById('ANAESTHESTIC_TIMES_END').style.display
= "block";
document.getElementById('ANAESTHESTIC_TIMES_TOTAL').style.display
= "block";
if (itemnumber == '25030')
{
document.getElementById('ANAESTHESTIC_PROVIDER_SURNAME').style.display
= "block";
document.getElementById('ANAESTHESTIC_PROVIDER_NUMBER').style.display
= "block";
}
}
if (itemnumber == '25200' || itemnumber == '25205')
{
document.getElementById('ANAESTHESTIC_PROVIDER_SURNAME').style.display
= "block";
document.getElementById('ANAESTHESTIC_PROVIDER_NUMBER').style.display
= "block";
}
}
Scott Thornton, Programmer
Application Development
Information Services and Telecommunications
Hunter Area Health Service
Phone +61 2 49214193
Fax +61 2 49214191
[EMAIL PROTECTED]
>>> [EMAIL PROTECTED] 06/01/04 4:31 PM >>>
Hi Scott,
I use this for DOM browsers (not worreid about NS 4.x)
to hide:
<DIV id="ANAETHESTIC_TIMES" style=" display:none;">
<TR>
<TD>Start Time</TD>
<TD>*</TD>
<TD><INPUT type="TEXT" name="START_TIME" VALUE=""></TD>
</TR>
</DIV>
to show
<DIV id="ANAETHESTIC_TIMES" style=" display:block;">
<TR>
<TD>Start Time</TD>
<TD>*</TD>
<TD><INPUT type="TEXT" name="START_TIME" VALUE=""></TD>
</TR>
</DIV>
And have a method to toggle the display
<script language="javascript">
// pass in the id of the div to hide/show
function toggleDivDisplay(element) {
if (document.getElementById(element).style.display == "none")
document.getElementById(element).style.display = "block";
else
document.getElementById(element).style.display = "none";
}
</script>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stephen Bosworth
Application Development and Integration
Communication and Information Services
The University of Newcastle, Australia
Phone: 02 4921 6574
Fax: 02 4921 7087
Mobile: 0438 492518
Email: [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> [EMAIL PROTECTED] 1/06/2004 4:24:50 pm >>>
Hi,
I would like to make three of four rows of a table invisible until a
user
has selected a particlaur value in another field.
I assume you can place a div around the <tr></td> tags and set its
visible property
to hidden and change this based upon the other value??
I haven't done much with the dhtml, and am not sure if I am heading down
the right path.
Any code/suggestions/examples appreaciated...
My code does not work:
<DIV id="ANAETHESTIC_TIMES" style=" visibility:hidden;">
<TR>
<TD>Start Time</TD>
<TD>*</TD>
<TD><INPUT type="TEXT" name="START_TIME" VALUE=""></TD>
</TR>
</DIV>
---
You are currently subscribed to cfaussie as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004