Jump to content

target problem


gabrielebr

Recommended Posts

Hello,in my web site I have pages like the one reported below. They have been working fine but now I need to validate them as XHTML sritct and for accessibility reasons I can't use javascripts (the web site must work also if javascript is disabled). The problem is that the tag "target" is not accepted by XHTL strict.The web site is www.comune.arcene.bg.it (it is the web site of the municipality where I leave and I do it for free).the page (amministrazione.php) takes the value of the page to display from the home and then the menu items on the left are displayed into an objet or iframe using the deprecated "target".Could you help me to solve this problem ?Many thank in advanceGabriele (giscbrev@alice.it)the page:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html lang="IT"><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><META http-equiv="Content-Style-Type" content="text/css"><meta name="keywords" content="Comune di Arcene, Arcene, arcene"><meta name="description" content="Comune diArcene"><title>Comune di Arcene - Amministrazione</title><META HTTP-EQUIV="EXPIRES" CONTENT="0"><link rel="StyleSheet" type="text/css" href="centratoprova.css"><STYLE type="text/css">#objectFrame {width:610px; height:360px; text-align:center; vertical-align:top;}#gallery {width:610px; height:370px; padding:10px; margin:0 auto;}</STYLE></head><body><div id="container"><div id="pageHeader"><IMG SRC="amministrazione.jpg" WIDTH=800 HEIGHT=110 ALIGN=bottom alt="amministrazione"> </div><div id="pageCentre"><div style="background-image: url(backgroundbarra3.jpg);background-repeat: repeat-x;width:800px;height:17px;">    <a href="http://comune.arcene.bg.it/index.php"><img src="homesilver2.gif" alt="home" height=17 border=0></A></div><table summary="usata per la struttura della pagina" style="width:66.667em; border-style:none; text-align:=center; padding: 0em; border-spacing:0.8em;"><tr><td></td><td></td><td></td></TR><tr><td><div style="width:150px;height:360px;color:#010080;background:#FFFFFF;padding-top:3px;padding-bottom:5px;font-size:12px;border-right:2px solid #D0CECE;font-family: Verdana, Arial, Helvetica, sans-serif"><BR><BR><IMG class="IMGcenter" SRC="bluesquare.gif" alt="dot"> <STRONG>Amministrazione</STRONG><BR><BR><a href="sindaco.html" target="objectFrame">Sindaco</a><br><br><a href="giunta.html" target="objectFrame">Giunta </a><br><br><a href="consiglio.html" target="objectFrame">Consiglio</a><br><br><a href="segretario.html" target="objectFrame">Segretario Comunale</a><br><br><a href="commissioni.html" target="objectFrame">Commissioni</a><br><br><a href="orarigiunta.html" target="objectFrame">Orari di ricevimento</a><br></div></td><td><div id="gallery"><object data="<?php$bg = $_GET['bg'];echo($bg . '.html');?>" name="objectFrame" id="objectFrame" type="text/html">frame centrale</object></div></td><td></td></TR></table><br></div><div id="footer"><div style="text-align:left;">     <a href="http://validator.w3.org/"><img src="valid-html401-blue.png" alt="Valid HTML 4.01 Transitional"height="31" width="88" border=0></A>;    <a href="http://jigsaw.w3.org/css-validator/"><img src="vcss-blue.gif" alt="Valid CSS HTML 4.01 Transitional"height="31" width="88" border=0></A>    <a href="http://www.w3.org/WAI/WCAG1A-Conformance" title="Explanation of Level A Conformance"><img src="wcag1A-blue.gif" alt="Valid CSS HTML 4.01 Transitional"height="31" width="88" border=0></A></div></div></div></body></html>

Link to comment
Share on other sites

For good accessibility, you shouldn't be using targets, or <object> like that, anyway... how do you think screen readers, for example, will be able to properly read the text inside?

Link to comment
Share on other sites

For good accessibility, you shouldn't be using targets, or <object> like that, anyway... how do you think screen readers, for example, will be able to properly read the text inside?
Thank you,I'm trying to do my best but I'm not an expert. It is for that reason that I'm seeking experts advice/help.The web site as is worked well, disregarding accessibility problems. As accessibility is now required for sites like mine that is aMunicipality site I'm trying to modify what is not good.I hope it is not so bad that it would be better to write it from zero (www.comune.arcene.bg.it)regardsGabriele
Link to comment
Share on other sites

