The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UserSpice 3.0.4 Released!
#10
Struggling a bit with the JS inclusions in the footer.

Better I think to call all the js core files, then allow user js afterwards-per page. So move the closing body and html tags either to the page, or to a true HTML footer. Suggest: a js-core (switchable perhaps) and a seperate HTML footer.

eg I'm working on populating a flot pie-chart with json data via ajax (data from uc_user_permission_matches).
  • I don't want any user interaction, just a nice pie on the index page.
  • I can't include the flot js on the index page because jQuery hasn't been loaded yet.
  • I put the flot js calls under the main js calls in the footer.
  • The body and html are closed in the footer so I must include my page js in the footer.


Now when logged out, the ajax is loading a non-authed page and login fails with a token error.
  Reply


Messages In This Thread
UserSpice 3.0.4 Released! - by mudmin - 01-05-2016, 12:00 AM
UserSpice 3.0.4 Released! - by aliahjn - 01-11-2016, 06:00 AM
UserSpice 3.0.4 Released! - by mudmin - 01-11-2016, 03:10 PM
UserSpice 3.0.4 Released! - by astropos - 01-21-2016, 09:42 PM
UserSpice 3.0.4 Released! - by mudmin - 01-21-2016, 10:01 PM
UserSpice 3.0.4 Released! - by astropos - 01-21-2016, 10:04 PM
UserSpice 3.0.4 Released! - by mudmin - 01-21-2016, 10:48 PM
UserSpice 3.0.4 Released! - by astropos - 01-21-2016, 10:59 PM
UserSpice 3.0.4 Released! - by mudmin - 01-21-2016, 11:51 PM
UserSpice 3.0.4 Released! - by astropos - 01-22-2016, 10:54 PM
UserSpice 3.0.4 Released! - by mudmin - 01-22-2016, 11:59 PM
UserSpice 3.0.4 Released! - by mudmin - 01-23-2016, 12:01 AM
UserSpice 3.0.4 Released! - by astropos - 01-23-2016, 12:22 PM
UserSpice 3.0.4 Released! - by mudmin - 01-23-2016, 07:59 PM
UserSpice 3.0.4 Released! - by mudmin - 01-23-2016, 09:10 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)