WordPress.org

Ready to get started?Download WordPress

Forums

Javascript Chat for WordPress
[resolved] internet explorer - bug fix (2 posts)

  1. zijua
    Member
    Posted 3 years ago #

    Hello,
    in the "retrieveData" function inside wp_jschat.js I think you should change this raw:

    data: { wp_jschat_last_date: (_dateStr.trim()!='')? _dateStr : '', action : 'retrieve', wp_jschat_channel: t.find('.wp_jschat_canal').val() }

    with

    data: { "wp_jschat_last_date": "" + _dateStr + "", "action" : "retrieve", "wp_jschat_channel": "" + t.find('.wp_jschat_canal').val() + "" }

    or something like this, to fix an error that occurs on internet explorer if you don't surround that attributes with double quotes.

    http://wordpress.org/extend/plugins/javascript-chat-for-wordpress/

  2. admataz
    Member
    Posted 3 years ago #

    I found the problem was with IE's lack of support for trim(). My workaround was to use JQuery's trim function:

    data: { wp_jschat_last_date: (jQuery.trim(_dateStr)!='') ? _dateStr : '', action : 'retrieve', wp_jschat_channel: t.find('.wp_jschat_canal').val() },

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic