1
Vote

Script and CSS combining not working

description

Hi
 
Yesterday I played with your library to combine and minify my scripts and css.
I left it not working because of an error in the combined script. I thought that I would find the offending script today.
This morning, I just reloaded the page, and this is the HTML result :
 
<script type="text/javascript" src="/scripts/jslib.axd?d=jquery-simpledialog.js&v=1"></script>
<script type="text/javascript" src="/scripts/jslib.axd?d=scripts.js&v=1"></script>
<script type="text/javascript" src="/scripts/jslib.axd?d=swfobject.js&v=1"></script>
<link type="text/css" href="/style/css.axd?d=style.css,jquery-colorpic<script type="text/javascript" src="/scripts/jslib.axd?d=fsmenu.js,jquery.js,jquery-cookie.js,jquery-treeview.js,jquery-ui.js,jquery-colorpicker.js&v=1"></script>ker.css,jquery-simpledialog.css&v=1" rel="stylesheet" />
 
The original HTML is this :
 
<link rel="stylesheet" type="text/css" href="/style/style.css" />
<link rel="stylesheet" type="text/css" href="/style/jquery-colorpicker.css" />
<link rel="stylesheet" type="text/css" href="/style/jquery-simpledialog.css" />
<script type="text/javascript" src="/scripts/fsmenu.js"></script>
<script type="text/javascript" src="/scripts/jquery.js"></script>
<script type="text/javascript" src="/scripts/jquery-cookie.js"></script>
<script type="text/javascript" src="/scripts/jquery-treeview.js"></script>
<script type="text/javascript" src="/scripts/jquery-ui.js"></script>
<script type="text/javascript" src="/scripts/jquery-colorpicker.js"></script>
<script type="text/javascript" src="/scripts/jquery-simpledialog.js"></script>
<script type="text/javascript" src="/scripts/scripts.js"></script>
<script type="text/javascript" src="/scripts/swfobject.js"></script>
 
Nothing fancy, as you can see.
 
Any idea ?

file attachments

comments

cosmo0 wrote Feb 17, 2011 at 9:53 AM

I manually combined the scripts and css (by writing <script src="scripts.axd?d=....">) and it works great. I have found which script was causing the JS error when the automatic combining was working.

Miron wrote May 20, 2011 at 10:18 AM

Hi cosmo0,
What script caused the problem ?

cosmo0 wrote May 20, 2011 at 12:26 PM

It was the Colorpicker script. It's a jquery library. I'm trying to find it so you can look into it.

wrote May 20, 2011 at 12:34 PM

cosmo0 wrote May 20, 2011 at 12:34 PM

Found it ! I hope you can find the source of the problem, because we still use your dll. If it's not enough, I can try to get back every script I had at this time.

wrote Feb 14, 2013 at 2:04 AM