Search

  • Re: Compressor's output doesn't work...

    Javascript dose not require the ";" if there is a new line between the commands, but if the commands are on the same line example: alert(1);alert(2); then the ";" is required. This is why your code is working before you compress the code, adding the ";" where the validators are telling you to should fix this problem. Note
    Posted to Open Javascript Discussion (Forum) by matthewfl on 12-19-2008
  • Re: Decode the javascript

    Yes that is true. And that is good for 1-5 kb of javascript but any more and that would be really hard to read as one line of code. And fixing about 1-5 errors is not that hard for what the system dose for you.
    Posted to Open Javascript Discussion (Forum) by matthewfl on 11-20-2008
  • Re: Compressor's output doesn't work...

    You might be missing a ; some ware in the code. You can use JsLint to help find the bug. You might only be able to do jsmin. Rember that a=function () {} should have a ; after it. This is my most common problem with javascript.
    Posted to Open Javascript Discussion (Forum) by matthewfl on 08-18-2008
  • Re: Decode the javascript

    Most web developers when seeing the packer code could think to replace the eval with an alert. The big think that make it different from just replace the eval with alert is that it trys to add new lines and tab the code according. So that way the code is easier to read for the programer. As long as there is no new line the code is valid.
    Posted to Open Javascript Discussion (Forum) by matthewfl on 08-08-2008
  • Re: Decode the javascript

    I was trying to work that out and not add new lines between (), But a new javascript style is to do : (function () { //code here })(); So that can not work. But most of the code is valid and running the code through FireFox with Firebug, it is easy to find errors in the code and fix.
    Posted to Open Javascript Discussion (Forum) by matthewfl on 07-31-2008
  • Re: Decode the javascript

    I found some packed code on some site and I wanted to unpack it, so I made this . It works well enough for me and most of the code that come out is valid. Maby this could be add to javascriptcompressor.
    Posted to Open Javascript Discussion (Forum) by matthewfl on 07-31-2008
  • modified packer code

    I have a modification to the packer so that it can "fix function". In BLOCKED SCRIPT var a = function () { } Should really be: var a = function () { }; this is because you are setting a to an unnamed function. So I came up with this code: function_fix: function (script) { var list=[]; script.replace(/(=function)/g, function (rep, Something
    Posted to Open Javascript Discussion (Forum) by matthewfl on 07-02-2008
Page 1 of 1 (7 items) | More Search Options