Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Ati74

    (@ati74)

    $instance = array();
    return $instance;

    This in the update-Function resolved the Problem

    Ati

    Thread Starter Ati74

    (@ati74)

    Thanks for your answer…but this was not the solution.
    Anyway there was a logical bug exists, so i do everything new.

    Thread Starter Ati74

    (@ati74)

    It seems that i found the “error”. The varable $lkw comes from an Input-Field, which is setting by jQuery. There is something stupid. After i select a postal code from a dropdownlist the Value is setting by jQuery (e.g. 502), if i write 502 manually in the input-field everything works fine. Here ist the jquery-code

    $('#lieferort').change(function(){
    
    		var meinplz = $(this).val();
    		var data = {
    		action: 'lieferort_plz',
    		plz: meinplz
    		};
    		 $.post(lieferterminajax.ajaxurl, data, function(resp) {
    			//jQuery('input[name="tour"]').val(resp);
    			jQuery('#tournummer').val(resp);
    
    		});

    What can i do?

    Thread Starter Ati74

    (@ati74)

    I found this discussion too, but i don´t want modify any core-files.
    I hoped there is an another solution.

    Thread Starter Ati74

    (@ati74)

    Hi,

    here is my update.

    @digitalbhavin
    Your code changed nothing…sorry

    @jose Castaneda
    The example use the ID-selector, and this works for me.

    I think we should stop at this point and i use the ID-Selektor, because this works and everything is fine.

    Thank you very much for your advises.

    Ati74

    Thread Starter Ati74

    (@ati74)

    Hm i hope i changed the code correctly…but now the datepicker doesn´t pop up. My code looks actaully like this

    jQuery(document).ready(function() {
        jQuery('.datpicker').datepicker({
    		if (nodeName == 'input') {
    this._connectDatepicker(target, inst);
    } else if (inline) {
    this._inlineDatepicker(target, inst);
    }
    	   	monthNames: ['Januar','Februar','Maerz','April','Mai','Juni',
        	             'Juli','August','September','Oktober','November','Dezember'],
        	             monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
        	             'Jul','Aug','Sep','Okt','Nov','Dez'],
        	             dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
        	             dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
        	             dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
            dateFormat : "dd.mm.yy",
            firstDay : 1
        });
    });

    If i use the ID-Selector everythings works fine

    Thread Starter Ati74

    (@ati74)

    Hm if i changed jQuery(‘.meindatum’).datepicker to jQuery(‘#meindatum’).datepicker and give the inputfield this Id everything works fine..if i changed back to class i can´t select a date.

    Thread Starter Ati74

    (@ati74)

    get_stylesheet_directory_uri()is the same behavior. But what do you mean with console? A special plugin or where can i find the console?

    Edit: Google is your friend..sorry for this question. The console says
    TypeError: a is undefined in jquery.ui.datepicker.min.js

    Thread Starter Ati74

    (@ati74)

    Can anybody help me, or is this maybe the wrong section? Should i place my promlrm in “How-To an Troubleshooting” or an another section?

    Ati74

Viewing 9 replies - 1 through 9 (of 9 total)