You are probably experiencing a bug. However, I will propose you a solution that we consider as a Best Practice.
var url = new XWiki.Document(XWiki.Model.resolve('cdlsDashboard.statsGlobal', XWiki.EntityType.DOCUMENT)).getURL('view', 'xpage=plain&outputSyntax=plain') I hope it helps, Guillaume 2016-10-13 12:15 GMT+02:00 Gerritjan Koekkoek <gerrit...@cdlsworld.org>: > Yes : parse was/is set to true > > Verstuurd vanaf mijn iPhone > > > Op 13 okt. 2016 om 12:13 heeft Guillaume Delhumeau < > guillaume.delhum...@xwiki.com> het volgende geschreven: > > > > Hello. > > > > On your JavaScript Skin Extension object, have you set "Parse content" to > > "yes"? > > > > 2016-10-12 13:59 GMT+02:00 Gerritjan Koekkoek <gerrit...@cdlsworld.org>: > > > >> Hi, > >> > >> > >> We have this javascript function > >> > >> function getStats(event) { > >> > >> var url = "$xwiki.getURL('cdlsDashboard.statsGlobal', > >> 'view')?xpage=plain&outputSyntax=plain"; > >> > >> request(url, setStats, event); > >> > >> } > >> > >> Since migration to version 8 the browser console shows a strange get > >> function and resulting error: > >> cdlsworld.devxwiki.com/xwiki/bin/view/cdlsDashboard/$xwiki. > >> getURL('cdlsDashboard.statsGlobal',%20'view') > >> > >> It looks like the velocity is not based before creating a javascript? > >> I've had similar in a stylesheet extension > >> > >> Is something changed in version XWiki 8 (we came from 6.4.x)? > >> > >> > >> Gerritjan Koekkoek > >> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS > >> Visit our website<http://www.cdlsworld.org> > >> Facebook<https://www.facebook.com/gerritjan.koekkoek> > >> email<gerrit...@cdlsworld.org> > >> > >> > >> > >> _______________________________________________ > >> users mailing list > >> users@xwiki.org > >> http://lists.xwiki.org/mailman/listinfo/users > >> > > > > > > > > -- > > Guillaume Delhumeau (guillaume.delhum...@xwiki.com) > > Research & Development Engineer at XWiki SAS > > Committer on the XWiki.org project > > _______________________________________________ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Guillaume Delhumeau (guillaume.delhum...@xwiki.com) Research & Development Engineer at XWiki SAS Committer on the XWiki.org project _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users