Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />

  <script type="text/javascript" src="prototype.js"></script>

  <script type="text/javascript" src="scriptaculous.js?load=effects"></script>

  <script type="text/javascript" src="lightbox.js"></script>



what is the mean of load=effects actually effects.js is a javascript file also
apart from this question plz tell me as i am changing the sequence from the above sequence then it is working different why?
Posted
Updated 6-Jan-13 3:44am
v2

1 solution

A quick search on google and in the blink of an eye, from the documentation;

By default, scriptaculous.js loads all of the other javascript files necessary for effects, drag-and-drop, sliders, and all of the other script.aculo.us features. If you don’t need all of the features, you can limit the additional scripts that get loaded by specifying them in a comma-separated list;
<script src="scriptaculous.js?load=effects,dragdrop" type="text/javascript"></script>

See this page;
http://madrobby.github.com/scriptaculous/[^]

:)

To answer your second part, there are probably javascript dependencies or naming conflicts in the libraries, and by changing the order, the javascript is being loaded and executed differently.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900