Here is the result of my page when I do view source:

<html lang="en">
<head>
  <title>Login page</title>
</head>

<body bgcolor="#ffffff" text="#000000" link="#023264" alink="#023264"
vlink="#023264">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
        <form name="dateForm">
                <table border="0" width="100%" cellspacing="0"
cellpadding="0">
                  <tr>
                    <td width="40"  align="left">Product version:1.0</td>
                    <td width="80%" align="right">
                      <noscript>This page needs JavaScript!</noscript>
                      <span id="dateControl"></span>
                      <script src="./scripts/clock.js"></script> 
                      <script>aff_heure();</script>
                    </td>
                  </tr>
                </table>
        </form>
 </tr>
 <tr>
    <td valign="top"  align="center">
      
        <form name="loginForm" method="post" action="/login.do">
                <table bgcolor="#FFFFFF" align="center" cellspacing=0
cellpadding=4 border="0"                width="100%">
                <tr valign="top" align="left">
              <td align="center" width="30%"><b>Username</b></td>
                <td align="left"   width="30%"><input type="text"
name="userName" value="">                       </td>
                    <td width="40%"></td>
                </tr>
          <tr valign="top" align="left">
                <td align="center" width="30%"><b>Password</b>
                    </td>
              <td align="left"   width="30%"><input type="password"
name="password"                                 value="">&nbsp
                       <input type="submit" value="Login">
                    </td>
              <td width="40%"></td>
                  </tr>
              </table>
        </form>
    </td>
</tr>
</table>

</body>
</html>

The JavaScript (clock.js file) used is the following:

function aff_heure(){
  var d=new Date();
  var weekdays=new 
 
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"
);
  var monthname=new 
 
Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec
");
  var weekday=weekdays[d.getDay()];
  var date = d.getDate();
  var month = monthname[d.getMonth()];
  var year = d.getFullYear();
  var hour = d.getHours();
  var minute = d.getMinutes();
  var second = d.getSeconds();
     
  var time = new String(weekday + " " + date
                              + "." + month + " " + year
                              + ", " + hour + ":" + minute
                              + ":" + second);
    
  //document.dateForm.dateControl.value=time;
  //This instruction allows to display date like a lable and not a field
that can
  //be edited. But it dosen't work very well.
  document.getElementById("dateControl").innerHTML=time;
  setTimeout("aff_heure()",100);
}

The date can not be modified by the user but some control like the button
login flickers.



----------------------------------------------------------------------------

As of February 12th, 2003 Thomson unifies its email addresses on a worldwide
basis. 
Please note my new email address: [EMAIL PROTECTED] 

http://www.thomson.net/ 

----Original Message-----
From: Gareth Andrew [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 17:36
To: Struts Users Mailing List
Subject: Re: HELP: Dispaly Date in a JSP that used Tiles


I'm not sure what you mean.  Perhaps if you e-mail me your code I could 
take a quick look at it.

Gareth.

Heligon Sandra wrote:

>Your Javascript/DHTML knowledge knowledge is very good, your code
>allows to display the date like a text and not like a field that
>can be edited.
>But I have yet a problem, with this code some controls (not all)
>of my form do not stop moving.
>what is this has?  
>contrary to you my JavaScript knowledge is really basic. 
>  
>Thanks in advance
>
>
>  
>
>  
>


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

Reply via email to