Project

Profile

Help

Feature #1553

closed

Simpler method needed to reference JavaScript object properties by name

Added by Philip Fearon over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
2012-06-12
Due date:
% Done:

100%

Estimated time:
Platforms:

Description

Currently, the ixsl:get function only accepts the direct name of the property belonging to the object argument of the function. It would make code more concise if it were possible to use 'dot notation' to access nested properties of the object, e.g. 'location.search' - as shown below:

Current method:

<xsl:variable name="urlparams" select="
                    ixsl:get( 
                       ixsl:get(ixsl:window(),'location'), 
                       'search')" 
                     />

Proposed method:

<xsl:variable name="urlparams"
              select="ixsl:get(ixsl:window(),'location.search'))"
              />

Please register to edit this issue

Also available in: Atom PDF