Poster un formulaire avec une touche

Poster un formulaire avec une touche - HTML/CSS - Programmation

Marsh Posté le 25-01-2006 à 20:39:19    

Bonjour,  
Malgré mes recherches je n'ai toujours pas trouver la moyen de poster un formulaire via une touche du clavier (au lieux d'un bouton) j'ai trouver la fonction onKeydown en javascript mais sans résultat il y t'il une autre solution ?  
merci d'avance

Reply

Marsh Posté le 25-01-2006 à 20:39:19   

Reply

Marsh Posté le 25-01-2006 à 21:08:42    

Pourquoi ne veux tu pas de bouton [:petrus dei]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 25-01-2006 à 21:10:54    

masklinn a écrit :

Pourquoi ne veux tu pas de bouton [:petrus dei]


 
parceque j'ai fait un programme de caisse et j'aimerai pouvoir le faire fonctioner sans souris (uniquement avec clavier)

Reply

Marsh Posté le 25-01-2006 à 21:22:24    

Et pourquoi ne pas faire les deux [:petrus dei]
 
(un programme de caisse en HTML?)


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 25-01-2006 à 21:29:57    

et.... faire les deux avec et sans la souris ?

Reply

Marsh Posté le 25-01-2006 à 21:43:31    

ben oui


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 26-01-2006 à 05:27:37    

sur le formulaire il y a plusieurs bouton et pour être plus rapide je voudrais utiliser des racourcis clavier au lieux de devoir clicker sur celui-ci

Reply

Marsh Posté le 26-01-2006 à 12:09:54    

Je ne vois toujours pas pourquoi ne pas faire les deux mais bon


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 26-01-2006 à 12:25:32    

normalement la touche "Entrée" soumet ton formulaire quand tu es dans un input text ( aussi bien sous FF que IE)
Maintenant ça ne marche que dans les types text, impossible sur les radio/checkbox/select/textarea.

Reply

Marsh Posté le 31-01-2006 à 15:36:36    

si il ajoute un type text a la fin, ça lui fera appuyer tab et apres entrée
sinon il peut il me semble inserer une petite anim flash et mettre un on  
 
(Keypress "latouche" ) {
geturl(ce qu'envoi le bouton);
}
 
Enfin je sais pas si ça marchera, mais pourquoi pas essayer

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed