<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [Chameleon] compress Chameleon javascript</TITLE>
<META content="MSHTML 6.00.2800.1543" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=114125805-11052006><FONT face=Arial color=#0000ff size=2>Hi
Jacob,</FONT></SPAN></DIV>
<DIV><SPAN class=114125805-11052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=114125805-11052006><FONT face=Arial color=#0000ff size=2>but we
should get this into Chameleon CVS if you get it to work. I'm very much
interested in this as well.</FONT></SPAN></DIV>
<DIV><SPAN class=114125805-11052006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=114125805-11052006><FONT face=Arial color=#0000ff size=2>Best
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=114125805-11052006><FONT face=Arial color=#0000ff
size=2>Bart</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Oorspronkelijk bericht-----<BR><B>Van:</B> Delfos, Jacob
[mailto:Jacob.Delfos@maunsell.com]<BR><B>Verzonden:</B> donderdag 11 mei 2006
7:57<BR><B>Aan:</B> Eijnden, B. van den (Bart); Bart van den Eijnden;
chameleon@lists.maptools.org<BR><B>Onderwerp:</B> RE: [Chameleon] compress
Chameleon javascript<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=502125505-11052006><FONT face=Arial
color=#0000ff size=2>Thanks Bart, I'll just have to do some more
searching.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=502125505-11052006><FONT face=Arial
color=#0000ff size=2>Ka-Map has a version that is customised to run in Ka-Map
(which takes in multiple js files, and outputs one file), but I'll have a look
to see if the actual compression algorithm is different.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=502125505-11052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=502125505-11052006><FONT face=Arial
color=#0000ff size=2>regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=502125505-11052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=502125505-11052006><FONT face=Arial
color=#0000ff size=2>Jacob</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=502125505-11052006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=502125505-11052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=502125505-11052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> chameleon-bounces@lists.maptools.org
[mailto:chameleon-bounces@lists.maptools.org] <B>On Behalf Of </B>Eijnden,
B. van den (Bart)<BR><B>Sent:</B> 11 May 2006 13:34<BR><B>To:</B> Delfos,
Jacob; Bart van den Eijnden; chameleon@lists.maptools.org<BR><B>Subject:</B>
RE: [Chameleon] compress Chameleon javascript<BR></FONT><BR></DIV>
<DIV></DIV>
<P><FONT size=2>Hi Jacob,</FONT> </P>
<P><FONT size=2>If I remember correctly I applied it to all the js
files.</FONT> </P>
<P><FONT size=2>I think in ka-Map there is a more recent version of this
script. At least I saw some e-mails a few weeks ago.</FONT> </P>
<P><FONT size=2>The only thing I had trouble with were the missing ;. But
it's been a long time :-)</FONT> </P>
<P><FONT size=2>Best regards,</FONT> <BR><FONT size=2>Bart</FONT> </P>
<P><FONT size=2>-----Oorspronkelijk bericht-----</FONT> <BR><FONT
size=2>Van: chameleon-bounces@lists.maptools.org</FONT> <BR><FONT size=2>[<A
href="mailto:chameleon-bounces@lists.maptools.org">mailto:chameleon-bounces@lists.maptools.org</A>]Namens
Delfos, Jacob</FONT> <BR><FONT size=2>Verzonden: donderdag 11 mei 2006
3:27</FONT> <BR><FONT size=2>Aan: Bart van den Eijnden;
chameleon@lists.maptools.org</FONT> <BR><FONT size=2>Onderwerp: RE:
[Chameleon] compress Chameleon javascript</FONT> </P><BR>
<P><FONT size=2>Bart,</FONT> </P>
<P><FONT size=2>Did you end up applying this only to cwcjsapi? I'm looking
into this,</FONT> <BR><FONT size=2>because the main page and all the
scripts, are starting to get pretty</FONT> <BR><FONT size=2>huge (especially
with a tree legend). I am looking into applying it for</FONT> <BR><FONT
size=2>all javascripts, by modifying UIManager.php. On line 401, I
replace:</FONT> </P>
<P><FONT size=2>$szJSInclude .= "<!-- javascript include $key
-->\n";</FONT> <BR><FONT size=2>$szJSInclude .=
$this->maJSIncludeFunctions[$key];</FONT> </P>
<P><FONT size=2>With:</FONT> </P>
<P><FONT size=2>$jsPath =</FONT> <BR><FONT
size=2>str_replace($_SESSION['gszCoreWebPath']."/","getcjs.php?name=",$this->ma</FONT>
<BR><FONT size=2>JSIncludeFunctions[$key]);</FONT> <BR><FONT size=2>$jsPath
= str_replace(".js","",$jsPath);</FONT> <BR><FONT size=2>$szJSInclude .=
$jsPath;</FONT> </P><BR>
<P><FONT size=2>It can probably be cleaner, but I thought I'd try first to
see whether</FONT> <BR><FONT size=2>it works at all. It does work, but I
think some scripts need cleaning. I</FONT> <BR><FONT size=2>get an error
about cwc_line.js, and the keymap becomes a red image. I</FONT> <BR><FONT
size=2>couldn't find any missing ';' in cwc_line.js. Which other things did
you</FONT> <BR><FONT size=2>find that the script can fail on?</FONT> </P>
<P><FONT size=2>Regards,</FONT> </P>
<P><FONT size=2>Jacob</FONT> <BR><FONT size=2> </FONT> </P>
<P><FONT size=2>> -----Original Message-----</FONT> <BR><FONT size=2>>
From: chameleon-bounces@lists.maptools.org </FONT><BR><FONT size=2>> [<A
href="mailto:chameleon-bounces@lists.maptools.org">mailto:chameleon-bounces@lists.maptools.org</A>]
On Behalf Of </FONT><BR><FONT size=2>> Bart van den Eijnden</FONT>
<BR><FONT size=2>> Sent: 20 July 2005 22:32</FONT> <BR><FONT size=2>>
To: chameleon@lists.maptools.org; Bart van den Eijnden</FONT> <BR><FONT
size=2>> Subject: Re: [Chameleon] compress Chameleon javascript</FONT>
<BR><FONT size=2>> </FONT><BR><FONT size=2>> Okay, this probably needs
fixing in the CWCJSAPI.js file </FONT><BR><FONT size=2>> instead of the
php script.</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> The
CWCJSAPI.js file contains stuff like:</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> this.units = 3
//meter</FONT> <BR><FONT size=2>> </FONT><BR><FONT
size=2>> this.zoomfactor = 2;</FONT> <BR><FONT
size=2>> </FONT><BR><FONT size=2>> Which goes okay when there is a
return at the end, but not if </FONT><BR><FONT size=2>> it is on one line
in the compressed js file.</FONT> <BR><FONT size=2>> </FONT><BR><FONT
size=2>> I will try to update the CVS version of cwcjsapi and add ;
</FONT><BR><FONT size=2>> consequently everywhere.</FONT> <BR><FONT
size=2>> </FONT><BR><FONT size=2>> Best regards,</FONT> <BR><FONT
size=2>> Bart</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>>
Bart van den Eijnden</FONT> <BR><FONT size=2>> Syncera IT
Solutions</FONT> <BR><FONT size=2>> Postbus 270</FONT> <BR><FONT
size=2>> 2600 AG DELFT</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> tel.nr.: 015-7512436</FONT> <BR><FONT
size=2>> email: BEN@Syncera-ITSolutions.nl</FONT> <BR><FONT size=2>>
>>> Bart van den Eijnden 07/20/05 16:27 PM >>></FONT>
<BR><FONT size=2>> Paul,</FONT> <BR><FONT size=2>> </FONT><BR><FONT
size=2>> just realized I am missing a lot of ; in the cwcjsapi.js file
</FONT><BR><FONT size=2>> which causes many js errors.</FONT> <BR><FONT
size=2>> </FONT><BR><FONT size=2>> Do you have an update already of
the script which fixes this </FONT><BR><FONT size=2>> before I dive into
it myself :-) ?</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>>
Best regards,</FONT> <BR><FONT size=2>> Bart</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> Bart van den Eijnden</FONT> <BR><FONT
size=2>> Syncera IT Solutions</FONT> <BR><FONT size=2>> Postbus
270</FONT> <BR><FONT size=2>> 2600 AG DELFT</FONT> <BR><FONT
size=2>> </FONT><BR><FONT size=2>> tel.nr.: 015-7512436</FONT>
<BR><FONT size=2>> email: BEN@Syncera-ITSolutions.nl</FONT> <BR><FONT
size=2>> >>> "Bart van den Eijnden"
<BEN@syncera-itsolutions.nl> </FONT><BR><FONT size=2>> 07/20/05
16:14 PM >>></FONT> <BR><FONT size=2>> Bart van den
Eijnden</FONT> <BR><FONT size=2>> Syncera IT Solutions</FONT> <BR><FONT
size=2>> Postbus 270</FONT> <BR><FONT size=2>> 2600 AG
DELFT</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> tel.nr.:
015-7512436</FONT> <BR><FONT size=2>> email:
BEN@Syncera-ITSolutions.nl</FONT> <BR><FONT size=2>> </FONT><BR><FONT
size=2>> _______________________________________________</FONT> <BR><FONT
size=2>> Chameleon mailing list</FONT> <BR><FONT size=2>>
Chameleon@lists.maptools.org</FONT> <BR><FONT size=2>> <A
href="http://lists.maptools.org/mailman/listinfo/chameleon"
target=_blank>http://lists.maptools.org/mailman/listinfo/chameleon</A></FONT>
<BR><FONT size=2>> </FONT></P>
<P><FONT size=2>_______________________________________________</FONT>
<BR><FONT size=2>Chameleon mailing list</FONT> <BR><FONT
size=2>Chameleon@lists.maptools.org</FONT> <BR><FONT size=2><A
href="http://lists.maptools.org/mailman/listinfo/chameleon"
target=_blank>http://lists.maptools.org/mailman/listinfo/chameleon</A></FONT>
</P><BR>Disclaimer
************************************************************************ Aan
dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend
bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen,
wordt u verzocht het te vernietigen en de afzender te informeren. Wij
adviseren u om bij twijfel over de juistheid of de volledigheid van de mail
contact met afzender op te nemen. This message shall not constitute any
rights or obligations. This message is intended solely for the addressee. If
you have received this message in error, please delete it and notify the
sender immediately. When in doubt whether this message is correct or
complete, please contact the sender.
************************************************************************
<BR></BLOCKQUOTE></BLOCKQUOTE><BR>
Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.
This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************
<BR>
</BODY></HTML>