CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> IDE/GUI

 Translation in JavaScript file

Print topic Send  topic

Author Message
robertlittle

Posts: 10
Posted: 10/15/2006, 2:28 AM

Hi,

Is it possible that a variable of translation included in an external file .js, can be interpreted when CCS generates the final HTML page?

For example:

I have the Javascript file sigat_es-VE_25.js.
The file include a line code with " ABC='{rs:CCS_LocaleID}' ", where
{rs:CCS_LocaleID} = 'es-VE'

Mode 1 (Wrong - Don't Work)
In the html file I included
<script language= " JavaScript1.2 " src= " menu/sigat_es-VE_25.js " ... ></script>
If I check the value of ABC then ABC contains {rs:CCS_LocaleID} literally. (Wrong)

Mode 2 (Fine - Work)
In the html file I included ABC = "{rs:CCS_LocaleID}"
Then, if I check the value of ABC, ABC contains 'es-VE'. (Right)

How I can obtain that the Mode 1 works?.

(Sorry for my bad english)

Regards,

Robert.
_________________
Robert Little
View profile  Send private message
robertlittle

Posts: 10
Posted: 10/15/2006, 3:39 AM

Is it possible that it can be solved using the file "ClientI18N.php"?.

If this is correct, how do I to indicate the file .js?, which is located in the menu directory and not in the root of the website.

Thanks!.

Robert.
_________________
Robert Little
View profile  Send private message
jres
Posted: 10/16/2006, 1:02 AM

Yes, you can use "ClientI18N.php" but you need to modify this file because it can handle only CCS js-files (due to security reasons).


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.