CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> General/Other

 CCS Duplicating Script Includes!

Print topic Send  topic

Author Message
fabio

Posts: 19
Posted: 07/10/2007, 2:54 PM

Hi guys..I need some help from you

I have a main page, with many included ones. All of them generated with CCS 3.2 beta
The problem is, CCS is duplicating the following code line in all pages, so I get a javascript error when running the main page.

<script language="JavaScript" src="../../../ClientI18N.asp?file=Functions.js&locale={res:CCS_LocaleID}" type="text/javascript" charset="utf-8"></script>

also, CCS duplicates the DatePicker script file.

Any solutions???????
Did I do anything wrong????
Thanks in advance!
View profile  Send private message
mamboBROWN


Posts: 1712
Posted: 07/10/2007, 3:20 PM

fabio
Is this a project that you created in CCS 3.2 Beta or is this a project that you migrated from an older version of CCS? Also, did you contact support just to see if they have a solution??
View profile  Send private message
matheus

Posts: 386
Posted: 07/11/2007, 4:36 AM

fabio,

Take off the Functions.js line in all includable page, and put Functions.js only in the main page.
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message
fabio

Posts: 19
Posted: 07/11/2007, 7:18 AM

Hi!

Thanks for the quick response
Mambo, this project was created originally with CCS 3.1 and converted this week to 3.2. The problem already existed when it was in 3.1.

Matheus, I would like to know why this happens so it won't happen anymore, so this is whyI prefer not to remove the files manually.

View profile  Send private message
matheus

Posts: 386
Posted: 07/11/2007, 7:33 AM

fabio, if each file had include functions.js script.

When the page is includable, it will add many time Functions.js.

For example:

page 1 - main page. had add functions script.

page 2 - includable page. had add functions script.

page 3 - includable page.

page 4 - includable page. had add functions script.

It will had 3 functions.js includes.

So if you add functions.js only in main page it will works.

_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.