Anitha
Anitha

Reputation: 29

Obfuscation of java scripts through packer.js

I have obfuscated my scripts through dean edward packer and when my html contains frameset and frames the output is not displaying properly through Internet Explorer but the same works in Firefox.

This problem happens only when my html includes the obfuscated scripts.

hi,

Thanks for the response.I did try using JSLint to check for missing semicolons in java script but would not find any.And more if I use tables instead of frameset its working fine but my requirement is to use frameset.

Upvotes: 0

Views: 554

Answers (2)

jordancpaul
jordancpaul

Reputation: 2964

First, if you haven't already, remove your scripts from the HTML and include them in a separately included file (let's call it script.js). Minifiers work best on pure javascript only.

Second, run your script.js file through jslint. It will help you find obvious script issues and typo's (such as trailing commas which can break IE)

Third, use google's closure compiler for minification. It will actually do obfuscation, but only very trivial obfuscation unless you follow the guidelines available here.

Upvotes: 1

Dan Murphy
Dan Murphy

Reputation: 648

Have you tried using http://code.google.com/p/minify/ ? I appreciate it doesn't do obfuscation but at the same time does seem to be more robust than other minimizers :)

Upvotes: 0

Related Questions