bonjour
je debute en xul:
voici le exemple.xul
voici le javascript
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 <?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <script src="chrome://exemple/content/exemple.js"/> <overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <statusbar id="status-bar"> <statusbarpanel id="focused" label="Ici Moi !" onclick="statusbarpaneltest(event);"/> </statusbar> </overlay>
si je mets : <script src="chrome://exemple/content/exemple.js"/> dans le fichier.xul, le label="Ici Moi !" disparait de la barre d'etat si j'enleve : <script src="chrome://exemple/content/exemple.js"/> dans le fichier.xul, le label="Ici Moi !" apparait dans la barre d'etat mais alert("child"); ne fonctionne pas
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 <script type="text/javascript"> function statusbarpaneltest(event) { alert("child"); } </script>
j'ai du louper quelque chose dans le tuto, mais la je ne vois pas !!
navigateur: Iceweasel
merci pour votre aide
Partager