robmonie / jquery-week-calendar

Now actively maintained in the following fork - https://github.com/themouette/jquery-week-calendar
388 stars 388 forks source link

How can I use jquery-week-calendar for ASP? #30

Closed wcphi closed 13 years ago

wcphi commented 13 years ago

CODE data : function(start, end, callback) { t_start = 'need start time'; //<-problem here. What am I filled? t_end = 'need end time'; //<-problem here. What am I filled? t_title = 'need title'; //<-problem here. What am I filled? t_body = 'need body'; //<-problem here. What am I filled?

    $.post("weekcalendar_update.asp", { 
        start: start.getTime(), 
        end: end.getTime(),
        w_body: t_body,
        w_title: t_title,
        n_id: id,
        w_start: t_start,
        w_end: t_end
        },
            function(result) { 
                            if (result != null) { 
                                    // alert(result.toSource()); 
                                    for (i in result) { 
                                            var calEvent = result[i]; 
                                            calEvent.userId = parseInt(calEvent.userId); 
                                    } 
                            } 
                            var calevents = result; 
                            callback(calevents); 
    }, "json"); 
  } 

I can write something to the database. but data is wrong Please help me...thanks

wcphi commented 13 years ago

Resolved ...thanks