IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

HTML Discussion :

[HTML] Probleme de validation avec plugin flash flv player


Sujet :

HTML

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 46
    Par défaut [HTML] Probleme de validation avec plugin flash flv player
    Bonjour,
    J'utilise dans mon site les très célèbres players : flash flv player et flash mp3 player. L'inclusion de ce plugin dans une page se fait via le code html suivant :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <div class='illustration'><p id='player_mp3_0'><a href='http://www.macromedia.com/go/getflashplayer'>Téléchargez Flash Player</a> pour lire ce média.</p><script type='text/javascript'>var FU = {movie:'javascript/flash_mp3_player/mp3player.swf',width:'600',height:'120',majorversion:'7',build:'0',bgcolor:'#FFFFFF',flashvars:'file=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(     FU, 'player_mp3_0');</script></div>
    Lors de la validation W3C j'obtiens une multitude d'erreurs liées à ce qui se trouve dans le javascript du code que je viens de vous donner.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    Result:  	 Failed validation, 18 errors
    Address: 	
    Encoding: 	iso-8859-1	
    Doctype: 	XHTML 1.0 Strict	
    Root Namespace: 	http://www.w3.org/1999/xhtml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
     
       1.  Warning  Line 22 column 361: cannot generate system identifier for general entity "repeat".
     
          ...rs:'file=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcol
     
          An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
     
          Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.
     
          If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
     
          Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
     
          ✉
       2. Error Line 22 column 361: general entity "repeat" not defined and no default entity.
     
          ...rs:'file=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcol
     
          This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
     
          ✉
       3. Warning Line 22 column 367: reference not terminated by REFC delimiter.
     
          ...le=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x0
     
          If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
     
          ✉
       4. Error Line 22 column 367: reference to entity "repeat" for which no system identifier could be generated.
     
          ...le=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x0
     
          This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
     
          ✉
       5. Info Line 22 column 360: entity was defined here.
     
          ...ars:'file=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightco
     
       6. Warning Line 22 column 373: cannot generate system identifier for general entity "showdigits".
     
          ...he/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&
     
          ✉
       7. Error Line 22 column 373: general entity "showdigits" not defined and no default entity.
     
          ...he/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&
     
          ✉
       8. Warning Line 22 column 383: reference not terminated by REFC delimiter.
     
          ..._article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll
     
          ✉
       9. Error Line 22 column 383: reference to entity "showdigits" for which no system identifier could be generated.
     
          ..._article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll
     
          ✉
      10. Info Line 22 column 372: entity was defined here.
     
          ...che/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF
     
      11. Warning Line 22 column 390: cannot generate system identifier for general entity "lightcolor".
     
          ...e_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&s
     
          ✉
      12. Error Line 22 column 390: general entity "lightcolor" not defined and no default entity.
     
          ...e_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&s
     
          ✉
      13. Warning Line 22 column 400: reference not terminated by REFC delimiter.
     
          ...&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true
     
          ✉
      14. Error Line 22 column 400: reference to entity "lightcolor" for which no system identifier could be generated.
     
          ...&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true
     
          ✉
      15. Info Line 22 column 389: entity was defined here.
     
          ...le_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&
     
      16. Warning Line 22 column 410: cannot generate system identifier for general entity "autoscroll".
     
          ...ue&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.cr
     
          ✉
      17. Error Line 22 column 410: general entity "autoscroll" not defined and no default entity.
     
          ...ue&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.cr
     
          ✉
      18. Warning Line 22 column 420: reference not terminated by REFC delimiter.
     
          ...its=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 
     
          ✉
      19. Error Line 22 column 420: reference to entity "autoscroll" for which no system identifier could be generated.
     
          ...its=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 
     
          ✉
      20. Info Line 22 column 409: entity was defined here.
     
          ...rue&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.c
     
      21. Warning Line 22 column 426: cannot generate system identifier for general entity "showeq".
     
          ...lse&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 'playe
     
          ✉
      22. Error Line 22 column 426: general entity "showeq" not defined and no default entity.
     
          ...lse&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 'playe
     
          ✉
      23. Warning Line 22 column 432: reference not terminated by REFC delimiter.
     
          ...ghtcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 'player_mp3_
     
          ✉
      24. Error Line 22 column 432: reference to entity "showeq" for which no system identifier could be generated.
     
          ...ghtcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 'player_mp3_
     
          ✉
      25. Info Line 22 column 425: entity was defined here.
     
          ...alse&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 'play
     
      26. Warning Line 23 column 362: cannot generate system identifier for general entity "displayheight".
     
          ...rs:'file=cache/xml/flv_article_37_0.xml&displayheight=510&repeat=true&lightco
     
          ✉
      27. Error Line 23 column 362: general entity "displayheight" not defined and no default entity.
     
          ...rs:'file=cache/xml/flv_article_37_0.xml&displayheight=510&repeat=true&lightco
     
          ✉
      28. Warning Line 23 column 375: reference not terminated by REFC delimiter.
     
          ...e/xml/flv_article_37_0.xml&displayheight=510&repeat=true&lightcolor=0x00AAFF&
     
          ✉
      29. Error Line 23 column 375: reference to entity "displayheight" for which no system identifier could be generated.
     
          ...e/xml/flv_article_37_0.xml&displayheight=510&repeat=true&lightcolor=0x00AAFF&
     
          ✉
      30. Info Line 23 column 361: entity was defined here.
     
          ...ars:'file=cache/xml/flv_article_37_0.xml&displayheight=510&repeat=true&lightc
     
      31. Warning Line 23 column 386: reference not terminated by REFC delimiter.
     
          ...rticle_37_0.xml&displayheight=510&repeat=true&lightcolor=0x00AAFF&backcolor=0
     
          ✉
      32. Error Line 23 column 386: reference to entity "repeat" for which no system identifier could be generated.
     
          ...rticle_37_0.xml&displayheight=510&repeat=true&lightcolor=0x00AAFF&backcolor=0
     
          ✉
      33. Info Line 22 column 360: entity was defined here.
     
          ...ars:'file=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightco
     
      34. Warning Line 23 column 402: reference not terminated by REFC delimiter.
     
          ...displayheight=510&repeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcol
     
          ✉
      35. Error Line 23 column 402: reference to entity "lightcolor" for which no system identifier could be generated.
     
          ...displayheight=510&repeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcol
     
          ✉
      36. Info Line 22 column 389: entity was defined here.
     
          ...le_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&
     
      37. Warning Line 23 column 412: cannot generate system identifier for general entity "backcolor".
     
          ...ght=510&repeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x00000
     
          ✉
      38. Error Line 23 column 412: general entity "backcolor" not defined and no default entity.
     
          ...ght=510&repeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x00000
     
          ✉
      39. Warning Line 23 column 421: reference not terminated by REFC delimiter.
     
          ...epeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.
     
          ✉
      40. Error Line 23 column 421: reference to entity "backcolor" for which no system identifier could be generated.
     
          ...epeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.
     
          ✉
      41. Info Line 23 column 411: entity was defined here.
     
          ...ight=510&repeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x0000
     
      42. Warning Line 23 column 431: cannot generate system identifier for general entity "frontcolor".
     
          ...&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.create(FU,
     
          ✉
      43. Error Line 23 column 431: general entity "frontcolor" not defined and no default entity.
     
          ...&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.create(FU,
     
          ✉
      44. Warning Line 23 column 441: reference not terminated by REFC delimiter.
     
          ...r=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.create(FU, 'player_f
     
          ✉
      45. Error Line 23 column 441: reference to entity "frontcolor" for which no system identifier could be generated.
     
          ...r=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.create(FU, 'player_f
     
          ✉
      46. Info Line 23 column 430: entity was defined here.
     
          ...e&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.create(FU
    Que faire ???
    Merci

  2. #2
    Inactif  
    Avatar de Kerod
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    11 672
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 11 672
    Par défaut
    il faudrait remplacer tous les & par &amp; pour commencer

  3. #3
    Modérateur
    Avatar de blueice
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2003
    Messages
    3 494
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 50
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2003
    Messages : 3 494
    Par défaut
    Pour ma part je les utilise aussi et aucun problème de validation
    Donc suis ce que dit Kerod.

  4. #4
    Membre averti
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    46
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 46
    Par défaut Merci
    Merci beaucoup ça marche !!! une autre question J'ai des erreurs liées à des formulaire dans une autre page et je ne sais pas pourquoi ... Je pense que je ne peux pas mettre la balise <form> à l'interieur d'un <p> ou d'un <div> le validateur me conseille <object> mais je ne sais pas du tout comment l'utiliser... Je ne comprends pas ces erreurs !

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
     
     <div class='right'>
    	<div class='rubrique_title'>Recherche</div>
    	<div class='rubrique_content'>
    	<p>Trouver des éléments sur le site ...
    	<form method='post' action='search.php' enctype='x-www-form-urlencoded'>
    		<input name='string' type='text' size='25' /><input type='submit' value='OK' />
    	</form>
    	</p>
     
    	</div>
     
    	<div class='rubrique_title'>Newsletter</div>
    	<div class='rubrique_content'>
    	<p>
    	<form method='post' action='abonnement.php' enctype='x-www-form-urlencoded'>
    	<input type='text' size='30' /><input type='submit' value="S'abonner" />
    	</form>
    	</p>
    	</div>
    Voila les erreurs :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
     
    # Error  Line 18 column 72: document type does not allow element "form" here; missing one of "object", "ins", "del", "map" start-tag.
     
    ...='search.php' enctype='x-www-form-urlencoded'>
     
    ✉
    # Error Line 19 column 46: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
     
    		<input name='string' type='text' size='25' /><input type='submit' value='OK' />
     
    ✉
    # Error Line 19 column 80: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
     
    ...' /><input type='submit' value='OK' />
     
    ✉
    # Error Line 28 column 76: document type does not allow element "form" here; missing one of "object", "ins", "del", "map" start-tag.
     
    ...ment.php' enctype='x-www-form-urlencoded'>
     
    ✉
    # Error Line 29 column 31: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
     
    	<input type='text' size='30' /><input type='submit' value="S'abonner" />
     
    ✉
    # Error Line 29 column 72: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
     
    ...0' /><input type='submit' value="S'abonner" />

  5. #5
    Modérateur
    Avatar de blueice
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mars 2003
    Messages
    3 494
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 50
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2003
    Messages : 3 494
    Par défaut
    Vire la balise paragraphe <p>, si tu fais du strict tu dois te plier à des règles très strictes...

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [HTML] probleme de compilation avec firefox
    Par pujas dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 11/08/2008, 13h28
  2. probleme de JRE avec plugin Eclipse
    Par Magic F dans le forum Eclipse Java
    Réponses: 2
    Dernier message: 16/01/2007, 09h11
  3. [CSS&HTML]Problem de hauteur avec un tableau
    Par pierrot10 dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 27/09/2006, 19h21
  4. [HTML] Probleme boutons-images avec firefox
    Par baba_star dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 09/07/2006, 17h49
  5. [HTML] problème W3C validator
    Par megapacman dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 21/06/2006, 14h28

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo