Re: Distribution scripts - choices
Re: Distribution scripts - choices
- Subject: Re: Distribution scripts - choices
- From: Iceberg-Dev <email@hidden>
- Date: Mon, 1 Dec 2008 23:00:26 +0100
On Dec 1, 2008, at 4:40 PM, Glover,David wrote:
Hi,
I have a distribution package with a number of choices in it, and
want to dynamically check to see which other choices are selected
in the custom install pane.
For the time being, I’ve just got some test code in there. So my
choice calls a function as such – selected=”checkSelected()”.
The function looks like this;
Function checkSelected()
{
var test = (choices.[‘testpackage’].selected);
}
When I go to run the package, it always fails immediately with a
javascript error. When this function is removed, the package
always runs ok. I’m clearly missing something to get this to work
but can’t see what it is! Can anybody help
It's probably because you're trusting the documentation and you
should not.
-----------------
A reprint of of an old post:
Bug ID# 6287095
According to page 11 of the "Installer Javascript Reference"
documentation, to access a choice named choice0, you need to use:
choices.['choice0']
This is incorrect, you need to use:
choices['choice0']
The following code also works:
choices.choice0
This is what Installer.app on Mac OS X 10.4.11 says:
/* OK*/
choices.choice0.tooltip="Le petit pont de bois, le petit pont de bois"
/* OK*/
choices['choice0'].tooltip="Le petit pont de bois, le petit pont de
bois"
/* Not OK */
choices.['choice0'].tooltip="Le petit pont de bois, le petit pont de
bois"; <---------------- *** JavaScript Error ***
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden