Tel: 01926 333680
Adding and removing elements created by Point
Point works by surrounding each word in Point-enabled areas of a page within an HTML <span> element. For most pages, these <span>s cause no harm, but for some pages it may be desirable to remove these <span> elements when Point is not enabled. There are two Point configuration options in point_config.js that control this behaviour:
Point.spanifyOnLoad = false; Point.despanifyWhenDisabled = true;
Point.spanifyOnLoad controls whether Point should create its <span>s immediately after the page loads. If set to false and the Point is switched off (because the user has previously switched it off or not switched it on), no Point <span>s are created until the user switches Point on.
Point.despanifyWhenDisabled controls whether Point should remove its <span>s when Point is switched off. Setting this to true will have a slight impact on performance when the user switches Point off.