[Seaside] a problem with a javascript statement

Esteban Lorenzano estebanlm at gmail.com
Fri Apr 8 14:39:04 UTC 2011


Hi,
I want to write this code: 

function() {
	if ($(this).val().length == 0) {
		return false;
	}
	return true;
}

but I want to use seaside javascript dsl to do that... 
I suppose the code should be something like this: 

(((html javascript return: false) 
		condition: (html jQuery this find: 'input'; value; access: 'length'; equals: 0)), 
	(html javascript return: true)) 
	asFunction

the problem is: it does not exists an "#equals:" message (not a greater:, etc. )

so, I wonder how you do this using the DSL... is there a way? or I need to add that protocol?

thanks,
Esteban




More information about the seaside mailing list