Hi there, i have a chat system (Hubtalk) that has as well an API system.
I would like to insert a chat button on buttonizer, that when i will click it a hubtalk chat window will open and start chatting.
I contacted developer that give me some instruction on that, and i tried without success to create a button instance in your buttonizer.
Example with this code:
// 1. Create the button
var buttonchat = document.createElement("buttonchat");
buttonchat.innerHTML = "Hubtalk";
// 2. Append somewhere
var body = document.getElementsByTagName("buttonchat")[0];
// 3. Add event handler
buttonchat.addEventListener ("click", function() {
w"customapicode"42.API.Extensions.Map['Box.box'].api.openBox();
});
It should to be open but nothing happens. Developer confirmed that 3d line was exactly.
But maybe button istance of the module not good.
Can you help me ?
Thanks