You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by eugenebalt <eu...@yahoo.com> on 2012/11/02 15:49:46 UTC

Does a SimpleAttributeModifier Overwrite or Append JavaScript?

Suppose I have this:

arg0.add(new SimpleAttributeModifier( "onclick", "myfunction();"));

Will that replace any previous onClick's, or append to them? I need to
preserve any previous JS in this attribute (append).



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Does-a-SimpleAttributeModifier-Overwrite-or-Append-JavaScript-tp4653568.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Does a SimpleAttributeModifier Overwrite or Append JavaScript?

Posted by Joachim Schrod <js...@acm.org>.
eugenebalt wrote:
> I can't try right now because of a system failure.
> 
> If I could try it I wouldn't ask it here. I was hoping for a quick response.

It overwrites.

	Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jschrod@acm.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Does a SimpleAttributeModifier Overwrite or Append JavaScript?

Posted by eugenebalt <eu...@yahoo.com>.
I can't try right now because of a system failure.

If I could try it I wouldn't ask it here. I was hoping for a quick response.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Does-a-SimpleAttributeModifier-Overwrite-or-Append-JavaScript-tp4653568p4653570.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Does a SimpleAttributeModifier Overwrite or Append JavaScript?

Posted by Martin Grigorov <mg...@apache.org>.
Try it.

On Fri, Nov 2, 2012 at 4:49 PM, eugenebalt <eu...@yahoo.com> wrote:
> Suppose I have this:
>
> arg0.add(new SimpleAttributeModifier( "onclick", "myfunction();"));
>
> Will that replace any previous onClick's, or append to them? I need to
> preserve any previous JS in this attribute (append).
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Does-a-SimpleAttributeModifier-Overwrite-or-Append-JavaScript-tp4653568.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org