views:

44

answers:

1

I want to make a gallery with slimbox but cannot get it to run the script.

I'm using an ASP.NET Master Page and want the script to be retrieved on this page.

The code I am using is:

<script type="text/javascript" src="js/slimbox.js"></script>
<script type="text/javascript" src="js/mootools.js"></script>
+1  A: 

Shot in the dark here, but JS files normally load sequentially, so you probably need to load the mootools script before the slimbox script. Change the order to this instead:

<script type="text/javascript" src="js/mootools.js">
<script type="text/javascript" src="js/slimbox.js">
Aaronaught
I have tried but worked not
saadan
@saadan: Don't say "it doesn't work." Read my comment to your question. Nobody can help you if that's all the information you're willing/able to give.
Aaronaught
what else to show for it is the script it dosent runbut many thanks for your help anyway(what would you have me show ?)
saadan
What do you mean "it doesn't run?" How have you verified this? Is there a Javascript error? Are you using any other scripts? Do they act normally? What *specifically* actually *happens*? Since I don't see any other code, it's possible that the scripts are completely fine and that you're just not *using* them in any way.
Aaronaught
used the lightbox instead and it works quite smoothlyit might have had something to do with and I'm using ajax alo ?
saadan
@saadan: You still haven't explained **how you're using the script** or **why you think it's not working.** Unless you can clearly communicate your problem then the only answers you'll get will be shots in the dark, like this one.
Aaronaught
<script type="text/javascript" src='<%=ResolveClientUrl("~/js/mootools.js") %>'></script> <script type="text/javascript" src='<%=ResolveClientUrl("~/js/slimbox.js") %>'></script> worked
saadan