Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> DOJO "instalacja"
umatik
post
Post #1





Grupa: Zarejestrowani
Postów: 209
Pomógł: 0
Dołączył: 17.05.2002
Skąd: lodz

Ostrzeżenie: (0%)
-----


pobrałem najnowszą wersję frameworku DOJO i umiescilem 3 katalogi odpowiednio

js/dojo/dojo/...
js/dojo/dijit/...
js/dojo/dojox/...

chciałem wypróbować przykład (http://www.dojotoolkit.org/reference-guide/dijit/layout/TabContainer.html#dijit-layout-tabcontainer) Tabcontainera

  1. <script type="text/javascript" src="js/dojo/dojo/dojo.js">
  2. </script>
  3. <script type="text/javascript">
  4. dojo.require("dijit.layout.TabContainer");
  5. dojo.require("dijit.layout.ContentPane");
  6. </script>


no i okazuje się ze dojo.js sie nie laduje...

Ten post edytował umatik 28.04.2010, 08:09:26
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
mortus
post
Post #2





Grupa: Zarejestrowani
Postów: 2 178
Pomógł: 596
Dołączył: 25.09.2009
Skąd: Piwniczna-Zdrój

Ostrzeżenie: (0%)
-----


Spróbuj wykorzystać zasoby Google. Kod skopiowany ze strony, którą podałeś:
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html dir="ltr">
  3.  
  4. <head>
  5. <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dijit/themes/tundra/tundra.css"
  6. />
  7. <style type="text/css">
  8. body, html { font-family:helvetica,arial,sans-serif; font-size:90%; }
  9. </style>
  10. </head>
  11.  
  12. <body class=" tundra ">
  13. <div style="width: 350px; height: 300px">
  14. <div dojoType="dijit.layout.TabContainer" style="width: 100%; height: 100%;">
  15. <div dojoType="dijit.layout.ContentPane" title="My first tab" selected="true">
  16. Lorem ipsum and all around...
  17. </div>
  18. <div dojoType="dijit.layout.ContentPane" title="My second tab">
  19. Lorem ipsum and all around - second...
  20. </div>
  21. <div dojoType="dijit.layout.ContentPane" title="My last tab" closable="true">
  22. Lorem ipsum and all around - last...
  23. </div>
  24. </div>
  25. </div>
  26. </body>
  27. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js"
  28. djConfig="parseOnLoad: true">
  29. </script>
  30. <script type="text/javascript">
  31. dojo.require("dijit.layout.TabContainer");
  32. dojo.require("dijit.layout.ContentPane");
  33. </script>
  34. <!-- NOTE: the following script tag is not intended for usage in real
  35. world!! it is part of the CodeGlass and you should just remove it when
  36. you use the code -->
  37. <script type="text/javascript">
  38. dojo.addOnLoad(function() {
  39. if (document.pub) {
  40. document.pub();
  41. }
  42. });
  43. </script>
  44.  
  45. </html>
Różni się on jedynie tym, że styl i skrypt pobierany jest z zasobów, które udostępnia Google.

Ten post edytował mortus 28.04.2010, 08:19:41
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 26.12.2025 - 02:38