473,395 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

masque de saisie

Salut à tous et bonne année,
J'ai trouvé un java script sur les masques de saisie (pour nombre monétaire
d'une part, pour date d'autre part), mais il n'a pas l'air de fonctionner,
pouvez-vous m'aider?

Essayez de créer les fichiers avec le code que je donne en dessous et
d'exécuter le formulaire...
peut-être qu'il faudrait remplacer le mot "document" par le nom de mon
fichier dans le js? mais alors quelle syntaxe adopter? guillemets?
apostrophe?
ou alors un problème sur mon ordi? lecture des javascript... je ne sais
pas...
alors, voilà, je vous mets tout le code de mes 2 fichiers, que je laisse à
votre sagacité...

"nouvelletransaction.php":

<html>
<head>
<script language="JavaScript1.2" src="masks.js"></script>
</head>
<body onload="init();">
<form name="new" action="nouvelletransactionsql.php" method=post">
<table border=0>
<tr>
<td>date</td>
<td><input type=text name="date"/ maxlength=100 size=30><br></td>
</tr>
<tr>
<td>montant</td>
<td><input type=text name="montant" maxlength=10 size=5><br></td>
</tr>
<tr>
<td colspan=100><input type=submit value="rentrer l'enregistrement"></td>
</tr>
</table>
</form>
</body>
</html>

et l'autre le script donc "mask.js":

<script language="JavaScript1.2">
// Mask JavaScript API (v0.3) - dswitzer [chez] pengoworks [point] com -
iubito [chez] asp-php [point] net
function init()
{
// Création du masque date jj/mm/aaaa
oDateMask = new Mask("jj/mm/aaaa", "date");
// Création du masque montant en euro
oEuroMask = new Mask("?#_###.00", "number");
// Associer le oDateMask aux 2 champs
oDateMask.attach(document.new.date);
// Associer le oEuroMask au champ
oEuroMask.attach(document.new.montant);
}
</script>
A+
Mathieu
Jan 1 '07 #1
1 4915
Mathieu wrote:
Salut à tous et bonne année,
Je ne parle pas français
JW
Jan 1 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: A.M. Kuchling | last post by:
A new set of introductory pages for python.org is being developed. The current draft of a revised version is at http://www.python.org/topics/learn/ . If you're learning or have recently learned...
1
by: Moi | last post by:
Hi i try to make simple DHTML menu but i have any little problem :-( The problem is..... i hide the body of the menu when mouse is (normaly) out of the body...but.... the event onmouseout is...
2
by: James Goodman | last post by:
I have a listbox named sub1 on an asp page. I need to fill this list with values from a table. These are selected based upon the selection of a value/s in another listbox. It was suggested that I...
1
by: Stan Sainte-Rose | last post by:
Oopps sorry for the previous post. As I said, I m trying to make a web custom control and I do know how I have to convert this part to for the render section In fact it may be a stupid...
12
by: ewaguespack | last post by:
i put this together to fix a bunch of files with wierd names, please gimme feedback, i am a newbie #!/usr/bin/env python import os import sys import string import platform dir = sys.argv
3
by: Jarod | last post by:
Hey Is there a way to make calendar "roll back" so when the user don't need it should hide a lot of dates. Or maybe some roll back... I want to have calendar in gridView but takes so much space...
0
by: gilles.carali | last post by:
Bonjour, J'ai deux serveurs Domino Notes (A et B) en cluster qui se connectent à l' AS400 via DB2 ou ODBC. Configuration : Win2000, Domino Notes V5.013a Client Access Express en V4.5 (SP...
0
by: johann | last post by:
bonjour je suis en train de creer une base de donnees pour la saisie de releves compeur sur mon parc photocopieurs. j'ai creer une table client comprenant les coordonées et les no serie des...
29
by: Kenzogio | last post by:
Hi, I have a struct "allmsg" and him member : unsigned char card_number; //16 allmsg.card_number
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.