Partage
  • Partager sur Facebook
  • Partager sur Twitter

Probleme pour creer map ajax/php

    4 août 2006 à 13:55:01

    Voila j'ai voulu realiser une carte en ajax/php avec l'aide du tutorial : ici

    Mais a il est marqué :

    Citation : Pas de titre

    Il faut aussi rajouter cette ligne dans la balise <body> :

    Code : HTML
    onKeyDown="touches(event)"



    J'ai donc mis le texte ainsi :

    <?php
    session_start();
    require_once('map.php');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <title>Map</title>
           
            <link rel="stylesheet" type="text/css" media="screen" href="styles.css" />
                    <script type="text/javascript" src="map.js"></script>
        </head>
        <body>
            onKeyDown="touches(event)"
        <?php
        map();
        ?>

        </body>
    </html>


    Mais sur mon site , je ne peux pas bouger , la carte apparait et juste au dessus il y a marqué :

    Citation : Pas de titre

    onKeyDown="touches(event)"



    Quel serait le probleme ??
    • Partager sur Facebook
    • Partager sur Twitter
      4 août 2006 à 14:00:48

      mettre "onkeydown" dans la balise body signifie le code suivant:

      <body onKeyDown="touches(event)">


      </body>


      Ton code est donc:
      <?php
      session_start();
      require_once('map.php');
      ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
              <title>Map</title>
             
              <link rel="stylesheet" type="text/css" media="screen" href="styles.css" />
                      <script type="text/javascript" src="map.js"></script>
          </head>
          <body onKeyDown="touches(event)">
          <?php
          map();
          ?>

          </body>
      </html>
      • Partager sur Facebook
      • Partager sur Twitter
        4 août 2006 à 14:06:36

        Ca marche parfaitement , merci beaucoup cube45. :)
        • Partager sur Facebook
        • Partager sur Twitter

        Probleme pour creer map ajax/php

        × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
        × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
        • Editeur
        • Markdown