js error in chat edit...

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

js error in chat edit...

Post by spaceace »

i'm trying to work out an issue with the edit function. for the life of me, i can't seem to get it fixed.

to produce this, you need to click the edit icon in a chat message to open the edit window. the error shows up with the refresh timing so it happens faster just after you have posted a chat message.

here's the error that shows in the console
Uncaught TypeError: Cannot read property 'innerHTML' of null
at XMLHttpRequest.handle_return (ajax_chat.js?assets_version=86:158)
handle_return @ ajax_chat.js?assets_version=86:158
the line in the js that has the issue
https://github.com/LMOspaceace/ajaxchat ... at.js#L158

the template file that is being used
https://github.com/LMOspaceace/ajaxchat ... _edit.html

i know that the var chat_username_title is missing from that template but the error is still the same with it added. could someone please tell me what is missing or needs to be changed?
Post Reply

Return to “Extension Writers Discussion”