Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
scotly-victor
Creator II
Creator II

calendar extension

Hi all,

      I needed  calendar extension,

.

I have taken jquery full calendar code   from jquery forum, when I load code on extension object

Everything works fine except jquery css files.

However ,I am wondering issue is with this code

define( ['jquery','text!./fullcalendar-min.css','./moment','./fullcalendar'],

      function ($, cssContent) {
              'use strict';
              $("<style>").html(cssContent).appendTo("head");


Please help me?

4 Replies
Anil_Babu_Samineni

Check the Path, Still path is correct, Please explode more...

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
scotly-victor
Creator II
Creator II
Author

The Path is correct

Anil_Babu_Samineni

Try this:

define( ['jquery','text!./fullcalendar-min.css','./moment','./fullcalendar'],

function ($, cssContent)

{
         'use strict';
         $("style").html(cssContent).appendTo("head");

}


Note: I deleted tag, $ means Selection only .. No need to wrote this <Style>

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable

it use full to check the this path and it is useful

Custom Calendar Extension Jquery Loading Issue