Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Strange behaviour Netscape 4.5

Reply
Thread Tools

Strange behaviour Netscape 4.5

 
 
Ahmed ALAMI
Guest
Posts: n/a
 
      01-12-2004
Hello everybody,
I want to execute an onkeypress event over a inout field included in a
table.
Depending on the fact that i specify the width value for the table,
the onkeypress is executed or not.

Here is my code
<html>
<head>
<script>
function controler()
{
var message = "";
//controle format date
message = ctrlFormatDate(document.forms[0].elements["dayDateAdhesion"],document.forms[0].elements["monthDateAdhesion"],document.forms[0].elements["yearDateAdhesion"],true);

if (message == "") {
document.forms[0].submit();
}
else {
alert(message);
}
}
</script>

</head>
<body onload="autoStart();">
<form method="post" name="actions">

<table border="0" cellspacing="0" align="center" id="table1"
width="100%">
<tr>
<th height="22" colspan="2">
Critères
</th>
</tr>

<tr>
<td height="22" class="clair" width="243" >
Date
</td>
<td height="22" class="clair" width="212">:
<input class="inputDates" type="text" name="dayDateAdhesion"
maxlength="2" size="2" value="09"
onkeypress="onkeypress_field(event,&quot;java.lang .String&quot;,this)"
onkeyup="return onkeyup_field(event, 2, this);"
onmouseout="onmouseout_field(event,&quot;java.lang .String&quot;,this)"
onmouseover="onmouseover_field(event,&quot;java.la ng.String&quot;,this)"
onblur="onblur_field(event,&quot;java.lang.String& quot;,this)">/
<input class="inputDates" type="text" name="monthDateAdhesion"
maxlength="2" size="2" value="01"
onkeypress="onkeypress_field(event,&quot;java.lang .String&quot;,this)" onkeyup="return onkeyup_field(event,
2, this);" onmouseout="onmouseout_field(event,&quot;java.lang .String&quot;,this)"
onmouseover="onmouseover_field(event,&quot;java.la ng.String&quot;,this)" onblur="onblur_field(event,&quot;java.lang.String& quot;,this)">/
<input class="inputDates" type="text" name="yearDateAdhesion"
length="4" size="4" value="2004"
onkeypress="onkeypress_field(event,&quot;java.lang .String&quot;,this)"
onmouseout="onmouseout_field(event,&quot;java.lang .String&quot;,this)" onmouseover="onmouseover_field(event,&quot;java.la ng.String&quot;,this)"
onblur="onblur_field(event,&quot;java.lang.String& quot;,this)">
</td>
</tr>
</table>
</center>


</form>
</body>
</html>


If I specifiy a width, the method is not executed and if I don't
specify it, the method is executed.

Does anyone have an answer for that strange behaviour, and a solution
if i want to keep the width value. I tried with a style and javascript
and that doesn't work.




Thanks in advance.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Netscape 7.1 to Netscape 8 Skid Schermerhorn Firefox 2 09-05-2005 04:04 PM
Netscape with JRE 1.5 beta 1 ignores Netscape signing Mickey Segal Java 1 05-21-2004 01:52 PM
Strange behaviour netscape 4.5 Ahmed ALAMI Javascript 0 01-12-2004 12:07 PM
Strange behaviour netscape Ahmed ALAMI HTML 0 01-12-2004 11:58 AM
websphere, oracle, netscape: netscape timeout Tom Java 0 08-01-2003 11:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57