Click here to Skip to main content
11,583,865 members (42,851 online)
Rate this: bad
Please Sign up or sign in to vote.
  <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 6-Jan-13 3:41am
Edited 6-Jan-13 3:44am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 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;[^]

Smile | :)

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.

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

  Print Answers RSS
0 OriginalGriff 430
1 Sergey Alexandrovich Kryukov 314
2 virusstorm 268
3 Richard Deeming 220
4 Dave Kreskowiak 200
0 OriginalGriff 1,623
1 Sergey Alexandrovich Kryukov 1,135
2 Abhinav S 701
3 Dave Kreskowiak 627
4 Suvendu Shekhar Giri 568

Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 6 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100