[Kss-devel] attach text on existing text in input tag

Vladislav Vorobiev mymir.org at googlemail.com
Wed Sep 3 20:27:32 CEST 2008


Hello,

There are insertHTMLAsLastChild to insert html to existing html.
I need to attach text on existing text in input tag,  value.
Becose there are no setAttributeAsLastChild or something I tried to
construct something like this:

.greenActive:click{
evt-click-preventdefault: true;
evt-click-allowbubbling: true;
action-client: setAttribute;
setAttribute-kssSelector: htmlid(ps);
setAttribute-name: value;
setAttribute-value: nodeContent() + '  ' + formVar(search, ps);
}

Exception... "'KssParsingError: Error parsing KSS at
http://pfadfinder.goldaxe.com/a.kss [Only one [string] value is
allowed in the action parameter [value]., at row 1, column 19]' when
calling method: [nsIDOMEventListener::handleEvent]" nsresult:
"0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>"
data: no]

but it doesn't work.

How I can do there?


More information about the Kss-devel mailing list