1. #111
    Ext User
    Join Date
    Oct 2007
    Posts
    24
    Vote Rating
    0
    aacraig is on a distinguished road

      0  

    Default


    Quote Originally Posted by wm003 View Post
    ok, here's the promised update. I hope you all will get satisfied..
    Thanks wm003, this is really a fabulous extension. I have incorporated it into a day planner extension which I will post here as soon as I clean it up a bit

    I now see the setEventDates() function works perfectly!

    Thanks again for the great work!

  2. #112
    Ext User
    Join Date
    Oct 2007
    Posts
    24
    Vote Rating
    0
    aacraig is on a distinguished road

      0  

    Default cls parameter on setDates weirdness?

    cls parameter on setDates weirdness?


    I have discovered a problem in the CSS class handling when calling setDates().

    If I create an array of dates and then send them to setDates() as follows

    Code:
    var aDates = 
      [
      {date: new Date(2008, 1, 1), text: "date 1", cls: "hilight-1"}, 
      {date: new Date(2008, 1, 2), text: "date 2", cls: "hilight-2"}
      ];
    
    cal.setDates(aDates);
    when the calendar is re-drawn, the <td> element for both cells now contain a reference for both classes:

    Code:
    <td class="x-date-active hilight-1 hilight-2" id="ext-gen121" title="">
      <a tabindex="1" class="x-date-date" hidefocus="on" href="#">
        <em>
          <span id="ext-gen61">12</span>
        </em>
      </a>
    </td>
    I've tried to step through to see where the problem lies, and I believe it's on or around line 1183/1184:

    Code:
    if(cal.eventDatesNumbered[2][foundday]!==""){						
      eCell.addClass(cal.eventDatesNumbered[2]);
    In Firebug it looks like after the class is added, the cell now has both classes associated.

  3. #113
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    889
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default 1.1 Final Released

    1.1 Final Released


    1.1 Final released:

    Demopage and first Post for Downloads have been updated

    - added config "allowMouseWheel" to generally turn on/off Mousewheelsupport (suggested by boraldo)
    - added event "beforemousewheel" to be able to temporary disable the mousewheel if desired
    - added event "beforemaxdays" to be able to cancel the default MessageBox but do something on your own instead
    - Implemented fix for xdatefield code to support applyTo Config (thanks to mystix)
    - updated russian local (thanks to WhiteRussian)
    - BUGFIX: updating eventclasses (and others) could result in wrong class-definition per cell (reported by aacraig)

  4. #114
    Ext User
    Join Date
    Oct 2007
    Posts
    24
    Vote Rating
    0
    aacraig is on a distinguished road

      0  

    Default


    Quote Originally Posted by wm003 View Post
    [B]1.1 Final released:

    - BUGFIX: updating eventclasses (and others) could result in wrong class-definition per cell (reported by aacraig)
    Sorry to report that the error doesn't seem to be fixed yet.

    I've put together a test page to demonstrate the problem. I hope you find it useful.

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
      <title>DatePickerPlus test page</title>
      <link rel="author" title="Aaron Craig" href="mailto: software@aaroncraig.com (Aaron Craig) ">
      <link rel="stylesheet" type="text/css" href="javascript/ext-2.1/resources/css/ext-all.css" />
      <link rel="stylesheet" type="text/css" href="javascript/ext-2.1/resources/css/xtheme-gray.css" />
      <link rel="stylesheet" type="text/css" href="javascript/ext-2.1/ux/ext.ux.datepickerplus/cc.css" />
      <script src="javascript/ext-2.1/adapter/ext/ext-base.js"></script>
      <script src="javascript/ext-2.1/ext-all-debug.js"></script>
      <script src="javascript/ext-2.1/patches.js"></script>
      <script src="javascript/ext-2.1/ux/ext.ux.datepickerplus/ext.ux.datepickerplus-min.js"></script>
      <style>
        .class_1
          {
          background-color: blue;
          }
    
        .class_2
          {
          background-color: red;
          }
      </style>
    </head>
    <body>
    <div id='calendar'></div>
    </body>
    <script>
    var cal = null;
    
    Ext.onReady(function()
      {
      Ext.QuickTips.init();
      cal = new Ext.ux.DatePickerPlus
        ({
        value:            new Date(),
        minDate:          new Date(),
        noOfMonth:        2,
        noOfMonthPerRow:  2,
        showWeekNumber:   true,
        showActiveDate:   true,
        listeners:
          {
          render: function(){ set_dates() }
          }
        });
      cal.render('calendar');
      });
    
    function set_dates()
      {
      var aDates =
        [{
        text: 'date 1',
        cls:  'class_1',
        date: new Date(2008, 6, 20)
        },
        {
        text: 'date 2',
        cls:  'class_2',
        date: new Date(2008, 6, 21)
        }]
      cal.setEventDates(aDates);
      }
    </script>
    </html>
    As you can see, the expected result is that the first square on 20 June has a blue background, and the second cell on 21 June has a red one. Instead, they are both red and if you examine both elements in Firebug, you can see that both <td> element contains both class names in its class attribute.

  5. #115
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    889
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by aacraig View Post
    Sorry to report that the error doesn't seem to be fixed yet.
    I updated the first post, please try again. I could swear i already patched it...somehow i didn't save the code before ...

  6. #116
    Ext User
    Join Date
    Oct 2007
    Posts
    24
    Vote Rating
    0
    aacraig is on a distinguished road

      0  

    Default


    Quote Originally Posted by wm003 View Post
    I updated the first post, please try again. I could swear i already patched it...somehow i didn't save the code before ...

    It works!

    Thanks very much for your quick response.

  7. #117
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    889
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default New ZIP of 1.1 available

    New ZIP of 1.1 available


    Please re-Download the zip from the first post. There was still some little Bug left. As its very minor, it hasn't got a new Version Number so still says 1.1 Final.

  8. #118
    Ext User
    Join Date
    Nov 2007
    Posts
    1
    Vote Rating
    0
    andreabat is on a distinguished road

      0  

    Default Italian locale with holidays

    Italian locale with holidays


    Hi,
    here's the italian locale if anyone needs it..
    Ciao
    Attached Files
    Last edited by andreabat; 24 Jun 2008 at 5:45 AM. Reason: forgot attach

  9. #119

  10. #120
    Ext User
    Join Date
    May 2008
    Posts
    30
    Vote Rating
    0
    descheret is on a distinguished road

      0  

    Question minDate & maxDate + deactivating EventDates

    minDate & maxDate + deactivating EventDates


    Hello. Actally I do my first project including the DatePickerPlus. The most works fine but I've two questions and can't find anything in the froum:
    1. I know how to use minDate and Max date and it works (only the allowed range is clickable) but is it also possible to lock the month and year select buttons to the allowes months only? so that it isn't possible to select or scroll into the "forbidden area"? It's not possible to click them anyway and thats good. But why should the user see the days and months? (in my case it's a range from 1st july till 31th dec 08)
    2. this question is about the EventDates, I know how to use them and it works. But also - is there a way to remove the link from this special days. so that's possible to see them (different style) but not to click them?
    Thank you very much
    Ronald

Thread Participants: 111

  1. galdaka (1 Post)
  2. wehtam (5 Posts)
  3. nassaja-rus (1 Post)
  4. mystix (5 Posts)
  5. ludoo (1 Post)
  6. jsakalos (1 Post)
  7. laluigino (2 Posts)
  8. evant (1 Post)
  9. methodz (1 Post)
  10. stevebla (1 Post)
  11. netnoise (1 Post)
  12. KampfCaspar (1 Post)
  13. carstep (2 Posts)
  14. ZooKeeper (1 Post)
  15. nromanel (6 Posts)
  16. Spirit (1 Post)
  17. yuewah (4 Posts)
  18. chemist458 (3 Posts)
  19. jerrybrown5 (3 Posts)
  20. gtomalesky (5 Posts)
  21. jo2008 (1 Post)
  22. aacraig (7 Posts)
  23. stumpy_uk (2 Posts)
  24. hattia (3 Posts)
  25. lpfLoveExt (1 Post)
  26. thoreking (3 Posts)
  27. markusreimers (1 Post)
  28. sigaref (2 Posts)
  29. andreabat (1 Post)
  30. sanjshah (6 Posts)
  31. mask_hot (4 Posts)
  32. dorgan (1 Post)
  33. bornsilly (1 Post)
  34. Zord (3 Posts)
  35. aaronchiang (1 Post)
  36. skbach (5 Posts)
  37. joenilson (2 Posts)
  38. S1-Gezi (1 Post)
  39. pcsernyik (6 Posts)
  40. vizcano (1 Post)
  41. Richie1985 (2 Posts)
  42. radtad (6 Posts)
  43. tagsum (3 Posts)
  44. Nohcs777 (5 Posts)
  45. lavitsky (1 Post)
  46. Hunyi (1 Post)
  47. brenda (3 Posts)
  48. hp (2 Posts)
  49. Dave.Sanders (4 Posts)
  50. DVSDevise (3 Posts)
  51. moegal (3 Posts)
  52. EzBulka (1 Post)
  53. catapl3xis (2 Posts)
  54. rvrdesigns (2 Posts)
  55. rich02818 (5 Posts)
  56. armandoxxx (2 Posts)
  57. WhiteRussian (4 Posts)
  58. lacco (1 Post)
  59. Ronhead (3 Posts)
  60. Urkman (1 Post)
  61. descheret (3 Posts)
  62. dimitrij.zub (1 Post)
  63. hirenb (1 Post)
  64. sasho (7 Posts)
  65. CR_RedFox (1 Post)
  66. joshuabco (1 Post)
  67. apimio (4 Posts)
  68. sirtimbly (2 Posts)
  69. canxss (2 Posts)
  70. SimoAmi (2 Posts)
  71. wemerson.januario (1 Post)
  72. dubdub (3 Posts)
  73. Naokai (5 Posts)
  74. RuiDC (4 Posts)
  75. dkarlsso (1 Post)
  76. slisbin (1 Post)
  77. Chods (2 Posts)
  78. dkroells (3 Posts)
  79. alvaro1728 (1 Post)
  80. sneema (15 Posts)
  81. AdamLShepherd (2 Posts)
  82. bholyoak (2 Posts)
  83. dtex-lab (1 Post)
  84. EZboy (2 Posts)
  85. burbur (1 Post)
  86. strad84 (2 Posts)
  87. radubrehar (4 Posts)
  88. almotasim (2 Posts)
  89. itheart (1 Post)
  90. fmntf (4 Posts)
  91. Allbus (2 Posts)
  92. sprakash (2 Posts)
  93. sansie (3 Posts)
  94. siebe vos (6 Posts)
  95. gkarmadi (1 Post)
  96. fabads (16 Posts)
  97. kskrumpet (4 Posts)
  98. sivanesan (1 Post)
  99. marco81 (1 Post)
  100. Lobo (2 Posts)
  101. benoitrx (1 Post)
  102. JazzMan88 (3 Posts)
  103. Urzzza (1 Post)
  104. josefhaydn (2 Posts)
  105. eja40 (3 Posts)
  106. lukasw44 (1 Post)
  107. thchuong (1 Post)
  108. twhra (1 Post)
  109. ronei (1 Post)
  110. qdano (1 Post)
  111. quintenvk (1 Post)

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."