This works in Mozilla on Fedora (linux).

- Peter

-----Original Message-----
From: Peter Harrison [mailto:[EMAIL PROTECTED]
Sent: 06 January 2004 15:27
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Another interesting question


A slight variation on that, this one shows tooltips too:

<html>
<head>
        <script language="javascript">
                function field_focus(theField)
                {
                        window.status = 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">
</body>
</html>

- Peter

-----Original Message-----
From: Peter Harrison [mailto:[EMAIL PROTECTED]
Sent: 06 January 2004 15:22
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Another interesting question


Hi

Assuming you're new to this javascript thing, I've made a nice little example for you 
(not sure if it works in Netscape/Mozilla, feedback welcome):

<html>
<head>
        <script language="javascript">
                function field_focus(theField)
                {
                        window.status = theField.tag;
                }
        </script>
</head>
<body>
        <input type="text" name="field1" onfocus="javascript:field_focus(this);" 
tag="Enter your first name then last name">
        <input type="text" name="field2" onfocus="javascript:field_focus(this);" 
tag="Enter your age in years">
</body>
</html>


- Peter


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 06 January 2004 14:53
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Another interesting question



Same form thingy as before. Now I want to tart it up and make it jazzy.
I want to make it so that when elements of the form get the "focus" that a
status line on the form will show information about that part of the form.
For example

Please enter your name


Staus line shows "Firstname Lastname"
I know I can force entry so that the user can only enter a certain way but
I want this status line too....

Is this a Java thing?


Again any Ideas welcomed

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]



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