Bonsoir,

Encore moi et mon
header("Content-Type: application/xhtml+xml; charset=ISO-8859-1");

avec DOCTYPE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


j'ai un formulaire et quand je le submit, j'appelle une fonction javascript onSubmit et bien ca ne marche pas, j'enlève l'entete, ca marche???

<form action='popupIndex.php' method='post' id='formulaire' name='formBasic' onSubmit='alert("coucou");' >


quand je submit pas de coucou Smiley bawling
C'est curieux... Mais tu n'as certainement pas besoin du type MIME applciation/xhtml+xml. Va voir dans la FAQ, c'est expliqué pourquoi ne pas utiliser ce type MIME et pourquoi ne pas utiliser XHTML 1.1.
Bonjour,

Attention au respect de la casse: les attributs s'écrivent en minuscules en XHTML :
crazyjojo a écrit :
onSubmit

Modifié par Laurent Denis (20 Jan 2006 - 05:22)