Re: [wiQuery] Creating a script without a component

2010-10-18 Thread Jeremy Thomerson
On Mon, Oct 18, 2010 at 10:02 AM, Peter Munro spelud...@gmail.com wrote: Hi, I'd like to set up a JQuery script in my page header to change the attributes of all links with a specified class, so in my Java code I tried this: JsQuery linkQuery = new JsQuery();

Re: [wiQuery] Creating a script without a component

2010-10-18 Thread julien roche AKA indiana_jules
Hi Peter, The right way for your case will be: add(new WiqueryAbstractBehavior() { public JsStatement statement() { return new JsStatement ().$(null, .check-login).chain(attr, 'href', '#'); } }); In the standard process, we will never have an empty component when the renderHead

Re: [wiQuery] Creating a script without a component

2010-10-18 Thread julien roche AKA indiana_jules
Or return new JsQuery().$(.check-login).chain(attr, 'href', '#'); Julien Roche On Mon, Oct 18, 2010 at 5:53 PM, julien roche AKA indiana_jules roche@gmail.com wrote: Hi Peter, The right way for your case will be: add(new WiqueryAbstractBehavior() { public JsStatement statement()

Re: [wiQuery] Creating a script without a component

2010-10-18 Thread Peter Munro
@Jeremy: oops! Sorry, hadn't realised it had its own list. Next time... :-) @Julien: Aha. I understand. Many thanks, I will try it now. Peter On Mon, Oct 18, 2010 at 4:54 PM, julien roche AKA indiana_jules roche@gmail.com wrote: Or return new JsQuery().$(.check-login).chain(attr,