Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > JavaScript > Bibliothèques & Frameworks > Dojo
Dojo Forum d'entraide sur le framework Dojo
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 16/09/2011, 12h14   #1
Rédacteur
 
Avatar de Giovanny Temgoua
 
Étudiant
Inscription : novembre 2003
Messages : 3 831
Détails du profil
Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : novembre 2003
Messages : 3 831
Points : 2 826
Points : 2 826
Par défaut Utilisation de dojox.widget.Wizard

Bonjour,

J'essaie en vain de faire fonctionner le widget Wizard. Vous trouverez le code de test ci-dessous.

Il y a deux tests dans la page en question :
- le premier teste l'affichage d'une fenêtre modale : clic sur un bouton -> affichage de la page d'accueil de Joomla (en occurrence)
- le second teste le Wizard

En l'état, aucun des tests ne fonctionne. Si je supprime le div "container" (celui qui contient le test du Wizard), la fenêtre modale s'affiche correctement.

Auriez-vous une idée svp ?

Merci

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
<head>
 
<title>Wizard Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
 
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js"   djConfig="parseOnLoad: true"></script>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojox/widget/Wizard.js"></script>		
 
<script type="text/javascript">
	dojo.require("dijit.form.Button");
	dojo.require("dijit.Dialog");
	dojo.require("dojox.widget.Wizard");
 
	function cancel() {
			alert("Wizard Cancelled!");
		}
 
		function done() {
			alert("Wizard Done!");
		}
</script>				
 
</head>		
 
<body>		
 
      <div id="external" jsId="external" dojoType="dijit.Dialog" title="My external dialog"
        href="/joomla/">
        </div>
        <p>
            When pressing this button the dialog will popup loading the dialog content
            using an XHR call.
        </p>
        <button dojoType="dijit.Button" onClick="dijit.byId('external').show();"
        type="button">
            Show me!
        </button>
 
 
<div id="container" style="width:800px; margin:0 auto">
 
		<h1 class="testTitle">dojox.widget.Wizard tests</h1>
 
		<p>This example shows a wizard with customized button labels.</p>
 
		<div id="wizard1" jsId="wizard1" dojoType="dojox.widget.Wizard"
			 style="width: 640px; height: 200px;"
			 nextButtonLabel="Go on"
			 >
			<div dojoType="dojox.widget.WizardPane" title="Tab 1">
				<h1>Tab 1</h1>
				<p>Sized content, box one</p>
			</div>
 
 
			<div dojoType="dojox.widget.WizardPane">
				<h1>Tab 2</h1>
			</div>
 
 
		</div>
</div>		
 
 
</body>
</html>
Giovanny Temgoua est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/09/2011, 13h52   #2
Rédacteur
 
Avatar de Giovanny Temgoua
 
Étudiant
Inscription : novembre 2003
Messages : 3 831
Détails du profil
Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : novembre 2003
Messages : 3 831
Points : 2 826
Points : 2 826
Vraiment curieux...

Même le code suivant ne fonctionne pas chez moi :

Code :
1
2
3
4
<div  dojoType="dojox.widget.Wizard">
        <div  dojoType="dojox.widget.WizardPane">step 1</div>
        <div  dojoType="dojox.widget.WizardPane">stpe 2</div>
   </div>
Dans les require, j'ai ceci:

Code :
1
2
3
4
5
6
dojo.require('dojox.widget.Wizard');
dojo.require('dijit.layout.ContentPane');
dojo.require('dijit.layout.StackContainer');
dojo.require('dijit.layout.BorderContainer');
dojo.require('dijit.Dialog');
dojo.require('dijit.form.Button');
Auriez-vous une idée svp ?

Merci
Giovanny Temgoua est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/09/2011, 13h59   #3
Rédacteur
 
Avatar de Giovanny Temgoua
 
Étudiant
Inscription : novembre 2003
Messages : 3 831
Détails du profil
Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : novembre 2003
Messages : 3 831
Points : 2 826
Points : 2 826
J'ai crée un fiddle avec le code et cà fonctionne en RUN mais toujours pas sur mon poste

=> http://jsfiddle.net/B9XZr/wizard/

Une idée ?

PS : Je charge bien les différents JS et la CSS du widget

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js" djConfig="parseOnLoad:true"></script>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojox/widget/Wizard.js"></script>
 
 
<script type="text/javascript">
 
dojo.require('dojox.widget.Wizard');
dojo.require('dijit.layout.ContentPane');
dojo.require('dijit.layout.StackContainer');
dojo.require('dijit.layout.BorderContainer');
dojo.require('dijit.Dialog');
dojo.require('dijit.form.Button');
 
 
</script>	
 
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dijit/themes/claro/claro.css"/>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojox/widget/Wizard/Wizard.css"/>			
 
</head>
Giovanny Temgoua est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 00h52.


 
 
 
 
Partenaires

Hébergement Web