From: Mina K. <mu0...@bu...> - 2004-03-25 16:48:25
|
=20 Sure you did! _____ =20 Fr=E5n: dyn...@li... [mailto:dyn...@li...] F=F6r Jesse Vitrone Skickat: den 25 mars 2004 17:31 Till: dyn...@li... =C4mne: Re: SV: SV: [Dynapi-Help] Java Compressor gives me JavaScript = Syntax Error Glad I could help....although I don't think I really did anything :) Jesse Mina Ki wrote:=20 =20 Thank you for your mail. Now it's working. I had an old version. Now = I've fetched the latest CVS - and the problem dissapeared. =20 Thanks again!! _____ =20 Fr=E5n: dyn...@li... [mailto:dyn...@li...] F=F6r Jesse Vitrone Skickat: den 25 mars 2004 14:25 Till: dyn...@li... =C4mne: Re: SV: [Dynapi-Help] Java Compressor gives me JavaScript Syntax = Error Mina, First - sorry, I misread your first email, I thought you said that = the line with "new DynAPIObject" did not exist, but now I see you said that = it does exist. Now that I think about it, the problem probably isn't in your file, = but in the source code. There are some places in the dynapi source code = that don't have a semi-colon at the end of the statement. When it gets compressed, everything gets put on one line, and if there is a = semi-colon missing, everything gets all screwed up. You're probably getting the error saying that there is no dynapi = object because there were errors when the js file is included. Take a close = look at all the errors that Mozilla is giving you, it should give some clues = as to where the semi-colon is missing. Can you post all of the errors that you're getting? What version of dynapi are you running? The one from CVS? If you = find a place in dynapi that is missing a semi-colon, let me know, and I'll = fix it and commit it. Jesse Jesse Vitrone wrote: Mina, Just from eyeballing it, the compressed file looks ok. I think I = need to see more than just the compressed js file. Maybe you can zip up your config file, the compressed js, and the file that uses the compressed = js. =20 You mentioned that "var dynapi=3Dnew DynAPIObject()" wasn't in the = file, but when I search for it, it's on the first line. Jesse Mina Ki wrote:=20 Hi again! Please have a look at the attached zip file. (you have to rename it and = add '.zip') Thank you! -----Ursprungligt meddelande----- Fr=E5n: dyn...@li... [mailto:dyn...@li...] F=F6r Jesse Vitrone Skickat: den 23 mars 2004 16:26 Till: dyn...@li... =C4mne: Re: [Dynapi-Help] Java Compressor gives me JavaScript Syntax = Error Mina Ki, I'm the one who wrote the java compressor, so there can't be = anything wrong with it! Just jokes :) When I search one of my compressed js files, I see the code "var dynapi=3Dnew DynAPIObject()" on the line for the dynapi.js file. Since = you have the dynapi.js file in your setup, it looks like you should be = getting it. Can you post your compressed output dyn.js ? Jesse Mina Ki wrote: =20 Hi! I've used the Java Compressor to compress some javascript files using=20 the jsCompressor.xml file (see below). Everything seems to work fine.=20 The result is one single js file. However, when I try to use it I get=20 an error (both in IE and Mozilla Firebird). It seems as if there are no =20 dynapi object (!?). =20 I've checked the js file for the text "var dynapi=3Dnew DynAPIObject()"=20 and it does exist... I don't have a clue of what's wrong. IE and=20 Firebird doesn't give me much help... Has anyone succeeded in using the Java Compressor??? Thank you for your help. Here is the jsCompressor.xml file that I use <jscompressor> <compressed-file name=3D"C:\dyn.js"> <input-file name=3D"C:\js\src\dynapi.js"/> <input-file name=3D"C:\js\src\api\event.js"/> <input-file name=3D"C:\js\src\api\dyndocument.js"/> <input-file name=3D"C:\js\src\api\dynlayer_base.js"/> <input-group> <input-file name=3D"C:\js\src\api\dynlayer_ie.js" compare-value=3D"dynapi.ua.ie" /> <input-file name=3D"C:\js\src\api\dynlayer_dom.js"/> </input-group> <input-group> <input-file name=3D"C:\js\src\api\mouse_ie.js" compare-value=3D"dynapi.ua.ie" /> <input-file name=3D"C:\js\src\api\mouse_dom.js"/> </input-group> <input-file name=3D"C:\js\src\api\ext\dynlayer.inline.js"/> </compressed-file> </jscompressor> This is the output from the program: C:\java.compressor>java JSCompressor ---- Compressing Files ---- -- Using configuration found in jsCompressor.xml Line separator: -- Compressed File Summary: output file name: C:\dyn.js input file names: C:\js\src\dynapi.js C:\js\src\api\event.js C:\js\src\api\dyndocument.js C:\js\src\api\dynlayer_base.js input group: C:\js\src\api\dynlayer_ie.js C:\js\src\api\dynlayer_dom.js input group: C:\js\src\api\mouse_ie.js C:\js\src\api\mouse_dom.js C:\js\src\api\ext\dynlayer.inline.js C:\java.compressor> ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux=20 tutorial presented by Daniel Robbins, President and CEO of GenToo=20 technologies. Learn everything from fundamentals to system=20 administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help =20 =20 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux = tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. = Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck _______________________________________________ Dynapi-Help mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help =20 |