🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #8578

Re: Pb HTML : je n'arrive pas à créer de bloc conditionnel de saisie.

#8578
From: GiPi
Date: Fri, 14 Sep 2001 15:54
176 lines
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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>G.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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" &lt;<A=20
  =
href=3D"mailto:Christophe.Le_Saec@alcatel.fr">Christophe.Le_Saec@alcatel.=
fr</A>&gt;=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>&lt;script =
language=3D"javascript"&gt;=20
  <BR>function Montre(){ <BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
  <B>document.test.visibility =3D "show"</B> <BR>} <BR>function cache(){ =

  <BR>&nbsp;&nbsp;&nbsp;&nbsp; <B>document.test.visibility =3D =
"hide"</B> <BR>}=20
  <BR>&lt;/script&gt; <BR>&lt;body&gt; <BR>.... <BR>&lt;form =
name=3D"form1"=20
  method=3D"post" action=3D""&gt; <BR>... <BR>&nbsp; &lt;table =
border=3D"0"&gt;=20
  <BR>... <BR>&nbsp;&nbsp;&nbsp; &lt;tr&gt;=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;/td&gt;=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input=20
  type=3D"radio" name=3D"radiobutton" value=3D"radiobutton1"=20
  <B>onClick=3D"Montre()</B>"&gt;=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input=20
  type=3D"radio" name=3D"radiobutton" value=3D"radiobutton2" checked=20
  <B>onClick=3D</B>"<B>cache()</B>"&gt;=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt; =
<BR>&nbsp;&nbsp;=20
  &lt;/tr&gt;=20
  <P>&nbsp;&nbsp;&nbsp; &lt;tr&gt; =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td&gt;&lt;/td&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td&gt; =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  <B>&lt;ilayer id=3D"test" width=3D"40" height=3D"15" z-index=3D"1"=20
  visibility=3D"hide"&gt;</B>=20
  =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  <B>&lt;<FONT color=3D#ff0000>form name=3D"FormInside" method=3D"get"=20
  action=3D""</FONT>&gt;</B>=20
  =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
  Texte=20
  =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
  &lt;input type=3D"text" name=3D"monTexte" size=3D"10" =
maxlength=3D"10"&gt;=20
  =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  <B>&lt;<FONT color=3D#ff0000>/form</FONT>&gt;</B>=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  <B>&lt;/ilayer&gt;</B>=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt; =

  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt; <BR>&nbsp;=20
  &lt;/table&gt; <BR>...&lt;!-- les autres =E9l=E9ments de formulaire ne =
sont pas=20
  pris en compte, =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; la=20
  fin du formulaire imbriqu=E9 a termin=E9 les 2 formulaires --&gt;=20
  <BR><B>&lt;/form&gt;</B> <BR>... <BR>&lt;/body&gt;=20
  <P>De plus, ce code utilise les ilayers, supprot=E9s par Netscape =
seulement.=20
  <P>Qui dit mieux ? <BR>Merci d'avance ... <BR>&nbsp;=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-mail
References: <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