We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Evo Development
Search
[solved] Javascript loading
22 Posts
ehsun7b
Reply #1,
19 years, 1 month ago
How can load an external Javascript file in a snippet????!!!
I love computer programming...
1,193 Posts
ScottyDelicious
Reply #2,
19 years, 1 month ago
$myscript = 'path/or/url/to/myscript.js'; $modx->regClientStartupScript($myscript);
-sD-
Dr. Scotty Delicious, Scientist.
Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
All of the above... in no specific order.
I send pointless little messages
22 Posts
ehsun7b
Reply #3,
19 years, 1 month ago
Thanks,
I’m developing a very simple snippet (WebLogin)
It could be a good prective to join you for Ajaxify WebLogin PE ;-)
I love computer programming...