This project is read-only.
1
Vote

RegisterScript doesn't register the scripts in the correct order

description

i'm using registerscripts and this is the output of the scripts
 
<script src="/scripts/UComment/jquery.metadata.js?cdv=1" type="text/javascript"></script>
 
<script src="/scripts/UComment/jquery.validate.min.js?cdv=1" type="text/javascript"></script>
 
<script src="/umbraco_client/ui/jquery.js?cdv=1" type="text/javascript"></script>
 
<script src="/scripts/UComment/jquery.form.js?cdv=1" type="text/javascript"></script>
 
as you can see the jquery script is not first as it's supposed to be.

comments

darrenferguson wrote Mar 26, 2011 at 1:38 PM

The order isn't significant - why do you think it is?

parnar wrote Mar 26, 2011 at 3:10 PM

because jquery needs to be first, or else the other scripts that depend on jquery wont work.

darrenferguson wrote Mar 26, 2011 at 4:51 PM

Ok - Understand what you mean. I'd add them manually for now - though for some reason with me it registers them in the order specified. Which version of Umbraco are you using?

parnar wrote Mar 26, 2011 at 5:27 PM

4.6.1
added the ucomment on a clean umbraco and i got javascript errors, now i fixed it by adding manually.

wrote Feb 13, 2013 at 4:54 AM