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 27th, 2004, 01:10 AM
enlil enlil is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 enlil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question reading txt into XUL

Okay.....I'm really new to XUL, but like what I see so far. So much so that I decided to completely redo a kiosk project. The difficulty I'm having is that the kiosk will only receive content updates every now and then through some commercial satellite software. This means the downloaded files will have continously changing file structure -- not my design -- a problem created by those who came before. I can use PHP/MySQL to create a text file or XML of the new structure as it updates, but it's unclear to me how to get XUL to dynamically read links (values) into the menubar items from a local file. I've got a lot of book and web references, but the examples of content are RDF (I'm not experienced enough and my initial trials failed). Is there a way to read in XML or basic text files? I guess what I'm looking to know is 1) if this is possible and 2) what keywords do I need to look for in reference manuals, etc.

Thanks in advance for the help.

Reply With Quote
  #2  
Old March 15th, 2004, 07:16 AM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 12 m 27 sec
Reputation Power: 53
You need to be thinking more in terms of Javascript as the data handler, and XUL as the end result of the data you are handling. One way is to just request a remote Javascript source file (the src="" attribute of a <script> tag pair). This remote source can contain directives as well as data, and by using methods such as createElement, appendChild and removeChild, you can restructure your XUL menus at will.

If you really want to get a handle on XUL, I recommend you get Rapid Application Development with Mozilla, which is probably the best single resource on XUL programming at the moment.

And, don't get too hung up on RDF. I have created a fairly large XUL-based application without using RDF once. Personally, I think RDF is a needlessly complicated data manipulation method and doesn't offer many positive benefits.
__________________
The real n-tier system:

FreeBSD -> PostgreSQL -> [any_language] -> Apache -> Mozilla/XUL

Amazon wishlist -- rycamor (at) gmail.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > reading txt into XUL


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 5 hosted by Hostway