1

Is it possible to add an open source jabber client such as converse.js via portlet or suitelet's online html field and attaching that somehow to a record ?

I tried by adding the converse.min.js as a library script file and converse.min.css in the file cabinet , but couldn't get it to work.

If someone has worked with such a scenario , I'd really appreciate the insights and advice.

Mickaël Rémond
  • 9,035
  • 1
  • 24
  • 44
user4076248
  • 433
  • 2
  • 5
  • 10
  • 2
    Can you give some more details on "couldn't get it to work"? Attaching a library file is the correct approach, depending on what exactly you're trying to do. I've never worked with converse.js specifically, but we pull in libraries like jquery UI, lodash.js and moment.js all the time to use, so it should be perfectly possible to pull in converse.js – erictgrubaugh Nov 24 '15 at 20:56
  • I'm getting a suitescript error , cannot read property "defaultView" from undefined (converse.min#237) when I attached converse.min.js in the Html tags. – user4076248 Nov 25 '15 at 08:11
  • Can you please add code samples of how you are referencing `defaultView` and also how you are including converse.min.js in your HTML? This will help with troubleshooting. – erictgrubaugh Nov 25 '15 at 16:37
  • Inside my get code I am adding this :var html = ''; html += '' ; // Link to file I uploaded in the file cabinet html += '' ; & the defaultView is the part of the converse.min.js itself which I downloaded from https://github.com/jcbrand/converse.js. Sorry i know I'm a n00b :) Thanks for the help. – user4076248 Nov 26 '15 at 11:30
  • @egrubaugh360 -- Hi, Sorry I couldn't give much info on how defaultView was being referenced as it was present in the minified file & I had no idea how to make sense of it. Anyways, one of my friend suggested to make the library files being sourced-- "Available without login" & upon doing that the script is working as desired. Thanks for your help though & apologies for wasting your time. – user4076248 Nov 27 '15 at 07:48

1 Answers1

0

Editing the library scripts file records I was attaching with my Suitelet script and enabling "Available Without login" checkbox for each one of them solved the issue for me.

user4076248
  • 433
  • 2
  • 5
  • 10