I'm attempting to insert a chatbot into a Sharepoint 2010 (or 13 - not sure) page via javascript that:
- waits 3 seconds after page loads then
- pops up a chatbot iframe
It works perfectly as designed in the JS Fiddle - that's what's so frustrating!
The Sharepoint experience on the other hand:
- the javascript only partly works (only rendering the chatbot window in minimised state) and clicking on the title bar does nothing (that I can see)
- the text of the script itself is still displaying in the webpart in preview mode
The way I insert code is
- edit page
- insert a control for the code: Webpart\Media and Content\Content Editor OR Webpart\Media and Content\Script Editor OR Editing page|Insert\Embed code
- setting the webpart Appearance\Chrome to None
Only console error in F12 says the following. The code it points to is uglified beyond belief!
SCRIPT5007: Unable to get property 'parse' of undefined or null reference File: botchat.js, Line: 34, Column: 343685