Sailfish wrote:
Sailfish wrote:
Is there a method for runtime-overriding the "value" in a name/value
pair set in a *.properties file, for the duration of the script
(assumming the permissions have been granted, of course)?
I don't wish to modify the *.properties file but, rather, just
override the text such that all references to the "value" use my
override until I either reset it or exit the script.
For example, after overriding the value, all references in the form of:
var strbundle=document.getElementById("stringBundleID");
var overRide=strbundle.getString("Name");
alert(overRide);
would display my overriden text.
Well, it seems I formulated that question in just that right way to
guarantee a flood of responses...
<soliloquy>Perhaps if I provide the specific example of what I'm trying
to accomplish, responses may follow?</soliloquy>
XPIInstall appears to offer only one function to query the user,
*confirm(message)* , for input during the installation procedure.
Unfortuneately, it pops up a small dialog box, with /message/ as the
body but only the system settings for the *OK* and *Cancel* strings.
In my particular case, I want to present the user with two choices, only
one of which can be selected. Presently, I'm having to frame the
/message/ in a very convoluted way in order to even slightly have *OK*
and *Cancel* seem to have any meaning. (It sorta reminds me of how one
had to write PC-DOS *.bat scripts with *Echo* and *Pause* before
*Choice* came into being.)
So, it seems a workaround would be a way to /override/ the *OK* and
*Cancel* text with the actual words for the choices for just the
duration of this installation script.
Can do? Or, even better, is there a more appropriate way to accomplish
this without resorting to a kludge?
<Follow-up to netscape.public.mozilla.xpinstall>
Anyone here able to offer any advice on how best to accomplish this?
--
Netscape FAQs: http://www.ufaq.org
Netscape 6/7 Tips: http://www.hmetzger.de/net6e.html
Netscape 6 FAQ: http://home.adelphia.net/~sremick/ns6faq.html
Netscape 7 Help/Tips: http://techaholic.net/ns7.html
Web page validation: http://validator.w3.org
About Mozilla: http://www.mozilla.org