there only way to get this to pass strict validation, without using javascript, is to place content in a included file, which changes depending on get value sent.sindaco.php

 <BR><div style="height:300px;color:#010080;background:#FFFFFF;padding:5px;font-size:1em;border-right:2px solid #D0CECE;font-family: Verdana, Arial, Helvetica, sans-serif; text-align:left"><table summary="usata per la struttura della pagina" style="width:46.667em;  border-style:none; padding: 0em; border-spacing:0em;"><tr><td><IMG class="floatimgleft" SRC="forestigrande.jpg" alt="Foresti"><strong> Giuseppe Foresti</strong><BR> Insegnante elementare, sposato e con un figlio, Giuseppe Foresti è nato ad Arcene nel 1954 e, sin da giovanissimo, ha cominciato ad occuparsi del proprio Paese. Dopo l'esperienza di Consigliere comunale d' opposizione tra il 1980 ed il 1985, è con la lista civica di Insieme per Arcene che Foresti, a partire dal 1994, ha svolto un ruolo attivo nell'amministrazione del Paese: ha ricoperto i ruoli di Vice Sindaco ed Assessore all'Urbanistica, territorio, ambiente ed edilizia privata nella Giunta di Elio ferrari (1994-1999), di Consigliere con delega all' ambiente e territorio nella prima Giunta di Michele Luccisano (1999-2004) e di Vice Sindaco ed Assessore ai lavori pubblici nella seconda Giunta Luccisano (2004-2009).<br>Alla grande esperienza amministrativa, Foresti ha da sempre affiancato un forte impegno nel campo del volontariato sia in ambito sociale che in quello dell' ecologia: attivo sin da ragazzino presso l'oratorio del Paese, sensibile alle problematiche del disagio giovanile, negli anni '70 è stato educatore nella comunità Emmaus fondata e guidata da Don Giuseppe Monticelli, dove si è occupato dell'assistenza, del recupero e del reinserimento di giovani tossicodipendenti; negli ultimi anni ha collaborato con gli animatori dell'oratorio coordinando le attività relative agli adolescenti.<br>Grande appassionato di montagna, sin da ragazzino ha esplorato i rifugi ed i sentieri delle nostre montagne, arrampicando anche sulle pareti rocciose più ripide.</TD></tr></table></div>

<table summary="usata per la struttura della pagina" style="width:66.667em;  border-style:none; text-align:=center; padding: 0em; border-spacing:0.8em;">  <tr><td></td><td></td><td></td></TR>  <tr><td><div style="width:150px;height:360px;color:#010080;background:#FFFFFF;padding-top:3px;padding-bottom:5px;font-size:12px;border-right:2px solid #D0CECE;font-family: Verdana, Arial, Helvetica, sans-serif"><BR><BR>  <IMG class="IMGcenter" SRC="bluesquare.gif" alt="dot"> <STRONG>Amministrazione</STRONG><BR><BR>  <a href="/amministrazione.php?bg=sindaco&page=sindaco">Sindaco</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=giunta">Giunta </a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=consiglio">Consiglio</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=segretario">Segretario Comunale</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=commissioni">Commissioni</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=orarigiunta">Orari di ricevimento</a><br>  </div>  </td>    <td><div id="gallery">    <?php  if(isset($_GET['page'])) //check if value for page has been set  {	  if(file_exists($_GET['page'].'.php')) // checks if file actually exists - captures wrongly entered page links 		  {		  include($_GET['page'].'.php'); //if yes insert content of selected file		  }	  else		  {		  include('sindaco.php'); // if not return to default start page or not found error page		  }  }  else  {  include('sindaco.php'); // defaults to start page if get value not sent  }   ?>    </div></td><td></td></TR></table><br>  </div>      <div id="footer">  <div style="text-align:left;">       <a href="http://validator.w3.org/"><img src="valid-html401-blue.png" alt="Valid HTML 4.01 Transitional"height="31" width="88" border=0></A>;    <a href="http://jigsaw.w3.org/css-validator/"><img src="vcss-blue.gif" alt="Valid CSS HTML 4.01 Transitional"height="31" width="88" border=0></A>       <a href="http://www.w3.org/WAI/WCAG1A-Conformance" title="Explanation of Level A Conformance">  <img src="wcag1A-blue.gif" alt="Valid CSS HTML 4.01 Transitional"height="31" width="88" border=0></A></div>	  </div>  </div>      <!-- These extra divs/spans may be used as catch-alls to add extra imagery. -->  <div id="extraDiv1"></div><div id="extraDiv2"><span></span></div><div id="extraDiv3"><span></span></div>  <div id="extraDiv4"><span></span></div><div id="extraDiv5"><span></span></div><div id="extraDiv6"><span></span></div>    </body>  </html>

Link to comment
Share on other sites

