Hi Kim,

> > XML works best for structured data that 
> > involves a given set of paramters, with a maximum
> > value on persistence across entities, and minimal
> > reliance on interface.
> 
> Sorry, I just don't understand what you're saying...
> Can you re-phrase that?

I'll try. ;)

Basically, XML is great for preserving stateful data, but not really
useful for editing it.


> > What happens with "&", ">" and ">" as aliases 
> > or within the bodies of values of alias fragments?
> > They get screwed up or involve significant hand-holding
> > to make them work.
> 
> Good point... It seems only ">" is valid as contents of
> an attribute.

Even that may be changed in future patches to IE.


> On the other hand, if we're to build a UI for configuration, 
> proper encoding takes care of itself.

But that's another layer (unnecessary, I might add) of scripting to
encode and then decode it.


> I haven't seen a single piece of active script in 
> preferences.js, most of it is just var declarations.

Here's a couple selections from my own:

var floaxButtons =
  Array(
    Array('images\\ra.png',      'Visit RA',
'http://ReliableAnswers.com/'),
    Array('images\\yahoo!.png',  'YG [Clipboard]', 'vbsx yg
ClipboardGetText'),
    Array('images\\yahoo!.png',  'Yahoo Profile [Clipboard]', 'vbsx
yprof ClipboardGetText'),
    Array('images\\yahoo!.png',  'YG Ban-Bot [Clipboard]', 'vbsx
banyg ClipboardGetText'),
    Array('images\\reg.png',     'Google [Clipboard]', 'vbsx gg
ClipboardGetText'),
    Array('images\\faq.png',     'ASPFAQ [Clipboard]', 'vbsx aspfaq
ClipboardGetText'),
    Array('images\\ftp.png',     'Look up [Clipboard] in
Dictionary', 'vbsx dic ClipboardGetText'),
    Array('images\\savenet.jpg', 'Browse Webs \(W:\)', 'expw'),
    Array('images\\vbs.png',     'Copy Source', 'vbsx
:document.body.outerHTML'),
    Array('images\\vbs.png',     'ClipBoard Length', 'vbsx
!Len(ClipboardGetText)' )
  ); // Array( button, title, function)


var syg = Array( "username", "password",
"http://groups.yahoo.com/mygroups"; );


I had once had a "multi" in there to run some stuff I usually use
when I boot up, but figure it was worth typing a character to do it
manually and have the option of not running it every boot. :/

No, these aren't complex scripts, but they could easily make it
difficult to use a XML-based interface, especially the 'floax'
stuff.


> Why do you feel the pressing need to have preferences.js 
> contain script code, rather than declarative settings?

Because I use it that way.

I'm still probably the most active user of the floax tool (if anyone
else even knows it's there!), but it's designed explicitly to make
providing functionality directly from preferences.js possible. Floax
can be extended directly from the bar, too, but that's beyond the
scope of this response. ;)

Regards,

Shawn K. Hall
http://12PointDesign.com/
http://ReliableAnswers.com/

'// ========================================================
 Marriage is the only war in which you sleep with the enemy.




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Archive: https://lists.sourceforge.net/lists/listinfo/dqsd-devel

Reply via email to