Re: onload event on img-tag

2012-05-29 Thread Pasithee Jupiter
Thanks a lot. That works like a charm. cheers On Mon, May 28, 2012 at 9:02 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Do something like: img = new NonCachingImage(...); img.add(new AttributeModifier(onload, yourStuffHere)); form.add(img); On Mon, May 28, 2012 at 1:21 AM

Re: onload event on img-tag

2012-05-28 Thread Martin Grigorov
Hi, Do something like: img = new NonCachingImage(...); img.add(new AttributeModifier(onload, yourStuffHere)); form.add(img); On Mon, May 28, 2012 at 1:21 AM, Pasithee Jupiter pasit...@gmail.com wrote: Hi all How can i add the onload attribute to an image? or is it possible to prevent wicket

onload event on img-tag

2012-05-27 Thread Pasithee Jupiter
Hi all How can i add the onload attribute to an image? or is it possible to prevent wicket overwriting html attributes on the img-tag? In my HTML I have a form, and inside the form an img and several input fields and a button. Click on the button triggers an ajax request and returns new form

AjaxEventBehaviour on page onload

2011-03-03 Thread drf
I wonder if anyone can help with the following: I've added this code to a the constructor of a WebPage: this.add(new AjaxEventBehavior(onload) { @Override protected void onEvent(AjaxRequestTarget target

Re: AjaxEventBehaviour on page onload

2011-03-03 Thread Pedro Santos
AjaxEventBehavior(onload) { @Override protected void onEvent(AjaxRequestTarget target) { System.out.println( IN on-LOAD); } }); Am expecting the event to be called when

Ajax like event for onLoad

