Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/09/2008, 16:20
Avatar de lisandro Arg
lisandro Arg
 
Fecha de Ingreso: octubre-2003
Ubicación: Cordoba, Argentina
Mensajes: 945
Antigüedad: 20 años, 6 meses
Puntos: 24
Respuesta: Cargar Dojo desde google correctamente

me contesto solo :)
Código PHP:
<html>
<
head><title>Hola Mundo</title>


    <
script type="text/javascript" src="http://www.google.com/jsapi">
    
</script>
    
    <script type="text/javascript">
      djConfig = { parseOnLoad: true }; 
      google.load("dojo", "1.1.1");
    </script>
    
    <script type="text/javascript">
      dojo.require("dijit.Dialog");
      dojo.require("dijit.form.Button");
      dojo.require("dijit.form.TextBox");
    </script>
    
    <style type="text/css">
        @import "http://ajax.googleapis.com/ajax/libs/dojo/1.1.1/dojo/resources/dojo.css";
        @import "http://ajax.googleapis.com/ajax/libs/dojo/1.1.1/dijit/themes/soria/soria.css";
     </style> 
</head>

<body class="soria">
    <button dojoType="dijit.form.Button"
onclick="dijit.byId('dialog').show()">
          Show Dialog
    </button>
    <div dojoType="dijit.Dialog" id="dialog" title="Options:">
        <table>
        <tr>
            <td><label>Input One :</label>
                <input id="option1" dojoType="dijit.form.TextBox"
type="text">
            </td>
        </tr>
        <tr>
            <td><label>Input Two :</label>
                <input id="option2" dojoType="dijit.form.TextBox"
type="text">
            </td>
        </tr>
        <tr>
            <td>
                <button dojoType="dijit.form.Button" type="submit">OK</
button>
                <button dojoType="dijit.form.Button"
type="submit">Abort</button>
           </td>
        </tr>

        </table>
    </div>
</body>
</html>