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 -> PHP

 Javascripts not working

Print topic Send  topic

Author Message
erdcck


Posts: 17
Posted: 05/20/2012, 12:49 PM

Dear Friends

My project locale turkish and javascripts not work. ( date picker, validation mask and others)
What can I do ?

Thank You

sample html file :


<!-- BEGIN Panel Head -->
<meta name="GENERATOR" content="CodeCharge Studio 5.0.0.15750">
<script language="JavaScript" type="text/javascript">
//Begin CCS script
//Include Common JSFunctions @1-9722A627
</script>
<script language="JavaScript" src="{page:pathToRoot}ClientI18N.php?file=Functions.js&locale={res:CCS_LocaleID}" type="text/javascript" charset="utf-8"></script>
<script language="JavaScript" type="text/javascript">
//End Include Common JSFunctions

//Include User Scripts @1-217C84A1
</script>
<script language="JavaScript" src="{page:pathToRoot}js/yui/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"></script>
<script language="JavaScript" src="{page:pathToRoot}js/yui/build/calendar/calendar-min.js" type="text/javascript"></script>
<script language="JavaScript" src="{page:pathToRoot}js/yui/datepicker-commons.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="{page:pathToRoot}CCS_PathToMasterPage}/ccs-yui-calendar.css">
<script language="JavaScript" type="text/javascript">
//End Include User Scripts

//Contentusersuser_phone_OnKeyPress @32-F2C835AC
function Contentusersuser_phone_OnKeyPress()
{
var result = true;
//End Contentusersuser_phone_OnKeyPress

//Validate Entry @43-76123E41
this.ccsRequired = true;
this.ccsMinLength = 10;
this.ccsMaxLength = 10;
this.ccsErrorMessage = "Hata";
this.ccsInputMask = "(000) 000-00-00";
inputMaskInitialize(this, '_');
this.ccsCaption = "{res:user_phone}";
//End Validate Entry

//Close Contentusersuser_phone_OnKeyPress @32-BC33A33A
return result;
}
//End Close Contentusersuser_phone_OnKeyPress

<script language="JavaScript" type="text/javascript">


//ContentusersButton_Cancel_OnClick @16-2FAF894D
function ContentusersButton_Cancel_OnClick()
{
disableValidation = true;
return true;
}
//End ContentusersButton_Cancel_OnClick

//Handle Contentusersuser_birthInlineDatePicker1 @42-F8EE45C5
function Contentusersuser_birthInlineDatePicker1_start(sender) {
if (!sender) return;
generateDatePicker(sender.id, "dd.mm.yyyy","");
}
//End Handle Contentusersuser_birthInlineDatePicker1

//bind_events @1-52794F9F
function bind_events() {
try { usertop_bind_events(); } catch(e) {}
try { headermenu_bind_events(); } catch(e) {}
try { usermenu_bind_events(); } catch(e) {}
addEventHandler("Contentusersuser_birth", "load", Contentusersuser_birthInlineDatePicker1_start);
addEventHandler("Contentusersuser_phone", "keypress", Contentusersuser_phone_OnKeyPress);
addEventHandler("ContentusersButton_Cancel", "click", ContentusersButton_Cancel_OnClick);
}
//End bind_events

window.onload = bind_events; //Assign bind_events @1-19F7B649

//End CCS script
</script>
<title>NewPage1</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<!-- END Panel Head -->
<!-- BEGIN Panel Content -->
<table width="100%">
<tr>
<td colspan="3">{usertop}</td>
</tr>

<tr>
<td width="20%"></td>
<td>
<!-- BEGIN Record users -->
<form id="Contentusers" enctype="{HTMLFormEnctype}" method="post" name="{HTMLFormName}" action="{Action}">
<table class="MainTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table class="Header" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="th"><strong>{res:users_profileedit}</strong></td>
</tr>
</table>

<table class="Record" cellspacing="0" cellpadding="0">
<tr class="Error">
<td height="10" colspan="3"></td>
</tr>
<!-- BEGIN Error -->
<tr class="Error">
<td colspan="3">{Error}</td>
</tr>
<!-- END Error -->
<tr class="Controls">
<td style="VERTICAL-ALIGN: middle"><label for="Contentusersuser_email">{res:user_email}</label></td>
<td class="th" width="15"></td>
<td><input style="PADDING-LEFT: 5px; MARGIN-BOTTOM: 10px; HEIGHT: 30px; FONT-SIZE: 14px" id="Contentusersuser_email" name="{user_email_Name}" readonly maxlength="75" value="{user_email}" size="40"></td>
</tr>

<tr class="Controls">
<td style="VERTICAL-ALIGN: middle" class="th"><label for="Contentusersuser_realname">{res:user_realname}</label></td>
<td class="th"> </td>
<td><input style="PADDING-LEFT: 5px; MARGIN-BOTTOM: 10px; HEIGHT: 30px; FONT-SIZE: 14px" id="Contentusersuser_realname" name="{user_realname_Name}" maxlength="50" value="{user_realname}" size="40"></td>
</tr>

