In the page put:
function initMyDatePickers() {
$('#initialDate').datepicker({
changeMonth: true,
changeYear: true,
showOn: 'button',
buttonImage: 'views/images/calendar.jpg',
buttonImageOnly: true
});
}
$(document).ready(initMyDatePicker);
Then, in AjaxRequestTarget#appendJavascript("initMyDatePicker()");
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, May 17, 2010 at 2:07 PM, Ivoneta <[email protected]> wrote:
>
> The first time the datepicker field is initialized when the DOM is ready
> $(document).ready(function(){
> $('#initialDate').datepicker({
>
> changeMonth: true,
> changeYear: true,
> showOn: 'button',
> buttonImage: 'views/images/calendar.jpg',
> buttonImageOnly: true
> });
> }
>
> If I use AjaxRequestTarget#appendJavascript() Will I to put all the
> functions associate with the things that I need in it?
> is there another form to inicialize the javascript? Not only pieces of it?
> I ask you, because put all the content of the javascript like a parameter
> in
> the AjaxRequestTarget#appendJavascript() for all the replace panels that I
> need to do, is like repetitive!
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220181.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>