there only way to get this to pass strict validation, without using javascript, is to place content in a included file, which changes depending on get value sent.sindaco.php
 <BR><div style="height:300px;color:#010080;background:#FFFFFF;padding:5px;font-size:1em;border-right:2px solid #D0CECE;font-family: Verdana, Arial, Helvetica, sans-serif; text-align:left"><table summary="usata per la struttura della pagina" style="width:46.667em;  border-style:none; padding: 0em; border-spacing:0em;"><tr><td><IMG class="floatimgleft" SRC="forestigrande.jpg" alt="Foresti"><strong> Giuseppe Foresti</strong><BR> Insegnante elementare, sposato e con un figlio, Giuseppe Foresti è nato ad Arcene nel 1954 e, sin da giovanissimo, ha cominciato ad occuparsi del proprio Paese. Dopo l'esperienza di Consigliere comunale d' opposizione tra il 1980 ed il 1985, è con la lista civica di Insieme per Arcene che Foresti, a partire dal 1994, ha svolto un ruolo attivo nell'amministrazione del Paese: ha ricoperto i ruoli di Vice Sindaco ed Assessore all'Urbanistica, territorio, ambiente ed edilizia privata nella Giunta di Elio ferrari (1994-1999), di Consigliere con delega all' ambiente e territorio nella prima Giunta di Michele Luccisano (1999-2004) e di Vice Sindaco ed Assessore ai lavori pubblici nella seconda Giunta Luccisano (2004-2009).<br>Alla grande esperienza amministrativa, Foresti ha da sempre affiancato un forte impegno nel campo del volontariato sia in ambito sociale che in quello dell' ecologia: attivo sin da ragazzino presso l'oratorio del Paese, sensibile alle problematiche del disagio giovanile, negli anni '70 è stato educatore nella comunità Emmaus fondata e guidata da Don Giuseppe Monticelli, dove si è occupato dell'assistenza, del recupero e del reinserimento di giovani tossicodipendenti; negli ultimi anni ha collaborato con gli animatori dell'oratorio coordinando le attività relative agli adolescenti.<br>Grande appassionato di montagna, sin da ragazzino ha esplorato i rifugi ed i sentieri delle nostre montagne, arrampicando anche sulle pareti rocciose più ripide.</TD></tr></table></div>

<table summary="usata per la struttura della pagina" style="width:66.667em;  border-style:none; text-align:=center; padding: 0em; border-spacing:0.8em;">  <tr><td></td><td></td><td></td></TR>  <tr><td><div style="width:150px;height:360px;color:#010080;background:#FFFFFF;padding-top:3px;padding-bottom:5px;font-size:12px;border-right:2px solid #D0CECE;font-family: Verdana, Arial, Helvetica, sans-serif"><BR><BR>  <IMG class="IMGcenter" SRC="bluesquare.gif" alt="dot"> <STRONG>Amministrazione</STRONG><BR><BR>  <a href="/amministrazione.php?bg=sindaco&page=sindaco">Sindaco</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=giunta">Giunta </a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=consiglio">Consiglio</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=segretario">Segretario Comunale</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=commissioni">Commissioni</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=orarigiunta">Orari di ricevimento</a><br>  </div>  </td>    <td><div id="gallery">    <?php  if(isset($_GET['page'])) //check if value for page has been set  {	  if(file_exists($_GET['page'].'.php')) // checks if file actually exists - captures wrongly entered page links 		  {		  include($_GET['page'].'.php'); //if yes insert content of selected file		  }	  else		  {		  include('sindaco.php'); // if not return to default start page or not found error page		  }  }  else  {  include('sindaco.php'); // defaults to start page if get value not sent  }   ?>    </div></td><td></td></TR></table><br>  </div>      <div id="footer">  <div style="text-align:left;">       <a href="http://validator.w3.org/"><img src="valid-html401-blue.png" alt="Valid HTML 4.01 Transitional"height="31" width="88" border=0></A>;    <a href="http://jigsaw.w3.org/css-validator/"><img src="vcss-blue.gif" alt="Valid CSS HTML 4.01 Transitional"height="31" width="88" border=0></A>       <a href="http://www.w3.org/WAI/WCAG1A-Conformance" title="Explanation of Level A Conformance">  <img src="wcag1A-blue.gif" alt="Valid CSS HTML 4.01 Transitional"height="31" width="88" border=0></A></div>	  </div>  </div>      <!-- These extra divs/spans may be used as catch-alls to add extra imagery. -->  <div id="extraDiv1"></div><div id="extraDiv2"><span></span></div><div id="extraDiv3"><span></span></div>  <div id="extraDiv4"><span></span></div><div id="extraDiv5"><span></span></div><div id="extraDiv6"><span></span></div>    </body>  </html>

Thank you very much !!!!Today I have no time to test it as I have a flight to brussels in one hour.Tomorrow evening i'll come back and next tuesday I will try your suggestion and I will let you knnow. Have a nice sunday.Gabriele
Link to comment
Share on other sites

