Project

Profile

Help

Feature #1553

closed

Simpler method needed to reference JavaScript object properties by name

Added by Philip Fearon over 12 years ago. Updated over 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'))"
              />
Actions #1

Updated by Philip Fearon over 12 years ago

  • Status changed from New to Resolved
  • Assignee set to Philip Fearon
  • Sprint/Milestone set to Release 1.0

This is now implemented. 'Dot' separated property name arguments can be used both for the ixsl:get function and the new ixsl:set-property instruction.

Actions #2

Updated by Philip Fearon over 12 years ago

  • % Done changed from 0 to 100
Actions #3

Updated by O'Neil Delpratt over 11 years ago

  • Status changed from Resolved to Closed

Please register to edit this issue

Also available in: Atom PDF