My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 743: className
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Dec 2010


Sign in to add a comment
 
Reported by massimo....@gmail.com, Dec 2, 2010
hi, 

i want use className dinamicly, but not working.
this is my code:
    <style type="text/css">
      
        .vacation, .fc-agend a .vacation .fc-event-time, .vacation a
        {
            background-color: Maroon; /* background color */
            border-color: Maroon; /* border color */
            color: White; /* text color */
        }
      
    </style>

events: function (start, end, callback) {
                $.ajax({
                    url: 'calendario.aspx/LoadData',
                    contentType: "application/json; charset=utf-8",
                    type: 'POST',
                    dataType: "json",
                    data: {},
                    error: function (xhr, type, exception) { alert("Error: " + exception); },
                    success: function (doc) {
                        var events = [];
                        var e = doc.d;
                        $.each(e, function(index, e) {
                            events.push({
                                title: e.title,
                                end: e.end,
                                start: e.start,
                                className: 'vacation'
                            });
                        });
                        callback(events);
                    }
                });
            },


Dec 3, 2010
Project Member #1 althaus.it
Are the events not set at all or is only the classname mising? Have you checked with a tool like Firebug, if the drawn events get the class set?
Dec 26, 2010
Project Member #2 adamrs...@gmail.com
you'll need to debug this on your own, using firebug, or as your last resort, ask on stackoverflow.

might be a problem with your misspelling of "fc-agenda" or maybe your colors shouldn't be capitalized ("white", "maroon", etc).
Status: Done
Sign in to add a comment

Powered by Google Project Hosting