Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #31
    Sencha User
    Join Date
    Mar 2007
    Location
    Tours, France
    Posts
    97
    Vote Rating
    0
    wehtam is on a distinguished road

      0  

    Question


    Hello,
    Very good work for DatePickerPlus.
    I just 2 questions:
    - How to pre-select the dates, as if they were clicked ?
    - When I am on my form with DatePickerPlus and I click on the dates. If I come back to this page, these same dates are yet clicked. How to display DatePickerPlus without having clicked dates?

    Sorry for my very bad english
    Thanks

  2. #32
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    888
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Post


    Quote Originally Posted by wehtam View Post
    - How to pre-select the dates, as if they were clicked ?
    Easy, just set them by "selectedDates"

    PHP Code:
    myDatePickerPlus.selectedDates = [
    new 
    Date(2008,0,1),
    new 
    Date(2008,3,5),
    new 
    Date(2008,6,8)

    or add them

    PHP Code:
    myDatePickerPlus.selectedDates.push(new Date(2008,8,9)); 
    But this way visual changes will only happen after you open datepickerplus again...mmh I'm going to add methods for that... next beta coming up ( i need to fix the bug, Richie1985 reported above, first)
    Quote Originally Posted by wehtam View Post
    - When I am on my form with DatePickerPlus and I click on the dates. If I come back to this page, these same dates are yet clicked. How to display DatePickerPlus without having clicked dates?
    Same way: just delete the array

    PHP Code:
    myDatePickerPlus.selectedDates = []; 
    i think i will add another config option that does that automatically for you before showing datepickerplus again or at runtime (as stated above selectedDates-array does not immedialty change the view....gimme some minutes to make this more comfortable.

  3. #33
    Sencha User
    Join Date
    Mar 2007
    Location
    Tours, France
    Posts
    97
    Vote Rating
    0
    wehtam is on a distinguished road

      0  

    Question


    Thanks,
    it's work for my second question, but for the pre-select date nothing
    My code :
    Code:
    <script language="javascript">
    
     	
    	 Ext.QuickTips.init();
        // turn on validation errors beside the field globally
        Ext.form.Field.prototype.msgTarget = 'under';
    	  var simple = new Ext.FormPanel({
            labelWidth: 20, // label settings here cascade unless overridden
            url:'save-form.php',
            frame:true,
            title: 'Gestion des dates pour : <?=addslashes($ol["TitreOffre"])?>',
            bodyStyle:'padding:5px 5px 0',
            width: 250,
    		fileUpload : true,
            defaults: {width: 250},
            defaultType: 'textfield',
            items: [datepickerplusmenu =  new Ext.ux.DatePickerPlus  ({
    		usePickerPlus	: true, //this will fire the use of datepickerplus instead of datepicker
    		noOfMonth : 1,
    		fieldLabel : 'ddddd',
    		noOfMonthPerRow : 1,
    		multiSelection: true,
    		multiSelectByCTRL:false,
    		markNationalHolidays: false,
    		selectMonthText : 'Cliquez ici pour inverser la s&eacute;lection',
    		weekName : 'S',
    		selectWeekText : 'Cliquez ici pour s&eacute;lectionner tous les jours de la semaine',
    		undoText:'Annuler',
    		renderTodayButton :false,
    		renderOkUndoButtons:true,
    		disablePartialUnselect:false,
    		listeners:{'undo':function(){ page('listeOffresSpeciales.php'); }} ,
    	
    		handler : function(dp, date){
    			var allStringDates=[];
    //take care of multiselection on/off (on will return an array of dateobjects, false will return one single dateobject)
    			if (Ext.isDate(date)) {
    				allStringDates.push(date.format('Y-m-d'));
    			}
    			else {
    				Ext.each(date,function(c){
    					allStringDates.push(c.format('Y-m-d'));
    				},this);
    			}
    			simple.getForm().submit({url:'save-dateoffresspeciales.php' , params:{'dates':allStringDates.join('|')},waitMsg:'Enregistrement des informations ...',
    						 success:function(form, action,response){ 
    							 page('listeOffresSpeciales.php?id_rub=<?=$o["IdCategorieOffreSpeciale"]?>');
    						  }
    			
                     		   });
    					
    					
    		//	Ext.MessageBox.alert('Date(s) Selected', 'You have chosen the following day(s):<br>'+allStringDates.join('<br>'));
    		}
    				
    	})
            ]
        });
    	datepickerplusmenu.selectedDates = []; 
    	datepickerplusmenu.selectedDates.push(new Date(2008,4,7));
        simple.render('div_form');
    	
     
    
    
     </script>

  4. #34
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Wooooooooooooo

    Thanks for share!!!

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

      0  

    Default Updated to Beta 6

    Updated to Beta 6


    Quote Originally Posted by wehtam View Post
    Thanks,
    it's work for my second question, but for the pre-select date nothing
    My code :
    I uploaded another Version.

    try

    PHP Code:
     myDatepickerPlus.clearSelectedDates(); 

    and/or

    PHP Code:
     myDatepickerPlus.setSelectedDates(new Date(2008,8,9)); //for single date
    myDatepickerPlus.setSelectedDates([
      new 
    Date(2008,8,9),
      new 
    Date(2008,3,1),
      new 
    Date(2008,0,2),
      new 
    Date(2008,0,10)
    ]); 
    // for many dates at once 

  6. #36
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    888
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by Richie1985 View Post
    mhh but the select event dosnt work
    That was a bug

    You can/should now _always_ use the "afterdateclick" event.
    Get the latest beta 6 and have fun

  7. #37
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    213
    Vote Rating
    0
    sanjshah is on a distinguished road

      0  

    Default


    I'm using beta 6 with the afterdateclick event as:

    PHP Code:
    listeners:{'afterdateclick':function(){var mydate this.valueExt.MessageBox.alert(mydate); }} 
    however the value it picks up is previous one not the new selected one - is this the way it should work? how do I get the new selected date

    Thanks

    Sanj

  8. #38
    Sencha User
    Join Date
    Mar 2007
    Location
    Tours, France
    Posts
    97
    Vote Rating
    0
    wehtam is on a distinguished road

      0  

    Default


    Hello,
    I'm testing the beta 6 but with : setSelectedDates , I have no date selected.


    My code :
    Code:
    <script language="javascript">
    
     	
    	 Ext.QuickTips.init();
        // turn on validation errors beside the field globally
        Ext.form.Field.prototype.msgTarget = 'under';
    	  var simple = new Ext.FormPanel({
            labelWidth: 20, 
            url:'save-form.php',
            frame:true,
            title: 'Gestion des dates pour : <?=addslashes($ol["TitreOffre"])?>',
            bodyStyle:'padding:5px 5px 0',
            width: 250,
    		fileUpload : true,
            defaults: {width: 250},
            defaultType: 'textfield',
            items: [datepickerplusmenu =  new Ext.ux.DatePickerPlus  ({
    		usePickerPlus	: true, //this will fire the use of datepickerplus instead of datepicker
    		noOfMonth : 1,
    		fieldLabel : 'ddddd',
    		noOfMonthPerRow : 1,
    		multiSelection: true,
    		multiSelectByCTRL:false,
    		markNationalHolidays: false,
    		selectMonthText : 'Cliquez ici pour inverser la s&eacute;lection',
    		weekName : 'S',
    		selectWeekText : 'Cliquez ici pour s&eacute;lectionner tous les jours de la semaine',
    		undoText:'Annuler',
    		renderTodayButton :false,
    		//weekendText: 'This day seems to be a weekend...:)',
    		renderOkUndoButtons:true,
    		disablePartialUnselect:false,
    		listeners:{'undo':function(){ page('listeOffresSpeciales.php?id_rub=<?=$o["IdCategorieOffreSpeciale"]?>'); }} ,
    		handler : function(dp, date){
    			var allStringDates=[];
    			if (Ext.isDate(date)) {
    				allStringDates.push(date.format('Y-m-d'));
    			}
    			else {
    				Ext.each(date,function(c){
    					allStringDates.push(c.format('Y-m-d'));
    				},this);
    			}
    			simple.getForm().submit({url:'save-dateoffresspeciales.php?id=<?=$_GET["id"]?>' , params:{'dates':allStringDates.join('|')},waitMsg:'Enregistrement des informations ...',
    						 success:function(form, action,response){ 
    							 page('listeOffresSpeciales.php?id_rub=<?=$o["IdCategorieOffreSpeciale"]?>');
    						  }
    			
                     		   });
    			}
    				
    	})
            ]
        });
    	//datepickerplusmenu.clearSelectedDates(); 
    	
        simple.render('div_form');
    	
     datepickerplusmenu.setSelectedDates(new Date(2008,4,10)); 
    
    
     </script>
    thanks

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

      0  

    Default


    Quote Originally Posted by wehtam View Post
    Hello,
    I'm testing the beta 6 but with : setSelectedDates , I have no date selected.
    Sorry, there still was some bug left in the beta 6. Try current beta 7, please

  10. #40
    Sencha User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    888
    Vote Rating
    9
    wm003 will become famous soon enough

      0  

    Default


    Quote Originally Posted by sanjshah View Post
    I'm using beta 6 with the afterdateclick event as:

    PHP Code:
    listeners:{'afterdateclick':function(){var mydate this.valueExt.MessageBox.alert(mydate); }} 
    however the value it picks up is previous one not the new selected one - is this the way it should work? how do I get the new selected date

    Thanks

    Sanj
    The current selected Date will be passed to the event-function. try this (with latest Beta 7):

    PHP Code:
    listeners:{
        
    'afterdateclick':function(picker,mydate,wasSelected){
            
    Ext.MessageBox.alert('afterdateclick',mydate+(!wasSelected?' was unselected':' was selected'));
        }


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