problem combining and minifying javascript files

hi
i am trying to use: minify to combine and minify my javascript files.

i have about 7 files.

but without it all works and after that nothing works.

what can be the problem?
maybe i sould still give 7 request but for each minifies version?

i really thought that this would be simple sice i do the same with my css and it works great.

best regards
LVL 1
derridaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gurvinder Pal SinghCommented:
i have tried this google closure compiler and it works (its free too)
http://code.google.com/closure/compiler/

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
derridaAuthor Commented:
hi
first thanks for the answer.

can i use it when developing on my local machine?
and another question: it just minify but not combine files?

best regards
Gurvinder Pal SinghCommented:
<<can i use it when developing on my local machine?>>
Yes

<<and another question: it just minify but not combine files?>>
It just minifies, but it doesn't combines.
You can combine the files and give it to this tool for minification
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

derridaAuthor Commented:
hmmm well since i`m not a javascript guy, and i use various plugins and some of my own code, i`m not sure how to combine them.
will there be problems with each plugin use of the jquery ready code?
do i need to mess with the plugins code? i prefer not.
can i just paste each file to the textaria one after another and then minify?

best regards
Gurvinder Pal SinghCommented:
<<can i just paste each file to the textaria one after another and then minify?>>
Yes
derridaAuthor Commented:
hi
i have tried to paste the files and got these errors, maybe you can tell me what i can do about them?

JSC_TRAILING_COMMA: Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all. at line 1038 character 1
}
^
JSC_TRAILING_COMMA: Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all. at line 1048 character 1
}
^

best regards
Gurvinder Pal SinghCommented:
can you post the line 1038 and 1048?

Also, this compiler has a fairly extensive documentation on these error code and suggestions for them. please have a look at that website
derridaAuthor Commented:
i`ll read there.

regarding the lines: its 7 documents so i have no idea yet where they are.

in any case i really appriciate your help, it was very needed.
derridaAuthor Commented:
great tool and great help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.