2011-02-16 Thread Brown, Berlin [GCG-PFS]
(AjaxBehavior(onload') { onEvent(target) { } } } }

Re: Ajax like event for onLoad

2011-02-16 Thread Martin Grigorov
a panel loads or render. Something along the lines of: SomeAjaxPanel { onBeforeRender() { this.add(AjaxBehavior(onload') { onEvent(target) { } } } }

onload

2010-09-23 Thread Ole Hansen
Hi, Newbee question: I need to add the onload attribute to the body tag (I can't use other methods to accomplish the same thing...) My html: html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://org.apache.wicket.sourceforge.net/; wicket:head ... /wicket:head wicket:extend body wicket:id

onload

2010-09-23 Thread Ole Hansen
Hi, Newbee question: I need to add the onload attribute to the body tag (I can't use other methods to accomplish the same thing...) My html: html wicket:head ... /wicket:head wicket:extend body wicket:id=bodyElement ... /body /wicket:extend /html Java: WebMarkupContainer body = new

Re: onload

2010-09-23 Thread Martin Grigorov
Why do you have two components on bodyElement ? WebMarkupContainer body = new WebMarkupContainer(bodyElement); add(new WebMarkupContainer(bodyElement) { On Thu, Sep 23, 2010 at 11:00 AM, Ole Hansen ssej1...@gmail.com wrote: Hi, Newbee question: I need to add the onload attribute to the body

Re: onload

2010-09-23 Thread Ole Hansen
(bodyElement) { On Thu, Sep 23, 2010 at 11:00 AM, Ole Hansen ssej1...@gmail.com wrote: Hi, Newbee question: I need to add the onload attribute to the body tag (I can't use other methods to accomplish the same thing...) My html: html wicket:head ... /wicket:head wicket:extend body

Re: onload

2010-09-23 Thread Ole Hansen
it is there or not. No need to look further into this. I messed up. Thanks, Jess add(new WebMarkupContainer(bodyElement) { On Thu, Sep 23, 2010 at 11:00 AM, Ole Hansen ssej1...@gmail.com wrote: Hi, Newbee question: I need to add the onload attribute to the body tag (I can't use other methods

Re: Trouble creating a behaviour that adds JS and also a Body onLoad event

2010-07-31 Thread Mark Doyle
trouble finding a decent behaviour tutorial. If anybody knows of one post a link up. Now, the problem I am having is creating a behaviour that adds some JS to the head and sets an onLoad method. The JS project instructs users to add: body onload=jsfunctionhere ( options, callback

Re: Trouble creating a behaviour that adds JS and also a Body onLoad event

2010-07-31 Thread Martin Makundi
(javascript)  } ** Martin 2010/7/30 Mark Doyle markjohndo...@googlemail.com: Firstly, I'm having some trouble finding a decent behaviour tutorial.  If anybody knows of one post a link up. Now, the problem I am having is creating a behaviour that adds some JS to the head and sets an onLoad

Re: Trouble creating a behaviour that adds JS and also a Body onLoad event

2010-07-31 Thread Mark Doyle
a decent behaviour tutorial. If anybody knows of one post a link up. Now, the problem I am having is creating a behaviour that adds some JS to the head and sets an onLoad method. The JS project instructs users to add: body onload=jsfunctionhere ( options, callback ); but I'm

Re: Trouble creating a behaviour that adds JS and also a Body onLoad event

2010-07-31 Thread Martin Makundi
/30 Mark Doyle markjohndo...@googlemail.com: Firstly, I'm having some trouble finding a decent behaviour tutorial.  If anybody knows of one post a link up. Now, the problem I am having is creating a behaviour that adds some JS to the head and sets an onLoad method.  The JS project

Trouble creating a behaviour that adds JS and also a Body onLoad event

2010-07-30 Thread Mark Doyle
Firstly, I'm having some trouble finding a decent behaviour tutorial. If anybody knows of one post a link up. Now, the problem I am having is creating a behaviour that adds some JS to the head and sets an onLoad method. The JS project instructs users to add: body onload=jsfunctionhere

Re: Trouble creating a behaviour that adds JS and also a Body onLoad event

2010-07-30 Thread Martin Makundi
some trouble finding a decent behaviour tutorial.  If anybody knows of one post a link up. Now, the problem I am having is creating a behaviour that adds some JS to the head and sets an onLoad method.  The JS project instructs users to add: body onload=jsfunctionhere ( options, callback

body-tag onLoad/onScroll

2010-06-22 Thread Dr. Wolf Blecher
Hi all, I have the following situation: I want to add a java script function call to the body tag which get's as parameter the id of a wicket panel: body onload=javascript: initPosition('sidebarRightSelection65'); onscroll=javascript: sideBarRightPos('sidebarRightSelection65'); So I tried

Re: body-tag onLoad/onScroll

2010-06-22 Thread Martin Grigorov
have the following situation: I want to add a java script function call to the body tag which get's as parameter the id of a wicket panel: body onload=javascript: initPosition('sidebarRightSelection65'); onscroll=javascript: sideBarRightPos('sidebarRightSelection65'); So I tried the following

Re: body-tag onLoad/onScroll

2010-06-22 Thread Jeremy Thomerson
And in that webmarkupcontainer, override istransparentresolverand return true. That will allow you to add components directly to the page without having to add them all to the body's web markup container. Jeremy Thomerson -- sent from my smartphone - please excuse formatting and spelling errors

onLoad never fires -- is there a bug in 1.4?

2009-02-21 Thread Brill Pappin
I have a panel with which I'm implementing IHeaderContributor and the following code: @Override public void renderHead(IHeaderResponse response) { response.renderOnLoadJavascript(alert('test')); } ... which output in the HTML: ... script

Re: onLoad never fires -- is there a bug in 1.4?

2009-02-21 Thread Brill Pappin
this method of capturing onLoad events? - Brill On 21-Feb-09, at 2:14 PM, Brill Pappin wrote: I have a panel with which I'm implementing IHeaderContributor and the following code: @Override public void renderHead(IHeaderResponse response

Re: onLoad never fires -- is there a bug in 1.4?

2009-02-21 Thread Jason Lea
I wonder if this is related to a bug that was fixed in firefox 3.0.6... https://bugzilla.mozilla.org/show_bug.cgi?id=444322 Firefox 3 onload and DOMContentLoaded event firing before the page is fully loaded We experienced that problem with Firefox 3.0.5 made a work around

Re: onLoad never fires -- is there a bug in 1.4?

2009-02-21 Thread Brill Pappin
to a bug that was fixed in firefox 3.0.6... https://bugzilla.mozilla.org/show_bug.cgi?id=444322 Firefox 3 onload and DOMContentLoaded event firing before the page is fully loaded We experienced that problem with Firefox 3.0.5 made a work around for it, and then 3.0.6 arrived and fixed

onLoad javascript event with Markup inheritance

2008-11-25 Thread itayh
in the generated page (the base + child page). Any Idea how to generate onLoad javascript action for child page? -- View this message in context: http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20681885.html Sent from the Wicket - User mailing list archive

Re: onLoad javascript event with Markup inheritance

2008-11-25 Thread Ernesto Reinaldo Barreiro
to define the the javascript on the childs body (between the wicket:extend and /wicket:extend) but I don't see them in the generated page (the base + child page). Any Idea how to generate onLoad javascript action for child page? -- View this message in context: http://www.nabble.com/onLoad

Re: onLoad javascript event with Markup inheritance

2008-11-25 Thread Serkan Camurcuoglu
and /wicket:extend) but I don't see them in the generated page (the base + child page). Any Idea how to generate onLoad javascript action for child page? -- View this message in context: http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20681885.html Sent from the Wicket - User mailing

Re: onLoad javascript event with Markup inheritance

2008-11-25 Thread jWeekend
. I would like my child pages to do certain javascript actions when they are loaded. I try to define the the javascript on the childs body (between the wicket:extend and /wicket:extend) but I don't see them in the generated page (the base + child page). Any Idea how to generate onLoad

Re: onLoad javascript event with Markup inheritance

2008-11-25 Thread Ernesto Reinaldo Barreiro
them in the generated page (the base + child page). Any Idea how to generate onLoad javascript action for child page? -- View this message in context: http://www.nabble.com/onLoad-javascript-event-with-Markup-inheritance-tp20681885p20681885.html Sent from the Wicket - User mailing list

Re: onLoad javascript event with Markup inheritance

2008-11-25 Thread itayh
+ child page). Any Idea how to generate onLoad javascript action for child page? http://cwiki.apache.org/WICKET/javascript-and-css-support.html http://cwiki.apache.org/WICKET/javascript-and-css-support.html -- View this message in context: http://www.nabble.com/onLoad-javascript-event

RE: Contribute to the body tag (onload)

2008-10-04 Thread Stefan Lindner
Have a look at http://www.nabble.com/body-onload-contribution-to13097473.html#a13097473 -Ursprüngliche Nachricht- Von: Edgar Merino [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 3. Oktober 2008 13:53 An: users@wicket.apache.org Betreff: Contribute to the body tag (onload) Hello

Contribute to the body tag (onload)

2008-10-03 Thread Edgar Merino
Hello, Is it possible to contribute to the body html tag from within children pages? directly in markup, like when using the wicket:head tag (without modifying the java WebPage). Thanks in advance. Edgar Merino - To

About Wicket portlets, DatePicker, onLoad and onDomReady

2008-09-17 Thread Serkan Camurcuoglu
from the first (such as Wicket and YAHOO objects). However, I've noticed that (while developing a different javascript behaviour for myself), if I execute the required javascript code during the onLoad event (instead of the onDomReady event), all of the date pickers work as expected. I have

Re: body onload contribution

2007-10-18 Thread John Patterson
Something I have noticed with renderOnLoad with my site is that it stopped being called after I added some Javascript for banner ads. Maybe their included script replaced the wicket function. I had to revert to using onLoad which makes gives the impression that the maps load more slowly

body onload contribution

2007-10-08 Thread Evan Chooly
I used the following in my page constructor, but I'm not seeing the change in the HTML. What am I missing? add(new BodyTagAttributeModifier(onload, true, new Model(foo()), this));

Re: body onload contribution

2007-10-08 Thread Matej Knopp
. What am I missing? add(new BodyTagAttributeModifier(onload, true, new Model(foo()), this)); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: body onload contribution

2007-10-08 Thread Evan Chooly
/renderOnDomReady javascript on IHeaderResponse. -Matej On 10/8/07, Evan Chooly [EMAIL PROTECTED] wrote: I used the following in my page constructor, but I'm not seeing the change in the HTML. What am I missing? add(new BodyTagAttributeModifier(onload, true, new Model(foo