I’m getting a strange problem with sc_ajax_message. It is working OK in development when on the localhost server - but when I deploy to production the message box appears when it should but just gives a single letter “I” for both Title and message body - instead of the full message.
The code I’m using in an AJAX onupdate is:
sc_ajax_message(‘Account Status was updated’,‘Info’);
I’ve inspected the HTML and it is showing correctly when run in development but after deployment the same inspection shows:
" <span id=“id_message_display_text”>I</span> " - so the message box jut show an I character in both Title and Message.
However the generated php on the live server seems identical to the development generated php. I’ve even tried manually editing the generated php of the sc_ajax_message function on the development server to “fix” the message by replacing the generated:
" $this->NM_ajax_info[‘ajaxMessage’][‘message’] = NM_charset_to_utf8($sMessage); "
with:
" $this->NM_ajax_info[‘ajaxMessage’][‘message’] = ‘test’; " but it ignores it so the HTML on the webpage still just shows “I”?
Anyone know if this means it must be some incompatiblity issue issue of the php server on the live host?
Has anyone else had a similar isse?
Many Thanks for any ideas/suggestions!