Re: Distribution scripts - choices
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=kYzQGQk/EZrc/ti6eS2ibbxn5HeKjys0cnot4gu0ZmM=; b=BvrXUzvl25CVo+ibi70V6s4lWbFTTPoF3JmbYf7YH4KL6wuQ3ZzApWZ/L9r4+8b59d 3GBCyRotrL5qw00BY4WKNjgYhe718ooy+VF2sJw+PvRzOrEEMAL5W9rfHFDZsVHNab1Z 9arE+6Pl+JA1gufvkrWtcljiSND948av8IbUE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=ji1c3F30NHMELmhfcCrNEvenoPRkqiaJTgXaguKukrJ/IdLMdEtU/nd2SSUI0zK2mW 5yPfWHhCNM3EfioZgUAnbB/vDvNiTtKesspcDbnDzPJJRoWQ1Obl72274SiNa69JZ13i CMZ9zWDNrC7cm6G3qJFoOI0MIcAQ3aSNVWqNE= On Dec 1, 2008, at 4:40 PM, Glover,David wrote: Hi, The function looks like this; Function checkSelected() { var test = (choices.[‘testpackage’].selected); } ----------------- A reprint of of an old post: Bug ID# 6287095 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*/ /* Not OK */ _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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()”. 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. According to page 11 of the "Installer Javascript Reference" documentation, to access a choice named choice0, you need to use: choices['choice0'].tooltip="Le petit pont de bois, le petit pont de bois" choices.['choice0'].tooltip="Le petit pont de bois, le petit pont de bois"; <---------------- *** JavaScript Error *** This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev