We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8790
    • 526 Posts
    Hi,

    Can someone clarify the use of
    $modx->regClientStartupScript("/assets/js/some.js");


    I’ tried to load all my librairies using a plugin, but looks like it loads scripts not in the "right" order (or not at all):
    For instance, the jQuery 1.4.2 + UI do not work if loaded this way, I need to put them in a classic chunck at the head section of html, as other librairies are correctly loaded and fonctiunal throught the plugin loading.

    those are ok this way, but cant put jQ + UI librairies here
    //<?php
    global $modx;
    $modx->regClientStartupScript("/assets/js/jquery.easing.1.3.js");
    $modx->regClientStartupScript("/assets/js/jquery.easing.compatibility.js");
    $modx->regClientStartupScript("/assets/js/jquery.fancybox-1.3.1/fancybox/jquery.fancybox-1.3.1.pack.js");
    //?>


    Thank you
      Schtroumpf Grognon - Grouchy Smurf
      ---------------------------------
      Faites pas attention.. - Don&#39;t pay attention
      http://www.dzi-neo.net