onclick get value json

6 views
Skip to first unread message

huggler

unread,
Feb 19, 2010, 7:43:49 AM2/19/10
to google-jstemplate
Hi,

my Json:

{ instanceName: "CONTACTS1" }

<a onclick="HB4Mack.getInstance(' $this.instanceName
').reload()">Update</a> ???

not run!!!


mesch

unread,
Feb 22, 2010, 1:31:41 PM2/22/10
to google-jstemplate
$this is available only in expressions in the js template attributes,
i.e. jsvalues, jscontent etc. $this is *not* defined for expressions
in event handler attributes.

Depending on what HB4Mack and getInstance() actually are, the
following could perhaps work if you jstemplate process it first:

> <a jsvalues=".data:$this" onclick="HB4Mack.getInstance(this.data.instanceName).reload()">Update</a> ???

So far,
mesch.

Reply all
Reply to author
Forward
0 new messages