OK, I am sorry for my mistake but I am still not convinced that third parameter which is a
options => array() is a HTML compliant <input> tag parameters has a remote function inside the array. But the below mentioned information is not at all understood by me. Probably may not be an HTML expert that's why we need some practical examples ============================================================= (string) input_date_tag ($name, $value = null, $options = array()) Browse code $name field name $value date $options additional HTML compliant <input> tag parameters Returns an XHTML compliant <input> tag to be used as a free-text date field. You can easily implement a JavaScript calendar by enabling the 'rich' option in the $options parameter. This includes a button next to the field that when clicked, will open an inline JavaScript calendar. When a date is selected, it will automatically populate the <input> tag with the proper date, formatted to the user's culture setting. Symfony also conveniently offers the input_date_range_tag, that allows you to specify a to and from date. Options: rich - If set to true, includes an inline JavaScript calendar can auto-populate the date field with the chosen date. =================================================================== On Fri, Aug 7, 2009 at 11:35 PM, Eno<symb...@gmail.com> wrote: > > On Fri, 7 Aug 2009, DEEPAK BHATIA wrote: > >> "with" => "'select'+javascript_code" >> >> with is not a regular HTML option. > > You asked about specifically about input_date_tag, but what you're talking > about NOW is the remote_function. Quoting your own code: > > <?php echo input_date_tag('selectdate', $currentdate, array('rich' => > true, 'onchange'=> remote_function(array('update' => > 'common_area','url' => 'home/homeselectdate','script' => > true,'with'=>"'id='+this.value")))); ?> > > > i.e. the 'with' parameter is for the remote_function call, not > input_date_tag. > > I think worked examples are good but that's no excuse to not read the > documentation. > > > -- > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---