[Chameleon] compress Chameleon javascript

Gambin Dejan Dejan.Gambin at pula.hr
Mon May 15 03:19:02 EDT 2006


IT WORKS now...I have replaced:

$jsPath =
str_replace($_SESSION['gszCoreWebPath']."/","getcjs.php?name=",$this->ma
JSIncludeFunctions[$key]);

with

$jsPath =
str_replace($_SESSION['gszCoreWebPath']."/",$_SESSION['gszCoreWebPath'].
"getcjs.php?name=",$this->maJSIncludeFunctions[$key]);

Do you know the reason for this?

dejan

> -----Original Message-----
> From: Delfos, Jacob [mailto:Jacob.Delfos at maunsell.com] 
> Sent: Monday, May 15, 2006 8:54 AM
> To: Gambin Dejan
> Cc: chameleon at lists.maptools.org
> Subject: RE: [Chameleon] compress Chameleon javascript
> 
> 
> It looks correct. Bear in mind that the path to the script 
> passed in getcjs is a system path, not a URL. It is relative 
> to the htdocs directory, which is where getcjs.php sits.
> 
> Have you tried making a call to 
> http://localhost/chameleon/getcjs.php?name=widgets/js/cwcjsapi.js
> What happens?
> 
> Regards,
> 
> Jacob
> 
> > -----Original Message-----
> > From: Gambin Dejan [mailto:Dejan.Gambin at pula.hr]
> > Sent: 15 May 2006 14:45
> > To: Delfos, Jacob
> > Cc: chameleon at lists.maptools.org
> > Subject: RE: [Chameleon] compress Chameleon javascript
> > 
> > It never comes to gecjs.php...I have put error_log statement in 
> > UIManager.php for $szJSInclude and the log says:
> > 
> > <!-- javascript include 
> > http://localhost/chameleon//widgets/js/cwcjsapi.js --> <script 
> > language="JavaScript" src="getcjs.php?name=widgets/js/cwcjsapi.js"
> > type="text/javascript"></script>
> > <!-- javascript include
> > http://localhost/chameleon//widgets/js/cwcjsapi.js -->
> > <script language="JavaScript"
> > src="getcjs.php?name=widgets/js/cwcjsapi.js"
> > type="text/javascript"></script>
> > <!-- javascript include cwc_dhtml.js -->
> > <script language="JavaScript"
> > src="getcjs.php?name=widgets/js/cwc_dhtml.js"
> > type="text/javascript"></script>
> > <!-- javascript include
> > http://localhost/chameleon//widgets/js/cwcjsapi.js -->
> > 
> > ...etc for each other .js file (why cwcjsapi is listed twice?)
> > 
> > Is it OK? For the old UIManager.php it is like:
> > 
> > <!-- javascript include 
> > http://localhost/chameleon//widgets/js/cwcjsapi.js --> <script 
> > language="JavaScript" 
> > src="http://localhost/chameleon//widgets/js/cwcjsapi.js"
> > type="text/javascript"></script>
> > <!-- javascript include 
> > http://localhost/chameleon//widgets/js/cwcjsapi.js --> <script 
> > language="JavaScript" 
> > src="http://localhost/chameleon//widgets/js/cwcjsapi.js"
> > type="text/javascript"></script>
> > <!-- javascript include cwc_dhtml.js -->
> > <script language="JavaScript" .....
> > 
> > Maybe the src parameter is invalid?
> > 
> > dejan
> > 
> > > -----Original Message-----
> > > From: Delfos, Jacob [mailto:Jacob.Delfos at maunsell.com]
> > > Sent: Monday, May 15, 2006 8:15 AM
> > > To: Gambin Dejan
> > > Cc: chameleon at lists.maptools.org
> > > Subject: RE: [Chameleon] compress Chameleon javascript
> > > 
> > > 
> > > You should have ".js.ts" files and ".js.cjs" files in the JS
> > > folder. If not, it means it can't write. Is there a 
> > > permissions issue? What does your PHP log say?
> > > 
> > > Regards,
> > > 
> > > Jacob
> > >  
> > > 
> > > > -----Original Message-----
> > > > From: Gambin Dejan [mailto:Dejan.Gambin at pula.hr]
> > > > Sent: 15 May 2006 14:11
> > > > To: Delfos, Jacob
> > > > Cc: chameleon at lists.maptools.org
> > > > Subject: RE: [Chameleon] compress Chameleon javascript
> > > > 
> > > > Jacob,
> > > > 
> > > > Obviously I am doing something wrong. I have replaced 
> > > > UIManager.php (and put getcjs.php of course) and after 
> that I am 
> > > > getting these
> > > errors. I
> > > > have downloaded the CVS version yesterday and replace all
> > > the files in
> > > > widgets/js with the new versions. But the error remains.
> > AND I don't
> > > > have any files except .js files in widgets/js folder! If I
> > > return the
> > > > old UIManager.php version, everything is OK....I don't
> > know I'll try
> > > > everything again...
> > > > 
> > > > dejan
> > > > 
> > > > > -----Original Message-----
> > > > > From: Delfos, Jacob [mailto:Jacob.Delfos at maunsell.com]
> > > > > Sent: Monday, May 15, 2006 1:38 AM
> > > > > To: Gambin Dejan
> > > > > Cc: chameleon at lists.maptools.org
> > > > > Subject: RE: [Chameleon] compress Chameleon javascript
> > > > 
> > > 
> > 
> 



More information about the Chameleon mailing list