• Resolved maraboumodulo707

    (@maraboumodulo707)


    Hello i have this problem with VikBooking plugin. this message appears under the plugin calendar

    ‘; // remove first or last calendar, then prepend or append this calendar depending on the direction var cur_old_cal_index = direction == ‘next’ ? (jQuery(‘.vbcaldivcont’).length – 1) : new_calendars_parsed; if (direction == ‘next’) { jQuery(‘.vbcaldivcont’).eq(cur_old_cal_index).after(cal_html); jQuery(‘.vbcaldivcont’).first().remove(); } else { jQuery(‘.vbcaldivcont’).eq(cur_old_cal_index).before(cal_html); jQuery(‘.vbcaldivcont’).last().remove(); } // increase parsed calendars counter new_calendars_parsed++; } // update navigation dates if (cal_data[‘next_ymd’]) { vboAvCalsNavNext = cal_data[‘next_ymd’]; } if (cal_data[‘prev_ymd’]) { vboAvCalsNavPrev = cal_data[‘prev_ymd’]; } // stop loading jQuery(‘.vbcaldivcont’).removeClass(‘vbcaldivcont-loading’); vboAvCalsNavLoading = false; // restore navigation arrows jQuery(‘.vbo-rdet-avcal-nav’).remove(); if (cal_data[‘can_nav_next’]) { jQuery(‘.vbcaldivcont’).last().find(‘.vbcaltrmonth td’).append(‘>’); } if (cal_data[‘can_nav_prev’]) { jQuery(‘.vbcaldivcont’).first().find(‘.vbcaltrmonth td’).prepend(‘<‘); } } catch (e) { console.log(e); alert(‘Invalid response’); jQuery(‘.vbcaldivcont’).removeClass(‘vbcaldivcont-loading’); vboAvCalsNavLoading = false; return false; } }).fail(function(err) { console.error(err); alert(‘Could not navigate’); jQuery(‘.vbcaldivcont’).removeClass(‘vbcaldivcont-loading’); vboAvCalsNavLoading = false; }); }); });

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hello,

    Thanks for sharing the details of the issue you’re having. That’s pure JavaScript code used by VikBooking in the “Room Details” page.

    The fact that you’re seeing raw JavaScript code as if it was regular text or content, indicates that some sort of HTML parser in your page/theme is erroneously breaking the script tags of VikBooking by converting it into text rather than keeping it as JavaScript code.

    Our suggestion in these cases is to try and disable some of the active plugins that may apply manipulations, such as encoding or parsing, to the contents of your pages.

    In case the problem persisted, we invite you to get in touch with our team through our website so that we can try to investigate on the issue. We probably even speak the same language ??

    The VikWP Team

Viewing 1 replies (of 1 total)
  • The topic ‘JS problems with calendar’ is closed to new replies.