Hey Susan: If I can tap your assistance with one more detail. Now I am trying to apply the concept to put a script in the head, and the onload aspect is stumping me. If it were a js file the example in modx docs would be easy to follow, but how to I write to get my variable to appear onload?
or maybe the class itself takes care of the onload aspect and it's the example given in the docs that is confusing to me.
$modx->regClientStartupScript('assets/js/onload.js');
Mine wasn't working. Amazing how just one thing trips the whole thing up. adAi works better if it has an extra "d" - - - addAi.
So this works very nice. Let's say I want this to be the very tip top first thing to load in the head. Is there a way to control it's position in that regard?
Mine wasn't working. Amazing how just one thing trips the whole thing up. adAi works better if it has an extra "d" - - - addAi.
So this works very nice. Let's say I want this to be the very tip top first thing to load in the head. Is there a way to control it's position in that regard?
So my big, full screen home page slider is a MIGx TV. With all you have enlightened me to, I can load the js for the slider, the script for Adaptive Images (which detects device window size and determines which size image to source) and have it all load together. This is really really cool. I see this as a way to cut down on the number of templates I might need.
I can't thank you enough for passing this along to me.