sdavenport Posted December 17, 2009 Share Posted December 17, 2009 How do you call the properties of: FusionPro.Composition.JobOptions? CompositionProperties.JobOptions = { description: "An object with properties for all the CFG file settings for the job.", syntax: "FusionPro.Composition.JobOptions" } Link to comment Share on other sites More sharing options...
Dan Korn Posted December 17, 2009 Share Posted December 17, 2009 You call them the same way you would call the properties (members) of any other object, with either "dot" or "bracket" notation: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Member_Operators For example:return FusionPro.Composition.JobOptions.OutputFormat;Or: return FusionPro.Composition.JobOptions["OutputFormat"];You could also iterate all the properties like so: var result = ""; for (var i in FusionPro.Composition.JobOptions) result += i + ": " + FusionPro.Composition.JobOptions[i] + "\n"; return result;https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/for...in Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.