0

http request

Hi all,

I need to retrieve content on another site.
For that, I used the class gadgets.io.makerequest.
I get the content but When I want to save the recovered content in a "div"

document.getElementById("contenu1").innerHTML = response.text;

, I have the following error in Firebug:

d is undefined
http://l.yimg.com/kj/yap/caja/js/y80273/do...AomZZh59iKw-.js
Line 1


Thanks

5 Replies
  • Hi djmic313131,

    Could you post a sample of the content that you are expecting to receive from the makeRequest call please? That should help us nail down the issue.

    Thanks,
    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    Twitter: jcleblanc

    QUOTE (djmic313131 @ Apr 27 2009, 06:42 AM) <{POST_SNAPBACK}>
    Hi all,

    I need to retrieve content on another site.
    For that, I used the class gadgets.io.makerequest.
    I get the content but When I want to save the recovered content in a "div"

    document.getElementById("contenu1").innerHTML = response.text;

    , I have the following error in Firebug:

    d is undefined
    http://l.yimg.com/kj/yap/caja/js/y80273/do...AomZZh59iKw-.js
    Line 1


    Thanks
    0
  • here is the code. It is quite long. Thank you.

    CODE
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html lang="fr">
    <head>
    <title>Correspondances</title>
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <meta http-equiv="expires" content="-1">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="pragma" content="no-cache">
    <script type="text/javascript" language="javascript" src="http://www.b-rail.be/js/menu/sniffer.js"></script>
    <script type="text/javascript" src="/hafas/js/hafas_standard.js"></script>
    <script type="text/javascript" src="/hafas/js/hafas_standard_calendar.js"></script>
    <link rel="stylesheet" type="text/css" href="/hafas/css/hafas_standard.css">
    </head>
    <body onLoad="">
    <table id="hafas">
    <tr>
    <td>
    <a name="top"></a>
    <!--BEGIN TOP-->
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td width="76" bgcolor="#4CBCD7"><a href="http://www.b-rail.be/nat/F/timetables/"><img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_timetables.gif" align="center" alt="horaires" name="freeanchor" width="70" height="32" border="0"></a></td>
    <td width="59" bgcolor="#4CBCD7"><a href="http://www.b-rail.be/nat/F/tarifs/"><img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_tarifs.gif" align="center" alt="tarifs" name="freeanchor" width="53" height="32" border="0"></a></td>
    <td width="114" bgcolor="#4CBCD7"><a href="http://www.b-rail.be/nat/F/practical/"><img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_practical.gif" align="center" alt="info pratiques" name="freeanchor" width="108" height="32" border="0"></a></td>
    <td width="105" bgcolor="#4CBCD7"><a href="http://www.b-rail.be/nat/F/mynmbs/"><img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_mynmbs.gif" align="center" alt="la SNCB et vous" name="freeanchor" width="98" height="32" border="0"></a></td>
    <td width="82" bgcolor="#4CBCD7"><a href="http://www.b-rail.be/nat/F/enterprises/"><img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_enterprise.gif" align="center" alt="Entreprises" name="freeanchor" width="76" height="32" border="0"></a></td>
    <td width="96" bgcolor="#4CBCD7"><a href="http://www.b-rail.be/nat/F/partners/"><img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_partner.gif" align="center" alt="Partenaires" name="freeanchor" width="90" height="32" border="0"></a></td>
    <td align="right" bgcolor="#4CBCD7"><table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td><a href="http://www.b-rail.be/int/F/"><img src="http://www.b-rail.be/main/F/assets/images/interface/navigation/navn_europe.gif" alt="voyager en Europe" width="112" height="16" hspace="0" vspace="0" border="0"></a><a href="http://www.bcargo.be/F/"><img src="http://www.b-rail.be/main/F/assets/images/interface/navigation/navn_cargo.gif" alt="Marchandises" width="112" height="16" hspace="0" vspace="0" border="0"></a></td>
    </tr>
    <tr>
    <td><a href="http://www.b-rail.be/corporate/F/"><img src="http://www.b-rail.be/main/F/assets/images/interface/navigation/navn_nmbs.gif" alt="La SNCB" width="112" height="16" hspace="0" vspace="0" border="0"></a><a href="http://www.b-rail.be/corp/F/"><img src="http://www.b-rail.be/main/F/assets/images/interface/navigation/navn_group.gif" alt="Le groupe SNCB" width="112" height="16" hspace="0" vspace="0" border="0"></a></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td style="background: url(/hafas/img/customer_top_flash_bg.gif) top right no-repeat;">
    <SCRIPT type="text/javascript" language="javascript">var jslang='F';</SCRIPT>
    <img src="http://www.b-rail.be/nat/F/assets/flash/hp_top_nat.jpg" alt="" width="760" height="114" border="0" usemap="#langmap">
    </td>
    </tr>
    </table>
    <map name="langmap" id="langmap">
    <area shape="rect" coords="502,95,595,110" href="http://hari.b-holding.be/Hafas/bin/query.exe/fn?" alt="Fran&#231;ais">
    <area shape="rect" coords="681,95,704,110" href="http://hari.b-holding.be/Hafas/bin/query.exe/nn?" alt="Nederlands">
    <area shape="rect" coords="708,95,727,110" href="http://hari.b-holding.be/Hafas/bin/query.exe/dn?" alt="Deutsch">
    <area shape="rect" coords="731,95,752,110" href="http://hari.b-holding.be/Hafas/bin/query.exe/en?" alt="English">
    <area shape="rect" coords="604,18,743,79" href="http://www.b-rail.be/main/F/" alt="Home">
    </map>
    <!--
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td class="crumbs">Horaires</td>
    </tr>
    <tr>
    <td><img src="http://www.b-rail.be/nat/assets/images/interface/transparant.gif" alt="" width="1" height="5"></td>
    </tr>
    </table>
    -->
    <!--END TOP-->
    <table class="hafasSlider" cellspacing="0" summary="">
    <tr>
    <td class="activeslider"><a href="http://hari.b-holding.be/hafas/bin/query.exe/fn?">Horaires&nbsp;Nationaux</a></td>
    <td class="slider"><a href="http://hari.b-holding.be/hafas/bin/query.exe/fn?performGis=yes&SetGlobalOptionGO_mapSearch=ACTIVE&REQMapFixedMap=1&">Carte</a></td>
    <td class="slider"><a href="http://hari.b-holding.be/hafas/bin/stboard.exe/fn?">Affiches jaunes / affiches blanches</a></td>
    <td class="slider"><a href="http://www.b-rail.be/nat/F/popup/timetables/help/index.php" target ="_blank">Besoin d'aide ?</a></td>
    <td class="slider"><a href="http://p2w-hari.b-holding.be/p2w/query-p2w.exe/fn?whichTask=pf&">Brochure Horaire Personnelle</a></td>
    <td class="changeLanguage borderbottom"></td></tr>
    </table>
    <table class="hafasHeader" cellspacing="0" summary="">
    <tr>
    <td class="pagetitle">
    Demande d'Horaire
    <!--<br> <font color="#FF0000">Attention : action de gr&#232;ve du 29/04 &#224; 22.00h au 30/04 &#224; 22.00h. <a href ="http://www.b-rail.be/php/news/index.php?lang=F&task=view&id=569" target="_blank">Plus d'info ?</a></font>-->
    </td>
    <td class="pagetitle right">&nbsp;</td>
    </tr>
    </table>
    <table class="hafasContentTable" cellspacing="0" summary="">
    <tr>
    <td class="hafasContentTable">
    <form action="http://hari.b-holding.be/hafas/bin/query.exe/fn?seqnr=1&ident=hl.0213614.1240900932&OK#focus" name="formular" method="post" style="display:inline">
    <input type="hidden" name="queryPageDisplayed" value="yes">
    <div class="separator" style="margin-bottom:5px;">Itin&#233;raire <input type="image" name="start" value="Rechercher" src="/hafas/img/ad.gif" height="10" width="20" alt="" /></div><table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th>
    <label for="from" accesskey="f">De:</label>
    </th>
    <td class="first">
    <input type="hidden" name="REQ0JourneyStopsS0A" value="1" />
    Gare/Arr&#234;t (tous)
    </td>
    <td class="second">
    <select id="from" class="error" name="REQ0JourneyStopsS0K" title="Confirmez votre s&#233;lection (SNCB:[B]&nbsp;&nbsp;&nbsp;&nbsp;TEC:[T]&nbsp;&nbsp;&nbsp;&nbsp;De Lijn : [DL]&nbsp;&nbsp;&nbsp;&nbsp;STIB :[BRU])">
    <option value="S-0N1">Tournai [B] </option>
    <option value="S-0N2">TOURNAI SNCB [T] </option>
    <option value="S-0N3">TOURNAI D&#244;me [T] </option>
    <option value="S-0N4">TOURNAI Bo&#235;l [T] </option>
    <option value="S-0N5">TOURNAI D&#233;p&#244;t [T] </option>
    <option value="S-0N6">TOURNAI Meura [T] </option>
    <option value="S-0N7">TOURNAI Bavaro [T] </option>
    <option value="S-0N8">TOURNAI Racing [T] </option>
    <option value="S-0N9">TOURNAI Dorcas [T] </option>
    <option value="S-0N10">TOURNAI Viaduc [T] </option>
    <option value="S-0N11">TOURNAI Marvis [T] </option>

    </select>
    </td>
    <td>
    <input type="submit" class="button" name="SetGlobalOptionGO_callMapFromPosition=tp_query_from&performGis=1&REQMapWidth=450&REQMapHeight=450&REQMapFixedMap=1&OK" value="Carte" style="width:50px;" />
    </td>
    <td>&nbsp;</td>
    </tr>
    </table>
    <table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th>&nbsp;</th>
    <td class="errormessage">
    Confirmez votre s&#233;lection (SNCB:[B]&nbsp;&nbsp;&nbsp;&nbsp;TEC:[T]&nbsp;&nbsp;&nbsp;&nbsp;De Lijn : [DL]&nbsp;&nbsp;&nbsp;&nbsp;STIB :[BRU])
    </td>
    </tr>
    </table>
    <table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th>
    <label for="to" accesskey="t">&#192;:</label>
    </th>
    <td class="first">
    <input type="hidden" name="REQ0JourneyStopsZ0A" value="1" />
    Gare/Arr&#234;t (tous)
    </td>
    <td class="second">
    <select id="to" class="error" name="REQ0JourneyStopsZ0K" title="Confirmez votre s&#233;lection (SNCB:[B]&nbsp;&nbsp;&nbsp;&nbsp;TEC:[T]&nbsp;&nbsp;&nbsp;&nbsp;De Lijn : [DL]&nbsp;&nbsp;&nbsp;&nbsp;STIB :[BRU])">
    <option value="S-1N1">Leuze [B] </option>
    <option value="S-1N2">LEUZE Garage [T] </option>
    <option value="S-1N3">LEUZE Pharmacie [T] </option>
    <option value="S-1N4">LEUZE Route De Dhuy [T] </option>
    <option value="S-1N5">LEUZE Rue Du Buisson [T] </option>
    <option value="S-1N6">LEUZE-EN-HAINAUT SNCB [T] </option>
    <option value="S-1N7">LEUZE Rue Des Bruy&#232;res [T] </option>
    <option value="S-1N8">LEUZE Rue Des Chardonnerets [T] </option>
    </select>
    </td>
    <td>
    <input type="submit" class="button" name="SetGlobalOptionGO_callMapFromPosition=tp_query_to&performGis=1&REQMapWidth=450&REQMapHeight=450&REQMapFixedMap=1&OK" value="Carte" style="width:50px;" />
    </td>
    <td><input type="submit" class="button" name="morevias" value="Via" style="width:40px;" accesskey="v" /></td>
    </tr>
    </table>
    <table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th>&nbsp;</th>
    <td class="errormessage">
    Confirmez votre s&#233;lection (SNCB:[B]&nbsp;&nbsp;&nbsp;&nbsp;TEC:[T]&nbsp;&nbsp;&nbsp;&nbsp;De Lijn : [DL]&nbsp;&nbsp;&nbsp;&nbsp;STIB :[BRU])
    </td>
    </tr>
    </table>
    <div class="separator" style="margin-top:10px; margin-bottom:5px;">Temps</div><table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th><label for="date" accesskey="d">Date:</label></th>
    <td class="first">
    <input id="date" type="text" name="REQ0JourneyDate" size="14" maxlength="14" value="Ma, 28/04/09" onblur="checkWeekday('0','0','')" title="">
    </td>
    <td>
    <script type="text/javascript">
    <!--
    document.write('<input type="button" class="button" name="" value="&#xAB;" onclick="changeDate(\'-1\',\'0\',\'\');" style="width:15px;" />');
    document.write('<input type="button" class="button" name="" value="&#xBB;" onclick="changeDate(\'+1\',\'0\',\'\');" style="width:15px;" />');
    document.write('<input type="button" class="button" name="" value="Calendrier" onclick="openPopup(\'http://hari.b-holding.be/hafas/bin/help.exe/fn?seqnr=1&ident=hl.0213614.1240900932&tpl=calendar&form=formular&field=REQ0JourneyDate\',\'Kalender0\',100,500,250,320,\'000000\');" style="width:65px;" />');
    document.write('<input type=\"hidden\" name=\"wDayExt0\" value=\"Lu|Ma|Me|Je|Ve|Sa|Di\">');
    // -->
    </script>
    </td>
    </tr>
    <tr>
    <th><nobr><label for="time" accesskey="c">Heure:</label></nobr></th>
    <td>
    <nobr>
    <input id="time" type="text" name="REQ0JourneyTime" value="09:30" size="14" maxlength="5" title="">
    </nobr>
    </td>
    <td>
    <span style="display:none"><label for="timesel" accesskey="a">D&#233;part/Arriv&#233;e:</label></span>
    <select id="timesel" style="width:90px;" name="REQ0HafasSearchForw">
    <option value="1" selected="selected">D&#233;part</option>
    <option value="0" >Arriv&#233;e</option>
    </select>
    </td>
    </tr>
    </table>
    <div class="separator" style="margin-top:10px; margin-bottom:5px;">Choisissez un moyen de transport</div><table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th><label for="products" accesskey="p">Moyens de transport:</label></th>
    <td>
    <select id="products" name="REQ0JourneyProduct_prod_list">
    <option value="1:1111111111111111" selected>Tous les moyens de transports</option>
    <option value="2:0111111111111111" >Sans les trains internationaux</option>
    <option value="3:0111111000000000" >Seulement les trains</option>
    <option value="4:0000111111111111" >Sans les trains internationaux/IC/IR/P/ICT</option>
    <option value="5:0000000011111111" >Seulement les transports locaux</option>
    </select>
    </td>
    <td>
    <input type="submit" class="button" name="advancedSearchMode" value="Plus" style="width:80px;" accesskey="m" />
    </td>
    </tr>
    </table>
    <div class="separatingLine" style="margin-top:15px;"><hr style="display:none;" /></div>
    <table class="hafasButtons" cellspacing="0" summary=""><tr><td><input type="submit" class="buttonEmphasized" name="start" value="Confirmer" style="width:155px;" accesskey="s" /><input type="submit" class="button" name="newrequest" value="Nouvelle demande" style="width:110px;" accesskey="n" /></td></tr></table><div class="separatingLine" style="margin-bottom:15px;"><hr style="display:none;" /></div>
    <div class="separator"></div>
    <br />
    <a title="Folder" class="button" href="http://hari.b-holding.be/Hafas/folders/20081214/G/lst.htm" target="infoMap" onclick="openPopup('about:blank','infoMap',20,150,800,700,'001000');">Folder</a>
    <a title="Info travaux" class="button" href="http://werfinftrv.infrabel.be/map.aspx?lang=0&" target="infoTravel">Info travaux</a>
    <a title="Info gare" class="button" href="http://hari.b-holding.be/infsta/StationSearch.aspx?lang=0" target="_Blank">Info gare</a>
    <a title="Disponibilit&#233;" class="button" href="http://hari.b-holding.be/Hafas/msg/validitefr.html" target="_Blank">Disponibilit&#233;</a>
    <a title="Carte r&#233;seau" class="button" href="http://hari.b-holding.be/Hafas/folders/map_fr.htm" target="_Blank">Carte r&#233;seau</a>
    <!--<a title="Affiches jaunes" class="button" href="http://hari.b-holding.be/Hafas/folders/20081214/YP/yel.pdf" target="_Blank">Affiches jaunes</a>-->
    </form>
    </td>
    </tr>
    </table>
    <table class="hafasFooter" cellspacing="0" summary="">
    <tr>
    <td>
    <div>
    Horaire valable du 14/12/08 jusqu'au 12/12/09.
    <br />
    Logiciel/Donn&#233;es: HAFAS 5.24.B-RAIL.4.7/5.24.B-RAIL.4.7b - 28/04/09
    <br />
    &#169; 2007
    <a href="http://www.hacon.de/hacon_e/index.shtml">HaCon Ingenieurgesellschaft mbH</a>.
    Les informations sont publi&#233;es sans responsabilit&#233;.
    <a href="http://www.b-rail.be/main/F/legal/index.php" target ="_blank">Communication juridique importante</a>
    <br />
    </div>
    </td>
    </tr>
    </table>
    <!--BEGIN BOTTOM-->
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" valign="top">
    <span class="footer"><a href="http://www.b-rail.be/main/F/contact/" target="_blank">Contactez-nous</a>
    | <a href="http://www.b-rail.be/main/F/legal/" target="_blank">Infos juridiques</a></span>
    </td>
    </tr>
    </table>
    <!--END BOTTOM-->
    </td>
    </tr>
    </table>
    </body>
    </html>
    0
  • Hi djmic313131,

    From what I can see, what is probably happening is that the content that is being return (namely the HTML provided) is not compliant with caja. From a cursory look, a few of the major items are:
    - You can't have external JS / CSS links, everything needs to be inline
    - document.write is restricted
    - you will be returning just the content, you won't need the entire HTML structure (html / head / body / etc.)

    Let me know if that helps, we can work on further errors once that is resolved.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    Twitter: jcleblanc
    0
  • QUOTE (Jon @ Apr 29 2009, 09:03 AM) <{POST_SNAPBACK}>
    Hi djmic313131,

    From what I can see, what is probably happening is that the content that is being return (namely the HTML provided) is not compliant with caja. From a cursory look, a few of the major items are:
    - You can't have external JS / CSS links, everything needs to be inline
    - document.write is restricted
    - you will be returning just the content, you won't need the entire HTML structure (html / head / body / etc.)

    Let me know if that helps, we can work on further errors once that is resolved.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    Twitter: jcleblanc



    Hi,

    thank you for the reply.

    I tried to remove the different tags using regex but the function replace () doesn't work.

    an example:

    CODE
    var x = response.text;
    var exp = new RegExp("<head>(.*)</head>","gi"); //regex to delete head tags
    alert(exp.test(x)); //return true
    x = x.replace(exp, "");
    alert(x);


    it find my head tags but the tags aren't deleted.

    thank you
    0
  • Regarding your post that just seemed to have been deleted (not sure if you did that):

    When I put the code directly into the canvas I see these errors:

    CODE
    stdin:90: ttp://ic.apps.yahoo.com/v1/cache/public/iorv.KT1vbtgFbpup2U.wzpb1FsagQ--" height
    ^^^^^^
    WARNING: stdin:90+133 - 139: unknown attribute height on input

    stdin:90: ps.yahoo.com/v1/cache/public/iorv.KT1vbtgFbpup2U.wzpb1FsagQ--" height="10" width
    ^^^^^
    WARNING: stdin:90+145 - 150: unknown attribute width on input

    stdin:95: <label for="from" accesskey="f">De:</label>
    ^^^^^^^^^
    WARNING: stdin:95+19 - 28: attribute accesskey is not allowed on tag label

    stdin:171: <label for="to" accesskey="t">&#192;:</label>
    ^^^^^^^^^
    WARNING: stdin:171+17 - 26: attribute accesskey is not allowed on tag label

    stdin:227: submit" class="button" name="morevias" value="Via" style="width:40px;" accesskey
    ^^^^^^^^^
    WARNING: stdin:227+85 - 94: attribute accesskey is not allowed on tag input

    stdin:242: <label for="date" accesskey="d">Date:</label>
    ^^^^^^^^^
    WARNING: stdin:242+19 - 28: attribute accesskey is not allowed on tag label

    stdin:254: <label for="time" accesskey="c">Heure:</label>
    ^^^^^^^^^
    WARNING: stdin:254+19 - 28: attribute accesskey is not allowed on tag label

    stdin:261: <label for="timesel" accesskey="a">D&#233;part/Arriv&#233;e:</label>
    ^^^^^^^^^
    WARNING: stdin:261+22 - 31: attribute accesskey is not allowed on tag label

    stdin:274: <label for="products" accesskey="p">Moyens de transport:</label>
    ^^^^^^^^^
    WARNING: stdin:274+23 - 32: attribute accesskey is not allowed on tag label

    stdin:286: ss="button" name="advancedSearchMode" value="Plus" style="width:80px;" accesskey
    ^^^^^^^^^
    WARNING: stdin:286+96 - 105: attribute accesskey is not allowed on tag input

    stdin:296: "buttonEmphasized" name="start" value="Confirmer" style="width:155px;" accesskey
    ^^^^^^^^^
    WARNING: stdin:296+99 - 108: attribute accesskey is not allowed on tag input

    stdin:297: utton" name="newrequest" value="Nouvelle demande" style="width:110px;" accesskey
    ^^^^^^^^^
    WARNING: stdin:297+101 - 110: attribute accesskey is not allowed on tag input


    There are a few things to note here:
    - Custom tags such as accessKey are not allowed
    - If you run into issues with things not being allowed, refer to the W3C site for specific information on how you should lay out content
    - All image url's must be absolute, not relative paths

    Those are a few things I see off hand.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    Twitter: jcleblanc
    0
  • QUOTE (Jon @ May 5 2009, 12:30 PM) <{POST_SNAPBACK}>
    Regarding your post that just seemed to have been deleted (not sure if you did that):

    When I put the code directly into the canvas I see these errors:

    CODE
    stdin:90: ttp://ic.apps.yahoo.com/v1/cache/public/iorv.KT1vbtgFbpup2U.wzpb1FsagQ--" height
    ^^^^^^
    WARNING: stdin:90+133 - 139: unknown attribute height on input

    stdin:90: ps.yahoo.com/v1/cache/public/iorv.KT1vbtgFbpup2U.wzpb1FsagQ--" height="10" width
    ^^^^^
    WARNING: stdin:90+145 - 150: unknown attribute width on input

    stdin:95: <label for="from" accesskey="f">De:</label>
    ^^^^^^^^^
    WARNING: stdin:95+19 - 28: attribute accesskey is not allowed on tag label

    stdin:171: <label for="to" accesskey="t">&#192;:</label>
    ^^^^^^^^^
    WARNING: stdin:171+17 - 26: attribute accesskey is not allowed on tag label

    stdin:227: submit" class="button" name="morevias" value="Via" style="width:40px;" accesskey
    ^^^^^^^^^
    WARNING: stdin:227+85 - 94: attribute accesskey is not allowed on tag input

    stdin:242: <label for="date" accesskey="d">Date:</label>
    ^^^^^^^^^
    WARNING: stdin:242+19 - 28: attribute accesskey is not allowed on tag label

    stdin:254: <label for="time" accesskey="c">Heure:</label>
    ^^^^^^^^^
    WARNING: stdin:254+19 - 28: attribute accesskey is not allowed on tag label

    stdin:261: <label for="timesel" accesskey="a">D&#233;part/Arriv&#233;e:</label>
    ^^^^^^^^^
    WARNING: stdin:261+22 - 31: attribute accesskey is not allowed on tag label

    stdin:274: <label for="products" accesskey="p">Moyens de transport:</label>
    ^^^^^^^^^
    WARNING: stdin:274+23 - 32: attribute accesskey is not allowed on tag label

    stdin:286: ss="button" name="advancedSearchMode" value="Plus" style="width:80px;" accesskey
    ^^^^^^^^^
    WARNING: stdin:286+96 - 105: attribute accesskey is not allowed on tag input

    stdin:296: "buttonEmphasized" name="start" value="Confirmer" style="width:155px;" accesskey
    ^^^^^^^^^
    WARNING: stdin:296+99 - 108: attribute accesskey is not allowed on tag input

    stdin:297: utton" name="newrequest" value="Nouvelle demande" style="width:110px;" accesskey
    ^^^^^^^^^
    WARNING: stdin:297+101 - 110: attribute accesskey is not allowed on tag input


    There are a few things to note here:
    - Custom tags such as accessKey are not allowed
    - If you run into issues with things not being allowed, refer to the W3C site for specific information on how you should lay out content
    - All image url's must be absolute, not relative paths

    Those are a few things I see off hand.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    Twitter: jcleblanc



    Hi,

    I deleted the errors (accessKey + height + width and no relative url) but Firebug always displays:

    d is undefined

    CODE
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
    <table id="hafas">
    <tr>
    <td>
    <a name="top"></a>
    <!--BEGIN TOP-->
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td width="76" bgcolor="#4CBCD7">
    <a href="http://www.b-rail.be/nat/F/timetables/">
    <img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_timetables.gif" align="center" alt="horaires" name="freeanchor" width="70" height="32" border="0">
    </a>
    </td>
    <td width="59" bgcolor="#4CBCD7">
    <a href="http://www.b-rail.be/nat/F/tarifs/">
    <img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_tarifs.gif" align="center" alt="tarifs" name="freeanchor" width="53" height="32" border="0">
    </a>
    </td>
    <td width="114" bgcolor="#4CBCD7">
    <a href="http://www.b-rail.be/nat/F/practical/">
    <img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_practical.gif" align="center" alt="info pratiques" name="freeanchor" width="108" height="32" border="0">
    </a>
    </td>
    <td width="105" bgcolor="#4CBCD7">
    <a href="http://www.b-rail.be/nat/F/mynmbs/"><img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_mynmbs.gif" align="center" alt="la SNCB et vous" name="freeanchor" width="98" height="32" border="0">
    </a>
    </td>
    <td width="82" bgcolor="#4CBCD7">
    <a href="http://www.b-rail.be/nat/F/enterprises/"><img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_enterprise.gif" align="center" alt="Entreprises" name="freeanchor" width="76" height="32" border="0">
    </a>
    </td>
    <td width="96" bgcolor="#4CBCD7">
    <a href="http://www.b-rail.be/nat/F/partners/"><img src="http://www.b-rail.be/nat/F/assets/images/interface/navigation/nav_partner.gif" align="center" alt="Partenaires" name="freeanchor" width="90" height="32" border="0">
    </a>
    </td>
    <td align="right" bgcolor="#4CBCD7">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td>
    <a href="http://www.b-rail.be/int/F/">
    <img src="http://www.b-rail.be/main/F/assets/images/interface/navigation/navn_europe.gif" alt="voyager en Europe" width="112" height="16" hspace="0" vspace="0" border="0">
    </a>
    <a href="http://www.bcargo.be/F/"><img src="http://www.b-rail.be/main/F/assets/images/interface/navigation/navn_cargo.gif" alt="Marchandises" width="112" height="16" hspace="0" vspace="0" border="0">
    </a>
    </td>
    </tr>
    <tr>
    <td>
    <a href="http://www.b-rail.be/corporate/F/"><img src="http://www.b-rail.be/main/F/assets/images/interface/navigation/navn_nmbs.gif" alt="La SNCB" width="112" height="16" hspace="0" vspace="0" border="0">
    </a>
    <a href="http://www.b-rail.be/corp/F/"><img src="http://www.b-rail.be/main/F/assets/images/interface/navigation/navn_group.gif" alt="Le groupe SNCB" width="112" height="16" hspace="0" vspace="0" border="0">
    </a>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td style="background: url(/hafas/img/customer_top_flash_bg.gif) top right no-repeat;">
    <SCRIPT type="text/javascript" language="javascript">var jslang='F';</SCRIPT>
    <img src="http://www.b-rail.be/nat/F/assets/flash/hp_top_nat.jpg" alt="" width="760" height="114" border="0" usemap="#langmap">
    </td>
    </tr>
    </table>
    <map name="langmap" id="langmap"> <area shape="rect" coords="502,95,595,110" href="http://hari.b-holding.be/Hafas/bin/query.exe/fn?" alt="Fran&#231;ais"> <area shape="rect" coords="681,95,704,110" href="http://hari.b-holding.be/Hafas/bin/query.exe/nn?" alt="Nederlands">
    <area shape="rect" coords="708,95,727,110" href="http://hari.b-holding.be/Hafas/bin/query.exe/dn?" alt="Deutsch">
    <area shape="rect" coords="731,95,752,110" href="http://hari.b-holding.be/Hafas/bin/query.exe/en?" alt="English">
    <area shape="rect" coords="604,18,743,79" href="http://www.b-rail.be/main/F/" alt="Home">
    </map>
    <!-- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td class="crumbs">Horaires</td>
    </tr>
    <tr>
    <td>
    <img src="http://www.b-rail.be/nat/assets/images/interface/transparant.gif" alt="" width="1" height="5">
    </td>
    </tr>
    </table> -->
    <!--END TOP-->
    <table class="hafasSlider" cellspacing="0" summary="">
    <tr>
    <td class="activeslider">
    <a href="http://hari.b-holding.be/hafas/bin/query.exe/fn?">Horaires&nbsp;Nationaux</a>
    </td>
    <td class="slider">
    <a href="http://hari.b-holding.be/hafas/bin/query.exe/fn?performGis=yes&SetGlobalOptionGO_mapSearch=ACTIVE&REQMapFixedMap=1&">
    Carte
    </a>
    </td>
    <td class="slider">
    <a href="http://hari.b-holding.be/hafas/bin/stboard.exe/fn?">
    Affiches jaunes / affiches blanches
    </a>
    </td>
    <td class="slider">
    <a href="http://www.b-rail.be/nat/F/popup/timetables/help/index.php" target ="_blank">
    Besoin d'aide ?
    </a>
    </td>
    <td class="slider">
    <a href="http://p2w-hari.b-holding.be/p2w/query-p2w.exe/fn?whichTask=pf&">
    Brochure Horaire Personnelle
    </a>
    </td>
    <td class="changeLanguage borderbottom">
    </td>
    </tr>
    </table>
    <table class="hafasHeader" cellspacing="0" summary="">
    <tr>
    <td class="pagetitle">
    Demande d'Horaire
    <!--
    <br>
    <font color="#FF0000">
    Attention : action de gr&#232;ve du 29/04 &#224; 22.00h au 30/04 &#224; 22.00h.
    <a href ="http://www.b-rail.be/php/news/index.php?lang=F&task=view&id=569" target="_blank">
    Plus d'info ?
    </a>
    </font>
    -->
    </td>
    <td class="pagetitle right">&nbsp;
    </td>
    </tr>
    </table>
    <table class="hafasContentTable" cellspacing="0" summary="">
    <tr>
    <td class="hafasContentTable">
    <form action="http://hari.b-holding.be/hafas/bin/query.exe/fn?seqnr=1&ident=0c.0408812.1241593249&OK#focus" name="formular" method="post" style="display:inline">
    <input type="hidden" name="queryPageDisplayed" value="yes">
    <div class="separator" style="margin-bottom:5px;">
    Itin&#233;raire
    </div>
    <table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th>
    <label for="from" >
    De:
    </label>
    </th>
    <td class="first">
    <input type="hidden" name="REQ0JourneyStopsS0A" value="1" /> Gare/Arr&#234;t (tous)
    </td>
    <td class="second">
    <select id="from" class="error" name="REQ0JourneyStopsS0K" title="Confirmez votre s&#233;lection (SNCB:[B]&nbsp;&nbsp;&nbsp;&nbsp;TEC:[T]&nbsp;&nbsp;&nbsp;&nbsp;De Lijn : [DL]&nbsp;&nbsp;&nbsp;&nbsp;STIB :[BRU])">
    <option value="S-0N1">Tournai [B] </option>
    <option value="S-0N2">TOURNAI SNCB [T] </option>
    <option value="S-0N3">TOURNAI D&#244;me [T] </option>
    <option value="S-0N4">TOURNAI Bo&#235;l [T] </option>
    <option value="S-0N5">TOURNAI D&#233;p&#244;t [T] </option>
    <option value="S-0N6">TOURNAI Meura [T] </option>
    <option value="S-0N7">TOURNAI Bavaro [T] </option>
    <option value="S-0N8">TOURNAI Racing [T] </option>
    <option value="S-0N9">TOURNAI Dorcas [T] </option>
    <option value="S-0N10">TOURNAI Viaduc [T] </option>
    <option value="S-0N11">TOURNAI Prison [T] </option>
    <option value="S-0N12">TOURNAI Eureka [T] </option>
    <option value="S-0N13">TOURNAI Marvis [T] </option>
    <option value="S-0N14">TOURNAI Beffroi [T] </option>
    <option value="S-0N15">TOURNAI Hospice [T] </option>
    <option value="S-0N16">TOURNAI Romulus [T] </option>
    <option value="S-0N17">TOURNAI Ets Neu [T] </option>
    <option value="S-0N18">TOURNAI Red Star [T] </option>
    <option value="S-0N19">TOURNAI P&#233;diatrie [T] </option>
    <option value="S-0N20">TOURNAI Belle-Vue [T] </option>
    <option value="S-0N21">TOURNAI Don Bosco [T] </option>
    <option value="S-0N22">TOURNAI L' Orient [T] </option>
    <option value="S-0N23">TOURNAI Citadelle [T] </option>
    <option value="S-0N24">TOURNAI Le Tr&#232;fle [T] </option>
    <option value="S-0N25">TOURNAI Rond Point [T] </option>
    <option value="S-0N26">TOURNAI Pensionnat [T] </option>
    <option value="S-0N27">TOURNAI Guinguette [T] </option>
    <option value="S-0N28">TOURNAI Rue Royale [T] </option>
    <option value="S-0N29">TOURNAI Rue Mauroy [T] </option>
    <option value="S-0N30">TOURNAI Rue Cousin [T] </option>
    <option value="S-0N31">TOURNAI Saint-Paul [T] </option>
    <option value="S-0N32">TOURNAI Pont Morel [T] </option>
    <option value="S-0N33">TOURNAI Saint-Brice [T] </option>
    <option value="S-0N34">TOURNAI Grand-Place [T] </option>
    <option value="S-0N35">TOURNAI 7 Fontaines [T] </option>
    <option value="S-0N36">TOURNAI Vert Bocage [T] </option>
    <option value="S-0N37">TOURNAI Rue Doublet [T] </option>
    <option value="S-0N38">TOURNAI Pont &#224; Rieu [T] </option>
    <option value="S-0N39">TOURNAI Rue Du Nord [T] </option>
    <option value="S-0N40">TOURNAI Sacr&#233; Coeur [T] </option>
    <option value="S-0N41">TOURNAI Les Erables [T] </option>
    <option value="S-0N42">TOURNAI Tunnel SNCB [T] </option>
    <option value="S-0N43">TOURNAI Rue Charlier [T] </option>
    <option value="S-0N44">TOURNAI Aqua-Tournai [T] </option>
    <option value="S-0N45">TOURNAI Polyclinique [T] </option>
    <option value="S-0N46">TOURNAI Rue Du Logis [T] </option>
    <option value="S-0N47">TOURNAI Chemin N&#176; 51 [T] </option>
    <option value="S-0N48">TOURNAI Rue Dutrieux [T] </option>
    <option value="S-0N49">TOURNAI Saint Lazare [T] </option>
    <option value="S-0N50">TOURNAI Route D' Ere [T] </option>
    </select>
    </td>
    <td>
    <input type="submit" class="button" name="SetGlobalOptionGO_callMapFromPosition=tp_query_from&performGis=1&REQMapWidth=450&REQMapHeight=450&REQMapFixedMap=1&OK" value="Carte" style="width:50px;" />
    </td>
    <td>&nbsp;
    </td>
    </tr>
    </table>
    <table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th>
    &nbsp;
    </th>
    <td class="errormessage">
    Confirmez votre s&#233;lection (SNCB:[B]&nbsp;&nbsp;&nbsp;&nbsp;TEC:[T]&nbsp;&nbsp;&nbsp;&nbsp;De Lijn : [DL]&nbsp;&nbsp;&nbsp;&nbsp;STIB :[BRU])
    </td>
    </tr>
    </table>
    <table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th>
    <label for="to" >
    &#192;:
    </label>
    </th>
    <td class="first">
    <input type="hidden" name="REQ0JourneyStopsZ0A" value="1" />
    Gare/Arr&#234;t (tous)
    </td>
    <td class="second">
    <select id="to" class="error" name="REQ0JourneyStopsZ0K" title="Confirmez votre s&#233;lection (SNCB:[B]&nbsp;&nbsp;&nbsp;&nbsp;TEC:[T]&nbsp;&nbsp;&nbsp;&nbsp;De Lijn : [DL]&nbsp;&nbsp;&nbsp;&nbsp;STIB :[BRU])">
    <option value="S-1N1">Leuze [B] </option>
    <option value="S-1N2">LEUZE Garage [T] </option>
    <option value="S-1N3">LEUZE Pharmacie [T] </option>
    <option value="S-1N4">LEUZE Route De Dhuy [T] </option>
    <option value="S-1N5">LEUZE Rue Du Buisson [T] </option>
    <option value="S-1N6">LEUZE-EN-HAINAUT SNCB [T] </option>
    <option value="S-1N7">LEUZE Rue Des Bruy&#232;res [T] </option>
    <option value="S-1N8">LEUZE Rue Des Chardonnerets [T] </option>
    <option value="S-1N9">LEUZE Rue Des Pralettes [T] </option>
    <option value="S-1N10">LEUZE-EN-HAINAUT Grand-Place [T] </option>
    <option value="S-1N11">LEUZE-EN-HAINAUT Place Du Jeu De Balle [T] </option>
    <option value="S-1N12">LEUZE-EN-HAINAUT Avenue G&#233;n&#233;ral Jacques [T] </option>
    <option value="S-1N13">LEUZE-EN-HAINAUT Centre &#233;ducatif Saint-Pierre [T] </option>
    <option value="S-1N14">LEUZE-EN-HAINAUT Chauss&#233;e De Tournai [T] </option>
    <option value="S-1N15">LEUZE-EN-HAINAUT Coll&#233;giale Saint-Pierre [T] </option>
    <option value="S-1N16">LEUZE-EN-HAINAUT Gendarmerie [T] </option>
    <option value="S-1N17">LEUZE-EN-HAINAUT Institut Saint-Jean De Die [T] </option>
    <option value="S-1N18">LEUZE-EN-HAINAUT Institut St Jean De Die [T] </option>
    <option value="S-1N19">LEUZE-EN-HAINAUT Institut Technique [T] </option>
    <option value="S-1N20">LEUZE-EN-HAINAUT Le Tierc&#233; [T] </option>
    <option value="S-1N21">LEUZE-EN-HAINAUT Les Joncs [T] </option>
    <option value="S-1N22">LEUZE-EN-HAINAUT Soleil Levant [T] </option>
    <option value="S-1N23">LEUZE-EN-HAINAUT Vieux Leuze [T] </option>
    <option value="S-1N24">LEUZE Notre-Dame Du P&#233;rou [T] </option>
    <option value="S-1N25">LEUZE-EN-HAINAUT Rond Point [T] </option>
    <option value="S-1N26">LEUZE Rue Des M&#233;sanges [T] </option>
    <option value="S-1N27">LONGCHAMPS Route De Leuze [T] </option>
    <option value="S-1N28">DHUY Rue De Leuze [T] </option>
    <option value="S-1N29">SOMME-LEUZE Eglise [T] </option>
    <option value="S-1N30">SOMME-LEUZE &#233;glise [T] </option>
    <option value="S-1N31">ANVAING Carrefour De Leuze [T] </option>
    <option value="S-1N32">RONSE/RENAIX Leuzesesteenweg/Chauss&#233;e De Leuze [T] </option>
    <option value="S-1N33">CHIEVRES Rue De Leuze [T] </option>
    <option value="S-1N34">ELLIGNIES-STE-ANNE Carrefour De Leuze [T] </option>
    <option value="S-1N35">SOMME-LEUZE Carrefour (Route De Durbuy) [T] </option>
    <option value="S-1N36">SOMME-LEUZE Carrefour (rte De Durbuy) [T] </option>
    <option value="S-1N37">SOMME-LEUZE Carrefour Route De Durbuy [T] </option>
    <option value="S-1N38">SOMME-LEUZE Ferme Bailly [T] </option>
    <option value="S-1N39">SOMME-LEUZE Mirlipinpin [T] </option>
    <option value="S-1N40">SOMME-LEUZE Route De Durbuy 11 [T] </option>
    <option value="S-1N41">SOMME-LEUZE Rue De Durbuy [T] </option>
    <option value="S-1N42">SOMME-LEUZE Rue Du Pays Du Roi [T] </option>
    <option value="S-1N43">SOMME-LEUZE Rue Du Pays Du Roi 27 [T] </option>
    <option value="S-1N44">TILLIER Route De Leuze [T] </option>
    <option value="S-1N45">Leuz </option>
    </select>
    </td>
    <td>
    <input type="submit" class="button" name="SetGlobalOptionGO_callMapFromPosition=tp_query_to&performGis=1&REQMapWidth=450&REQMapHeight=450&REQMapFixedMap=1&OK" value="Carte" style="width:50px;" />
    </td>
    <td>
    <input type="submit" class="button" name="morevias" value="Via" style="width:40px;" />
    </td>
    </tr>
    </table>
    <table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th>
    &nbsp;
    </th>
    <td class="errormessage">
    Confirmez votre s&#233;lection (SNCB:[B]&nbsp;&nbsp;&nbsp;&nbsp;TEC:[T]&nbsp;&nbsp;&nbsp;&nbsp;De Lijn : [DL]&nbsp;&nbsp;&nbsp;&nbsp;STIB :[BRU])
    </td>
    </tr>
    </table>
    <div class="separator" style="margin-top:10px; margin-bottom:5px;">
    Temps
    </div>
    <table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th>
    <label for="date" >
    Date:
    </label>
    </th>
    <td class="first">
    <input id="date" type="text" name="REQ0JourneyDate" size="14" maxlength="14" value="Me, 06/05/09" onblur="checkWeekday('0','0','')" title="">
    </td>
    <td>
    <script type="text/javascript">
    <!-- // -->
    </script>
    </td>
    </tr>
    <tr>
    <th>
    <label for="time" >
    Heure:
    </label>
    </th>
    <td>
    <input id="time" type="text" name="REQ0JourneyTime" value="08:55" size="14" maxlength="5" title="">
    </td>
    <td>
    <span style="display:none">
    <label for="timesel" >
    D&#233;part/Arriv&#233;e:
    </label>
    </span>
    <select id="timesel" style="width:90px;" name="REQ0HafasSearchForw">
    <option value="1" selected="selected">D&#233;part</option>
    <option value="0" >Arriv&#233;e</option>
    </select>
    </td>
    </tr>
    </table>
    <div class="separator" style="margin-top:10px; margin-bottom:5px;">
    Choisissez un moyen de transport
    </div>
    <table class="hafasQuery" cellspacing="0" summary="">
    <tr>
    <th>
    <label for="products" >
    Moyens de transport:
    </label>
    </th>
    <td>
    <select id="products" name="REQ0JourneyProduct_prod_list">
    <option value="1:1111111111111111" >Tous les moyens de transports</option>
    <option value="2:0111111111111111" >Sans les trains internationaux</option>
    <option value="3:0111111000000000" >Seulement les trains</option>
    <option value="4:0000111111111111" >Sans les trains internationaux/IC/IR/P/ICT</option>
    <option value="5:0000000011111111" >Seulement les transports locaux
    </option>
    </select>
    </td>
    <td>
    <input type="submit" class="button" name="advancedSearchMode" value="Plus" style="width:80px;" />
    </td>
    </tr>
    </table>
    <div class="separatingLine" style="margin-top:15px;">
    <hr style="display:none;" />
    </div>
    <table class="hafasButtons" cellspacing="0" summary="">
    <tr>
    <td><input type="submit" class="buttonEmphasized" name="start" value="Confirmer" style="width:155px;" />
    <input type="submit" class="button" name="newrequest" value="Nouvelle demande" style="width:110px;" />
    </td>
    </tr>
    </table>
    <div class="separatingLine" style="margin-bottom:15px;">
    <hr style="display:none;" />
    </div>
    <div class="separator">
    </div>
    <br />
    <a title="Folder" class="button" href="http://hari.b-holding.be/Hafas/folders/20081214/G/lst.htm" onclick="openPopup('about:blank','infoMap',20,150,800,700,'001000');">
    Folder
    </a>
    <a title="Info travaux" class="button" href="http://werfinftrv.infrabel.be/map.aspx?lang=0&" >Info travaux</a>
    <a title="Info gare" class="button" href="http://hari.b-holding.be/infsta/StationSearch.aspx?lang=0" target="_Blank">
    Info gare
    </a>
    <a title="Disponibilit&#233;" class="button" href="http://hari.b-holding.be/Hafas/msg/validitefr.html" target="_Blank">
    Disponibilit&#233;
    </a>
    <a title="Carte r&#233;seau" class="button" href="http://hari.b-holding.be/Hafas/folders/map_fr.htm" target="_Blank">
    Carte r&#233;seau
    </a>
    <!--
    <a title="Affiches jaunes" class="button" href="http://hari.b-holding.be/Hafas/folders/20081214/YP/yel.pdf" target="_Blank">
    Affiches jaunes
    </a>
    -->
    </form>
    </td>
    </tr>
    </table>
    <table class="hafasFooter" cellspacing="0" summary="">
    <tr>
    <td>
    <div> Horaire valable du 14/12/08 jusqu'au 12/12/09.
    <br />
    Logiciel/Donn&#233;es: HAFAS 5.24.B-RAIL.4.7/5.24.B-RAIL.4.7b - 06/05/09
    <br />
    &#169; 2007
    <a href="http://www.hacon.de/hacon_e/index.shtml">
    HaCon Ingenieurgesellschaft mbH
    </a>
    Les informations sont publi&#233;es sans responsabilit&#233;.
    <a href="http://www.b-rail.be/main/F/legal/index.php" target ="_blank">
    Communication juridique importante
    </a>
    <br />
    </div>
    </td>
    </tr>
    </table>
    <!--BEGIN BOTTOM-->
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" valign="top">
    <span class="footer">
    <a href="http://www.b-rail.be/main/F/contact/" target="_blank">
    Contactez-nous
    </a> |
    <a href="http://www.b-rail.be/main/F/legal/" target="_blank">
    Infos juridiques
    </a>
    </span>
    </td>
    </tr>
    </table>
    <!--END BOTTOM-->
    </td>
    </tr>
    </table>


    I put the code directly in the canvas view and there was no error.

    is the recovered content that causes the error?

    Does this line of code to put the recovered content in a div is correct?

    CODE
    document.getElementById("contenu1").innerHTML = x;


    thanks
    0
  • I've been working through the issues and was able to get quite far with the code. Here are some points to note that will need to be adjusted:

    - remove the doctype
    - remove the script blocks (JavaScript is currently not supported for ajax requests)
    - remove the onblur (no JavaScript allowed)
    - remove the onclick (no JavaScript allowed)
    - background (and all links) need to have absolute urls
    - I got caught up in the forms (producing errors) - you may want to look into the yml:form tag

    Once that is all adjusted, try adding in the content to the ajax request piece by piece to nail down where the errors are coming form.

    - Jon
    0
  • Hi,

    I added the code piece by piece.
    I saw this wasn't supported.

    Now it works.

    Thank you very much.


    QUOTE (Jon @ May 7 2009, 01:16 PM) <{POST_SNAPBACK}>
    I've been working through the issues and was able to get quite far with the code. Here are some points to note that will need to be adjusted:

    - remove the doctype
    - remove the script blocks (JavaScript is currently not supported for ajax requests)
    - remove the onblur (no JavaScript allowed)
    - remove the onclick (no JavaScript allowed)
    - background (and all links) need to have absolute urls
    - I got caught up in the forms (producing errors) - you may want to look into the yml:form tag

    Once that is all adjusted, try adding in the content to the ajax request piece by piece to nail down where the errors are coming form.

    - Jon
    0
  • Glad to hear everything is working - let me know if you run into any other issues.

    - Jon

    QUOTE (djmic313131 @ May 12 2009, 10:17 PM) <{POST_SNAPBACK}>
    Hi,

    I added the code piece by piece.
    I saw this wasn't supported.

    Now it works.

    Thank you very much.
    0

Recent Posts

in YAP