Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8342623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:49:34+00:00 2026-06-09T05:49:34+00:00

its my first question here, i hope be especifc. I’m using UI DatePicker with

  • 0

its my first question here, i hope be especifc.
I’m using UI DatePicker with Magento and Php, everything gonna be right, but on IE9 nothing work well. Here is my code, i cant format the code better here dont know why.

<script type="text/javascript">
            jQuery(document).ready(function(jQuery){


    jQuery.datepicker.regional['pt-BR'] = {
        closeText: 'Fechar',
        prevText: '&#x3c;Anterior',
        nextText: 'Pr&oacute;ximo&#x3e;',
        currentText: 'Hoje',
        monthNames: ['Janeiro','Fevereiro','Mar&ccedil;o','Abril','Maio','Junho',
        'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
        monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun',
        'Jul','Ago','Set','Out','Nov','Dez'],
        dayNames: ['Domingo','Segunda-feira','Ter&ccedil;a-feira','Quarta-feira','Quinta-feira','Sexta-feira','S&aacute;bado'],
        dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','S&aacute;b'],
        dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','S&aacute;b'],
        weekHeader: 'Sm',
        dateFormat: 'dd/mm/yy',
        firstDay: 0,
        isRTL: false,
        showMonthAfterYear: false,
        yearSuffix: ''};
    jQuery.datepicker.setDefaults(jQuery.datepicker.regional['pt-BR']);


                jQuery('#entregaprodutoCalendario').datepicker({

                    onSelect: function(dataSelecionada){
                        jQuery.ajax({
                            cache: false,
                            url: '<?php echo Mage::getUrl()?>Entregaproduto/standard/ajaxVerificaDataEntrega',
                            data: {dataSelecionada: dataSelecionada},
                            type: 'GET',
                                                        async: false,
                            dataType: 'json',
                            success: function(data){
                                jQuery('#ul_data_entrega').empty();
                                if(data.length > 0){
                                    jQuery('#ul_data_entrega').append(jQuery('<li></li>').html(' Data : <b>'+data[0].entrega_data+'</b>'));

                                    for(var i=0; i<data.length; i++){
                                        var li = jQuery('<li></li>');
                                                                                var label = jQuery('<label></label>');
                                        var radio = jQuery('<input />').attr({type: 'radio', name: 'entrega_data_hora'});
                                                                                radio.attr('class','radio_hora');            
                                        if(i == 0)
                                            radio.attr('checked','checked');

                                        radio.val(data[i].entrega_data+' entregar ate as '+data[i].entrega_hora_final);
                                        label.append(radio,' entregar at&eacute; &aacute;s <b>'+data[i].entrega_hora_final+'</b>');
                                        li.append(label);
                                                                                jQuery('#ul_data_entrega').append(li);
                                    }
                                }else{
                                    jQuery('#ul_data_entrega').html('<li><span class=dataJaSelecionada>Nenhum horario encontrado!</span></li>');
                                }
                            }
                        });

                        jQuery('#data_entrega').val(dataSelecionada);
                    }
                });

                                jQuery(".radio_hora").live('click', function(){
                                    jQuery(".radio_hora").attr('checked',false);
                                    jQuery(this).attr('checked',true);
                                });
            });
        </script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:49:35+00:00Added an answer on June 9, 2026 at 5:49 am

    I’ve solved this guys, after 1 day of fight.
    Its becouse, the document ready execute before IE ready to recive all instructions. And get it together with IE bug lose reference we got caos.

    jQuery(document).ready(function(jQuery){
    
    
    jQuery.datepicker.regional['pt-BR'] = {
        closeText: 'Fechar',
        prevText: '&#x3c;Anterior',
        nextText: 'Pr&oacute;ximo&#x3e;',
        currentText: 'Hoje',
        monthNames: ['Janeiro','Fevereiro','Mar&ccedil;o','Abril','Maio','Junho',
        'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
        monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun',
        'Jul','Ago','Set','Out','Nov','Dez'],
        dayNames: ['Domingo','Segunda-feira','Ter&ccedil;a-feira','Quarta-feira','Quinta-feira','Sexta-feira','S&aacute;bado'],
        dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','S&aacute;b'],
        dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','S&aacute;b'],
        weekHeader: 'Sm',
        dateFormat: 'dd/mm/yy',
        firstDay: 0,
        isRTL: false,
        showMonthAfterYear: false,
        yearSuffix: ''};
    jQuery.datepicker.setDefaults(jQuery.datepicker.regional['pt-BR']);
    
    setTimeout(function(){ativarCalendario()},3000);    
            });
        function ativarCalendario(){
            jQuery('#entregaprodutoCalendario').datepicker({
    
                onSelect: function(dataSelecionada){
                    jQuery(".ui-datepicker a").removeAttr("href");
                    jQuery.ajax({
                        cache: false,
                        url: '<?php echo Mage::getUrl()?>Entregaproduto/Standard/ajaxVerificaDataEntrega',
                        data: {dataSelecionada: dataSelecionada},
                        type: 'GET',
                                                    async: false,
                        dataType: 'json',
                        success: function(data){
                            jQuery('#ul_data_entrega').empty();
                            if(data.length > 0){
                                jQuery('#ul_data_entrega').append(jQuery('<li></li>').html(' Data : <b>'+data[0].entrega_data+'</b>'));
    
                                for(var i=0; i<data.length; i++){
                                    var li = jQuery('<li></li>');
                                                                            var label = jQuery('<label></label>');
                                    var radio = jQuery('<input />').attr({type: 'radio', name: 'entrega_data_hora'});
                                                                            radio.attr('class','radio_hora');            
                                    if(i == 0)
                                        radio.attr('checked','checked');
    
                                    radio.val(data[i].entrega_data+' entregar ate as '+data[i].entrega_hora_final);
                                    label.append(radio,' entregar at&eacute; &aacute;s <b>'+data[i].entrega_hora_final+'</b>');
                                    li.append(label);
                                                                            jQuery('#ul_data_entrega').append(li);
                                }
                            }else{
                                jQuery('#ul_data_entrega').html('<li><span class=dataJaSelecionada>Nenhum horario encontrado!</span></li>');
                            }
                        }
                    });
    
                    jQuery('#data_entrega').val(dataSelecionada);
                }
            });
    
            jQuery(".radio_hora").live('click', function(){
            jQuery(".radio_hora").attr('checked',false);
            jQuery(this).attr('checked',true);
            });
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

it's my first question here and I hope that I'm doing it right. I
The first part of this question is now its own, here: Analyzing Text for
first sorry if its a stupid question but im lost a bit. So when
This is my first question here, hope to be useful in future to someone.
this my first question on here. I hope someone can help. It is to
This is actually my very first question on Stackoverflow. I hope its not the
This is my first question to SO, I hope to get it right. In
this is my first time asking a question here so I hope I am
Its my first time asking here, i hope get help, and meanwhile, help you
First of all sorry if it's a dumb question (and surely it is), but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.