<tr class="Controls">
<td style="VERTICAL-ALIGN: middle" class="th"><label for="Contentusersuser_gender">{res:user_gender}</label></td>
<td class="th"> </td>
<td>
<select style="PADDING-LEFT: 5px; MARGIN-BOTTOM: 10px; HEIGHT: 30px; FONT-SIZE: 14px" id="Contentusersuser_gender" name="{user_gender_Name}">
<option selected value="">{res:CCS_SelectValue}</option>
{user_gender_Options}
</select>
</td>
</tr>

<tr class="Controls">
<td style="VERTICAL-ALIGN: middle" class="th"><label for="Contentusersuser_birth">{res:user_birth}</label></td>
<td class="th"> </td>
<td>
<!-- BEGIN TextBox user_birth --><input style="PADDING-LEFT: 5px; MARGIN-BOTTOM: 10px; HEIGHT: 30px; FONT-SIZE: 14px" id="Contentusersuser_birth" name="{user_birth_Name}" maxlength="100" value="{user_birth}" size="10"><!-- END TextBox user_birth --></td>
</tr>

<tr class="Controls">
<td style="VERTICAL-ALIGN: middle" class="th"><label for="Contentusersuser_adres">{res:user_adres}</label></td>
<td class="th"> </td>
<td><input style="PADDING-LEFT: 5px; MARGIN-BOTTOM: 10px; HEIGHT: 30px; FONT-SIZE: 14px" id="Contentusersuser_adres" name="{user_adres_Name}" maxlength="100" value="{user_adres}" size="40"></td>
</tr>

<tr class="Controls">
<td style="VERTICAL-ALIGN: middle" class="th"><label for="Contentusersuser_adres1">{res:user_adres1}</label></td>
<td class="th"> </td>
<td><input style="PADDING-LEFT: 5px; MARGIN-BOTTOM: 10px; HEIGHT: 30px; FONT-SIZE: 14px" id="Contentusersuser_adres1" name="{user_adres1_Name}" maxlength="100" value="{user_adres1}" size="40"></td>
</tr>

<tr class="Controls">
<td style="VERTICAL-ALIGN: middle" class="th"><label for="Contentusersuser_state">{res:user_state}</label></td>
<td class="th"> </td>
<td><input style="PADDING-LEFT: 5px; MARGIN-BOTTOM: 10px; HEIGHT: 30px; FONT-SIZE: 14px" id="Contentusersuser_state" name="{user_state_Name}" value="{user_state}" size="40"></td>
</tr>

<tr class="Controls">
<td style="VERTICAL-ALIGN: middle" class="th"><label for="Contentusersuser_city">{res:user_city}</label></td>
<td class="th"> </td>
<td>
<select style="PADDING-LEFT: 5px; MARGIN-BOTTOM: 10px; HEIGHT: 30px; FONT-SIZE: 14px" id="Contentusersuser_city" name="{user_city_Name}">
<option selected value="">{res:CCS_SelectValue}</option>
{user_city_Options}
</select>
</td>
</tr>

<tr class="Controls">
<td style="VERTICAL-ALIGN: middle" class="th"><label for="Contentusersuser_country">{res:user_country}</label></td>
<td class="th"> </td>
<td>
<select style="PADDING-LEFT: 5px; MARGIN-BOTTOM: 10px; HEIGHT: 30px; FONT-SIZE: 14px" id="Contentusersuser_country" name="{user_country_Name}">
<option selected value="">{res:CCS_SelectValue}</option>
{user_country_Options}
</select>
</td>
</tr>

<tr class="Controls">
<td style="VERTICAL-ALIGN: middle" class="th"><label for="Contentusersuser_phone">{res:user_phone}</label></td>
<td class="th"> </td>
<td><input style="PADDING-LEFT: 5px; MARGIN-BOTTOM: 10px; HEIGHT: 30px; FONT-SIZE: 14px" id="Contentusersuser_phone" name="{user_phone_Name}" maxlength="20" value="{user_phone}" size="20" autocomplete="off"></td>
</tr>

<tr class="Bottom">
<td style="TEXT-ALIGN: right" colspan="3">
<!-- BEGIN Button Button_Update --><input type="submit" id="ContentusersButton_Update" class="Button" name="{Button_Name}" alt="{res:CCS_Update}" value="{res:CCS_Update}"><!-- END Button Button_Update -->
<!-- BEGIN Button Button_Cancel --><input type="submit" id="ContentusersButton_Cancel" class="Button" name="{Button_Name}" alt="{res:CCS_Cancel}" value="{res:CCS_Cancel}"><!-- END Button Button_Cancel --></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<!-- END Record users --><br>
</td>
<td width="20%"> </td>
</tr>
</table>
<!-- END Panel Content -->
<!-- BEGIN Panel Menu -->{headermenu}<!-- END Panel Menu -->
<!-- BEGIN Panel Sidebar1 -->{usermenu}<!-- END Panel Sidebar1 -->
View profile  Send private message
Lucius

Posts: 220
Posted: 05/21/2012, 1:54 AM

Hi,

The simplest way to check what is the exact issue is to get a browser like Firefox and download a addon called "Firebug".

Enable this addon on the page you are working on and switch to "Console" tab of firebug - it will tell you where exactly you have errors.
View profile  Send private message
clahti2

Posts: 107
Posted: 05/24/2012, 11:11 AM

google chrome has an excellent javascript console baked right in, no need for a separate plugin.
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.

Web Database

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.