I found out that this is an IE issue. In Firefox it works fine and takes
about 300ms. But unfortunatly i have to use IE6.

So does anyone know how to speedup the javascript handling in IE6?

Benjamin

2008/3/4, Benjamin Ernst <[EMAIL PROTECTED]>:
>
> Hi,
>
> I am trying to figure out where the time is lost.
>
> This is my component, which has an AjaxEventBehaviour:
>
> WebMarkupContainer timeslot = new WebMarkupContainer(id);
>         timeslot.add(new AjaxEventBehavior("onclick")
>         {
>
>             @Override
>             protected void onEvent(AjaxRequestTarget target) {
>                 AppiontmentCalendarPage.setAppiontment(target, date);
>             }
>
>             protected void onComponentTag(ComponentTag tag)
>             {
>                 tag.put("onclick", "var wcall=wicketAjaxGet('"+
> this.getCallbackUrl(false) + "',null,null, function() {return Wicket.$('"
> + this.getComponent().getMarkupId() + "') != null;}.bind(this));");
>
>             }
>         });
>
> This way it takes about 3.6 seconds to render in the browser. But when i
> am putting a constant value in the tag (see below), it only take about 200
> milliseconds.
>
> WebMarkupContainer timeslot = new WebMarkupContainer(id);
>         timeslot.add(new AjaxEventBehavior("onclick")
>         {
>
>             @Override
>             protected void onEvent(AjaxRequestTarget target) {
>                 AppiontmentCalendarPage.setAppiontment(target, date);
>             }
>
>             protected void onComponentTag(ComponentTag tag)
>             {
>                 tag.put("onclick", "var
> wcall=wicketAjaxGet('?wicket:interface=:1:kalender:kalender:31:sa::IBehaviorListener:0:',null,null,
> function() {return Wicket.$('sa229') != null;}.bind(this));");
>
>             }
>         });
>
> I do not think it takes such a long time to get the callbackURL and the
> markupID. But where is the time lost?
>
> Thanks for any answers in advance!
>
> Benjamin
>
>
>
> 2008/3/3, Benjamin Ernst <[EMAIL PROTECTED]>:
> >
> > Hi,
> >
> > I have a a HTML-Table with about 500 cells and each cell has one
> > AjaxLink. A table-cell represents an 10 minute timeslot in a calendar. And
> > when a user clicks on one timeslot I want to show this timeslot in an an
> > other panel.
> >
> > This works fine, but the page takes a long time to render in the browser
> > (about 4 seconds).
> >
> > Do you have any idea how to speed this up? Or is this not possible with
> > so many AjaxLinks?
> >
> > Greets,
> > Benjamin
> >
>
>

Reply via email to