Hi

Hope you get this today ;)

This time, not sure if "div" is multi-browser compliant, feedback welcome, or check 
out http://www.irt.org/ or google for advice. "getElementById" works cross-browser 
though.
...


<html>
<head>
        <script language="javascript">
                function field_focus(theField)
                {
                        document.getElementById('theStatus').innerHTML = 
theField.title;
                }
        </script>
</head>
<body>
        <input type="text" name="field1" onfocus="javascript:field_focus(this);" 
title="Enter your first name then last name">
        <input type="text" name="field2" onfocus="javascript:field_focus(this);" 
title="Enter your age in years">
        <br>
        <div id="theStatus"></div>
</body>
</html>


- Peter

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 07 January 2004 10:25
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Another interesting question



The javascript code works great - thanks.

Is there a way that I can make the status messages appear on the form
though?
The form is a square box with rounded corners looking all nice and XPeey.
I have made it s that error messages appear on a status line on the form.
Ideally I would like this status line to be updated when the focus changes
rather than the browser status line .......

Any more ideas/variations ....?


Regards - Paul




*************************************************************************************************
The information contained within this e-mail (and any attachment) sent by Birmingham 
City Council is confidential and may be legally privileged. It is intended only for 
the named recipient or entity to whom it is addressed. If you are not the intended 
recipient please accept our apologies and notify the sender immediately, or telephone 
+(44) 121 303 6666. Unauthorised access, use, disclosure, storage or copying is not 
permitted and may be unlawful. Any e-mail including its content may be monitored and 
used by Birmingham City Council for reasons of security and for monitoring internal 
compliance with the office policy on staff use. E-mail blocking software may also be 
used. Any views or opinions presented are solely those of the originator and do not 
necessarily represent those of Birmingham City Council. We cannot guarantee that this 
message or any attachment is virus free or has not been intercepted and amended.

*************************************************************************************************


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to