|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
Menu labels not showing
Hi, I've just copied this XUL from an example:
Code:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="example-window" title="Example 5.1.1"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<toolbox flex="1">
<menubar id="sample-menubar">
<menu id="file-menu" label="File">
<menupopup id="file-popup">
<menuitem label="New"/>
<menuitem label="Open"/>
<menuitem label="Save"/>
<menuseparator/>
<menuitem label="Exit"/>
</menupopup>
</menu>
<menu id="edit-menu" label="Edit">
<menupopup id="edit-popup">
<menuitem label="Undo"/>
<menuitem label="Redo"/>
</menupopup>
</menu>
</menubar>
</toolbox>
</window>
Thing is... when I run it locally it shows fine, when I run the example it works fine, but when I copy the file to my server space... the menu labels don't show. The menuitem ones do, but the 'File' and 'Edit' labels don't. Any ideas? Also, when I run my actual XUL system locally, I can call parent.function(value) and it works if that function simply alerts 'value'. But again, when I upload it to the server, zilch, will not call that function. Don't know what the javascript console said, as I've removed that bit before looking. Any more ideas? |
|
#2
|
||||
|
||||
|
Works fine for me;
Code:
<?php
header( "Content-type: application/vnd.mozilla.xul+xml" );
?>
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="example-window" title="Example 5.1.1"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<toolbox flex="1">
<menubar id="sample-menubar">
<menu id="file-menu" label="File">
<menupopup id="file-popup">
<menuitem label="New"/>
<menuitem label="Open"/>
<menuitem label="Save"/>
<menuseparator/>
<menuitem label="Exit"/>
</menupopup>
</menu>
<menu id="edit-menu" label="Edit">
<menupopup id="edit-popup">
<menuitem label="Undo"/>
<menuitem label="Redo"/>
</menupopup>
</menu>
</menubar>
</toolbox>
</window>
Got Mozilla 1.3b |
|
#3
|
||||
|
||||
|
Yeah, well like I said, it works in one place, then not in another. Doesn't matter now... I've given XUL a miss and just written my own menu class for javascript.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Menu labels not showing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|