Helma logo
helma.org » Home > Stories > HopObject.href()

HopObject.href()

Returns the absoulte URL path of a HopObject relative to the application's root.

An optional string argument is simply appended to the return value.

Syntax
HopObject.href()
HopObject.href(String)

This function is useful when referring to a HopObject in a markup tag (e.g. with a href attribute in an HTML <a>-tag).

Example
var obj = root.get(0);

res.write("<a href=\"" + obj.href() + "\">");
<a href="/main/">

res.write("<a href=\"" + obj.href("edit") + "\">");
<a href="/main/edit">


... comment


Page last modified on 2002-07-16 13:33 by tobi