I may be wrong, so I give some more information. I use daterangepicker
component from filament group which is mainly based on the datepicker
widget. I set-up an "instance" on an existing input -> text element
which works fine. Now as I have a picture right to the input element I
want to trigger to show up the daterangepicker component exactly the
same way as when I click into the input -> text element.
My code:
$('#date').daterangepicker({
                        arrows:false,
                        presets: {
                                dateRange: 'Dátumok közötti',
                        },
                        presetRanges: [
                                {
                                        text: 'Tegnap',
                                        dateStart: function() { return 
Date.parse('yesterday'); },
                                        dateEnd: function() { return 
Date.parse('yesterday'); }
                                },
                                {
                                        text: 'Aktuális hét',
                                        dateStart: function() { return 
Date.parse('monday'); },
                                        dateEnd: function() { return 
Date.parse('today'); }
                                },
                                {
                                        text: 'Aktuális hónap',
                                        dateStart: function(){ return Date.parse
('today').moveToFirstDayOfMonth(); },
                                        dateEnd: function(){ return Date.parse
('today').moveToLastDayOfMonth(); }
                                },
                                {
                                        text: 'Előző hónap',
                                        dateStart: function(){ return 
Date.parse('1 month
ago').moveToFirstDayOfMonth(); },
                                        dateEnd: function(){ return 
Date.parse('1 month
ago').moveToLastDayOfMonth(); }
                                }
                        ],
                        rangeStartTitle: '-tól',
                        rangeEndTitle: '-ig',
                        doneButtonText: 'Mehet',
                        dateFormat: 'yy.mm.dd.',
                        datepickerOptions: {
                                showOn: 'both',
                                monthNames:
['Január','Február','Március','Április','Május','Június','Július','Augusztus','Szeptember','Október','November','December'],
                                dayNamesMin: 
['Hé','Ke','Sze','Cs','Pé','Szo','Va'],
                                maxDate: '+0D'
                        }
                });
                $('#submitquery').click( function(){
                        $('#date').daterangepicker().show();
                } );
I tried to set focus on the input -> text element but the
daterangepicker component show up and hide itself immediately.
Can I achieve the same effect as when I would click into the input-
>text element with clicking on the image component?

r. Sandor

On Nov 23, 10:04 am, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> If you call .datepicker() on a div it will display inline. You can then hide
> and show yourself.
>
> - Richard
>
>
>
> On Sun, Nov 22, 2009 at 8:16 AM, carstep <cars...@gmail.com> wrote:
> > Hi,
>
> > is there any possibility to trigger the datepicker widget from an HTML
> > element that haven't given previously as a picture to the datepicker
> > dialog? I want to keep my current UI.
>
> > r. Sandor
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "jQuery UI" group.
> > To post to this group, send email to jquery...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups 
> > .com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/jquery-ui?hl=.

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=.


Reply via email to