Documentation for a historical release of Infusion: 1.4
Please view the Infusion Documentation site for the latest documentation, or the Infusion 1.3. Documentation for the previous release.
If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

fluid.allocateSimpleId(element)

Allocate an id to the supplied element if it has none already, by a simple scheme resulting in ids "fluid-id-nnnn" where nnnn is an increasing integer.

fluid.allocateSimpleId(element);

File name: Fluid.js

Parameters

element (Element) The element to place the id on.

Return Value

String representing the id


Example

var titleId = fluid.allocateSimpleId(title);

In this example, the string returned, titleId will be added as the id attribute to the title node.

  • No labels