Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8883121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:44:21+00:00 2026-06-14T20:44:21+00:00

I need to render the events as HTML tables after an AJAX call is

  • 0

I need to render the events as HTML tables after an AJAX call is made. I’m getting the table HTMLS when it is success. But when the it is rendered in title, it is displaying the table HTMLS as normal text. When I googled it I found a solution that I need to use the below code to render it as HTMLS:

eventRender: function (event, element) {
element.find('span.fc-event-title').html(element.find('span.fc-event-title').text());
}); 

But when I put it in my code, it’s showing some JS error. I don’t know why this error is happening. Please help me to figure out. Please find the full section of that code below:

  dayClick: function(start,allDay, jsEvent, view) {
   $('#calendar').fullCalendar('changeView', 'agendaDay');
  var date_clicked = $.fullCalendar.formatDate( start, "yyyy/MM/dd");
  var date_for_view = Date.parse(date_clicked);
  var date_for_view=new Date(date_for_view);
  $('#calendar').fullCalendar( 'gotoDate',date_for_view );
  $.ajax({
      url: "/admins/users/update_projects?date_selected="+date_clicked+"&uid="+'<%=params[:user]%>',
      type: 'GET',
      success: function (data, response, event, date) {
           $('#calendar').fullCalendar('renderEvent',
              {
                title: data,
                start: start
              },
      eventRender: function (event, element) 
              {
               element.find('span.fc-event-title').html(element.find('span.fc-event-title').text());           
              }); },
      error: function () {
          $('#calendar').fullCalendar('renderEvent',
              {
                title: "No Tasks Scheduled Today",
                start: date_clicked              
              });      
               }
            });
  },
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:44:24+00:00Added an answer on June 14, 2026 at 8:44 pm

    You should add the eventRender callback to the code where you initialize the calendar

    // create fullCalendar
    $('#calendar').fullCalendar({
        eventRender: function(event, element, view) {
             if (view.name == 'agendaDay') {
                  element.find('span.fc-event-title').html(element.find('span.fc-event-title').text());
             }
        }
    });
    

    In the Ajax response, just call the renderEvent method and pass an event as a second argument

    //call the render event method
    $('#calendar').fullCalendar('renderEvent', {
           title: 'My Event 2',
           start: '2012-11-25'
    });
    

    Working example: http://jsfiddle.net/bfz3J/1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to re-render an image ( Ext.Image ) after some events. I found
Let's just say that I need to render a certain amount of HTML over
Why is there a need to explicitly call GridView.DataBind() to render the gridview. Why
I need to render a partial view to a string within a controller action.
I need to render a 1027 * 768 bitmap to the client window (same
I'm using Backbone.Marionette and need to render a view of employees and their respective
I'm writing a game in python with pygame and need to render text onto
Is it possible to add sprite feature in XTK ? I need to render
I have a report which is composed of several subreports. I need to render
I'm writing a retro type game for the iPhone, and need to render a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.