Hi Guys,

I'm fairly new to Jquery but love it! My problem:

I'm loading some DIV in to a container DIV using AJAX... all works
like a charm. However, I need to bind some events to the DIVs I'm
dynamically loading in, no joy :(

I guess I need to refresh the DOM somehow?

My code looks like:



$("#daysheader").load("ajax/weekview_headers.aspx?fromdate=" +
calendarDay.Date);

$("#days").load("ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date);

BindTimeSelectors();



function BindTimeSelectors()

{

    //Wire up mouse down events to the day selectors.

    $("#day1selector").mousedown(function(){mouseDown("day1selector");});

    $("#day2selector").mousedown(function(){mouseDown("day2selector");});

    $("#day3selector").mousedown(function(){mouseDown("day3selector");});

    $("#day4selector").mousedown(function(){mouseDown("day4selector");});

    $("#day5selector").mousedown(function(){mouseDown("day5selector");});

}

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

Reply via email to