Addendum to my last:
Apparently the simple alert case *is* working in Safari 3.2.1 but *is not* in Firefox 3.0.6.

This suggests to me that the script has not been updated for Firefox, or that firefox just doesn't support the script (which I find hard to believe).

is anyone else using 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) {
                response.renderOnLoadJavascript("alert('test')");
       }
...

which output in the HTML:

...
<script type="text/javascript" src="../../resources/ org.apache.wicket.markup.html.WicketEventReference/wicket- event.js"></script>

<script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
Wicket.Event.add(window, "load", function(event) { alert('test');});
/*-->]]>*/</script>
...


However no matter what I seem to do (i've tried this about six different way so far) the alert *never* fires (note: my actual script is more complex, but I'm using alert to debug).

I've also tried it in both Safari 3.2.1 and Firefox 3.0.6 with the same result (i.e. nothing happens)

Is there a known bug in 1.4-SNAPSHOT?
Does anyone else have this working?

- Brill


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

Reply via email to