Article View: fr.comp.text.xml
Article #8578Re: Pb HTML : je n'arrive pas à créer de bloc conditionnel de saisie.
From: GiPi
Date: Fri, 14 Sep 2001 15:54
Date: Fri, 14 Sep 2001 15:54
176 lines
7863 bytes
7863 bytes
C'est un message de format MIME en plusieurs parties.
------=_NextPart_000_0101_01C13D46.3CE32A10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Ben va voir dans l'armoire y'a peut etre un bouquin...
G.
"Christophe Le Sa=EBc" <Christophe.Le_Saec@alcatel.fr> a =E9crit dans =
le message news: 3BA2277A.12C15F74@alcatel.fr...
J'essaie de faire appara=EEtre/dispara=EEtre un bloc de saisie de =
donn=E9es, en fonction d'un choix utilisateur (radio-button).=20
Le seul code que j'ai r=E9ussi n'est pas conforme HTML, puisque j'ai 2 =
balises "Form" imbriqu=E9es.=20
Extrait :=20
....=20
<script language=3D"javascript">=20
function Montre(){=20
document.test.visibility =3D "show"=20
}=20
function cache(){=20
document.test.visibility =3D "hide"=20
}=20
</script>=20
<body>=20
....=20
<form name=3D"form1" method=3D"post" action=3D"">=20
...=20
<table border=3D"0">=20
...=20
<tr>=20
<td></td>=20
<td>=20
<input type=3D"radio" name=3D"radiobutton" =
value=3D"radiobutton1" onClick=3D"Montre()">=20
<input type=3D"radio" name=3D"radiobutton" =
value=3D"radiobutton2" checked onClick=3D"cache()">=20
</td>=20
</tr>=20
<tr>=20
<td></td>=20
<td>=20
<ilayer id=3D"test" width=3D"40" height=3D"15" =
z-index=3D"1" visibility=3D"hide">=20
<form name=3D"FormInside" method=3D"get" action=3D""> =
Texte=20
<input type=3D"text" name=3D"monTexte" =
size=3D"10" maxlength=3D"10">=20
</form>=20
</ilayer>=20
</td>=20
</tr>=20
</table>=20
...<!-- les autres =E9l=E9ments de formulaire ne sont pas pris en =
compte,=20
la fin du formulaire imbriqu=E9 a termin=E9 les 2 =
formulaires -->=20
</form>=20
...=20
</body>=20
De plus, ce code utilise les ilayers, supprot=E9s par Netscape =
seulement.=20
Qui dit mieux ?=20
Merci d'avance ...=20
=20
------=_NextPart_000_0101_01C13D46.3CE32A10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ben va voir dans l'armoire y'a peut =
etre un=20
bouquin...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>G.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Christophe Le Sa=EBc" <<A=20
=
href=3D"mailto:Christophe.Le_Saec@alcatel.fr">Christophe.Le_Saec@alcatel.=
fr</A>>=20
a =E9crit dans le message news: <A=20
=
href=3D"mailto:3BA2277A.12C15F74@alcatel.fr">3BA2277A.12C15F74@alcatel.fr=
</A>...</DIV>J'essaie=20
de faire appara=EEtre/dispara=EEtre un bloc de saisie de donn=E9es, en =
fonction d'un=20
choix utilisateur (radio-button). <BR>Le seul code que j'ai r=E9ussi =
n'est pas=20
conforme HTML, puisque j'ai 2 balises "Form" imbriqu=E9es.=20
<P><B>Extrait :</B> <BR>.... <BR><script =
language=3D"javascript">=20
<BR>function Montre(){ <BR> =20
<B>document.test.visibility =3D "show"</B> <BR>} <BR>function cache(){ =
<BR> <B>document.test.visibility =3D =
"hide"</B> <BR>}=20
<BR></script> <BR><body> <BR>.... <BR><form =
name=3D"form1"=20
method=3D"post" action=3D""> <BR>... <BR> <table =
border=3D"0">=20
<BR>... <BR> <tr>=20
<BR> <td></td>=20
<BR> <td>=20
<BR> <input=20
type=3D"radio" name=3D"radiobutton" value=3D"radiobutton1"=20
<B>onClick=3D"Montre()</B>">=20
<BR> <input=20
type=3D"radio" name=3D"radiobutton" value=3D"radiobutton2" checked=20
<B>onClick=3D</B>"<B>cache()</B>">=20
<BR> </td> =
<BR> =20
</tr>=20
<P> <tr> =
<BR> =20
<td></td> <BR> =20
<td> =
<BR> =20
<B><ilayer id=3D"test" width=3D"40" height=3D"15" z-index=3D"1"=20
visibility=3D"hide"></B>=20
=
<BR> &nb=
sp; =20
<B><<FONT color=3D#ff0000>form name=3D"FormInside" method=3D"get"=20
action=3D""</FONT>></B>=20
=
<BR> &nb=
sp; &nbs=
p; =20
Texte=20
=
<BR> &nb=
sp; &nbs=
p; =20
<input type=3D"text" name=3D"monTexte" size=3D"10" =
maxlength=3D"10">=20
=
<BR> &nb=
sp; =20
<B><<FONT color=3D#ff0000>/form</FONT>></B>=20
<BR> =20
<B></ilayer></B>=20
<BR> </td> =
<BR> </tr> <BR> =20
</table> <BR>...<!-- les autres =E9l=E9ments de formulaire ne =
sont pas=20
pris en compte, =
<BR> la=20
fin du formulaire imbriqu=E9 a termin=E9 les 2 formulaires -->=20
<BR><B></form></B> <BR>... <BR></body>=20
<P>De plus, ce code utilise les ilayers, supprot=E9s par Netscape =
seulement.=20
<P>Qui dit mieux ? <BR>Merci d'avance ... <BR> =20
</P></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0101_01C13D46.3CE32A10--
Technical Details
Message-ID:
<9nt9fu$3s8$1@news.alcatel.fr>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!fr.colt.net!rain.fr!news.alcatel.fr!not-for-mailReferences:
<3BA2277A.12C15F74@alcatel.fr>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,b9ee96d56b287738 X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-09-14 09:20:17 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!fr.colt.net!rain.fr!news.alcatel.fr!not-for-mail From: "GiPi" <guillaume.poulinet@alcatel.fr> Newsgroups: fr.comp.text.xml Subject: Re: Pb HTML : je n'arrive pas à créer de bloc conditionnel de saisie. Date: Fri, 14 Sep 2001 17:54:02 +0200 Organization: Alcanet International France Lines: 177 Message-ID: <9nt9fu$3s8$1@news.alcatel.fr> References: <3BA2277A.12C15F74@alcatel.fr> NNTP-Posting-Host: tan175.ansf.alcatel.fr Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0101_01C13D46.3CE32A10" X-Trace: news.alcatel.fr 1000483134 3976 159.217.208.175 (14 Sep 2001 15:58:54 GMT) X-Complaints-To: Support.Internet@alcatel.fr NNTP-Posting-Date: 14 Sep 2001 15:58:54 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200