there only way to get this to pass strict validation, without using javascript, is to place content in a included file, which changes depending on get value sent.sindaco.php
 <BR><div style="height:300px;color:#010080;background:#FFFFFF;padding:5px;font-size:1em;border-right:2px solid #D0CECE;font-family: Verdana, Arial, Helvetica, sans-serif; text-align:left"><table summary="usata per la struttura della pagina" style="width:46.667em;  border-style:none; padding: 0em; border-spacing:0em;"><tr><td><IMG class="floatimgleft" SRC="forestigrande.jpg" alt="Foresti"><strong> Giuseppe Foresti</strong><BR> Insegnante elementare, sposato e con un figlio, Giuseppe Foresti è nato ad Arcene nel 1954 e, sin da giovanissimo, ha cominciato ad occuparsi del proprio Paese. Dopo l'esperienza di Consigliere comunale d' opposizione tra il 1980 ed il 1985, è con la lista civica di Insieme per Arcene che Foresti, a partire dal 1994, ha svolto un ruolo attivo nell'amministrazione del Paese: ha ricoperto i ruoli di Vice Sindaco ed Assessore all'Urbanistica, territorio, ambiente ed edilizia privata nella Giunta di Elio ferrari (1994-1999), di Consigliere con delega all' ambiente e territorio nella prima Giunta di Michele Luccisano (1999-2004) e di Vice Sindaco ed Assessore ai lavori pubblici nella seconda Giunta Luccisano (2004-2009).<br>Alla grande esperienza amministrativa, Foresti ha da sempre affiancato un forte impegno nel campo del volontariato sia in ambito sociale che in quello dell' ecologia: attivo sin da ragazzino presso l'oratorio del Paese, sensibile alle problematiche del disagio giovanile, negli anni '70 è stato educatore nella comunità Emmaus fondata e guidata da Don Giuseppe Monticelli, dove si è occupato dell'assistenza, del recupero e del reinserimento di giovani tossicodipendenti; negli ultimi anni ha collaborato con gli animatori dell'oratorio coordinando le attività relative agli adolescenti.<br>Grande appassionato di montagna, sin da ragazzino ha esplorato i rifugi ed i sentieri delle nostre montagne, arrampicando anche sulle pareti rocciose più ripide.</TD></tr></table></div>

<table summary="usata per la struttura della pagina" style="width:66.667em;  border-style:none; text-align:=center; padding: 0em; border-spacing:0.8em;">  <tr><td></td><td></td><td></td></TR>  <tr><td><div style="width:150px;height:360px;color:#010080;background:#FFFFFF;padding-top:3px;padding-bottom:5px;font-size:12px;border-right:2px solid #D0CECE;font-family: Verdana, Arial, Helvetica, sans-serif"><BR><BR>  <IMG class="IMGcenter" SRC="bluesquare.gif" alt="dot"> <STRONG>Amministrazione</STRONG><BR><BR>  <a href="/amministrazione.php?bg=sindaco&page=sindaco">Sindaco</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=giunta">Giunta </a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=consiglio">Consiglio</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=segretario">Segretario Comunale</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=commissioni">Commissioni</a><br><br>  <a href="/amministrazione.php?bg=sindaco&page=orarigiunta">Orari di ricevimento</a><br>  </div>  </td>    <td><div id="gallery">    <?php  if(isset($_GET['page'])) //check if value for page has been set  {	  if(file_exists($_GET['page'].'.php')) // checks if file actually exists - captures wrongly entered page links 		  {		  include($_GET['page'].'.php'); //if yes insert content of selected file		  }	  else		  {		  include('sindaco.php'); // if not return to default start page or not found error page		  }  }  else  {  include('sindaco.php'); // defaults to start page if get value not sent  }   ?>    </div></td><td></td></TR></table><br>  </div>      <div id="footer">  <div style="text-align:left;">       <a href="http://validator.w3.org/"><img src="valid-html401-blue.png" alt="Valid HTML 4.01 Transitional"height="31" width="88" border=0></A>;    <a href="http://jigsaw.w3.org/css-validator/"><img src="vcss-blue.gif" alt="Valid CSS HTML 4.01 Transitional"height="31" width="88" border=0></A>       <a href="http://www.w3.org/WAI/WCAG1A-Conformance" title="Explanation of Level A Conformance">  <img src="wcag1A-blue.gif" alt="Valid CSS HTML 4.01 Transitional"height="31" width="88" border=0></A></div>	  </div>  </div>      <!-- These extra divs/spans may be used as catch-alls to add extra imagery. -->  <div id="extraDiv1"></div><div id="extraDiv2"><span></span></div><div id="extraDiv3"><span></span></div>  <div id="extraDiv4"><span></span></div><div id="extraDiv5"><span></span></div><div id="extraDiv6"><span></span></div>    </body>  </html>

--------------------It works !!!I thank you very much !I believe this was the most important problem for me to solve in order to adapt my pages to the accessibility requirements.Have a nice dayGabriele
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...