> > > > From: Michael Geary
> > > >  $("#daysheader").load( "ajax/weekview_headers.aspx?fromdate=" +
calendarDay.Date );
> > > >  $("#days").load(
> > > >      "ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date,
> > > >      BindTimeSelectors()
> > > >  );

> > > From: Klaus Hartl
> > > I think it should read:
> > >
> > > $("#days").load(
> > >      "ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date,
> > >      BindTimeSelectors
> > > );

Yeah, bad tyop on my part - thanks for catching it!

> > From: Tom Holder
> > I tried that and it didn't work until I added function(){} 
> > around the BindTimeSelectors function eg.
> >
> > $("#days").load(
> >     "ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date,
> >     function(){BindTimeSelectors;}
> > );

That definitely wouldn't work - it doesn't call the BindTimeSelectors
function at all!

Maybe you actually coded this, which would work:

> > $("#days").load(
> >     "ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date,
> >     function(){ BindTimeSelectors(); }
> > );

But it's overkill.

> From: John Resig
> Tom - the following should do the trick:
> 
> $("#days").load(
>    "ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date,
>    BindTimeSelectors
> );
> 
> Calling BindTimeSelectors() was executing it too early, and there's no
> need for an extra wrapper function - since it is a function to begin
> with. Hope that helps.

Righto, that was what I meant to post in the first place. Must...
proofread... posts...

-Mike


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to