XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 2nd, 2004, 06:55 PM
metaBarf metaBarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 373 metaBarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 49 m 6 sec
Reputation Power: 6
VERY important XUL issue with mozilla 1.6

Hello xml folks:

I have been working on an XUL example program from the o'reilly text called xFly. I wrote the RDF files and the XUL files and made my entries in installed-chrome.txt and it works great with mozilla 1.0.1 but I can only get it to run in 1.6 if I open it with File->Open from the browser -- this is not cool! Here's the xul file:

Code:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="chrome://xfly/skin" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://xfly/locale/xfly.dtd">
<window
        title="Hello xFly"
        id="xFlyMain"
        xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        width="500"
        height="515"
        onload="centerWindowOnScreen()">
<script type="application/x-javascript"
        src="chrome://global/content/dialogOverlay.js" />
<script type="application/x-javascript"
        src="chrome://xfly/content/xfly.js" />
<menubar id="appbar">
        <menu label="File">
                <menupopup>
                        <menuitem label="New" />
                        <menuitem label="Open" />
                </menupopup>
        </menu>
        <menu label="Edit">
                <menupopup>
                        <menuitem label="Cut" />
                        <menuitem label="Paste" />
                </menupopup>
        </menu>
        <menu label="Build Interfaces" />
</menubar>
<toolbox>
        <toolbar id="fixed-toolbar" class="toolbar-primary"
                tbautostretch="always" persistent="collapsed">
                <toolbarbutton id="newfileBtn" label="New" oncommand="alert('menu option Browse');" />
                <toolbarseparator />
                <toolbarbutton id="openfileBtn" label="Open" oncommand="alert('menu option Build Interfaces');" />
                <spacer flex="1" />
        </toolbar>
</toolbox>
<textbox id="multiFlyInput" value="Fly Name" multiline="true" rows="2" />
<textbox id="dialog.input" type="autocomplete"
        searchSessions="history" timeout="50" maxrows="6"
        disablehistory="false"
        oninput="doEnabling();">
        <menupopup id="ubhist-popup" class="autocomplete-history-popup"
                popupalign="topleft" popupanchor="bottomleft"
                onpopupshowing="createUBHistoryMenu(event.target);"
                oncommand="useUBHistoryItem(event.target);"/>
</textbox>
<description>
        Bla bla bla I hope this works!
</description>
<vbox align="left" id="vb">
   <label id="xlabel"
        value="Hello, welcome to the xFly" />
   <image src="http://books.mozdev.org/xfly.gif" />
   <button label="hello xFly" oncommand="greet();" />
</vbox>
</window>

Reply With Quote
  #2  
Old February 2nd, 2004, 06:56 PM
metaBarf metaBarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 373 metaBarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 49 m 6 sec
Reputation Power: 6
And here's the RDF manifest files:
content:
Code:
<?xml version="1.0"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
        <!--list all of the packages being supplied-->
        <RDF:Seq about="urn:mozilla:package:root">
          <RDF:li resource="urn:mozilla:package:xfly"/>
        </RDF:Seq>
        <!--package information-->
        <RDF:Description about="urn:mozilla:package:xfly"
                chrome:displayName="xFly"
                chrome:author="xfly.mozdev.org"
                chrome:name="xFly">
        </RDF:Description>
</RDF:RDF>

Reply With Quote
  #3  
Old February 2nd, 2004, 06:58 PM
metaBarf metaBarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 373 metaBarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 49 m 6 sec
Reputation Power: 6
skin:
[code}
<?xml version="1.0"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
<RDF:Seq about="urn:mozilla:skin:root">
<RDF:li resource="urn:mozilla:skin:classic/1.0" />
</RDF:Seq>
<RDFescription about="urn:mozilla:skin:classic/1.0">
<chromeackages>
<RDF:Seq about="urn:mozilla:skin:classic/1.0ackages">
<RDF:li resource="urn:mozilla:skin:classic/1.0:xfly"/>
</RDF:Seq>
</chromeackages>
</RDFescription>
</RDF:RDF>
[/code]

Reply With Quote
  #4  
Old February 2nd, 2004, 06:58 PM
metaBarf metaBarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 373 metaBarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 49 m 6 sec
Reputation Power: 6
the dtd's RDF:
Code:
<?xml version="1.0"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
        <RDF:Seq about="urn:mozila:locale:root">
                <RDF:li resource="urn:mozilla:locale:en-US" />
        </RDF:Seq>
        <!--locale information-->
        <RDF:Description about="urn:mozilla:locale:en-US"
                chrome:displayName="English(US)"
                chrome:author="xfly.mozdev.org"
                chrome:name="en-US"
                chrome:previewURL="http://www.mozilla.org/locales/en-US.gif">
                <chrome:packages>
                        <RDF:Seq about="urn:mozilla:locale:en-US:packages">
                                <RDF:li resource="urn:mozilla:locale:en-US:xfly"/>
                        </RDF:Seq>
                </chrome:packages>
        </RDF: Description>
</RDF: RDF>


the DTD itself:

Code:
<!ENTITY label.val      'Hello, Welcome to the xFly ' >
<!ENTITY btn.lbl        'Hello xFly ' >


the CSS file itself:
Code:
#xlabel { font-weight: bold; }
window { background-color: white;}


and the script file:
Code:
function greet() {
        alert('Hello World');
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > VERY important XUL issue with mozilla 1.6


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT